@Override
 public void dispose() {
   if (labelProvider != null) {
     labelProvider.dispose();
   }
   super.dispose();
 }
  public void dispose() {
    getSite()
        .getWorkbenchWindow()
        .getSelectionService()
        .removePostSelectionListener(getSelectionServiceListener());
    if (fDoubleClickProvider != null) {
      getTreeViewer().removeDoubleClickListener(fDoubleClickProvider);
    }

    // dispose menu controls
    if (fContextMenu != null) {
      fContextMenu.dispose();
    }
    if (fContextMenuManager != null) {
      fContextMenuManager.removeMenuListener(fGroupAdder);
      fContextMenuManager.removeAll();
      fContextMenuManager.dispose();
    }

    fDropTarget.dispose();
    fDragSource.dispose();

    IStatusLineManager statusLineManager = getSite().getActionBars().getStatusLineManager();
    if (statusLineManager != null) {
      statusLineManager.setMessage(null);
    }
    unconfigure();
    super.dispose();
  }
 @Override
 public void dispose() {
   contentProvider.dispose();
   contentProvider = null;
   labelProvider.dispose();
   labelProvider = null;
   editor = null;
   super.dispose();
 }
示例#4
0
  @Override
  public void dispose() {
    super.dispose();
    Workspace.getInstance().uninstallResourceListener(m_listener);

    if (fMenu != null && !fMenu.isDisposed()) {
      fMenu.dispose();
      fMenu = null;
    }
  }
  /** Remove the listener associated with the outline. */
  @Override
  public void dispose() {

    getSite().getPage().removeSelectionListener(this);
    super.dispose();
  }