Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » External plugins aware of changes in a diagram ?
External plugins aware of changes in a diagram ? [message #188259] Wed, 21 May 2008 15:41 Go to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi!

Is there a way to make an external plugin aware of changes in a diagram ?
And, is it possible for an external plugin to manipulate a diagram ?

For example :
if i create a node in diagram or delete it can i make a plugin X handmade
aware of this through listners for example?
Can an external plugin come and create a diagram like when we create an
ecore_diagram from a .ecore file? And how it can be implemented ?


It will be helpfull if someone has an answer (Yes ? no ? Stop asking for
weird things :p ?)

Thanks in advance
Re: External plugins aware of changes in a diagram ? [message #188321 is a reply to message #188259] Wed, 21 May 2008 16:29 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Mous,

> aware of this through listners for example?
Sure. You can add listners for any EMF objects. See GraphicalEditPart.activate()
method as an example - all the generated EditParts (subclasses of GraphicalEditPart)
are registered as a listeners for corresponding domain model elements.
In addition EContentAdapter class can be usefull if you'd like to listen
all the EObjects starting from some top-level one.

> Can an external plugin come and create a diagram like when we create
> an ecore_diagram from a .ecore file? And how it can be implemented ?
See generated EcoreInitDiagramFileAction.

-----------------
Alex Shatalin
Re: External plugins aware of changes in a diagram ? [message #188399 is a reply to message #188321] Thu, 22 May 2008 07:29 Go to previous message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Thx Alex!
In fact, it is an advanced use case in my project and i am still a way (a
long way :( )from it today but i will check the classes you told me about!
Previous Topic:Exceptions when creating shortcuts
Next Topic:Draw a connection with a figure associated
Goto Forum:
  


Current Time: Thu Apr 18 06:56:19 GMT 2024

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

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

Back to the top