/** * Hides context selector and context information popup. */ public void hide() { hideContextSelector(); hideContextInfoPopup(); }
/** * Processes a key stroke in the context selector. * * @param e the verify event describing the key stroke */ private void contextSelectorProcessEvent(VerifyEvent e) { if (e.start == e.end && e.text != null && e.text.equals(fLineDelimiter)) { e.doit= false; insertSelectedContext(); } hideContextSelector(); }
/** * Hides context selector and context information popup. */ public void hide() { hideContextSelector(); hideContextInfoPopup(); }
/** * Processes a key stroke in the context selector. * * @param e the verify event describing the key stroke */ private void contextSelectorProcessEvent(VerifyEvent e) { if (e.start == e.end && e.text != null && e.text.equals(fLineDelimiter)) { e.doit= false; insertSelectedContext(); } hideContextSelector(); }
hideContextSelector(); return true; } else if (key == SWT.ESC) { e.doit= false; hideContextSelector();
hideContextSelector(); return true; } else if (key == SWT.ESC) { e.doit= false; hideContextSelector();
/** * Displays the given context information for the given offset. * * @param info the context information * @param offset the offset * @since 2.0 */ public void showContextInformation(final IContextInformation info, final int offset) { Control control= fContentAssistSubjectControlAdapter.getControl(); BusyIndicator.showWhile(control.getDisplay(), () -> { if (info == null) validateContextInformation(); else { ContextFrame frame= createContextFrame(info, offset); if (isDuplicate(frame)) validateContextInformation(); else internalShowContextInfo(frame); hideContextSelector(); } }); }
event.doit= false; insertSelectedContext(); hideContextSelector();