Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » def-use-chain
def-use-chain [message #247300] Tue, 04 September 2007 10:05 Go to next message
Eclipse UserFriend
Originally posted by: svylbowe.hotmail.com

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!

-- AH
Re: def-use-chain [message #247354 is a reply to message #247300] Tue, 04 September 2007 18:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

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
Re: def-use-chain [message #247366 is a reply to message #247354] Wed, 05 September 2007 02:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: svylbowe.hotmail.com

Thanks!

Do you also know where the relevant sources for this functionality is
located. I need it for a custom plugin.

-- Anders

"Eric Rizzo" <eclipse5@rizzoweb.com> wrote in message
news:fbklqa$qop$4@build.eclipse.org...
> 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
Re: def-use-chain [message #247493 is a reply to message #247366] Wed, 05 September 2007 17:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Anders,
Maybe this dirty little secrets tutorial will put more light on topic
you are looking for:
www.cs.purdue.edu/homes/baker29/pldi05-tutorials/Static%20An alysis%20for%20*Java*%20in%20*Eclipse*.pdf


Anders H wrote:
> Thanks!
>
> Do you also know where the relevant sources for this functionality is
> located. I need it for a custom plugin.
>
> -- Anders
>
> "Eric Rizzo" <eclipse5@rizzoweb.com> wrote in message
> news:fbklqa$qop$4@build.eclipse.org...
>
>> 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
>>
>
>
>
Re: def-use-chain [message #247511 is a reply to message #247366] Thu, 06 September 2007 04:13 Go to previous messageGo to next message
Eclipse UserFriend
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@rizzoweb.com> wrote in message
>news:fbklqa$qop$4@build.eclipse.org...
>
>
>>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
>>
>>
>
>
>
>
Re: def-use-chain [message #247521 is a reply to message #247493] Thu, 06 September 2007 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: svylbowe.hotmail.com

Thanks!

Is the source code for this tutorial available anywhere?

-- Anders

"Jacek Pospychala" <jacek.pospychala@pl.ibm.com> wrote in message
news:fbn64n$umo$1@build.eclipse.org...
> Anders,
> Maybe this dirty little secrets tutorial will put more light on topic you
> are looking for:
> www.cs.purdue.edu/homes/baker29/pldi05-tutorials/Static%20An alysis%20for%20*Java*%20in%20*Eclipse*.pdf
>
> Anders H wrote:
>> Thanks!
>>
>> Do you also know where the relevant sources for this functionality is
>> located. I need it for a custom plugin.
>>
>> -- Anders
>>
>> "Eric Rizzo" <eclipse5@rizzoweb.com> wrote in message
>> news:fbklqa$qop$4@build.eclipse.org...
>>
>>> 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
>>
>>
>>
Re: def-use-chain [message #247526 is a reply to message #247511] Thu, 06 September 2007 08:20 Go to previous message
Eclipse UserFriend
Originally posted by: svylbowe.hotmail.com

Great, thanks!

-- Anders

"Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
news:fbocsi$a01$1@build.eclipse.org...
> 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@rizzoweb.com> wrote in message
>>news:fbklqa$qop$4@build.eclipse.org...
>>
>>>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
>>
>>
>>
Previous Topic:Organize Imports in Eclipse 3.3
Next Topic:What preference controls compile warning about @Override
Goto Forum:
  


Current Time: Tue May 13 12:50:13 EDT 2025

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

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

Back to the top