fInformationControlCloser.setInformationControl(fInformationControl);
/** * 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; }
/** * Shows the information control and starts the information control closer. * This method may not be called by clients. * * @param subjectArea the information area */ protected void showInformationControl(Rectangle subjectArea) { fInformationControl.setVisible(true); if (fInformationControl == null) return; // could already be disposed if setVisible(..) runs the display loop if (fTakesFocusWhenVisible) fInformationControl.setFocus(); if (fInformationControlCloser != null) fInformationControlCloser.start(subjectArea); }
fInformationControlCloser.setInformationControl(fInformationControl);
/** * 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; }
/** * Hides the information control and stops the information control closer. */ protected void hideInformationControl() { if (fInformationControl != null) { storeInformationControlBounds(); fInformationControl.setVisible(false); if (fInformationControlCloser != null) fInformationControlCloser.stop(); } if (canClearDataOnHide()) { fSubjectArea= null; fInformation= null; // allow garbage collection of potentially large object } }
/** * Shows the information control and starts the information control closer. * This method may not be called by clients. * * @param subjectArea the information area */ protected void showInformationControl(Rectangle subjectArea) { fInformationControl.setVisible(true); if (fInformationControl == null) return; // could already be disposed if setVisible(..) runs the display loop if (fTakesFocusWhenVisible) fInformationControl.setFocus(); if (fInformationControlCloser != null) fInformationControlCloser.start(subjectArea); }
/** * Handles the disposal of the information control. By default, the information * control closer is stopped. */ protected void handleInformationControlDisposed() { storeInformationControlBounds(); if (fInformationControl instanceof IInformationControlExtension5) fSizeConstraints= null; fInformationControl= null; if (fInformationControlCloser != null) { fInformationControlCloser.setInformationControl(null); //XXX: null is against the spec fInformationControlCloser.stop(); } }
/** * Hides the information control and stops the information control closer. */ protected void hideInformationControl() { if (fInformationControl != null) { storeInformationControlBounds(); fInformationControl.setVisible(false); if (fInformationControlCloser != null) fInformationControlCloser.stop(); } if (canClearDataOnHide()) { fSubjectArea= null; fInformation= null; // allow garbage collection of potentially large object } }
/** * Handles the disposal of the information control. By default, the information * control closer is stopped. */ protected void handleInformationControlDisposed() { storeInformationControlBounds(); if (fInformationControl instanceof IInformationControlExtension5) fSizeConstraints= null; fInformationControl= null; if (fInformationControlCloser != null) { fInformationControlCloser.setInformationControl(null); //XXX: null is against the spec fInformationControlCloser.stop(); } }