@Override public InformationControlReplacer getInformationControlReplacer() { return AnnotationBarHoverManager.super.getInternalAccessor().getInformationControlReplacer(); }
@Override public InformationControlReplacer getInformationControlReplacer() { return AnnotationBarHoverManager.super.getInternalAccessor().getInformationControlReplacer(); }
@Override protected void showInformation(ICompletionProposal proposal, Object info) { InformationControlReplacer replacer= getInternalAccessor().getInformationControlReplacer(); if (replacer != null) replacer.hideInformationControl(); AdditionalInfoController.this.showInformation(proposal, info); } };
@Override protected void showInformation(ICompletionProposal proposal, Object info) { InformationControlReplacer replacer= getInternalAccessor().getInformationControlReplacer(); if (replacer != null) replacer.hideInformationControl(); AdditionalInfoController.this.showInformation(proposal, info); } };
/** * Returns whether this popup has the focus. * * @return <code>true</code> if the popup has the focus */ public boolean hasFocus() { if (Helper.okToUse(fProposalShell)) { if ((fProposalShell.getDisplay().getActiveShell() == fProposalShell)) return true; /* * We have to delegate this query to the additional info controller * as well, since the content assistant is the widget token owner * and its closer does not know that the additional info control can * now also take focus. */ if (fAdditionalInfoController != null) { IInformationControl informationControl= fAdditionalInfoController.getCurrentInformationControl2(); if (informationControl != null && informationControl.isFocusControl()) return true; InformationControlReplacer replacer= fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer(); if (replacer != null) { informationControl= replacer.getCurrentInformationControl2(); if (informationControl != null && informationControl.isFocusControl()) return true; } } } return false; }
/** * Returns whether this popup has the focus. * * @return <code>true</code> if the popup has the focus */ public boolean hasFocus() { if (Helper.okToUse(fProposalShell)) { if ((fProposalShell.getDisplay().getActiveShell() == fProposalShell)) return true; /* * We have to delegate this query to the additional info controller * as well, since the content assistant is the widget token owner * and its closer does not know that the additional info control can * now also take focus. */ if (fAdditionalInfoController != null) { IInformationControl informationControl= fAdditionalInfoController.getCurrentInformationControl2(); if (informationControl != null && informationControl.isFocusControl()) return true; InformationControlReplacer replacer= fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer(); if (replacer != null) { informationControl= replacer.getCurrentInformationControl2(); if (informationControl != null && informationControl.isFocusControl()) return true; } } } return false; }
@Override public void install(Control control) { if (fProposalTable == control) { // already installed return; } super.install(control.getShell()); Assert.isTrue(control instanceof Table); fProposalTable= (Table) control; fProposalTable.addSelectionListener(fSelectionListener); getInternalAccessor().getInformationControlReplacer().install(fProposalTable); fTimer= new Timer(fProposalTable.getDisplay(), fDelay) { @Override protected void showInformation(ICompletionProposal proposal, Object info) { InformationControlReplacer replacer= getInternalAccessor().getInformationControlReplacer(); if (replacer != null) replacer.hideInformationControl(); AdditionalInfoController.this.showInformation(proposal, info); } }; }
@Override public void install(Control control) { if (fProposalTable == control) { // already installed return; } super.install(control.getShell()); Assert.isTrue(control instanceof Table); fProposalTable= (Table) control; fProposalTable.addSelectionListener(fSelectionListener); getInternalAccessor().getInformationControlReplacer().install(fProposalTable); fTimer= new Timer(fProposalTable.getDisplay(), fDelay) { @Override protected void showInformation(ICompletionProposal proposal, Object info) { InformationControlReplacer replacer= getInternalAccessor().getInformationControlReplacer(); if (replacer != null) replacer.hideInformationControl(); AdditionalInfoController.this.showInformation(proposal, info); } }; }
return; if (fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer() == null) fAdditionalInfoController.hideInformationControl(); else if (!fAdditionalInfoController.getInternalAccessor().isReplaceInProgress()) { if (infoControl instanceof IDelayedInputChangeProvider) { final IDelayedInputChangeProvider delayedICP= (IDelayedInputChangeProvider) infoControl; final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer()); delayedICP.setDelayedInputChangeListener(inputChangeListener); if (fAdditionalInfoController == null) break; InformationControlReplacer replacer= fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer(); if (replacer != null && fContentAssistant != null) { IInformationControl iControl= replacer.getCurrentInformationControl2();
return; if (fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer() == null) fAdditionalInfoController.hideInformationControl(); else if (!fAdditionalInfoController.getInternalAccessor().isReplaceInProgress()) { if (infoControl instanceof IDelayedInputChangeProvider) { final IDelayedInputChangeProvider delayedICP= (IDelayedInputChangeProvider) infoControl; final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer()); delayedICP.setDelayedInputChangeListener(inputChangeListener); if (fAdditionalInfoController == null) break; InformationControlReplacer replacer= fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer(); if (replacer != null && fContentAssistant != null) { IInformationControl iControl= replacer.getCurrentInformationControl2();