summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-04-29 03:40:58 (EDT)
committer sefftinge2009-04-29 03:40:58 (EDT)
commit78daaf82a8626061b8e54c0619e8b8ef9176b0ad (patch)
treed880112d31a6213958d1ca973ae593f4fa4c7717
parent948ccdc31878b91f4739c16205ff0dbb5471e00c (diff)
downloadorg.eclipse.xtext-78daaf82a8626061b8e54c0619e8b8ef9176b0ad.zip
org.eclipse.xtext-78daaf82a8626061b8e54c0619e8b8ef9176b0ad.tar.gz
org.eclipse.xtext-78daaf82a8626061b8e54c0619e8b8ef9176b0ad.tar.bz2
Feature: added ConfigurableCompletionProposal.priority
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/ConfigurableCompletionProposal.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/ConfigurableCompletionProposal.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/ConfigurableCompletionProposal.java
index 48264a4..647c01c 100644
--- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/ConfigurableCompletionProposal.java
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/ConfigurableCompletionProposal.java
@@ -177,6 +177,7 @@ public class ConfigurableCompletionProposal implements ICompletionProposal, ICom
private char[] exitChars;
private PrefixMatcher matcher;
private int replaceContextLength;
+ private int priority;
public boolean isAutoInsertable() {
return autoInsertable;
@@ -325,6 +326,14 @@ public class ConfigurableCompletionProposal implements ICompletionProposal, ICom
public int getReplaceContextLength() {
return replaceContextLength;
}
+
+ public void setPriority(int priority) {
+ this.priority = priority;
+ }
+
+ public int getPriority() {
+ return priority;
+ }
// copied from AbstractJavaCompletionProposal
/**