Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Search for calls to specific constructor in class?
Search for calls to specific constructor in class? [message #164370] Mon, 07 August 2006 18:00 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
Using Eclipse 3.1.2 and JDK 1.4.2.

In the Java Search options, I can search for calls to a constructor
matching the search string. This will find references to any constructor
for the class matching the search string.

Is it possible to limit the search so that it only finds references to
specific constructors of the class? I don't see a way to do that, unless
it's some magic in the entered search string. I tried entering
"ClassName(String,String)", to indicate that I wanted to find references
to the constructor that takes 2 strings, but the "Search" button greyed
out when I entered the ",".
Re: Search for calls to specific constructor in class? [message #164385 is a reply to message #164370] Mon, 07 August 2006 18:49 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

David Karr wrote:

> Using Eclipse 3.1.2 and JDK 1.4.2.

> In the Java Search options, I can search for calls to a constructor
> matching the search string. This will find references to any constructor
> for the class matching the search string.

> Is it possible to limit the search so that it only finds references to
> specific constructors of the class? I don't see a way to do that, unless
> it's some magic in the entered search string. I tried entering
> "ClassName(String,String)", to indicate that I wanted to find references
> to the constructor that takes 2 strings, but the "Search" button greyed
> out when I entered the ",".

Select the constructor in the Outline view, right click, and select
References. You can specify the scope of the search on the popup menu.
You can also do the same thing if you right click on the definition of the
constructor in your source code.

You may also want to try the Open Call Hierarchy from the popup menu.
This allows you to trace back the path used to get to calling the
constructor.
Previous Topic:where to find ant feature ?
Next Topic:Problem downloading Callisto package
Goto Forum:
  


Current Time: Wed Sep 18 22:21:37 GMT 2024

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

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

Back to the top