🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.together.documentation
2 messages
2 total messages Started by Alex Fri, 28 Jan 2005 12:52
Documentation of hyperlinked diagrams
#68
Author: Alex
Date: Fri, 28 Jan 2005 12:52
13 lines
1341 bytes
Hi all,

I have created a sequence diagram for each event in a state diagram. The
sequence diagrams are assigned to the state using the hyperlink option. All
worked fine so far. Now I want to generate a document which contains the
sequence diagrams instead of the hyperlinks. Does someone knows how this can
be done?

I'm using Together 6.0.1.

Many thanx in advance.

Alex
Re: Documentation of hyperlinked diagrams
#69
Author: Leonid Rudy
Date: Mon, 31 Jan 2005 12:06
84 lines
4037 bytes
On top of this, I just can add that using DocFlex/Together:
http://www.filigris.com/products/docflex_together/

all of that is possible easily to do without "hacking" anything 
and writing any extra Java classes at all !

Anyone interested, please write directly to me:
lrudy@filigris.com
we could provide a sample template on how to do this

-- Leonid Rudy


"ElenaA" <Elena.Alekseeva@borland.com> wrote:
>I can suggest using iterations with 'programmed' iteration scope + hacking 
>the metamodel 
>(modules\com\togethersoft\modules\gendoc\templates\MetaModel.mm )... Namely, 
>let you have a hyperlink from state element to Sequence diagram. Then you 
>need to add Interaction diagram as contained_metatype for State metatype, 
>and add iteration by Sequence diagram as nested iteration for state 
>iterator.
>
><metatype>
>  name=STATE
>  extends=NODE
>  full_name="[gendoc/gen_doc_by_template1/full_name_STATE]"
>#"State (generic)"
>  metatype_filter='hasPropertyValue("$shapeType","StartState") ||'
>                  'hasPropertyValue("$shapeType","EndState") ||'
>                  'hasPropertyValue("$shapeType","State") ||'
>                  'hasPropertyValue("$shapeType","SyncBar") ||'
>                  'hasPropertyValue("$shapeType","History")'
>  contained_metatypes = { TRANSITION_LINK;
>                          INTERNAL_TRANSITION;
>                          DEFERRED_EVENT;
>
>                          INTERACTION_DIAGRAM  }
></metatype>
>
>
>then you need to write your own provider class with a method  returning 
>diagrams referenced by currently iterated element, and set the iteration 
>scope of iterator to 'Programmed', specifying full class name and method 
>name as parameters. Normally this provider class should reside in one of 
>com.togethersoft.modules subpackages, and should be placed into the 
>corresponding subfolder of $TGH/modules/com/togethersoft/modules. But this 
>is not mandatory - in principle adding the path to .class to Tg classpath 
>would be enougth...The method should have the following signature:
>
>public Vector method (GenDocContext context);
>
>GenDocContext is defined in package: com.togethersoft.modules.gendoc.api
>
>The method should use the call: context.getRwiElement() to obtain passed 
>current RWI-element (or context.getRwiReference(), if RWI-reference is 
>expected) The method should return a vector of RWI elements that will be 
>passed to Diagram Iteration Section as the iteration scope.
>
>
>
>I'll email you the sample provider class, template and changed metamodel
>
>"Alex" <alexander.kolbeck@rsd.rohde-schwarz.com> wrote in message 
>news:41fa3579$1@newsgroups.borland.com...
>> Hi all,
>>
>> I have created a sequence diagram for each event in a state diagram. The
>> sequence diagrams are assigned to the state using the hyperlink option. 
>> All
>> worked fine so far. Now I want to generate a document which contains the
>> sequence diagrams instead of the hyperlinks. Does someone knows how this 
>> can
>> be done?
>>
>> I'm using Together 6.0.1.
>>
>> Many thanx in advance.
>>
>> Alex
>>
>> 
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads