@Override public String showContextInformation() { promoteKeyListener(); if (fContextInfoPopup != null) return fContextInfoPopup.showContextProposals(false); return null; }
@Override public String showContextInformation() { promoteKeyListener(); if (fContextInfoPopup != null) return fContextInfoPopup.showContextProposals(false); return null; }
@Override public void run() { if (isProposalPopupActive()) return; if (control.isDisposed() || !control.isFocusControl()) return; if (showStyle == SHOW_PROPOSALS) { if (!prepareToShowCompletions(true)) return; fProposalPopup.showProposals(true); fLastAutoActivation= System.currentTimeMillis(); } else if (showStyle == SHOW_CONTEXT_INFO && fContextInfoPopup != null) { promoteKeyListener(); fContextInfoPopup.showContextProposals(true); } } });
protected void showAssist(final int showStyle) { final Control control= fContentAssistSubjectControlAdapter.getControl(); if (control == null) return; final Display d= control.getDisplay(); if (d == null) return; try { d.syncExec(() -> { if (isProposalPopupActive()) return; if (control.isDisposed() || !control.isFocusControl()) return; if (showStyle == SHOW_PROPOSALS) { if (!prepareToShowCompletions(true)) return; fProposalPopup.showProposals(true); fLastAutoActivation= System.currentTimeMillis(); } else if (showStyle == SHOW_CONTEXT_INFO && fContextInfoPopup != null) { promoteKeyListener(); fContextInfoPopup.showContextProposals(true); } }); } catch (SWTError e) { } } }