Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » application model changes via fragment at startup
application model changes via fragment at startup [message #1004686] Wed, 23 January 2013 12:00 Go to next message
Jan Weidauer is currently offline Jan Weidauer
Messages: 47
Registered: July 2009
Member
My RCP tries to install new plugins at startup following an external
configuration. These plugins are supposed to contribute to the
application model.
In Eclipse 3.x the RCP restarted the workbench after the installation.
In E4 I am trying to do the same but found no way. Starting the
installation of new plugins in a class hooked to the lifecycle is too
soon to close the workbench because the workbench is not created at this
time.
What I need is a way to get the newly added plugins involved during the
startup process or a way I get noticed when the workbench is created.

Any ideas?

Jan
Re: application model changes via fragment at startup [message #1005440 is a reply to message #1004686] Fri, 25 January 2013 08:03 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 163
Registered: January 2012
Senior Member

Use a model processor: see the org.eclipse.e4.workbench.model extension point or the following page:

http://wiki.eclipse.org/Eclipse4/RCP/Modeled_UI/Contributing_to_the_Model

Brian,


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:How to add a new view with a fragment
Next Topic:Testing E4 components injection in a simple Java class
Goto Forum:
  


Current Time: Fri Jul 25 09:48:13 EDT 2014

Powered by FUDForum. Page generated in 0.01505 seconds