/** * @param input the delayed input, or <code>null</code> to request cancellation */ public void setDelayedInput(Object input) { fReplacableInformation= input; if (! isReplacing()) { fDelayedInformationSet= true; } else if (getCurrentInformationControl2() instanceof IInformationControlExtension2) { ((IInformationControlExtension2) getCurrentInformationControl2()).setInput(input); } else if (getCurrentInformationControl2() != null) { getCurrentInformationControl2().setInformation(input.toString()); } }
/** * @param input the delayed input, or <code>null</code> to request cancellation */ public void setDelayedInput(Object input) { fReplacableInformation= input; if (! isReplacing()) { fDelayedInformationSet= true; } else if (getCurrentInformationControl2() instanceof IInformationControlExtension2) { ((IInformationControlExtension2) getCurrentInformationControl2()).setInput(input); } else if (getCurrentInformationControl2() != null) { getCurrentInformationControl2().setInformation(input.toString()); } }
/** * 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; }
InformationControlReplacer replacer= fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer(); if (replacer != null && fContentAssistant != null) { IInformationControl iControl= replacer.getCurrentInformationControl2(); if (event.widget instanceof Control && iControl instanceof IInformationControlExtension5) { Control control= (Control) event.widget;
InformationControlReplacer replacer= fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer(); if (replacer != null && fContentAssistant != null) { IInformationControl iControl= replacer.getCurrentInformationControl2(); if (event.widget instanceof Control && iControl instanceof IInformationControlExtension5) { Control control= (Control) event.widget;
iControl= null; if (getInformationControlReplacer() != null) { iControl= getInformationControlReplacer().getCurrentInformationControl2(); if ((iControl instanceof IInformationControlExtension5 && !((IInformationControlExtension5) iControl).isVisible())) { return false;
iControl= null; if (getInformationControlReplacer() != null) { iControl= getInformationControlReplacer().getCurrentInformationControl2(); if ((iControl instanceof IInformationControlExtension5 && !((IInformationControlExtension5) iControl).isVisible())) { return false;