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

API: Element isHidden

0 views
Skip to first unread message

Jean-Claude

unread,
Sep 1, 2006, 4:51:45 AM9/1/06
to

Hello,

How can we check if a model element is hidden in a diagram via the API?

Cheers,

ElenaA

unread,
Sep 1, 2006, 6:08:43 AM9/1/06
to
not possible in Tg 2006, as it doesn't have openAPI access to
diagrams/references.
In Arcas, you can use isHidden() for this:

// com.borland.tg.emfapi.diagram.Diagram diagram
EList children = diagram.getChildren();
for (Iterator i = children.iterator(); i.hasNext();) {
com.borland.tg.emfapi.diagram.Node node =
(com.borland.tg.emfapi.diagram.Node) i.next();
if (node.isHidden()) {
//write your code here :)
}

}

"Jean-Claude" <jcan...@alineo.com> wrote in message
news:44f7f4a1$1...@newsgroups.borland.com...

Jean-Claude

unread,
Sep 5, 2006, 5:25:45 AM9/5/06
to

Thanks Lena!
0 new messages