Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Graphiti wont reset need-update marking after update
Graphiti wont reset need-update marking after update [message #1352665] Tue, 13 May 2014 15:20 Go to next message
Nickie woo is currently offline Nickie wooFriend
Messages: 21
Registered: February 2014
Junior Member
Hi
I have a question regarding UpdateFeatures

After calling my UpdateFeature.update() and returned true isnt Graphiti supposed to remove the red boundary marking automatically or is there something else i must do ?

The update process went find and i verified the return value both from updateNeeded() and update() but my shape only return back to normal first when i drag it.
Re: Graphiti wont reset need-update marking after update [message #1354921 is a reply to message #1352665] Wed, 14 May 2014 13:37 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi,

this sounds as if there is no refresh triggered after the execution of
update(). updateNeeded() needs to be called and return a false reason to
remove the red marker.

Usually, the update is triggered automatically when you change someting in
the diagram or the domain model that is linked to the shape or a subshape of
it. Maybe that is not the case in your update method?

Sometimes also a manual refresh is needed because the automatic does not
work. Just call DiagramEditor.refresh from the update method in that case.

Michael
Re: Graphiti wont reset need-update marking after update [message #1376645 is a reply to message #1354921] Fri, 23 May 2014 14:05 Go to previous message
Nickie woo is currently offline Nickie wooFriend
Messages: 21
Registered: February 2014
Junior Member
Thanks

Refreshing the diagram did the trick Smile

BTW : Its not DiagramEditor.refresh(), the correct call is getDiagramBehavior().refresh();
Previous Topic:Starting a new Graphiti project
Next Topic:Java 1.5 or 1.6 ?
Goto Forum:
  


Current Time: Fri Apr 19 03:02:58 GMT 2024

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

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

Back to the top