Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problem with plug-in creation and perspective loading
Problem with plug-in creation and perspective loading [message #303822] Tue, 23 May 2006 19:04 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:"Invalid Menu Extension (Path is invalid)" error
Next Topic:Unhandled event loop exception :Workspce is closed error
Goto Forum:
  


Current Time: Tue Jul 22 00:52:23 EDT 2025

Powered by FUDForum. Page generated in 0.07234 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top