Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » re-evaluate constraint
re-evaluate constraint [message #222986] Fri, 27 March 2009 14:19 Go to next message
Idelman Andro is currently offline Idelman AndroFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,
I have a mapping with a node constraint.
the constraint works as expected when the editor is reloading, but it does
not affect when only a property of an element is changed.

I would expect that invoking the refresh() method of an EditPart would
trigger the re-evaluation of the constraint, but it does not seems to work
this way.

How can I invoke a re-evaluation of a constraint and cause the node to
appear\disappear ? (without reloading the editor)

I have read the thread -
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg12295.html

but it is not clear how this should be done.
Thanks
Andro
Re: re-evaluate constraint [message #223402 is a reply to message #222986] Mon, 30 March 2009 17:29 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Idelman,

You have to call diagram updater (CanonicalEditpolicy) to refresh diagram
content in accordance with actual model content. I suggest liostening fot
EMF notifications in corresponding EditPart and calling updater then necessary.

-----------------
Alex Shatalin
Previous Topic:Displaying element's child attribute in property view
Next Topic:How to open a diagram in patir of a drawn element?2
Goto Forum:
  


Current Time: Fri Apr 26 13:35:52 GMT 2024

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

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

Back to the top