diff options
author | teicher | 2006-07-20 14:51:29 +0000 |
---|---|---|
committer | teicher | 2006-07-20 14:51:29 +0000 |
commit | ccea4a88f84e56ba19cac80ccd17ff7fa903e625 (patch) | |
tree | d301da990cc25e67b57624228d0b066f9a644416 /org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContextInformationPopup.java | |
parent | 254eba9d52b6b8a5eb41c7b23342a520a8533361 (diff) | |
download | eclipse.platform.text-ccea4a88f84e56ba19cac80ccd17ff7fa903e625.tar.gz eclipse.platform.text-ccea4a88f84e56ba19cac80ccd17ff7fa903e625.tar.xz eclipse.platform.text-ccea4a88f84e56ba19cac80ccd17ff7fa903e625.zip |
151063 IAE in ContentAssistSubjectControlAdapter.getLocationAtOffset
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContextInformationPopup.java')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContextInformationPopup.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContextInformationPopup.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContextInformationPopup.java index 7da996e1c01..2dda440544e 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContextInformationPopup.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContextInformationPopup.java @@ -428,7 +428,7 @@ class ContextInformationPopup implements IContentAssistListener { /** * Resizes the context information popup. * - * @param offset the caret offset + * @param offset the caret offset in widget coordinates * @since 2.0 */ private void resize(int offset) { @@ -813,8 +813,9 @@ class ContextInformationPopup implements IContentAssistListener { if (top.fValidator == null || !top.fValidator.isContextInformationValid(offset)) { hideContextInfoPopup(); // loop variant: reduces the number of contexts on the stack } else if (top.fPresenter != null && top.fPresenter.updatePresentation(offset, fTextPresentation)) { + int widgetOffset= fContentAssistSubjectControlAdapter.getWidgetSelectionRange().x; TextPresentation.applyTextPresentation(fTextPresentation, fContextInfoText); - resize(offset); + resize(widgetOffset); break; } else break; |