Author: dazarov
Date: 2011-07-21 20:14:35 -0400 (Thu, 21 Jul 2011)
New Revision: 33126
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/xpl/MultipleHyperlinkPresenter.java
Log:
https://issues.jboss.org/browse/JBIDE-9390
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/xpl/MultipleHyperlinkPresenter.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/xpl/MultipleHyperlinkPresenter.java 2011-07-21
23:45:34 UTC (rev 33125)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/xpl/MultipleHyperlinkPresenter.java 2011-07-22
00:14:35 UTC (rev 33126)
@@ -581,24 +581,15 @@
* @see
org.eclipse.jface.text.AbstractInformationControlManager#computeInformationControlLocation(org.eclipse.swt.graphics.Rectangle,
org.eclipse.swt.graphics.Point)
*/
protected Point computeInformationControlLocation(Rectangle subjectArea, Point
controlSize) {
- Point result= super.computeInformationControlLocation(subjectArea, controlSize);
-
- Point cursorLocation= fTextViewer.getTextWidget().getDisplay().getCursorLocation();
- if (cursorLocation.x <= result.x + controlSize.x)
- return result;
-
- result.x= cursorLocation.x + 20 - controlSize.x;
- return result;
+ Point point = Display.getCurrent().getCursorLocation();
+ Point location = new Point(point.x-20, point.y-20);
+ return location;
}
/*
* @see
org.eclipse.jface.text.AbstractInformationControlManager#showInformationControl(org.eclipse.swt.graphics.Rectangle)
*/
protected void showInformationControl(Rectangle subjectArea) {
- Point point = Display.getCurrent().getCursorLocation();
- Point location = new Point(point.x-20, point.y-20);
- fInformationControl.setLocation(location);
-
if (fTextViewer instanceof IWidgetTokenOwnerExtension) {
if (((IWidgetTokenOwnerExtension) fTextViewer).requestWidgetToken(this,
WIDGET_TOKEN_PRIORITY))
super.showInformationControl(subjectArea);