@Override public void hideInformationControl() { super.hideInformationControl(); }
@Override public void hideInformationControl() { super.hideInformationControl(); }
@Override protected void hideInformationControl() { try { super.hideInformationControl(); } finally { if (fTextViewer instanceof IWidgetTokenOwner) { IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer; owner.releaseWidgetToken(this); } } }
@Override protected void hideInformationControl() { try { super.hideInformationControl(); } finally { if (fTextViewer instanceof IWidgetTokenOwner) { IWidgetTokenOwner owner= (IWidgetTokenOwner) fTextViewer; owner.releaseWidgetToken(this); } } }
@Override protected void hideInformationControl() { super.hideInformationControl(); if (fTimer != null) fTimer.reset(null); }
@Override protected void hideInformationControl() { cancelReplacingDelay(); super.hideInformationControl(); }
@Override protected void hideInformationControl() { cancelReplacingDelay(); super.hideInformationControl(); }
@Override protected void hideInformationControl() { super.hideInformationControl(); if (fTimer != null) fTimer.reset(null); }
/** * Presents the information in the information control or hides the information * control if no information should be presented. The information has previously * been set using <code>setInformation</code>. * <p> * This method should only be called from overriding methods or from <code>setInformation</code>. * </p> */ protected void presentInformation() { boolean hasContents= false; if (fInformation instanceof String) hasContents= ((String)fInformation).trim().length() > 0; else hasContents= (fInformation != null); if (fSubjectArea != null && hasContents) internalShowInformationControl(fSubjectArea, fInformation); else hideInformationControl(); }
/** * Presents the information in the information control or hides the information * control if no information should be presented. The information has previously * been set using <code>setInformation</code>. * <p> * This method should only be called from overriding methods or from <code>setInformation</code>. * </p> */ protected void presentInformation() { boolean hasContents= false; if (fInformation instanceof String) hasContents= ((String)fInformation).trim().length() > 0; else hasContents= (fInformation != null); if (fSubjectArea != null && hasContents) internalShowInformationControl(fSubjectArea, fInformation); else hideInformationControl(); }
@Override protected void hideInformationControl() { super.hideInformationControl(); if (fTextViewer instanceof IWidgetTokenOwner) { ((IWidgetTokenOwner) fTextViewer).releaseWidgetToken(this); } fIsControlVisible= false; fHyperlinkPresenter.hideHyperlinks(); }
@Override protected void hideInformationControl() { super.hideInformationControl(); if (fTextViewer instanceof IWidgetTokenOwner) { ((IWidgetTokenOwner) fTextViewer).releaseWidgetToken(this); } fIsControlVisible= false; fHyperlinkPresenter.hideHyperlinks(); }
/** * Replaces this manager's information control as defined by * the information control replacer. * <strong>Must only be called when {@link #fInformationControl} instanceof {@link IInformationControlExtension3}!</strong> * * @param takeFocus <code>true</code> iff the replacing information control should take focus * * @since 3.4 */ void replaceInformationControl(boolean takeFocus) { if (fInformationControlReplacer != null && canReplace(fInformationControl)) { IInformationControlExtension3 iControl3= (IInformationControlExtension3) fInformationControl; Rectangle b= iControl3.getBounds(); Rectangle t= iControl3.computeTrim(); Rectangle contentBounds= new Rectangle(b.x - t.x, b.y - t.y, b.width - t.width, b.height - t.height); IInformationControlCreator informationPresenterControlCreator= ((IInformationControlExtension5) fInformationControl).getInformationPresenterControlCreator(); fInformationControlReplacer.replaceInformationControl(informationPresenterControlCreator, contentBounds, fInformation, fSubjectArea, takeFocus); } hideInformationControl(); }
/** * Replaces this manager's information control as defined by * the information control replacer. * <strong>Must only be called when {@link #fInformationControl} instanceof {@link IInformationControlExtension3}!</strong> * * @param takeFocus <code>true</code> iff the replacing information control should take focus * * @since 3.4 */ void replaceInformationControl(boolean takeFocus) { if (fInformationControlReplacer != null && canReplace(fInformationControl)) { IInformationControlExtension3 iControl3= (IInformationControlExtension3) fInformationControl; Rectangle b= iControl3.getBounds(); Rectangle t= iControl3.computeTrim(); Rectangle contentBounds= new Rectangle(b.x - t.x, b.y - t.y, b.width - t.width, b.height - t.height); IInformationControlCreator informationPresenterControlCreator= ((IInformationControlExtension5) fInformationControl).getInformationPresenterControlCreator(); fInformationControlReplacer.replaceInformationControl(informationPresenterControlCreator, contentBounds, fInformation, fSubjectArea, takeFocus); } hideInformationControl(); }