/** * Handles the disposal of the subject control. By default, the information control * is disposed by calling <code>disposeInformationControl</code>. Subclasses may extend * this method. */ protected void handleSubjectControlDisposed() { disposeInformationControl(); }
/** * Handles the disposal of the subject control. By default, the information control * is disposed by calling <code>disposeInformationControl</code>. Subclasses may extend * this method. */ protected void handleSubjectControlDisposed() { disposeInformationControl(); }
@Override public void disposeInformationControl() { synchronized (fThreadAccess) { if (fThread != null) { fThread.interrupt(); fThread= null; } } if (fProposalTable != null && !fProposalTable.isDisposed()) { fProposalTable.removeSelectionListener(fSelectionListener); fProposalTable= null; } super.disposeInformationControl(); }
@Override public void disposeInformationControl() { synchronized (fThreadAccess) { if (fThread != null) { fThread.interrupt(); fThread= null; } } if (fProposalTable != null && !fProposalTable.isDisposed()) { fProposalTable.removeSelectionListener(fSelectionListener); fProposalTable= null; } super.disposeInformationControl(); }
@Override public void disposeInformationControl() { super.disposeInformationControl(); if (fTextViewer instanceof IWidgetTokenOwner) { ((IWidgetTokenOwner) fTextViewer).releaseWidgetToken(this); } fIsControlVisible= false; fHyperlinkPresenter.hideHyperlinks(); }
@Override public void disposeInformationControl() { super.disposeInformationControl(); if (fTextViewer instanceof IWidgetTokenOwner) { ((IWidgetTokenOwner) fTextViewer).releaseWidgetToken(this); } fIsControlVisible= false; fHyperlinkPresenter.hideHyperlinks(); }
@Override public void disposeInformationControl() { if (fTimer !=null) { fTimer.terminate(); fTimer= null; } fProposal= null; fInformation= null; if (fProposalTable != null && !fProposalTable.isDisposed()) { fProposalTable.removeSelectionListener(fSelectionListener); fProposalTable= null; } super.disposeInformationControl(); }
@Override public void disposeInformationControl() { if (fTimer !=null) { fTimer.terminate(); fTimer= null; } fProposal= null; fInformation= null; if (fProposalTable != null && !fProposalTable.isDisposed()) { fProposalTable.removeSelectionListener(fSelectionListener); fProposalTable= null; } super.disposeInformationControl(); }
/** * 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; } }