/** * Sets the information control replacer for this manager and disposes the * old one if set. * * @param replacer the information control replacer for this manager, or * <code>null</code> if no information control replacing should * take place * @since 3.4 */ void setInformationControlReplacer(InformationControlReplacer replacer) { if (fInformationControlReplacer != null) fInformationControlReplacer.dispose(); fInformationControlReplacer= replacer; }
/** * Sets the information control replacer for this manager and disposes the * old one if set. * * @param replacer the information control replacer for this manager, or * <code>null</code> if no information control replacing should * take place * @since 3.4 */ void setInformationControlReplacer(InformationControlReplacer replacer) { if (fInformationControlReplacer != null) fInformationControlReplacer.dispose(); fInformationControlReplacer= replacer; }
/** * Disposes this manager and if necessary all dependent parts such as * the information control. For symmetry it first disables this manager. */ public void dispose() { if (!fDisposed) { fDisposed= true; setEnabled(false); disposeInformationControl(); if (fInformationControlReplacer != null) { fInformationControlReplacer.dispose(); fInformationControlReplacer= null; } if (fSubjectControl != null && !fSubjectControl.isDisposed() && fSubjectControlDisposeListener != null) fSubjectControl.removeDisposeListener(fSubjectControlDisposeListener); fSubjectControl= null; fSubjectControlDisposeListener= null; fIsCustomInformationControl= false; fCustomInformationControlCreator= null; fInformationControlCreator= null; fInformationControlCloser= null; } }
/** * Disposes this manager and if necessary all dependent parts such as * the information control. For symmetry it first disables this manager. */ public void dispose() { if (!fDisposed) { fDisposed= true; setEnabled(false); disposeInformationControl(); if (fInformationControlReplacer != null) { fInformationControlReplacer.dispose(); fInformationControlReplacer= null; } if (fSubjectControl != null && !fSubjectControl.isDisposed() && fSubjectControlDisposeListener != null) fSubjectControl.removeDisposeListener(fSubjectControlDisposeListener); fSubjectControl= null; fSubjectControlDisposeListener= null; fIsCustomInformationControl= false; fCustomInformationControlCreator= null; fInformationControlCreator= null; fInformationControlCloser= null; } }