Bug 125720 - [navigation] Mark Occurrences (Toggle Mark Occurrences) should be available in the editor framework
Summary: [navigation] Mark Occurrences (Toggle Mark Occurrences) should be available i...
Status: RESOLVED DUPLICATE of bug 29692
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 11:54 EST by Mark Melvin CLA
Modified: 2006-02-01 09:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Melvin CLA 2006-01-30 11:54:54 EST
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.
Comment 1 Dani Megert CLA 2006-02-01 03:37:52 EST

*** This bug has been marked as a duplicate of 29692 ***
Comment 2 Mark Melvin CLA 2006-02-01 09:31:51 EST
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.