Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » expression-based activities and perspective(not starting of perspectives during startup)
expression-based activities and perspective [message #742334] Thu, 20 October 2011 08:02
Marcus Kalthoff is currently offline Marcus Kalthoff
Messages: 5
Registered: October 2011
Junior Member
I have understood, that expression-based activities are not meant for actually closing an already open UI Element: especially a perspective or an editor.

We have a business case, were the enablement of a perspective is determined during startup (it depends on being "online" or "offline"). I thougt of using an expression-based activity for that case, but if the perspective is regularly opened in the last session, it will be shown after the next startup, regardless of the activity enablement. The funny thing is, that the "disabled" perspective is not in the "getPerspectiveRegistry()" of the worbench, but it is in the "getWorkbenchWindows().getPages().getOpenPerspectives()".

Is there a way to tell the workbench "Do not restore a disabled perspective"?
Previous Topic:[SOLVED] Which book to buy?
Next Topic:Customize New File Wizard
Goto Forum:
  


Current Time: Fri Aug 01 18:30:53 EDT 2014

Powered by FUDForum. Page generated in 0.02222 seconds