Community
Participate
Working Groups
The Java editor can highlight the occurrences of the currently selected symbol throughout the editor. The scrollbar lights up the relative locations, and clicking one takes you to the spot. All of the symbol types mentioned in the Open Declaration enhancement (84694) would benefit greatly from this - but especially: properties, ids, targets, (including within depends). Mark Occurences was mentioned along with other features in 80135. I am entering it separately here to hopefully generate some focused discussion.
Thought for sure we had a bug for this already...but I can't find it. Time permitting...something that might be good to tackle with the JDT Text guys in a committer sprint at EclipseCon.
Coming soon to a build near you...
I have this implemented. It is more a chunk of code than I anticipated so I believe we should do some initial verification and then log any remaining issues on smaller resolution. Changes to: AntEditor: all the wiring for installing/uninstalling/triggering the occurrences AntEditorActionContributor: adds the toggle mark occurrences action OccurrencesFinder: new class that does the work of finding occurrences AntEditorActionMessages.properties: new action nls'ing ToggleMarkOccurrencesAction: the new action AntUIImages: declare the new image IAntUIConstants: new constante for the new image AntElementNode: default implementations for all of the occurrence finding AntModel: adds the computeIdentifierOffset method AntProjectNode: matches occurrence against the default target name and returns a modified identifier for correct positioning within the project declaration AntPropertyNode: node checks for occurrences in its value if the value references a property, returns its identifier (property name) AntTargetNode: node checks for occurrences in the dependency listings and returns its occurences identifier (the target name) AntTaskNode: node checks for occurrences in its text data AntEditorPreferenceConstants: toggle mark occurrences constants AntEditorPreferencePage: expose the toggle mark occurrences preferences to the user AntPreferenceMessages.properties: new nls strings plugin.properties: nls plugin.xml: command and key binding and the action set and part association for the toggle mark occurences action icon reorg and addition for the new action icons
Please verify Kevin.
verified