summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-04-24 06:33:53 (EDT)
committer sefftinge2009-04-24 06:33:53 (EDT)
commita7bcd1547b24f3d97d777f66848424634bfbb951 (patch)
treef13d32fa5cbdbbb7c65f63bebf1ce2c328d8c570
parent1204a29ad49118756baf2d229e372a3c3385320f (diff)
downloadorg.eclipse.xtext-a7bcd1547b24f3d97d777f66848424634bfbb951.zip
org.eclipse.xtext-a7bcd1547b24f3d97d777f66848424634bfbb951.tar.gz
org.eclipse.xtext-a7bcd1547b24f3d97d777f66848424634bfbb951.tar.bz2
Fix: Selection-handling on CA
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/impl/ConfigurableCompletionProposal.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/impl/ConfigurableCompletionProposal.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/impl/ConfigurableCompletionProposal.java
index bce0f8b..9b49f6a 100644
--- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/impl/ConfigurableCompletionProposal.java
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/contentassist/impl/ConfigurableCompletionProposal.java
@@ -256,6 +256,7 @@ public class ConfigurableCompletionProposal implements ICompletionProposal, ICom
}
public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
+ this.setReplacementLength(offset - getReplacementOffset() + viewer.getSelectedRange().y);
apply(viewer.getDocument());
}