Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2008-11-17 08:45:15 -0500
committerDani Megert2008-11-17 08:45:15 -0500
commit602e3fd430ca0efdee5990381deab509a92a084d (patch)
tree1c191d2209b5ebc6d45fc28b375e0c31f7fa5933
parentcfca646da3a2d21012523766c3183a81f30038d4 (diff)
downloadeclipse.platform.text-R3_4_maintenance.tar.gz
eclipse.platform.text-R3_4_maintenance.tar.xz
eclipse.platform.text-R3_4_maintenance.zip
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java
index dcc1e7b32..86bdf30d3 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java
@@ -81,6 +81,8 @@ import org.eclipse.jface.text.AbstractInformationControlManager.Anchor;
import org.eclipse.jface.util.Geometry;
import org.eclipse.jface.viewers.StyledString;
+import org.eclipse.osgi.util.TextProcessor;
+
/**
* This class is used to present proposals to the user. If additional
@@ -1609,7 +1611,7 @@ class CompletionProposalPopup implements IContentAssistListener {
int start= ((ICompletionProposalExtension3)proposal).getPrefixCompletionStart(fContentAssistSubjectControlAdapter.getDocument(), fFilterOffset);
CharSequence insertion= ((ICompletionProposalExtension3)proposal).getPrefixCompletionText(fContentAssistSubjectControlAdapter.getDocument(), fFilterOffset);
if (insertion == null)
- insertion= proposal.getDisplayString();
+ insertion= TextProcessor.deprocess(proposal.getDisplayString());
try {
int prefixLength= fFilterOffset - start;
int relativeCompletionOffset= Math.min(insertion.length(), prefixLength);

Back to the top