Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » gmf listener
gmf listener [message #24257] Mon, 21 August 2006 03:10 Go to next message
Eclipse UserFriend
Hello,

is anyone can tell me in which class, listeners can be reach for events like
creating and deleting nodes on diagrams, to report actions at this time.

thanks
k
Re: gmf listener [message #24622 is a reply to message #24257] Mon, 21 August 2006 09:36 Go to previous messageGo to next message
Eclipse UserFriend
kevin wrote:
> Hello,
>
> is anyone can tell me in which class, listeners can be reach for events like
> creating and deleting nodes on diagrams, to report actions at this time.
>
> thanks
> kévin.
>
>
the edit parts are listening to EMF events on the both of Semantic
element and the notation view.
So, if you add/delete a node to a parent, the parent's edit part will
receive the add/delete events
these events are handled in the
GraphicalEditPart#handleNotificationEvent(Notification event)
If you want to add extra handling you can always override this method
in your edit part do your special handling then call super
Re: gmf listener [message #24743 is a reply to message #24622] Mon, 21 August 2006 10:24 Go to previous message
Eclipse UserFriend
thanks

"Mohammed Mostafa" <mmostafa@ca.ibm.com> a
Previous Topic:Generated diagram code plugin's name
Next Topic:figure of TextCompartmentEditPart is not visible
Goto Forum:
  


Current Time: Sat May 10 20:44:39 EDT 2025

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

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

Back to the top