Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Activate a Listener in my Eclipse Plugin
Activate a Listener in my Eclipse Plugin [message #27088] Thu, 26 September 2002 14:01 Go to next message
Eclipse UserFriend
Originally posted by: grimar.dnet.it

Hi!

I am searching for a listener, which registeres if a file/project has been
opened or closed!

Can anyone help me????

BYE
Markus
Re: Activate a Listener in my Eclipse Plugin [message #27128 is a reply to message #27088] Thu, 26 September 2002 15:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel_megert.oti.com

Markus,

IPartListener tells you about pars being (de-)activated. This will *not*
inform you if an external editor has been opened on your file. Why are
you interested in editors being opened?

HTH
Dani
Re: Activate a Listener in my Eclipse Plugin [message #27166 is a reply to message #27128] Thu, 26 September 2002 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: grimar.dnet.it

Thank you!

I am working for the university research center and we are trying to find
out programmers habbits in order to find correlationes between their
habbits and their error frequency. (so we use webmetrices)

Do you have some samples or other tipps??

Bye Markus

Daniel Megert wrote:

> Markus,

> IPartListener tells you about pars being (de-)activated. This will *not*
> inform you if an external editor has been opened on your file. Why are
> you interested in editors being opened?

> HTH
> Dani
Re: Activate a Listener in my Eclipse Plugin [message #27758 is a reply to message #27166] Fri, 27 September 2002 07:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel_megert.oti.com

Markus wrote:

>Thank you!
>
>I am working for the university research center and we are trying to find
>out programmers habbits in order to find correlationes between their
>habbits and their error frequency. (so we use webmetrices)
>
>Do you have some samples or other tipps??
>
You can browse the Eclipse code to see the part listener in action. To
find out if the resource has been changed you need to register a
resource listener (IResourceChangeListener).

HTH
Dani
Re: Activate a Listener in my Eclipse Plugin [message #28270 is a reply to message #27166] Sat, 28 September 2002 18:33 Go to previous message
Andrew McCullough is currently offline Andrew McCulloughFriend
Messages: 26
Registered: July 2009
Junior Member
I've attatched some code from CompleteClipse - the EditorService - that
listens for all editor openings in all windows in all pages. It then
notifies a simplified "EditorListener" of those openings.

How it's different from IPartService/IPartListener:

IPartService is all parts, not just editors - this pares it down to just
editors.
Handles all windows/pages, whereas part listeners are on a per-page basis.

-Andrew



"Markus" <grimar@dnet.it> wrote in message
news:amv7vr$10s$1@rogue.oti.com...
> Thank you!
>
> I am working for the university research center and we are trying to find
> out programmers habbits in order to find correlationes between their
> habbits and their error frequency. (so we use webmetrices)
>
> Do you have some samples or other tipps??
>
> Bye Markus
>
> Daniel Megert wrote:
>
> > Markus,
>
> > IPartListener tells you about pars being (de-)activated. This will *not*
> > inform you if an external editor has been opened on your file. Why are
> > you interested in editors being opened?
>
> > HTH
> > Dani
>
>
>
>


Re: Activate a Listener in my Eclipse Plugin [message #583424 is a reply to message #27088] Thu, 26 September 2002 15:18 Go to previous message
Eclipse UserFriend
Originally posted by: daniel_megert.oti.com

Markus,

IPartListener tells you about pars being (de-)activated. This will *not*
inform you if an external editor has been opened on your file. Why are
you interested in editors being opened?

HTH
Dani
Re: Activate a Listener in my Eclipse Plugin [message #583435 is a reply to message #27128] Thu, 26 September 2002 15:09 Go to previous message
Markus is currently offline MarkusFriend
Messages: 52
Registered: July 2009
Member
Thank you!

I am working for the university research center and we are trying to find
out programmers habbits in order to find correlationes between their
habbits and their error frequency. (so we use webmetrices)

Do you have some samples or other tipps??

Bye Markus

Daniel Megert wrote:

> Markus,

> IPartListener tells you about pars being (de-)activated. This will *not*
> inform you if an external editor has been opened on your file. Why are
> you interested in editors being opened?

> HTH
> Dani
Re: Activate a Listener in my Eclipse Plugin [message #583522 is a reply to message #27166] Fri, 27 September 2002 07:38 Go to previous message
Eclipse UserFriend
Originally posted by: daniel_megert.oti.com

Markus wrote:

>Thank you!
>
>I am working for the university research center and we are trying to find
>out programmers habbits in order to find correlationes between their
>habbits and their error frequency. (so we use webmetrices)
>
>Do you have some samples or other tipps??
>
You can browse the Eclipse code to see the part listener in action. To
find out if the resource has been changed you need to register a
resource listener (IResourceChangeListener).

HTH
Dani
Re: Activate a Listener in my Eclipse Plugin [message #583695 is a reply to message #27166] Sat, 28 September 2002 18:33 Go to previous message
Andrew McCullough is currently offline Andrew McCulloughFriend
Messages: 26
Registered: July 2009
Junior Member
I've attatched some code from CompleteClipse - the EditorService - that
listens for all editor openings in all windows in all pages. It then
notifies a simplified "EditorListener" of those openings.

How it's different from IPartService/IPartListener:

IPartService is all parts, not just editors - this pares it down to just
editors.
Handles all windows/pages, whereas part listeners are on a per-page basis.

-Andrew



"Markus" <grimar@dnet.it> wrote in message
news:amv7vr$10s$1@rogue.oti.com...
> Thank you!
>
> I am working for the university research center and we are trying to find
> out programmers habbits in order to find correlationes between their
> habbits and their error frequency. (so we use webmetrices)
>
> Do you have some samples or other tipps??
>
> Bye Markus
>
> Daniel Megert wrote:
>
> > Markus,
>
> > IPartListener tells you about pars being (de-)activated. This will *not*
> > inform you if an external editor has been opened on your file. Why are
> > you interested in editors being opened?
>
> > HTH
> > Dani
>
>
>
>


Previous Topic:visual GUI designer?
Next Topic:SWT UI-threading issue
Goto Forum:
  


Current Time: Tue Apr 23 02:57:29 GMT 2024

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

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

Back to the top