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 Kipling
Messages: 257
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 Alwis
Messages: 192
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.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:How to do ContextInjectionFactory.make with paramatrized constructor?
Next Topic:Get IEventBroker instance at app start-up
Goto Forum:
  


Current Time: Sun Oct 26 01:57:16 GMT 2014

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

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