EditorPart MenuContribution [message #681749] |
Thu, 09 June 2011 14:51  |
Eclipse User |
|
|
|
Hello,
I´m new to rcp and i have a lot of problems understanding it.
I wanted to use the org.eclipse.ui.menus extension point to add toolbar items to my application. I successfully added some toolbar items to the toplevel-toolbar and also to the toolbar of a view.
However, I also want to configure the toolbar of a FormPage in a FormEditor declaratively. So I have the following settings in my plugin.xml
<extension
point="org.eclipse.ui.editors">
<editor
<!--this is my EditorPart extending FormPage. I create it programmatically and add it to my FormEditor, so it doesn´t seem to make sense to declare it here. I set the same Id in my code-->
class="org.ssprenger.agenato.editors.ConnectorEditor"
default="false"
id="org.ssprenger.agenato.editors.connector"
name="Connector Editor">
</editor>
</extension>
<extension
point="org.eclipse.ui.menus">
<!-- that´s the way i tried to set the menu contribution-->
<menuContribution
locationURI="toolbar:org.ssprenger.agenato.editors.connector">
<!-- the command worked for another toolbar-->
<command
commandId="org.ssprenger.agenato.addAdapter"
icon="icons/add_adapter.png"
style="push"
tooltip="Create a new Adapter">
</command>
</menuContribution>
</extension>
That doesn´t work. Please help, thank you
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03427 seconds