@Override public boolean requestWidgetToken(IWidgetTokenOwner owner, int priority) { if (priority > WIDGET_PRIORITY) { hide(); return true; } return false; }
@Override protected void hide() { super.hide(); } }
@Override public void shellClosed(ShellEvent e) { if (fContentAssistant != null) fContentAssistant.hide(); }
@Override public void viewportChanged(int topIndex) { hide(); } }
@Override protected void hide() { super.hide(); } }
@Override public void controlMoved(ControlEvent e) { hide(); }
@Override public void widgetDisposed(DisposeEvent e) { /* * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of Internal * Errors */ hide(); }
@Override public void viewportChanged(int topIndex) { hide(); } }
@Override public void widgetDisposed(DisposeEvent e) { /* * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of Internal * Errors */ hide(); }
@Override public boolean requestWidgetToken(IWidgetTokenOwner owner, int priority) { if (priority > WIDGET_PRIORITY) { hide(); return true; } return false; }
@Override public void shellClosed(ShellEvent e) { if (fContentAssistant != null) fContentAssistant.hide(); }
@Override public void controlResized(ControlEvent e) { hide(); }
@Override public void mouseDown(MouseEvent e) { hide(); }
@Override public void mouseDoubleClick(MouseEvent e) { hide(); }
@Override public void controlMoved(ControlEvent e) { hide(); }
@Override public void run() { /* * The asyncExec is a workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=235556 : * fContentAssistant.hasProposalPopupFocus() is still true during the shellDeactivated(..) event. */ if (fContentAssistant != null && ! fContentAssistant.hasProposalPopupFocus()) fContentAssistant.hide(); } });
@Override public void run() { if (fContentAssistant != null && ! fContentAssistant.hasProposalPopupFocus()) fContentAssistant.hide(); } });
@Override public void shellDeactivated(ShellEvent e) { if (fContentAssistant != null && fDisplay != null) { fDisplay.asyncExec(() -> { /* * The asyncExec is a workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=235556 : * fContentAssistant.hasProposalPopupFocus() is still true during the shellDeactivated(..) event. */ if (fContentAssistant != null && !fContentAssistant.hasProposalPopupFocus()) fContentAssistant.hide(); }); } }
@Override public void run() { if (!fProposalPopup.hasFocus() && (fContextInfoPopup == null || !fContextInfoPopup.hasFocus())) hide(); } });
@Override public void focusLost(FocusEvent e) { Control control= fControl; if (Helper.okToUse(control)) { Display d= control.getDisplay(); if (d != null) { d.asyncExec(() -> { if (!fProposalPopup.hasFocus() && (fContextInfoPopup == null || !fContextInfoPopup.hasFocus())) hide(); }); } } }