Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2017-04-06 09:05:47 -0400
committerSopot Cela2017-04-06 09:05:47 -0400
commite1010f3d804f87745414135ba639256fbb8e9284 (patch)
treeee534e9ea7dd6d45f9bbb2d522661d02d29be417 /org.eclipse.ui.genericeditor
parent8b0b0d544e1f4a70aafef0266f2f43e3a6c69c68 (diff)
downloadeclipse.platform.text-e1010f3d804f87745414135ba639256fbb8e9284.tar.gz
eclipse.platform.text-e1010f3d804f87745414135ba639256fbb8e9284.tar.xz
eclipse.platform.text-e1010f3d804f87745414135ba639256fbb8e9284.zip
Removes 1-character proposals. Change-Id: I74c1a98299462918db63fd2f8357336d8972512b Signed-off-by: Sopot Cela <scela@redhat.com>
Diffstat (limited to 'org.eclipse.ui.genericeditor')
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
index 9e4722053..755380112 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
@@ -58,7 +58,7 @@ public class DefaultContentAssistProcessor implements IContentAssistProcessor {
List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();
for (String token : tokenSet) {
- if ((token==null)||(token.isEmpty())) {
+ if ((token==null)||(token.length()<2)) {
continue;
}
if (token.equals(prefix)) {

Back to the top