/** * Replace the information control. * * @param informationPresenterControlCreator the information presenter control creator * @param contentBounds the bounds of the content area of the information control * @param information the information to show * @param subjectArea the subject area * @param takeFocus <code>true</code> iff the replacing information control should take focus */ public void replaceInformationControl(IInformationControlCreator informationPresenterControlCreator, Rectangle contentBounds, Object information, final Rectangle subjectArea, boolean takeFocus) { try { fIsReplacing= true; if (! fDelayedInformationSet) fReplacableInformation= information; else takeFocus= true; // delayed input has been set, so the original info control must have been focused fContentBounds= contentBounds; fReplaceableArea= subjectArea; setCustomInformationControlCreator(informationPresenterControlCreator); takesFocusWhenVisible(takeFocus); showInformation(); } finally { fIsReplacing= false; fReplacableInformation= null; fDelayedInformationSet= false; fReplaceableArea= null; setCustomInformationControlCreator(null); } }
/** * Replace the information control. * * @param informationPresenterControlCreator the information presenter control creator * @param contentBounds the bounds of the content area of the information control * @param information the information to show * @param subjectArea the subject area * @param takeFocus <code>true</code> iff the replacing information control should take focus */ public void replaceInformationControl(IInformationControlCreator informationPresenterControlCreator, Rectangle contentBounds, Object information, final Rectangle subjectArea, boolean takeFocus) { try { fIsReplacing= true; if (! fDelayedInformationSet) fReplacableInformation= information; else takeFocus= true; // delayed input has been set, so the original info control must have been focused fContentBounds= contentBounds; fReplaceableArea= subjectArea; setCustomInformationControlCreator(informationPresenterControlCreator); takesFocusWhenVisible(takeFocus); showInformation(); } finally { fIsReplacing= false; fReplacableInformation= null; fDelayedInformationSet= false; fReplaceableArea= null; setCustomInformationControlCreator(null); } }