Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4 how to contribute to the workbench main menu and toolbar.
e4 how to contribute to the workbench main menu and toolbar. [message #1107382] Thu, 12 September 2013 10:14 Go to next message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 937
Registered: July 2009
Senior Member
Hi,

What is the best way to contribute to the workbench main toolbar and
menu for an e3 application using the e4 workbench?

I have the e4 compatability layer loaded, so not my own e4 UI model to
tweak.


Can I find an example somewhere?
Thank You, Christophe Bouhier
Re: e4 how to contribute to the workbench main menu and toolbar. [message #1107635 is a reply to message #1107382] Thu, 12 September 2013 18:13 Go to previous messageGo to next message
Eric Moffatt is currently offline Eric Moffatt
Messages: 118
Registered: July 2009
Senior Member

If you're using the compatibility layer you are most likely best off to use
the existing extension points; 'org.eclipse.ui.menus' & 'org.eclipse.ui.handlers'

While we are working towards a better 'mix in' story where you could contribute
via model fragments / processors we're not quite there yet.
Re: e4 how to contribute to the workbench main menu and toolbar. [message #1108003 is a reply to message #1107635] Fri, 13 September 2013 07:38 Go to previous message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 937
Registered: July 2009
Senior Member
On 12-09-13 20:13, Eric Moffatt wrote:
>
> If you're using the compatibility layer you are most likely best off to use
> the existing extension points; 'org.eclipse.ui.menus' &
> 'org.eclipse.ui.handlers'

Thanks Eric, I managed to get the programmatically contributed actions
with the compat layer. (See my previous email on this).

>
> While we are working towards a better 'mix in' story where you could
> contribute

Can you elaborate, is there a bug number?

I also read here and there people copying the legacyIDE.e4xml and
contributing to it, is this also a real option or pehaps a bit of a hack?

BTW, I bundled in the live editor and something surprised me. The e4 UI
model contains many definitions (Binding Context, Commands) for bundles
which aren't part of my app. Is the model static or partly static?
I read the model was dynamically build based on plugin.xml contributions
(For loaded plugins).

Now this makes me think of something else, what is the relation between
bundle lifecycle (Active, Loaded etc..) and the state of the UI model
for the compat layer? Will a lazy loaded bundled also be weaved into the
UI model?

Sorry for the many questions..


> via model fragments / processors we're not quite there yet.
>
Thx Christophe
Previous Topic:Removing Dynamic Menu Contributions
Next Topic:Use PartDescriptor to create an input part
Goto Forum:
  


Current Time: Fri Oct 31 13:00:02 GMT 2014

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

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