Searching inside the project's jars [message #147480] |
Sun, 09 April 2006 12:44  |
Eclipse User |
|
|
|
Hiho,
tried it but I don't seem to be able to find the appropriate button. I have
a java-project with several attatched jars and associated source-jars. If I
try to find all occurances of (say) a string literal in my project only the
current project source folder is being searched. I would like to be able to
include the sources inside the source-jars as well. Can this be done
easily? I am at a loss.
Thanks,
Olav
|
|
|
|
|
Re: Searching inside the project's jars [message #149209 is a reply to message #148511] |
Tue, 18 April 2006 13:20   |
Eclipse User |
|
|
|
Olav Müller wrote:
> Am Wed, 12 Apr 2006 13:09:56 +0200 schrieb Frederic Fusier:
>
>
>>Olav Müller wrote:
>>
>>>tried it but I don't seem to be able to find the appropriate button. I have
>>>a java-project with several attatched jars and associated source-jars. If I
>>>try to find all occurances of (say) a string literal in my project only the
>>>current project source folder is being searched. I would like to be able to
>>>include the sources inside the source-jars as well. Can this be done
>>>easily? I am at a loss.
>>
>>Are you trying to perform a 'Java Search' or a 'File Search'?
>
>
> Depends. Neither doesn't work. I presume that searching for a
> String-Literal like "Hello World" in the sources is best done by File
> Search, but I tried Java Search as well. Doesn't do it.
>
> Is this actually working for you? Whar version are you using?
>
> Thanks,
> Olav
When you perform a 'Java Search', you need to precise what kind of
Java element (ie. types, fields, methods, etc.) you're looking for.
Search Engine in JDT/Core (aka 'Java Search') looks only for
declarations/references of these elements and can find them in source
or in referenced jar files if they have attached source files.
When jar files do not have any attached sources
then JDT Search Engine currently find only declarations.
About 'File Search' - which is also Search but a Platform plugin (not JDT) -
I'm not 100% sure, but I would say that it can find string literals only
in project text resources, not in binary files...
|
|
|
Re: Searching inside the project's jars [message #149213 is a reply to message #149209] |
Tue, 18 April 2006 15:02  |
Eclipse User |
|
|
|
Am Tue, 18 Apr 2006 19:20:24 +0200 schrieb Frederic Fusier:
[searching for literal in attached source-jars]
> About 'File Search' - which is also Search but a Platform plugin (not JDT) -
> I'm not 100% sure, but I would say that it can find string literals only
> in project text resources, not in binary files...
It doesn't, I can say this much ;-)
Does this mean I have at last found something that JBuilder does "better"?
Doesn't anyone else but me ever want to do such a thing?
Thanks,
Olav
|
|
|
Powered by
FUDForum. Page generated in 0.08341 seconds