Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Highlighting All Variable Occurences When Cursor On Declaration
Highlighting All Variable Occurences When Cursor On Declaration [message #251909] Sat, 08 March 2008 06:04 Go to next message
Eclipse UserFriend
Originally posted by: mthibberd.gmail.com

I am looking to implement a similar feature, and was hoping the JDT code
would give me some pointers, however I am having trouble tracking the
feature down. Anyone more familiar with the code-base got any ideas
where/how this feature is implemented.

Thanks
Mark
Re: Highlighting All Variable Occurences When Cursor On Declaration [message #251913 is a reply to message #251909] Sat, 08 March 2008 21:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mark,

I don't know all that much about the JDT code but I can point you to the Ant
editor code (which, in this area, was modelled off the JDT code):
See org.eclipse.ant.internal.ui.editor.OccurrencesFinder and its uses in the
org.eclipse.ant.internal.ui.editor.AntEditor by the jobs to update the
annotations.

HTH
Darins
http://www.runnerwhocodes.blogspot.com/

"Mark Hibberd" <mthibberd@gmail.com> wrote in message
news:0ad4d098fecc6335158a747f8bfbf61b$1@www.eclipse.org...
>I am looking to implement a similar feature, and was hoping the JDT code
>would give me some pointers, however I am having trouble tracking the
>feature down. Anyone more familiar with the code-base got any ideas
>where/how this feature is implemented.
>
> Thanks
> Mark
>
Re: Highlighting All Variable Occurences When Cursor On Declaration [message #251934 is a reply to message #251909] Mon, 10 March 2008 05:41 Go to previous message
Eclipse UserFriend
Mark Hibberd wrote:
> I am looking to implement a similar feature, and was hoping the JDT
> code would give me some pointers, however I am having trouble tracking
> the feature down. Anyone more familiar with the code-base got any
> ideas where/how this feature is implemented.
Start by looking into
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.updateOccu rrenceAnnotations(ITextSelection,
CompilationUnit)

Dani
>
> Thanks
> Mark
>
Previous Topic:Getting JNI’s include path dynamically
Next Topic:Problem wih Java Profiling on eclipse
Goto Forum:
  


Current Time: Mon Apr 28 13:07:07 EDT 2025

Powered by FUDForum. Page generated in 0.04960 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top