Bug 76014 - [search] Search for method declaration always use a string pattern [search]
Summary: [search] Search for method declaration always use a string pattern [search]
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 80264
Blocks:
  Show dependency tree
 
Reported: 2004-10-11 08:18 EDT by Frederic Fusier CLA
Modified: 2005-03-14 13:46 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2004-10-11 08:18:03 EDT
Working on bug 70827, I saw that jdt-ui always use a string pattern while
searching  for method declaration and never IJavaElement pattern...

It seems quite normal when focus is on Outline view or in Package explorer but
this can return unexepected matches when selected IMethod comes from an editor.

A perfect example to illustrate this issue is bug 33800.

Let's say that you add a class X in project P1:
public class X {
	void foo() {
		new C().method();
	}
}
If you select the message send method and look for declarations in workspace
using popup-menu item, then you get 4 matches although I would expect only the 2
of project P1...
Comment 1 Martin Aeschlimann CLA 2005-03-14 13:46:04 EST
fixed > 20050314