Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Part / Menus / Menu where does it go?(A part has 3 possible menus (menu, view menu and popup menu), where does menu go?)
Part / Menus / Menu where does it go? [message #991379] Tue, 18 December 2012 20:18 Go to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 113
Registered: October 2010
Location: Austria
Senior Member
I realized a sample application where I have a part which features all types of menus; Menu, View Menu and Popup Menu. I can see where View Menu and Popup Menu go, but what about Menu?

For further explanation see the following screenshot:

https://dl.dropbox.com/u/72943400/missingMenu.png
Re: Part / Menus / Menu where does it go? [message #991800 is a reply to message #991379] Thu, 20 December 2012 08:22 Go to previous messageGo to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 113
Registered: October 2010
Location: Austria
Senior Member
This is an excerpt of the e4xmi concerning the menus:

<menus xmi:id="_nJDGcEp8EeKswI6QNEvr1w" elementId="at.descher.eclipse.bug396971.menu.0">
<children xsi:type="menu:DirectMenuItem" xmi:id="_o5P4wEp8EeKswI6QNEvr1w" elementId="directmenuitem.0"/>
</menus>
<menus xsi:type="menu:PopupMenu" xmi:id="_np5JsEp8EeKswI6QNEvr1w" elementId="popupmenu.0">
<children xsi:type="menu:DirectMenuItem" xmi:id="_pLp3YEp8EeKswI6QNEvr1w" elementId="at.descher.eclipse.bug396971.popupmenu.directmenuitem.1"/>
</menus>
<menus xmi:id="_n_UnIEp8EeKswI6QNEvr1w" elementId="viewmenu.1">
<tags>ViewMenu</tags>
<children xsi:type="menu:DirectMenuItem" xmi:id="_peIugEp8EeKswI6QNEvr1w"
elementId="at.descher.eclipse.bug396971.viewmenu.directmenuitem.2"/>
</menus>

As one can see the only difference of Menu and ViewMenu is the <tag>. Is the default menu formally defined to be used in other renderers eg JavaFX? Would it be possible to remove the tag <tag>ViewMenu</tag> and simply accept the default menu as the ViewMenu?

A bug has been opened in https://bugs.eclipse.org/bugs/show_bug.cgi?id=396971
Re: Part / Menus / Menu where does it go? [message #991857 is a reply to message #991800] Thu, 20 December 2012 11:07 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
I never really understood why this tag was needed but I think only Paul
and Eric can really answer this.

Tom

Am 20.12.12 09:22, schrieb Marco Descher:
> This is an excerpt of the e4xmi concerning the menus:
>
> <menus xmi:id="_nJDGcEp8EeKswI6QNEvr1w"
> elementId="at.descher.eclipse.bug396971.menu.0">
> <children xsi:type="menu:DirectMenuItem"
> xmi:id="_o5P4wEp8EeKswI6QNEvr1w" elementId="directmenuitem.0"/>
> </menus>
> <menus xsi:type="menu:PopupMenu" xmi:id="_np5JsEp8EeKswI6QNEvr1w"
> elementId="popupmenu.0">
> <children xsi:type="menu:DirectMenuItem"
> xmi:id="_pLp3YEp8EeKswI6QNEvr1w"
> elementId="at.descher.eclipse.bug396971.popupmenu.directmenuitem.1"/>
> </menus>
> <menus xmi:id="_n_UnIEp8EeKswI6QNEvr1w" elementId="viewmenu.1">
> <tags>ViewMenu</tags>
> <children xsi:type="menu:DirectMenuItem"
> xmi:id="_peIugEp8EeKswI6QNEvr1w"
> elementId="at.descher.eclipse.bug396971.viewmenu.directmenuitem.2"/>
> </menus>
>
> As one can see the only difference of Menu and ViewMenu is the <tag>. Is
> the default menu formally defined to be used in other renderers eg
> JavaFX? Would it be possible to remove the tag <tag>ViewMenu</tag> and
> simply accept the default menu as the ViewMenu?
>
> A bug has been opened in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=396971
Previous Topic:Open editor in split view by code
Next Topic:Handle workbench exit
Goto Forum:
  


Current Time: Mon Dec 22 17:18:46 GMT 2014

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

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