Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Couple editor to perspective?
Couple editor to perspective? [message #523939] Mon, 29 March 2010 18:33 Go to next message
Eclipse UserFriend
I'd like to switch (or at least prompt the user about switching) to a certain perspective when a custom editor is opened.

When the editor is closed (or another editor is in focus), I'd like to switch back to the previous perspective.

Is there a simple way to accomplish this?
Re: Couple editor to perspective? [message #523995 is a reply to message #523939] Tue, 30 March 2010 04:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
You can try using org.eclipse.ui.IPartListener and handle the perpspective switch in the editor activate/deactivate events.
Re: Couple editor to perspective? [message #524121 is a reply to message #523995] Tue, 30 March 2010 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Thanks! I'm now associating every editor in the application with a specific perspective, which is opened on activation (through an IPartListener).
Re: Couple editor to perspective? [message #524273 is a reply to message #524121] Wed, 31 March 2010 07:34 Go to previous message
Eclipse UserFriend
Am 30.03.10 22:16, schrieb Eric Jain:
> Thanks! I'm now associating every editor in the application with a
> specific perspective, which is opened on activation (through an
> IPartListener).

This recipe also helpful to you:
http://www.ralfebert.de/blog/eclipsercp/auto_perspective_swi tch/

Greetings,

Ralf

--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Previous Topic:How to get menumanager of Main menu in a treeviewer
Next Topic:Refresh CommenNavigator
Goto Forum:
  


Current Time: Sun Jun 22 23:31:25 EDT 2025

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

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

Back to the top