Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 52667

Summary: search for a method ref does not work if fully qualified
Product: [Eclipse Project] PDE Reporter: Jeff McAffer <jeffmcaffer>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dj.houghton
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jeff McAffer CLA 2004-02-20 12:22:11 EST
in M7...
I have a large number of external jars (I'm using the PDE "add to java search" 
technology) and when I search for references to methods declared in my source 
projects, none of the references in the external jars are found.  This true if 
I select the method and hit ctrl-shift-g, use the context menu for references-
>workspace or use the flashlight toolbar button/dialog.

I have found that if I use the dialog and remove the full qualification of the 
method (i.e., remove the type name) and search, I do find references.  
Unfortunately I also find hundreds of other, unrelated methods (this is true 
with or without "ignore inexact matches" checked).
Comment 1 Jeff McAffer CLA 2004-02-20 12:27:00 EST
see also
   https://bugs.eclipse.org/bugs/show_bug.cgi?id=52651
Comment 2 Kent Johnson CLA 2004-02-20 14:50:18 EST
The External Plug-in Libraries project is not dependent on any other project in 
my workspace. So whenever a scoped search (select any Java element - field, 
method, type) is done, none of the external jars are searched.

By adding all the projects in my workspace as required projects on its build 
path, my searches 'worked'.

Moving to PDE so they can create the External Plug-in Libraries project with 
the necessary dependencies.
Comment 3 Wassim Melhem CLA 2004-04-21 15:27:58 EDT
*** Bug 59503 has been marked as a duplicate of this bug. ***
Comment 4 Dejan Glozic CLA 2004-05-18 18:11:37 EDT
Fixed by doing the following:

1) Reworked 'External Plug-in Libraries' project to use classpath container 
for libraries added to Java search in Plug-ins view (thus making it dynamic - 
no manual maintenance required)
2) Added workspace plug-in projects onto the dynamic classpath to support 
reference searches