Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to prevent perspective switch
How to prevent perspective switch [message #685319] Fri, 17 June 2011 05:10 Go to next message
Eclipse UserFriend
Hello everyone
When a user selects a perspective I want to do some validations first. Depending on how those turn out I don't want the user to allow to switch to this perspective. Kinda like in Eclipse when you first run it and it asks you if it should switch to the Plugin-Perspektive or not. In my case I just wouldn't allow the switch at all. Does anyone know how this would/could be implemented? I haven't found any listeners that could help me with this nor anything else.

Thx a lot
(no subject) [message #692584 is a reply to message #685319] Mon, 04 July 2011 14:54 Go to previous message
Eclipse UserFriend
Hi Serge,

did you try addperspectivelistener in the workbenchwindow? You can also
consider to program your own perspectiveswitcher instead of letting eclipse
control this.

Best regards,

Wim



> Hello everyone
> When a user selects a perspective I want to do some validations first.
Depending on how those turn out I don't want the user to allow to switch to
this perspective. Kinda like in Eclipse when you first run it and it asks you
if it should switch to the Plugin-Perspektive or not. In my case I just
wouldn't allow the switch at all. Does anyone know how this would/could be
implemented? I haven't found any listeners that could help me with this nor
anything else.
>
> Thx a lot
Previous Topic:Weird error while exporting RCP application
Next Topic:Declarative lightweight decorator
Goto Forum:
  


Current Time: Fri Aug 29 17:51:30 EDT 2025

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

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

Back to the top