Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need Help In Setting A Condition For Element Iterator

2 views
Skip to first unread message

JLam

unread,
Jul 26, 2005, 2:00:43 AM7/26/05
to

Hi,

I am quite new to GenDoc and would like some help navigating through.

I have a class diagram in which I hide some classes. When I use GenDoc to generate the document. GenDoc corrects hides those diagrams I wanted to hide but it generated all the descriptions pertaining to those classes.

I believe the way to do this (please correct me) is to set a condition (Filter Expression?) on the Element Iterator for Class in the ClassDiagram.tpl. What is the condition I should be setting?

If I am moving down the wrong path, please advise.

Thanks.

--
JLam

ElenaA

unread,
Aug 1, 2005, 8:22:55 AM8/1/05
to
can be done using Programmed iteration scope - you can write your own GenDoc
adapter that collects all visible references and pass its output to GenDoc.
Normally this adapter class should reside in one of com.togethersoft.modules
subpackages, and should be placed into the corresponding subfolder of
$TGH/modules/com/togethersoft/modules. It should have a method with 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.

Please, let me know if you need an example of java code and .tpl file that
do this.

"JLam" <josh...@intuit.com> wrote in message
news:42e5d18b$1...@newsgroups.borland.com...

0 new messages