propertyTester for perspective in visibleWhen expression [message #834912] |
Mon, 02 April 2012 10:47  |
Eclipse User |
|
|
|
I was playing around with the expression framework as this is a topic I avoided to touch for too long. I tried to find a very simple example. Therefore I added a toolbar with some sample commands. One uses following visibleWhen expression:
<command
commandId="org.eclipse.ui.file.exit"
label="Test4"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="activeWorkbenchWindow">
<test
property="org.eclipse.ui.workbenchWindow.isPerspectiveOpen">
</test>
</with>
</visibleWhen>
</command>
I thought this will hide the button when no perspective is open. Unfortunately it doesn't. The button remains visible after closing the last open perspective. Am I facing a bug here or am I using the expression in a wrong way?
thanks
|
|
|
|
Powered by
FUDForum. Page generated in 0.09573 seconds