@Override public String showPossibleCompletions() { if (!prepareToShowCompletions(false)) return null; if (fIsPrefixCompletionEnabled) return fProposalPopup.incrementalComplete(); return fProposalPopup.showProposals(false); }
@Override public String showPossibleCompletions() { if (!prepareToShowCompletions(false)) return null; if (fIsPrefixCompletionEnabled) return fProposalPopup.incrementalComplete(); return fProposalPopup.showProposals(false); }
@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) { } } }
@Override public void keyPressed(KeyEvent e) { if (!Helper.okToUse(fProposalShell)) return; int accelerator= SWTKeySupport.convertEventToUnmodifiedAccelerator(e); KeySequence sequence= KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator)); if (sequence.equals(fCommandSequence)) if (fContentAssistant.isPrefixCompletionEnabled()) incrementalComplete(); else showProposals(false); } }
@Override public void keyPressed(KeyEvent e) { if (!Helper.okToUse(fProposalShell)) return; int accelerator= SWTKeySupport.convertEventToUnmodifiedAccelerator(e); KeySequence sequence= KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator)); if (sequence.equals(fCommandSequence)) if (fContentAssistant.isPrefixCompletionEnabled()) incrementalComplete(); else showProposals(false); } }
if (fContentAssistant.isAutoActivationTriggerChar(charBeforeOffset)) { fContentAssistant.fireSessionBeginEvent(true); showProposals(true);