Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAdding a menu entry to the UML Editor Menu
https://www.eclipse.org/forums/index.php/mv/msg/151620/477088/#msg_477088
When I open an uml file with the UML tree editor, the main menu bar is
populated with a menu "UML Editor". For a few hours now (yeah I bite..)
I try to extend that menu from inside my plugin. I try to do so via the
org.eclipse.ui.menu extension point like this:
I also tried ..?after=additions, but that didn't work either. Is this
even possible?
Felix]]>Felix Dorner2008-03-13T01:51:20-00:00Re: Adding a menu entry to the UML Editor Menu
https://www.eclipse.org/forums/index.php/mv/msg/151620/626222/#msg_626222
Have a look at the source code in org.eclipse.uml2.examples.uml.ui.
Inspect the plugin.xml.
You will see some menu items being contributed like the following ...
<action
label="%_UI_EcoreModelAction_label"
That xml file should indicate how to add to the menus.
I've attached it to this response.
Good luck ... and don't feel bad... I also have issues with menus :)
Cheers,
- James.
"Felix Dorner" <felix_do@web.de> wrote in message
news:fra1ai$not$1@build.eclipse.org...
> Hey,
>
> When I open an uml file with the UML tree editor, the main menu bar is
> populated with a menu "UML Editor". For a few hours now (yeah I bite..)
> I try to extend that menu from inside my plugin. I try to do so via the
> org.eclipse.ui.menu extension point like this:
>
> <menuContribution
> locationURI=" menu:org.eclipse.uml2.umlMenuID?after=org.eclipse.uml2.uml.e ditor.ElementMenuID ">
> <menu
> label="hahhahaha">
> <command
> commandId="allure.commands.generate"
> label="huhuhu"
> style="push">
> </command>
> </menu>
> </menuContribution>
>
>
> I also tried ..?after=additions, but that didn't work either. Is this
> even possible?
>
>
> Felix
]]>james bruck2008-03-13T14:13:13-00:00Re: Adding a menu entry to the UML Editor Menu
https://www.eclipse.org/forums/index.php/mv/msg/151620/477093/#msg_477093
Have a look at the source code in org.eclipse.uml2.examples.uml.ui.
Inspect the plugin.xml.
You will see some menu items being contributed like the following ...
<action
label="%_UI_EcoreModelAction_label"
That xml file should indicate how to add to the menus.
I've attached it to this response.
Good luck ... and don't feel bad... I also have issues with menus :)
Cheers,
- James.
"Felix Dorner" <felix_do@web.de> wrote in message
news:fra1ai$not$1@build.eclipse.org...
> Hey,
>
> When I open an uml file with the UML tree editor, the main menu bar is
> populated with a menu "UML Editor". For a few hours now (yeah I bite..)
> I try to extend that menu from inside my plugin. I try to do so via the
> org.eclipse.ui.menu extension point like this:
>
> <menuContribution
> locationURI=" menu:org.eclipse.uml2.umlMenuID?after=org.eclipse.uml2.uml.e ditor.ElementMenuID ">
> <menu
> label="hahhahaha">
> <command
> commandId="allure.commands.generate"
> label="huhuhu"
> style="push">
> </command>
> </menu>
> </menuContribution>
>
>
> I also tried ..?after=additions, but that didn't work either. Is this
> even possible?
>
>
> Felix
]]>james bruck2008-03-13T14:13:13-00:00Re: Adding a menu entry to the UML Editor Menu
https://www.eclipse.org/forums/index.php/mv/msg/151620/626223/#msg_626223
time... I am just confused about all those extension points, but I guess
its normal in the beginning...
Felix
James Bruck wrote:
> Hi Felix,
>
> Have a look at the source code in org.eclipse.uml2.examples.uml.ui.
> Inspect the plugin.xml.
>]]>Felix Dorner2008-03-13T15:23:24-00:00Re: Adding a menu entry to the UML Editor Menu
https://www.eclipse.org/forums/index.php/mv/msg/151620/477094/#msg_477094
time... I am just confused about all those extension points, but I guess
its normal in the beginning...
Felix
James Bruck wrote:
> Hi Felix,
>
> Have a look at the source code in org.eclipse.uml2.examples.uml.ui.
> Inspect the plugin.xml.
>]]>Felix Dorner2008-03-13T15:23:24-00:00