Problem with plug-in creation and perspective loading [message #303822] |
Tue, 23 May 2006 19:04  |
Eclipse User |
|
|
|
Originally posted by: venkatr.gmail.com
Hello,
I am having a problem understanding certain things in Eclipse. My problem
is as follows,
I have a plug-in that I created with a perspective (call it X-Perspective)
and a view (defined in plugin.xml). When I load the plug-in in eclipse, I
check for some validation (like look for some valid file location etc). If
the validation fails, I have to prevent X-Perspective from loading and
instead open some default perspetive, ex. JavePerspective. The problem is
I do not know how to stop the perspective loading or when to call the
IWorkBenchPage.closeAllPerspectives method so that it would close the
perpective defined in the plugin after it is loaded. Any idea how I could
prevent eclipse from calling the showPerspective() method? Please let me
know if anyone has any suggestions.
|
|
|
Re: Problem with plug-in creation and perspective loading [message #303840 is a reply to message #303822] |
Wed, 24 May 2006 07:03  |
Eclipse User |
|
|
|
So the short answer is no, this is not a supported operation.
The most common way to handle this situation is to validate and open
error messages if your validation fails. But your perspective will
still be open.
Another possibly complicated option would be to work with eclipse-jaas,
have your login module do the validation instead of asking for a
password, and preven the loading of your plugin.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.07234 seconds