expression-based activities and perspective [message #742334] |
Thu, 20 October 2011 12:02 |
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"?
|
|
|
Powered by
FUDForum. Page generated in 0.03052 seconds