| How to dispose a view programmatically? [message #536133] |
Thu, 27 May 2010 04:30  |
Marton Sigmond Messages: 70 Registered: July 2009 Location: Hungary |
Member |
|
|
Hi,
I use views associated with a particular perspective (i.e. allowMultiple=true; secondaryId=perspectiveId).
I clone a perspective when I need it, and delete it when I do not need it anymore.
However, the views associated with the deleted perspective do not get disposed.
How could I achieve, that those views get disposed (programmatically, declaratively, etc.)?
Thank you for your help.
Marton
Best Regards,
Marton Sigmond
Software Design Engineer
|
|
|
| Re: How to dispose a view programmatically? [message #536281 is a reply to message #536133] |
Thu, 27 May 2010 10:35   |
Marton Sigmond Messages: 70 Registered: July 2009 Location: Hungary |
Member |
|
|
I guess this is what I was looking for:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closePerspective(perspDesc, true, false); Could anyone please confirm that this is a legal way to dispose a perspective and all associated views?
Also since I found the above solution, I do not invoke the IPerspectiveRegistry.deletePerspective() method anymore.
Is this correct so?
Thanks,
Marton
Best Regards,
Marton Sigmond
Software Design Engineer
|
|
|
|
Powered by
FUDForum. Page generated in 0.04534 seconds