Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoopur Gupta2015-12-08 11:41:26 +0000
committerJay Arthanareeswaran2015-12-08 15:48:14 +0000
commit2fa23e66e5b21c24ea6156b40678310e292047c8 (patch)
tree69394a315c67c8add2c4cecd115ee7df6257147a
parentcdb3e8d99e2ddf40df3afd879c65627abb3809dc (diff)
downloadeclipse.jdt.core-2fa23e66e5b21c24ea6156b40678310e292047c8.tar.gz
eclipse.jdt.core-2fa23e66e5b21c24ea6156b40678310e292047c8.tar.xz
eclipse.jdt.core-2fa23e66e5b21c24ea6156b40678310e292047c8.zip
Fixed bug 483895: [content assist] Disable and remove substringI20151209-0800I20151208-2000
completion from Preferences Change-Id: Ief6ce10b3dd1cd483f99161b0f92daed88678ccf Signed-off-by: Noopur Gupta <noopur_gupta@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/RunCompletionModelTests.java2
-rw-r--r--org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistOptions.java7
2 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/RunCompletionModelTests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/RunCompletionModelTests.java
index 65954de463..90cc04b08a 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/RunCompletionModelTests.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/RunCompletionModelTests.java
@@ -38,7 +38,7 @@ public class RunCompletionModelTests extends junit.framework.TestCase {
COMPLETION_SUITES.add(CompletionWithMissingTypesTests2.class);
COMPLETION_SUITES.add(CompletionWithMissingTypesTests_1_5.class);
COMPLETION_SUITES.add(SnippetCompletionContextTests.class);
- COMPLETION_SUITES.add(SubstringCompletionTests.class);
+// COMPLETION_SUITES.add(SubstringCompletionTests.class);
}
COMPLETION_SUITES.add(JavadocTypeCompletionModelTest.class);
COMPLETION_SUITES.add(JavadocFieldCompletionModelTest.class);
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistOptions.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistOptions.java
index 8c6d3d3423..00191b1b8a 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistOptions.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistOptions.java
@@ -66,7 +66,7 @@ public class AssistOptions {
public boolean checkDiscouragedReference = false;
public boolean forceImplicitQualification = false;
public boolean camelCaseMatch = true;
- public boolean substringMatch = true;
+ public boolean substringMatch = /*true*/false;
public boolean suggestStaticImport = true;
public char[][] fieldPrefixes = null;
public char[][] staticFieldPrefixes = null;
@@ -234,11 +234,12 @@ public class AssistOptions {
}
}
if ((optionValue = optionsMap.get(OPTION_SubstringMatch)) != null) {
- if (ENABLED.equals(optionValue)) {
+ /*if (ENABLED.equals(optionValue)) {
this.substringMatch = true;
} else if (DISABLED.equals(optionValue)) {
this.substringMatch = false;
- }
+ }*/
+ this.substringMatch = false;
}
if ((optionValue = optionsMap.get(OPTION_PerformDeprecationCheck)) != null) {
if (ENABLED.equals(optionValue)) {

Back to the top