Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » changing visibility of a command
changing visibility of a command [message #1734999] Tue, 14 June 2016 14:16
Jann Schneider is currently offline Jann SchneiderFriend
Messages: 4
Registered: July 2009
Junior Member
Hi

i have a command to open an editor i've implemented. If the editor is already open i want to hide this command. So i added a visibleWhen block checking the type of the active editor. This works very nice except the situation if no editor is open at all. Currently i'm using this:

<visibleWhen
checkEnabled="false">
<with
variable="activeEditor">
<not>
<instanceof
value="<my editor type>">
</instanceof>
</not>
</with>
</visibleWhen>

Well if checking e.g. the current selection you can use isEmpty="true" or something like that. But i cannot find a solution to show the command if no editor is open at all.

Any pointers would be apriciated!

Thanks, Jann
Previous Topic:How can i add multiple banner with eclipse rcp?
Next Topic:Hiding the "View Menu" button
Goto Forum:
  


Current Time: Tue Nov 20 00:16:49 GMT 2018

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

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

Back to the top