Bug 451045 - [navigation] Constructor occurrence highlighting: editor annotation and improvement
Summary: [navigation] Constructor occurrence highlighting: editor annotation and impro...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-11 15:10 EST by Ivan CLA
Modified: 2014-11-17 11:41 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.