Community
Participate
Working Groups
20030227 1. create 2 projects (unrelated) 2. in each create: - package p - interface I in p - class C in p make both I's look like this: package p; public interface I { void method(Object o); } and C's like this: package p; public class C implements I { public void method(Object o) { } } now, select one of the I.method's and search for occurences in workspace you get 4 results, not 2 as expected (same happened when i did the search programmatically)
When creating a search pattern from an IJavaElement, focus was set only for REFERENCES patterns. Now set it for DECLARATIONS and ALL_OCCURENCES patterns as well. Added regression test JavaSearchMultipleProjectsTests.testMethodOccurences()
Verified.