Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » hide menu items(Why isn't there an easy way to hide menu items by checking handler enablement)
hide menu items [message #869957] Sat, 05 May 2012 07:37 Go to next message
Heike Winkelvoß is currently offline Heike WinkelvoßFriend
Messages: 11
Registered: April 2012
Junior Member
Hi,

in Eclipse 3x there was an easy an powerful way to hide menu items by adding a visibleWhen checkEnabled = true- condition in the plugin.xml.

In e4 I can also add a visibleWhen - condition but only with a core expression which makes simulating the checkEnabled- behaviour rather compilcated.

Since there is already a @CanExecute-Annotation wouldn't it be easy to provide this together with the visibleWhen in the same manner as in E3?

Regards,
Heike.
Re: hide menu items [message #870027 is a reply to message #869957] Sat, 05 May 2012 20:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Agreed - please file a bugzilla so that we can add this in 4.3.

Tom

Am 05.05.12 09:37, schrieb Heike Winkelvoß:
> Hi,
>
> in Eclipse 3x there was an easy an powerful way to hide menu items by
> adding a visibleWhen checkEnabled = true- condition in the plugin.xml.
>
> In e4 I can also add a visibleWhen - condition but only with a core
> expression which makes simulating the checkEnabled- behaviour rather
> compilcated.
> Since there is already a @CanExecute-Annotation wouldn't it be easy to
> provide this together with the visibleWhen in the same manner as in E3?
>
> Regards,
> Heike.
Re: hide menu items [message #870029 is a reply to message #870027] Sat, 05 May 2012 21:13 Go to previous messageGo to next message
Heike Winkelvoß is currently offline Heike WinkelvoßFriend
Messages: 11
Registered: April 2012
Junior Member
done. That's great!


Heike
Re: hide menu items [message #870086 is a reply to message #870029] Sun, 06 May 2012 10:12 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

@Heike: Please add the bug number to this post.
Re: hide menu items [message #870108 is a reply to message #870086] Sun, 06 May 2012 15:16 Go to previous message
Heike Winkelvoß is currently offline Heike WinkelvoßFriend
Messages: 11
Registered: April 2012
Junior Member
@Lars there it is: 378591
Previous Topic:Declarative Services in an RCP e4 Application
Next Topic:specify size/ratio for Perspective Layout
Goto Forum:
  


Current Time: Thu Apr 25 20:30:19 GMT 2024

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

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

Back to the top