Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » refer to the diagram element in a constaraint
refer to the diagram element in a constaraint [message #220408] Mon, 02 March 2009 21:15 Go to next message
Idelman Andro is currently offline Idelman AndroFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,
is it possible to refer to the diagram element in a node constraint?
I need to check if a certain attribute of the diagram element is equal to
a one in the node element, I want this node to be visible only if this is
true.
Thanks,
Andro
Re: refer to the diagram element in a constaraint [message #220951 is a reply to message #220408] Tue, 10 March 2009 13:55 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Idelman,

If you are talking about notation model Node instance representing this domain
model element then it is ot possible to add such a constraint to the mapping.
You can try java-constraint or writing custom code for it.

-----------------
Alex Shatalin
Re: refer to the diagram element in a constaraint [message #221216 is a reply to message #220951] Wed, 11 March 2009 12:06 Go to previous message
Idelman Andro is currently offline Idelman AndroFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Alex, I was able to do it with java-constraint.
thanks.

Alex Shatalin wrote:

> Hello Idelman,

> If you are talking about notation model Node instance representing this
domain
> model element then it is ot possible to add such a constraint to the mapping.
> You can try java-constraint or writing custom code for it.

> -----------------
> Alex Shatalin
Previous Topic:[NullPointerException],at org.eclipse.ui.internal.menus.WorkbenchMenuService.releaseContributions()
Next Topic:RSA views wrongly
Goto Forum:
  


Current Time: Fri Mar 05 14:45:44 GMT 2021

Powered by FUDForum. Page generated in 0.02030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top