Skip to main content


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 KrauseFriend
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 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: Thu Mar 28 21:12:09 GMT 2024

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

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

Back to the top