How to make perspective invisible for user [message #511024] |
Fri, 29 January 2010 15:12 |
Miłosz Messages: 3 Registered: October 2009 Location: Poland |
Junior Member |
|
|
Hi,
I have problem with hiding perspective in Eclipse RCP Application. I want to make perspective invisible for user (dynamically). It means that perspective should be not visible in 'Perspectives' toolbar and 'Open Perspective' dialog (user can't open perspective). I have found how to hide perspective:
IPerspectiveDescriptor pd = ... // perspective to hide
PerspectiveRegistry pr = (PerspectiveRegistry) PlatformUI.getWorkbench().getPerspectiveRegistry();
pr.removeExtension(null, pd);
but I don't know how to make it accessible for user again (perspective visible in 'Perspectives' toolbar and 'Open Perspective' dialog).
Any ideas ??
Thanks in advance,
Miłosz
[Updated on: Fri, 29 January 2010 20:05] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03694 seconds