コード例 #1
0
  /**
   * The <code>AbstractTextEditor</code> implementation of this <code>IWorkbenchPart</code> method
   * may be extended by subclasses. Subclasses must call <code>super.dispose()</code>.
   *
   * <p>Note that many methods may return <code>null</code> after the editor is disposed.
   */
  @Override
  public void dispose() {

    if (fTitleImage != null) {
      fTitleImage.dispose();
      fTitleImage = null;
    }

    disposeDocumentProvider();

    if (fSourceViewer != null) {
      fSourceViewer = null;
    }

    if (fConfiguration != null) fConfiguration = null;

    IOperationHistory history = OperationHistoryFactory.getOperationHistory();
    if (history != null) {
      if (fNonLocalOperationApprover != null)
        history.removeOperationApprover(fNonLocalOperationApprover);
      if (fLinearUndoViolationApprover != null)
        history.removeOperationApprover(fLinearUndoViolationApprover);
    }
    fNonLocalOperationApprover = null;
    fLinearUndoViolationApprover = null;

    super.dispose();
  }
コード例 #2
0
ファイル: GTKWaveEditor.java プロジェクト: Pidbip/egtkwave
  @Override
  public void dispose() {
    super.dispose();

    if (fWaveMgr != null) {
      fWaveMgr.dispose();
    }
  }
コード例 #3
0
ファイル: RDataEditor.java プロジェクト: baihualong/statet
  @Override
  public void dispose() {
    getEditorSite().getWorkbenchWindow().getPartService().removePartListener(fActivationListener);
    fEditorHandlers.dispose();

    disposeTableInput();

    super.dispose();
  }
コード例 #4
0
 @Override
 public void dispose() {
   if (editorImage != null) {
     editorImage.dispose();
     editorImage = null;
   }
   listener.dispose();
   super.dispose();
 }
コード例 #5
0
ファイル: AttachmentEditor.java プロジェクト: SerNet/verinice
 @Override
 public void dispose() {
   IEditorInput editorInput = getEditorInput();
   if (editorInput instanceof NoteEditorInput) {
     EditorRegistry.getInstance()
         .closeEditor(String.valueOf(((NoteEditorInput) editorInput).getId()));
   }
   if (editorInput instanceof AttachmentEditorInput) {
     EditorRegistry.getInstance()
         .closeEditor(String.valueOf(((AttachmentEditorInput) editorInput).getId()));
   }
   super.dispose();
 }
コード例 #6
0
  @Override
  public void dispose() {
    Logging.log(this, "Destroyed relay client");

    if (mRelayClient != null) {
      // delete as observer for corresponding stream client application
      mRelayClient.deleteObserver(this);

      // terminate application
      mRelayClient.exit();
    }

    super.dispose();
  }
コード例 #7
0
  /** We have to dispose the windows shown on our Editor */
  @Override
  public void dispose() {
    super.dispose();
    EventQueue.invokeLater(
        new Runnable() {
          @Override
          public void run() {
            if (window != null) {
              window.dispose();
            }
          }
        });

    Display.getDefault()
        .asyncExec(
            new Runnable() {
              @Override
              public void run() {
                if (wndFind != null) {
                  wndFind.close();
                }
              }
            });

    IWorkbenchWindow wind = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    if (wind == null) {
      return;
    }
    IEditorReference[] editors =
        wind.getActivePage().findEditors(null, GraphEditor.ID, IWorkbenchPage.MATCH_ID);
    if (editors != null && editors.length == 0 && satView != null) {
      satView.setEditor(null);
      satView.clear();
    }

    for (AbstractHandler hnd : handlers) {
      hnd.dispose();
    }
  }
コード例 #8
0
 @Override
 public void dispose() {
   super.dispose();
 }
コード例 #9
0
 @Override
 public void dispose() {
   ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
   super.dispose();
 }
コード例 #10
0
 @Override
 public void dispose() {
   intervalReport.removePropertyChangeListener(changeListener);
   intervalReport.dispose();
   super.dispose();
 }