Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Multi Plugin Project Problems with Menu(Problem defining Menu item placement.)
Multi Plugin Project Problems with Menu [message #511470] Mon, 01 February 2010 11:41 Go to next message
Martijn Cremer is currently offline Martijn Cremer
Messages: 77
Registered: January 2010
Location: Breda
Member

Good day,

I seem to be having a little problem with telling how I want my Menu Items sorted in the MenuBar. I created a multi project Plugin Project. And I spread my function and views/perspectives over the plugins. Giving each project its own Menu Contribution to the org.eclipse.ui.main.menu. But now it seems to set the menu items at random on generation. I tried adding ?after=other.menu.id.

This how ever does not seem to work if I put it a menu item of the menu:org.eclipse.ui.main.menu (menuContribution).

if i try to the plugin menuContribution

menu:this.plug-in.menu.item?after=other.menu.id

The menu item completely disappears.

Does the plug-in that is having a refer 2 a other plug-in.menu.id have 2 know it. Do I need to add that plug-in to the Imported Packages. Because that would sort of defeat for me the purpose separating modular functions/perspectives in separate project.

If I eny one can shed some lights on this that would be great.


hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
Re: Multi Plugin Project Problems with Menu [message #511492 is a reply to message #511470] Mon, 01 February 2010 12:39 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Martijn,

You talk about menu items in the menu bar but do you mean menus? A menu must
have at least one menu item otherwise it will not show.

--

Best Regards,
Wim Jongman
-- Southern DOS: Y'all reckon? (Yep/Nope)
(Eclipse Old Skool Quote Service)

> Good day,
>
> I seem to be having a little problem with telling how I want my Menu Items
sorted in the MenuBar. I created a multi project Plugin Project. And I spread
my function and views/perspectives over the plugins. Giving each project its
own Menu Contribution to the org.eclipse.ui.main.menu. But now it seems to
set the menu items at random on generation. I tried adding
?after=other.menu.id.
>
> This how ever does not seem to work if I put it a menu item of the
menu:org.eclipse.ui.main.menu (menuContribution).
>
> if i try to the plugin menuContribution
>
> menu:this.plug-in.menu.item?after=other.menu.id
>
> The menu item completely disappears.
>
> Does the plug-in that is having a refer 2 a other plug-in.menu.id have 2
know it. Do I need to add that plug-in to the Imported Packages. Because that
would sort of defeat for me the purpose separating modular
functions/perspectives in separate project.
>
> If I eny one can shed some lights on this that would be great.
Re: Multi Plugin Project Problems with Menu [message #511593 is a reply to message #511492] Tue, 02 February 2010 03:30 Go to previous message
Martijn Cremer is currently offline Martijn Cremer
Messages: 77
Registered: January 2010
Location: Breda
Member

Wim Jongman wrote on Mon, 01 February 2010 12:39
Hi Martijn,

You talk about menu items in the menu bar but do you mean menus? A menu must
have at least one menu item otherwise it will not show.

--

Best Regards,
Wim Jongman
-- Southern DOS: Y'all reckon? (Yep/Nope)
(Eclipse Old Skool Quote Service)



Hi Wim,

The menu has items. It shows if i do not use the ?after=other.menu.id action. But then I got this russian rullet going for the menu items showing. Whitch I ofcourse do not want.



hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
Previous Topic:Example RCP-project: when is Application.stop() supposed to be called?
Next Topic:INI file missing in the deployed RCP product
Goto Forum:
  


Current Time: Thu Apr 24 14:43:10 EDT 2014

Powered by FUDForum. Page generated in 0.01587 seconds