Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Send Event or callback from GMF Tool
Send Event or callback from GMF Tool [message #541818] Tue, 22 June 2010 15:48 Go to next message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
I have GMF based tool. I want it tosend an event toanother application when the user press Save.
Any idea how to do that ?
Re: Send Event or callback from GMF Tool [message #541837 is a reply to message #541818] Tue, 22 June 2010 16:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33188
Registered: July 2009
Senior Member
By "other application" you mean something running in another process?


bachra04 wrote:
> I have GMF based tool. I want it tosend an event toanother application
> when the user press Save.
> Any idea how to do that ?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Send Event or callback from GMF Tool [message #541841 is a reply to message #541837] Tue, 22 June 2010 17:29 Go to previous messageGo to next message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
it is basically another running eclipse plugin.
Re: Send Event or callback from GMF Tool [message #541899 is a reply to message #541841] Wed, 23 June 2010 05:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33188
Registered: July 2009
Senior Member
A workspace listener that watches for resource deltas is likely what you
want. A generated EMF editor generates one; it listens for resources
that are being edited being changed externally.

bachra04 wrote:
> it is basically another running eclipse plugin.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Send Event or callback from GMF Tool [message #543768 is a reply to message #541899] Wed, 30 June 2010 14:08 Go to previous message
bachra04  is currently offline bachra04 Friend
Messages: 148
Registered: April 2010
Senior Member
Hi Ed,

I understand that ResourceChangerListener can do the job, but what if I want to expose some API from my plugin e.g.

- void GenerateTemplate ();
this method traverses the tree and extract some information then output it inside a file.

- I want other plugin to be able to call my method from inside their code.

Is that possible ?

Thanks
Previous Topic:How to retrieve the fields properties of the editpart from the action
Next Topic:How to drag and drop external models in my diagram?
Goto Forum:
  


Current Time: Sat Jul 27 09:52:03 GMT 2024

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

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

Back to the top