Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » propertyTester for perspective in visibleWhen expression
propertyTester for perspective in visibleWhen expression [message #834912] Mon, 02 April 2012 14:47 Go to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 191
Registered: July 2009
Location: Graz, Austria
Senior Member
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:


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?

Re: propertyTester for perspective in visibleWhen expression [message #835449 is a reply to message #834912] Tue, 03 April 2012 08:27 Go to previous message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

Hello Christian,
your code looks like valid but try bellow if it helps:

1) Remove checkEnabled="false". I've never used it before and not sure what is true purpose of it.

2) Rewrite condition from test to equals
<with variable="activeWorkbenchWindowActivePerspectiveName">
   <equals value=""/>
   <!-- or if you -->
      <equals value="id.of.your.only.perspective"/>


3) If everything else failed, turn on tracing options

Hope that helps!
Previous Topic:Launching DOJO based Static Web Page from RCP App
Next Topic:Touch-typing: How to avoid using the mouse in Eclipse
Goto Forum:

Current Time: Thu May 24 13:59:49 GMT 2018

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

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

Back to the top