[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: def-use-chain

Great, thanks!

-- Anders

"Daniel Megert" <daniel_megert@xxxxxxxxxx> wrote in message 
news:fbocsi$a01$1@xxxxxxxxxxxxxxxxxxxx
> Anders H wrote:
>
>>Thanks!
>>
>>Do you also know where the relevant sources for this functionality is 
>>located. I need it for a custom plugin.
>>
> It's in the org.eclipse.jdt.ui plug-in. Take a look at OccurrencesFinder.
>
> HTH
> Dani
>
>>-- Anders
>>
>>"Eric Rizzo" <eclipse5@xxxxxxxxxxxx> wrote in message 
>>news:fbklqa$qop$4@xxxxxxxxxxxxxxxxxxxx
>>
>>>Anders H wrote:
>>>
>>>>Hi,
>>>>
>>>>is there any support for uncovering def-use-chains in the 
>>>>org.eclipse.jdt.core APIs? Specifically, I wish to find all uses of a 
>>>>parameter within a method body. Any help is greatly appriciated!
>>>>
>>>Toggle on the Highlight Occurrences feature for the editor, then put the 
>>>cursor on any part of the parameter name that you're interested in. It 
>>>also works for other elements of code like methods, fields, exceptions, 
>>>return values, classes, etc.
>>>The Highlight Occurrences feature is available via a toggle button on the 
>>>toolbar above the Java editor - icon looks like a yellow highlighter pen.
>>>
>>>Hope this helps,
>>>Eric
>>
>>
>>