Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Hide Empty Submenus
Hide Empty Submenus [message #988895] Mon, 03 December 2012 10:08 Go to next message
Eclipse UserFriend
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 10:10] by Moderator

Re: Hide Empty Submenus [message #989446 is a reply to message #988895] Thu, 06 December 2012 04:25 Go to previous messageGo to next message
Eclipse UserFriend
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 07:04 Go to previous message
Eclipse UserFriend
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:RAP Theming and system specific colors
Goto Forum:
  


Current Time: Wed Jul 23 19:14:01 EDT 2025

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

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

Back to the top