Community
Participate
Working Groups
I am looking at implementing the "Toggle Mark Occurrences" action and support for occurrence annotations in my editor. Looking at the source for the Java editor and the Ant editor, there is a ton of duplicate code here - and the AntEditor actually references the JDT's annotation. I think this would be a very useful feature to have in the base editor framework. In most languages, it is useful to match occurrences of the word under the cursor (be it a label in assembly, a #define in C/C++, etc.), and I use the Java and Ant versions of this feature a lot. It seems to me the only real "different" part about a particular implementation of this is: 1) An occurrence "finder" telling you *what* to highlight. 2) Tying it into your own preference page.
*** This bug has been marked as a duplicate of 29692 ***
I guess I am alright with marking this as a duplicate of 29692 as long as it is addressed as outlined here. Bug 29692 just appears to be muddled with more than one concept, and doesn't talk *specifically* about pulling the Mark Occurrences feature (i.e. dynamically highlighting the word under the cursor and all other occurrences in the editor, with no user intervention [no Ctrl+F, no Ctrl+Shift+U]) from the JDT to the generic Text Editor framework (at least not when I read it), which is why I filed a new one with a more clear description.