Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » perspectiveActivated / Changed event
perspectiveActivated / Changed event [message #144799] Thu, 16 October 2003 08:16
Eclipse UserFriend
Originally posted by: ben_narender.yahoo.com

Hi,
I have created two Perspectives called TextEditorPerspective and
GraphicalEditorPerspective, when the user switch between these
Perspectives I have to change the Editor area accordingly for that I tried
to implement IPerspectiveListener, but seems it's not listening to the
Perspective change event. below is my code

public class TextEditPerspective implements IPerspectiveFactory,
IPerspectiveListener {
public TextEditPerspective() {
super();
}
public void createInitialLayout(IPageLayout layout) {
}
public void perspectiveActivated(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
// invoke TextEditor
System.out.println("perspectiveActivated");
}
public void perspectiveChanged(IWorkbenchPage page,
IPerspectiveDescriptor perspective, String changeId) {
System.out.println("perspectiveChanged");
}
}

is there any way to listen Perspective change/activate event

thanks in advance for any help.
regards
Ben
Previous Topic:How to properly use CVS/Branching in large development effort w/many projectes and developers
Next Topic:How to contribute resources
Goto Forum:
  


Current Time: Sun Jun 30 00:10:49 GMT 2024

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

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

Back to the top