@Override public void run() { hideInformationControl(); } });
@Override public void mouseDown(MouseEvent e) { hideInformationControl(); }
@Override public void mouseDoubleClick(MouseEvent e) { hideInformationControl(); }
@Override public void keyPressed(KeyEvent e) { hideInformationControl(); }
@Override public void controlResized(ControlEvent e) { hideInformationControl(); }
@Override public void viewportChanged(int topIndex) { hideInformationControl(); }
@Override public void controlResized(ControlEvent e) { hideInformationControl(); }
@Override public void controlMoved(ControlEvent e) { hideInformationControl(); }
@Override public void mouseDoubleClick(MouseEvent e) { hideInformationControl(); }
@Override public void viewportChanged(int topIndex) { hideInformationControl(); }
@Override public void controlMoved(ControlEvent e) { hideInformationControl(); }
@Override public void mouseDown(MouseEvent e) { hideInformationControl(); }
@Override public void keyPressed(KeyEvent e) { hideInformationControl(); }
@Override public boolean requestWidgetToken(IWidgetTokenOwner owner) { hideInformationControl(); if (DEBUG) System.out.println("StickyHoverManager gave up widget token (no prio)"); //$NON-NLS-1$ return true; }
@Override public boolean requestWidgetToken(IWidgetTokenOwner owner) { hideInformationControl(); if (DEBUG) System.out.println("StickyHoverManager gave up widget token (no prio)"); //$NON-NLS-1$ return true; }
@Override public void focusLost(FocusEvent e) { if (DEBUG) System.out.println("StickyHoverManager.Closer.focusLost(): " + e); //$NON-NLS-1$ Display d= fSubjectControl.getDisplay(); // Without the asyncExec, mouse clicks to the workbench window are swallowed. d.asyncExec(() -> hideInformationControl()); }
@Override public boolean requestWidgetToken(IWidgetTokenOwner owner, int priority) { if (getCurrentInformationControl2() != null) { if (getCurrentInformationControl2().isFocusControl()) { if (DEBUG) System.out.println("StickyHoverManager kept widget token (focused)"); //$NON-NLS-1$ return false; } else if (priority > WIDGET_PRIORITY) { hideInformationControl(); if (DEBUG) System.out.println("StickyHoverManager gave up widget token (prio)"); //$NON-NLS-1$ return true; } else { if (DEBUG) System.out.println("StickyHoverManager kept widget token (prio)"); //$NON-NLS-1$ return false; } } if (DEBUG) System.out.println("StickyHoverManager gave up widget token (no iControl)"); //$NON-NLS-1$ return true; }
@Override public boolean requestWidgetToken(IWidgetTokenOwner owner, int priority) { if (getCurrentInformationControl2() != null) { if (getCurrentInformationControl2().isFocusControl()) { if (DEBUG) System.out.println("StickyHoverManager kept widget token (focused)"); //$NON-NLS-1$ return false; } else if (priority > WIDGET_PRIORITY) { hideInformationControl(); if (DEBUG) System.out.println("StickyHoverManager gave up widget token (prio)"); //$NON-NLS-1$ return true; } else { if (DEBUG) System.out.println("StickyHoverManager kept widget token (prio)"); //$NON-NLS-1$ return false; } } if (DEBUG) System.out.println("StickyHoverManager gave up widget token (no iControl)"); //$NON-NLS-1$ return true; }
Geometry.expand(controlBounds, margin, margin, margin, margin); if (!controlBounds.contains(mouseLoc)) { hideInformationControl(); IInformationControl iControl= getCurrentInformationControl2(); if (iControl != null && ! iControl.isFocusControl()) hideInformationControl();
Geometry.expand(controlBounds, margin, margin, margin, margin); if (!controlBounds.contains(mouseLoc)) { hideInformationControl(); IInformationControl iControl= getCurrentInformationControl2(); if (iControl != null && ! iControl.isFocusControl()) hideInformationControl();