|Perspective customizations not being respected [message #915740]
||Mon, 17 September 2012 21:57
|| Mario Marinato
Registered: March 2011
On an RCP application we develop, the user can customize the perspectives, choosing which menu and toolbar items should be displayed.|
When user goes to Window -> Customize Perspective... -> Tool Bar Visibility and then unchecks a tool bar on the Tool Bar Structure pane and presses OK, the tool bar disappears properly.
But when the application is restarted, the tool bar is back, even though it still appears unchecked on the customization dialog.
I found an ugly workaround for that, which is to perform on startup-time the same actions performed when the user confirms on the customization dialog.
This workaround can be run on two moments:
a) On our ApplicationWorkbenchWindowAdvisor class, method postWindowOpen. On this case, the full tool bar appears and then it gets configured as the user wants. This approach's drawback is that the user sees the change happening.
b) On the same ApplicationWorkbenchWindowAdvisor class, method preWindowOpen, add a PerspectiveListener to configurer.getWindow() and then act on its perspectiveActivated method. This approach prevents user from seeing the change happen.
Does anyone know if there's a better way to do that? I believe we're lacking a configuration step to be made for this feature to work properly.
Our RCP application is based on Eclipse 3.8.
Powered by FUDForum
. Page generated in 0.01672 seconds