Skip to main content



      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 06:19 Go to next message
Eclipse UserFriend
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 10:15 Go to previous message
Eclipse UserFriend
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: Fri Jul 11 23:50:45 EDT 2025

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

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

Back to the top