Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Do Addons have another Context, than the parts?
Do Addons have another Context, than the parts? [message #1003628] Mon, 21 January 2013 16:36 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
My Part inserts some content into the EclipseContext and then triggers the Addon.
The Addon seems to have a different Context, than Parts do. Is that true?
How would a Part communicate with a Addon?
Re: Do Addons have another Context, than the parts? [message #1004013 is a reply to message #1003628] Tue, 22 January 2013 12:31 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 560
Registered: January 2012
Senior Member

Anything implementing MContext will generally havens own context.

Addons are held at the application layer, so your part could traverse its container and then search for the appropriate addon. But remember there may be multiple instances of your part, depending on how many windows you have in your model.

A different way might be to use the context's notion of active variables to try to decouple your addon from your part.

Brian.
Previous Topic:DI : Define custom parent Composite for inject
Next Topic:Eclipse Preferences Import Export
Goto Forum:
  


Current Time: Thu Mar 23 08:24:46 GMT 2017

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

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