Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Does this possible?
Does this possible? [message #449832] Sat, 20 May 2006 18:49 Go to next message
Eclipse UserFriend
I'm creating application based on Eclipse RCP. I want automatically to change perspective when appropriate opened editor is selected. I can't find any listener that is defined for EditorPart. I could add some actions to editor and manually change perspective so supporting views could be showed. But it's much better to do this automatically when user choose already opened editor. It is not problem when editor is started to change perspective, but if I have another editor opened and then I decide to work with that editor I want to revert perspective which supporting this particularly editor. Where to put code which will open appropriate perspective when editor is selected?
Re: Does this possible? [message #449834 is a reply to message #449832] Sun, 21 May 2006 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Miroslav Lazarevic wrote:

> I'm creating application based on Eclipse RCP. I want automatically to
> change perspective when appropriate opened editor is selected. I can't
> find any listener that is defined for EditorPart. I could add some actions
> to editor and manually change perspective so supporting views could be
> showed. But it's much better to do this automatically when user choose
> already opened editor. It is not problem when editor is started to change
> perspective, but if I have another editor opened and then I decide to work
> with that editor I want to revert perspective which supporting this
> particularly editor. Where to put code which will open appropriate
> perspective when editor is selected?


see IPartListener or better, IPartListener2

Best
Re: Does this possible? [message #449836 is a reply to message #449834] Sun, 21 May 2006 18:47 Go to previous messageGo to next message
Eclipse UserFriend
> see IPartListener or better, IPartListener2
>
> Best

Thanks. This is it. But I have another problem now. When EditorPart is loosing a focus then method partActivated is called and before that method partDeactivated is always called. I don't know why is partActivated called after deactivation of editor? I excpect until deactivation of editor only a method partDeactivated is called. Why?
Re: Does this possible? [message #449837 is a reply to message #449836] Sun, 21 May 2006 19:38 Go to previous message
Eclipse UserFriend
Miroslav Lazarevic wrote:

>> see IPartListener or better, IPartListener2
>>
>> Best
>
> Thanks. This is it. But I have another problem now. When EditorPart is
> loosing a focus then method partActivated is called and before that method
> partDeactivated is always called. I don't know why is partActivated called
> after deactivation of editor? I excpect until deactivation of editor only
> a method partDeactivated is called. Why?
one part is activated and other deactivated - you have to check method
parameter
Previous Topic:Edit TreeObject element name in a treeView
Next Topic:Scale
Goto Forum:
  


Current Time: Sat Aug 30 19:41:14 EDT 2025

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

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

Back to the top