Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Method change notification
Method change notification [message #238697] Wed, 05 May 2004 00:55 Go to next message
Eclipse UserFriend
Originally posted by: atomb.soe.ucsc.edu

I'm working on a plugin (using 3.0M8 right now), and I'm having some
trouble getting the information I really want from either a
ResourceChangeListener or an ElementChangedListener. Ideally, I want to be
able to detect, whenever a piece of Java source code has changed, which
methods (if any) have changed. Both listeners will tell me when the file
changes, and an ElementChangedListener will tell me if any elements are
added or removed, but not when they're changed.

I've been searching the documentation and newsgroups for a way to do this,
but without any luck. Can anyone here suggest a solution? Is there an easy
way to know when a method changes?

Thanks,
Aaron
Re: Method change notification [message #238713 is a reply to message #238697] Wed, 05 May 2004 02:36 Go to previous message
Eclipse UserFriend
Sorry this is not possible. Since the Java model doesn't consider statements
in a method, a change to the body of a method will not be notified. Only if
an inner class is added/removed in the method, or if the method signature is
modified, a change will be notified.

Feel free to enter a feature request if this is important to you.

Jerome

"Aaron Tomb" <atomb@soe.ucsc.edu> wrote in message
news:c79s38$utr$1@eclipse.org...
> I'm working on a plugin (using 3.0M8 right now), and I'm having some
> trouble getting the information I really want from either a
> ResourceChangeListener or an ElementChangedListener. Ideally, I want to be
> able to detect, whenever a piece of Java source code has changed, which
> methods (if any) have changed. Both listeners will tell me when the file
> changes, and an ElementChangedListener will tell me if any elements are
> added or removed, but not when they're changed.
>
> I've been searching the documentation and newsgroups for a way to do this,
> but without any luck. Can anyone here suggest a solution? Is there an easy
> way to know when a method changes?
>
> Thanks,
> Aaron
>
Previous Topic:Disable activity
Next Topic:cut/copy/paste in extra components in editor
Goto Forum:
  


Current Time: Sat May 10 12:36:08 EDT 2025

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

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

Back to the top