Method change notification [message #238697] |
Wed, 05 May 2004 00:55  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03336 seconds