Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to make a view track current editor
How to make a view track current editor [message #132221] Thu, 18 September 2003 11:28 Go to next message
Eclipse UserFriend
Originally posted by: henrik.lindberg.frameworx.com

Hi, can someone give me a pointer or hint regarding how to keep a view in
sync with the currently "selected" editor. I.e. I want my view to reflect
some aspect of that editor's input. (As a silly example say display a count
of the number of words in the input).

What I am looking for is an event telling me that an editor is now the
topmost editor.
All help is much apreciated.

- henrik
Re: How to make a view track current editor [message #132244 is a reply to message #132221] Thu, 18 September 2003 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

Look at org.eclipse.ui.IPartListener2

Simon :-)

"Henrik Lindberg" <henrik.lindberg@frameworx.com> wrote in message
news:bkcism$nlk$1@eclipse.org...
> Hi, can someone give me a pointer or hint regarding how to keep a view in
> sync with the currently "selected" editor. I.e. I want my view to reflect
> some aspect of that editor's input. (As a silly example say display a
count
> of the number of words in the input).
>
> What I am looking for is an event telling me that an editor is now the
> topmost editor.
> All help is much apreciated.
>
> - henrik
>
>
Re: How to make a view track current editor [message #132293 is a reply to message #132244] Thu, 18 September 2003 13:15 Go to previous message
Eclipse UserFriend
Originally posted by: henrik.lindberg.frameworx.com

Thanks, that got me on the right track.
- henrik

"Simon Arsenault" <simon@ibm.oti.lab> skrev i meddelandet
news:bkcjp8$ol7$1@eclipse.org...
> Look at org.eclipse.ui.IPartListener2
>
> Simon :-)
>
> "Henrik Lindberg" <henrik.lindberg@frameworx.com> wrote in message
> news:bkcism$nlk$1@eclipse.org...
> > Hi, can someone give me a pointer or hint regarding how to keep a view
in
> > sync with the currently "selected" editor. I.e. I want my view to
reflect
> > some aspect of that editor's input. (As a silly example say display a
> count
> > of the number of words in the input).
> >
> > What I am looking for is an event telling me that an editor is now the
> > topmost editor.
> > All help is much apreciated.
> >
> > - henrik
> >
> >
>
>
Previous Topic:Selected file in Packege Explorer
Next Topic:removing plugins
Goto Forum:
  


Current Time: Sat May 10 08:45:04 EDT 2025

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

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

Back to the top