Community
Participate
Working Groups
I have an IElementChangedListener which I am trying to use to see when an Annotation on a Java method is modified, by checking the IJavaElementDelta.F_MODIFIERS flag. If I add/remove a @Deprecated annotation on a method, the IJavaElementDelta will correctly have a MODIFIERS CHANGED event. However if I add/modify a custom annotation or even: @SuppressWarnings("unchecked") In this case the IJavaElementDelta will have: [Working copy] F1.java[*]: {PRIMARY RESOURCE}] It does not have the IJavaElementDelta.F_MODIFIERS flag set for the Method. So I can not use IElementChangedListener to listen to changes in my own custom annotations (which is my end goal). I realize this probably isn't the best way to do what I'm looking for, but there doesn't seem to be a better way (yet), and changing any type of annotation really is modifying a method's modifiers, so this should be able to be relied upon.
Dup of bug 106108?
*** This bug has been marked as a duplicate of bug 106108 ***
Verified for 3.4M3 using I20071029-0010 build.