P2 UI menu contributions in E4 application [message #551196] |
Thu, 05 August 2010 10:53  |
Eclipse User |
|
|
|
Hello,
In a 3.6 application, adding p2 feature UI was sufficient to have "Install new Software..." and "Check Update..." in "Help" menu.
Now, my application is E4. It doesn't work anymore. Even if I have a menu with id=help in Application.e4xmi and a separator with id=additions.
My question is : does old 3.6 contributions system work with E4 application ?
Thanks.
For information, the contribution of P2 UI DK is :
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:help?after=additions">
<command
commandId="org.eclipse.equinox.p2.ui.sdk.update"
mnemonic="%Update.command.mnemonic"
id="org.eclipse.equinox.p2.ui.sdk.update">
</command>
</menuContribution>
<menuContribution
locationURI="menu:help?after=org.eclipse.equinox.p2.ui.sdk.update ">
<command
commandId="org.eclipse.equinox.p2.ui.sdk.install"
mnemonic="%Install.command.mnemonic"
id="org.eclipse.equinox.p2.ui.sdk.install">
</command>
</menuContribution>
</extension>
|
|
|
Re: P2 UI menu contributions in E4 application [message #551302 is a reply to message #551196] |
Thu, 05 August 2010 15:47   |
Eclipse User |
|
|
|
Hi,
Well those things only work if you have the compat-layer with you.
An application built with the pure Eclipse 4.0 Application Platform does
not understand any extension points beside:
* org.eclipse.e4.workbench.model: for model contributions
* org.eclipse.e4.ui.css.swt.theme: to contribute themes and styles
That's all extension points you need to make up complete applications -
we don't need more than those because the
org.eclipse.e4.workbench.model-extension points allows to contribute
model fragments and the model itself knows about, commands, handlers, ... .
Tom
Am 05.08.10 16:53, schrieb Chris:
> Hello,
>
> In a 3.6 application, adding p2 feature UI was sufficient to have
> "Install new Software..." and "Check Update..." in "Help" menu.
>
> Now, my application is E4. It doesn't work anymore. Even if I have a
> menu with id=help in Application.e4xmi and a separator with id=additions.
>
> My question is : does old 3.6 contributions system work with E4
> application ?
>
> Thanks.
>
>
>
> For information, the contribution of P2 UI DK is :
> <extension
> point="org.eclipse.ui.menus">
> <menuContribution
> locationURI="menu:help?after=additions">
> <command
> commandId="org.eclipse.equinox.p2.ui.sdk.update"
> mnemonic="%Update.command.mnemonic"
> id="org.eclipse.equinox.p2.ui.sdk.update">
> </command>
> </menuContribution>
> <menuContribution
>
> locationURI="menu:help?after=org.eclipse.equinox.p2.ui.sdk.update ">
> <command
> commandId="org.eclipse.equinox.p2.ui.sdk.install"
> mnemonic="%Install.command.mnemonic"
> id="org.eclipse.equinox.p2.ui.sdk.install">
> </command>
> </menuContribution>
> </extension>
>
>
|
|
|
|
|
|
|
|
|
|
Re: P2 UI menu contributions in E4 application [message #628658 is a reply to message #628653] |
Thu, 23 September 2010 10:48  |
Eclipse User |
|
|
|
Well you simply add your own commands and call the P2 CORE API.
Tom
Am 23.09.10 16:38, schrieb Sun:
>> unfortunately no, something we'll hopefully find a solution in 4.1.
>
> Yes this would be great, the e4 way is so nice and simple :)
>
>> All you can do is to contribute PartDescriptors because they are stored
>> at in the Application-Element. Does the legacy implementation come with
>> a Window and PerspectiveStack-Element. If yes you can also makeup a
>> complete Perspective.
>
> Unfortunately no, it only comes with a Window and nothing under it. And
> trying to programmatically add a perspective stack in the processor
> leads to errors.
>
> So I will probably reswitch to a pure E4 application, and try to make P2
> work at least for updates (that was the initial purpose of integrating
> the P2 UI plugin), with a simple homemade UI.
>
> Thanks for answering so fast,
>
> Sun
|
|
|
Powered by
FUDForum. Page generated in 0.06739 seconds