/** * {@inheritDoc} * @deprecated visibility will be changed to protected */ @Deprecated @Override public void setEnabled(boolean enabled) { boolean was= isEnabled(); super.setEnabled(enabled); boolean is= isEnabled(); if (was != is && fMouseTracker != null) { if (is) fMouseTracker.start(getSubjectControl(), fAreaControl); else fMouseTracker.stop(); } }
/** * {@inheritDoc} * @deprecated visibility will be changed to protected */ @Deprecated @Override public void setEnabled(boolean enabled) { boolean was= isEnabled(); super.setEnabled(enabled); boolean is= isEnabled(); if (was != is && fMouseTracker != null) { if (is) fMouseTracker.start(getSubjectControl(), fAreaControl); else fMouseTracker.stop(); } }
/** * 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; } }
/** * Installs this manager on the given control. The control is now taking the role of * the subject control. This implementation sets the control also as the information * control closer's subject control and automatically enables this manager. * * @param subjectControl the subject control */ public void install(Control subjectControl) { if (fSubjectControl != null && !fSubjectControl.isDisposed() && fSubjectControlDisposeListener != null) fSubjectControl.removeDisposeListener(fSubjectControlDisposeListener); fSubjectControl= subjectControl; if (fSubjectControl != null) fSubjectControl.addDisposeListener(getSubjectControlDisposeListener()); if (fInformationControlCloser != null) fInformationControlCloser.setSubjectControl(subjectControl); setEnabled(true); fDisposed= false; }
/** * Installs this manager on the given control. The control is now taking the role of * the subject control. This implementation sets the control also as the information * control closer's subject control and automatically enables this manager. * * @param subjectControl the subject control */ public void install(Control subjectControl) { if (fSubjectControl != null && !fSubjectControl.isDisposed() && fSubjectControlDisposeListener != null) fSubjectControl.removeDisposeListener(fSubjectControlDisposeListener); fSubjectControl= subjectControl; if (fSubjectControl != null) fSubjectControl.addDisposeListener(getSubjectControlDisposeListener()); if (fInformationControlCloser != null) fInformationControlCloser.setSubjectControl(subjectControl); setEnabled(true); fDisposed= false; }