Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Hide Empty Submenus
Hide Empty Submenus [message #988895] Mon, 03 December 2012 15:08 Go to next message
Tiburon T is currently offline Tiburon T
Messages: 53
Registered: October 2011
Member
Hello,

is it possible to hide empty submenus in RAP? I am working on an application, that disables MenuItems on startup, to provide different versions to users with different privileges. Our Menu is configured via extension points and menu items are disabled by visibleWhen conditions. Our problem are submenus, that are not hidden when they are empty. Instead the entry shows up as usual in the menu and when it is activated by the mouse it is disabled. I tried adding visibleWhen checks to the submenu definitions, but with no success...

Any hints on how to improve on this, without creating the menu programmatically, would be great.

Thanks,
Tiburon


[Updated on: Mon, 03 December 2012 15:10]

Report message to a moderator

Re: Hide Empty Submenus [message #989446 is a reply to message #988895] Thu, 06 December 2012 09:25 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1839
Registered: July 2009
Senior Member
Hi,
did you check your code against RCP? The menu items visibility is
controlled by the workbench. If it's working there, but not in RAP, it's
probably a bug. Please open a bugzilla in this case.
Thanks,
Ivan

On 12/3/2012 5:08 PM, Tiburon Mising name wrote:
> Hello,
>
> is it possible to hide empty submenus in RAP? I am working on an
> Application, that disables MenuItems on startup, to provide different
> versions to users with different privileges. Our Menu is configured
> via extension points and menu items are disabled by visibleWhen
> conditions. Our problem are submenus, that are not hidden when they
> are empty. Instead the entry shows up as usual in the menu and when it
> is activated by the mouse it is disabled. I tried adding visibleWhen
> checks to the submenu definitions, but had not success...
>
> Any hints on how to improve on this, without creating the menu
> programmatically, would be great.
>
> Thanks,
> Tiburon
>
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Hide Empty Submenus [message #989479 is a reply to message #988895] Thu, 06 December 2012 12:04 Go to previous message
Tiburon T is currently offline Tiburon T
Messages: 53
Registered: October 2011
Member
I am sorry, but I can not check against RCP at the moment. For now we hide empty submenu in the parent menumanager by removing contribution items before fill() is called.
Previous Topic:Throws unexpected "Graphic is diposed" exception
Next Topic:TableColumn and Table Fonts
Goto Forum:
  


Current Time: Sun Oct 26 00:18:15 GMT 2014

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

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