Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » newbie question: how to dectect active editor changed
newbie question: how to dectect active editor changed [message #464964] Fri, 02 December 2005 11:19 Go to next message
Sven Krause is currently offline Sven Krause
Messages: 119
Registered: July 2009
Senior Member
Hi,

how can a I detect from a view that the current active editor has been
changed in the workbench ? Is there a standard event on the view part ? I
was not able to locate a proper method on the IWorkspace or ResourcePlugin.
Help is very appreciated.

Thanks in Advance.
Re: newbie question: how to dectect active editor changed [message #464988 is a reply to message #464964] Fri, 02 December 2005 15:15 Go to previous message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

From your view do:

getSite().getWorkbenchWindow().getPartService().addPartListe ner()

Remember to remove your listener when your view is done listening.

BlauHut wrote:
> Hi,
>
> how can a I detect from a view that the current active editor has been
> changed in the workbench ? Is there a standard event on the view part ? I
> was not able to locate a proper method on the IWorkspace or ResourcePlugin.
> Help is very appreciated.
>
> Thanks in Advance.
>
>

--
Thanks,
Rich Kulp
Previous Topic:Opening a Tiff file in SWT
Next Topic:How to use ViewPart and EditPart outside Plugin projcet?
Goto Forum:
  


Current Time: Sat Oct 25 12:45:39 GMT 2014

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

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