Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Workspace search problem
Workspace search problem [message #259280] Mon, 30 March 2009 10:10 Go to next message
Eclipse UserFriend
I have a number of projects in my workspace some of which have build path
references to built versions of other projects in the workspace.

I expected searching the workspace for references to a particular class to
include all the projects, but this depends on where I start from.

If I start from inside a project's referenced libraries folder and the
class file in question, the search includes all projects, which is what I
want.

But if I start from the source .java file of the class in question, the
search only shows up the hits in the projects which do not have the
referenced library containing the .class file. This would be much more
convenient and intuitive, if only it worked.

I have tried rebuilding the Java search index, thus:
- go into <workspaceDir>\plugins\.metadata\.plugins\org.eclipse.jdt.core
- delete 'savedIndexNames.txt'
- delete all *.index
but this doesn't help. I have also tried the usual tricks of rebuilding
everything, closing/opening all projects, etc.

Any suggestions?
Re: Workspace search problem [message #259283 is a reply to message #259280] Mon, 30 March 2009 10:14 Go to previous messageGo to next message
Eclipse UserFriend
Glyn Normington wrote:
> I have a number of projects in my workspace some of which have build
> path references to built versions of other projects in the workspace.
>
> I expected searching the workspace for references to a particular
> class to include all the projects, but this depends on where I start
> from.
How exactly do you perform the search?

Dani
>
> If I start from inside a project's referenced libraries folder and the
> class file in question, the search includes all projects, which is
> what I want.
>
> But if I start from the source .java file of the class in question,
> the search only shows up the hits in the projects which do not have
> the referenced library containing the .class file. This would be much
> more convenient and intuitive, if only it worked.
>
> I have tried rebuilding the Java search index, thus:
> - go into <workspaceDir>\plugins\.metadata\.plugins\org.eclipse.jdt.core
> - delete 'savedIndexNames.txt'
> - delete all *.index
> but this doesn't help. I have also tried the usual tricks of
> rebuilding everything, closing/opening all projects, etc.
>
> Any suggestions?
>
>
>
Re: Workspace search problem [message #259286 is a reply to message #259283] Mon, 30 March 2009 10:22 Go to previous messageGo to next message
Eclipse UserFriend
Daniel Megert wrote:
> How exactly do you perform the search?

I position the cursor on (i.e. between two characters of) the class name
in the class declaration and hit Apple+Shift+G. Searching using the menus
Search->References->Workspace has the same effect.

I have used this search function an awful lot in the past and have never
noticed any problems.

Thanks,
Glyn
Re: Workspace search problem [message #259298 is a reply to message #259286] Thu, 02 April 2009 06:19 Go to previous messageGo to next message
Eclipse UserFriend
I tried installing a fresh copy of Eclipse and creating a new workspace,
but the problem reproduced. Unless anyone has a better suggestion, I'll
file a bug.
Re: Workspace search problem [message #259346 is a reply to message #259298] Mon, 06 April 2009 04:50 Go to previous message
Eclipse UserFriend
Bug raised: https://bugs.eclipse.org/bugs/show_bug.cgi?id=271289
Previous Topic:TextEdit
Next Topic:Reflectify -- plug-in for reflective API access
Goto Forum:
  


Current Time: Thu Apr 24 03:48:04 EDT 2025

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

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

Back to the top