Skip to main content



      Home
Home » Newcomers » Newcomers » Searching inside the project's jars
Searching inside the project's jars [message #147480] Sun, 09 April 2006 12:44 Go to next message
Eclipse UserFriend
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 #148473 is a reply to message #147480] Wed, 12 April 2006 07:09 Go to previous messageGo to next message
Eclipse UserFriend
Olav Müller wrote:
> 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
Are you trying to perform a 'Java Search' or a 'File Search'?
Re: Searching inside the project's jars [message #148511 is a reply to message #148473] Wed, 12 April 2006 11:11 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Searching inside the project's jars [message #149209 is a reply to message #148511] Tue, 18 April 2006 13:20 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:plugin fail
Next Topic:loading the source code in to workspace
Goto Forum:
  


Current Time: Sat May 10 12:19:27 EDT 2025

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

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

Back to the top