This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
We have an RCP application. This main plugin is more like a container with just login dialog functionality (this doesn't contain any perspectives or views. Just with the login functionality).
We have 2 other plugins which actaully contributes perspectives to the main rcp application.
Now depending on the login (after authencticating), i need to display at runtime only one perspective to the login-user. How do i do that?
Currently both the perspectives are displayed to the user. Is it possible to update the PerspectiveRegistry at runtime and update the rcp application?
I have tried IPerspectiveRegistry.deletePerspective(IPerspectiveDescriptor descriptor) in the preWindowOpen() and postWindowOpen() of the WorkbenchWindowAdvisor of my application, but still both the perspectives are being displayed.
How to hide or remove one of the perspective at runtime before the workbench loads?
Any help on this is much appreciated...
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea!!!