"Settings"> "General"> "Search" there is an option "Ignore potential matches" What is...">

Ignore possible matches value

In the window "Window"> "Settings"> "General"> "Search" there is an option "Ignore potential matches"

What is he doing? Whether I activate it or not, I never see the difference.

Is this an option that only makes sense for Java development (which I never do, but I'm developing in C, Python, and PHP using Eclipse)?

+5
source share
2 answers

See bug 127442 for examples: depending on what you are looking for (class, method, ...), the search engine may find instances that might match (but it cannot be said for sure).

These instances are marked with " ": POTENTIAL_MATCH

.

(. 97322)

- , (, ).
"foo(String)" ( String), "foo(java.lang.String)" "foo(p.String)" .

.class , (. 196200), .. .class , .


382778:

void printIt(String name).
, .

, , java printIt(String).
, :

// Listing 1
PublicInterface2 impl2 = new Impl2("Name Broken");
Static.printIt(impl2.getName());

, printIt().

PublicInterface2 is an empty public interface which extends PackageInterface2Getters.
PackageInterface2Getters is an empty default-scoped interface which extends PackageInterface1Getters.
PackageInterface1Getters is a default-scoped interface which declares String getName().

, impl2.getName() a String.

, , :

...
Filename : \D:\workspace\eclipse\_runtimes\jdt\call-hierarchy-bug\src\main\PublicInterface2.java
COMPILED type(s)    
2 PROBLEM(s) detected 
     - Pb(2) PackageInterface1Getters cannot be resolved to a type
     - Pb(327) The hierarchy of the type PublicInterface2 is inconsistent

, :

"NameEnvironment" .
NameEnvironment JavaSearchNameEnvironment .
, , .

+3

Eclipse Luna (Service Release 1 (4.4.1)) Java:

merge(DashboardConfigurationModel template, DashboardModel custom)

. merge() DashboardConfigurationModel a DashboardModel, . !

merge() String a Map. Eclipse " ", , , , , .

, , .

0

All Articles