Hide Empty Submenus [message #988895] |
Mon, 03 December 2012 15:08 |
Tiburon T Messages: 61 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 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02984 seconds