Bug 451045

Summary: [navigation] Constructor occurrence highlighting: editor annotation and improvement
Product: [Eclipse Project] JDT Reporter: Ivan <ivan.outer>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 4.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan CLA 2014-11-11 15:10:30 EST
When cursor is on a class name (except returning type and constructor definition), all occurrences of that class are highlighted, but not constructor definitions. Even when cursor is on a constructor call, the definition of callable constructor is not highlighted.

Related problem: there is no special annotations (General->Editors->Text Editors->Annotations) for constructor occurrences. Special annotations can be useful to trace the creation of class, especially when you have a lot of code or no explicit constructor.

So possible solutions are the following:
1) The 'write' annotation is applied to all constructor calls/definitions. The rest is the same as now.
2) If cursor is on the constructor call:
  a) The 'write' annotation is applied to definition/calls of called constructor;
  b) The 'read' annotation is applied to definitions/calls of all other constructors;
  c) everything else in not highlighted.
Else: The same as solution 1.
3) Add totally new annotations:
  a) Constructor definition/calls occurrence for the constructor which is called at cursor position (if any);
  b) Constructor definitions/calls occurrence for all other constructors.