Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » My EditPart doesn't react to model changes
My EditPart doesn't react to model changes [message #558353] Sat, 11 September 2010 14:39 Go to next message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi,

I have an EditPart, say FooEditPart, with his own semantic element, Foo; if I make changes to element Foo (by code or by PropertyPage), I correctly see FooEditPart receiving the right notification event, and I'm able to react to this changes (e.g. updating the FooEditPartFigure).

But, now I need to react to changes made on a DIFFERENT semantic element, say Foo2, not related to Foo: which is the right (or the best) way to accomplish this task?

Thank you, regards

Giovanni.
Re: My EditPart doesn't react to model changes [message #558362 is a reply to message #558353] Sat, 11 September 2010 18:22 Go to previous messageGo to next message
Robert Wloch is currently offline Robert WlochFriend
Messages: 109
Registered: July 2009
Senior Member
Hi Giovanni,

Check this blog, especially the code related to the "installListenerFilter()" method.

Rob
Re: My EditPart doesn't react to model changes [message #558465 is a reply to message #558362] Mon, 13 September 2010 07:25 Go to previous message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi Robert,

thank you for your answer, very useful; I solved the problem, thank you again.

Regards,

Giovanni.
Previous Topic:Synchronizing EMF resources deadlock
Next Topic: two linked rectangle in just one drag and drop from the palette?
Goto Forum:
  


Current Time: Tue Sep 24 21:31:36 GMT 2024

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

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

Back to the top