Ejemplo n.º 1
0
  @Override
  public void dispose() {
    // store current settings back into preferences
    IPreferenceStore preferenceStore = AnalysisRCPActivator.getDefault().getPreferenceStore();
    String pName = getPartName();
    Integer setting = colourSettings.get(pName);
    if (setting != null)
      preferenceStore.setValue(
          pName + "." + PreferenceConstants.PLOT_VIEW_PLOT2D_COLOURMAP, setting);
    preferenceStore.setValue(
        pName + "." + PreferenceConstants.PLOT_VIEW_PLOT2D_SCALING, (useLog ? 1 : 0));
    deleteIObservers();
    if (histogramPlotter != null) histogramPlotter.cleanUp();
    data = null;
    if (histogramUI != null) {
      histogramUI.deactivate(false);
      histogramUI.dispose();
    }
    if (!cmbAlpha.isDisposed()) cmbAlpha.removeSelectionListener(this);
    if (!cmbRedColour.isDisposed()) cmbRedColour.removeSelectionListener(this);
    if (!cmbGreenColour.isDisposed()) cmbGreenColour.removeSelectionListener(this);
    if (!cmbBlueColour.isDisposed()) cmbBlueColour.removeSelectionListener(this);
    if (!btnGreenInverse.isDisposed()) btnGreenInverse.removeSelectionListener(this);
    if (!btnBlueInverse.isDisposed()) btnBlueInverse.removeSelectionListener(this);
    if (!btnAlphaInverse.isDisposed()) btnAlphaInverse.removeSelectionListener(this);
    if (!btnRedInverse.isDisposed()) btnRedInverse.removeSelectionListener(this);

    super.dispose();
  }
Ejemplo n.º 2
0
 @Override
 public void dispose() {
   stopTimer();
   removeSelectionListener();
   disposeGui();
   super.dispose();
 }
Ejemplo n.º 3
0
 @Override
 public void dispose() {
   super.dispose();
   if (this.thread != null) {
     this.thread.shutdown();
   }
 }
Ejemplo n.º 4
0
 public void dispose() {
   if (session != null && game != null) {
     session.closeGame(game);
   }
   background.dispose();
   light.dispose();
   dark.dispose();
   quadWord.dispose();
   tripleWord.dispose();
   doubleWord.dispose();
   quadLetter.dispose();
   tripleLetter.dispose();
   doubleLetter.dispose();
   quadWordLight.dispose();
   tripleWordLight.dispose();
   doubleWordLight.dispose();
   quadLetterLight.dispose();
   tripleLetterLight.dispose();
   doubleLetterLight.dispose();
   tileDark.dispose();
   textColor.dispose();
   tileLight.dispose();
   tileFill.dispose();
   tileRackFill.dispose();
   tileLightHighlight.dispose();
   tileDarkHighlight.dispose();
   coordinateColor.dispose();
   coordinateFont.dispose();
   arrowForeground.dispose();
   arrowBackground.dispose();
   tileRackBorder.dispose();
   boardBorder.dispose();
   super.dispose();
 }
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.ui.part.WorkbenchPart#dispose()
  */
 @Override
 public void dispose() {
   if (_listener != null) {
     TransactionManager.instance().removeTransactionManagerListener(_listener);
   }
   super.dispose();
 }
Ejemplo n.º 6
0
 @Override
 public void dispose() {
   getSite().getPage().removePartListener(trackRelevantEditorsPartListener);
   clearSWTXMLConnection();
   clearPropertiesFileConnection();
   super.dispose();
 }
Ejemplo n.º 7
0
 @Override
 public void dispose() {
   JmsLogsPlugin.getDefault()
       .getPluginPreferences()
       .removePropertyChangeListener(propertyChangeListener);
   super.dispose();
 }
  @Override
  public void dispose() {
    getSite().getPage().removePartListener(fPartListener);

    Enumeration<IMemoryViewPane> enumeration = fViewPanes.elements();
    while (enumeration.hasMoreElements()) {
      Object element = enumeration.nextElement();
      if (element instanceof IMemoryViewPane) {
        ((IMemoryViewPane) element).dispose();
      }
    }

    fViewPaneControls.clear();

    IViewSite viewSite = getViewSite();
    String secondaryId = viewSite.getSecondaryId();
    if (secondaryId != null) MemoryViewIdRegistry.deregisterView(secondaryId);

    fSyncService.shutdown();

    if (fAddHandler != null) fAddHandler.dispose();

    if (fToggleMonitorsHandler != null) fToggleMonitorsHandler.dispose();

    if (fNextMemoryBlockHandler != null) fNextMemoryBlockHandler.dispose();

    super.dispose();
  }
  @Override
  public void dispose() {
    Activator.getDefault()
        .removeTapestryProjectListener(getViewSite().getWorkbenchWindow(), tapestryContextListener);

    super.dispose();
  }
Ejemplo n.º 10
0
  @Override
  public void dispose() {
    if (copyAction != null) {
      copyAction.dispose();
      copyAction = null;
    }

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

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

    if (fontPropertyChangeListener != null) {
      JFaceResources.getFontRegistry().removeListener(fontPropertyChangeListener);
      fontPropertyChangeListener = null;
    }

    MarkersChangeService.getService().removeListener(this);

    super.dispose();
  }
Ejemplo n.º 11
0
 @Override
 public void dispose() {
   if (composite != null) {
     composite.dispose();
   }
   super.dispose();
 }
Ejemplo n.º 12
0
 @Override
 public void dispose() {
   clockUpdater.setTerminated(true);
   super.dispose();
   DebugUITools.getDebugContextManager().removeDebugContextListener(this);
   DebugPlugin.getDefault().removeDebugEventListener(this);
   font.dispose();
 }
  @Override
  public void dispose() {
    // on disposal remove the selection listener
    ISelectionService s = getSite().getWorkbenchWindow().getSelectionService();
    s.removeSelectionListener(selectionListener);

    super.dispose();
  }
Ejemplo n.º 14
0
 @Override
 public void dispose() {
   /*
    * GlobalEvents.getInstance().removeSelectionListener(this);
    * cv.getConfigurer().getContentProvider().stopListening();
    */
   super.dispose();
 }
Ejemplo n.º 15
0
 @Override
 public void dispose() {
   super.dispose();
   for (IWorkbenchAction action : actionsToDispose) action.dispose();
   ADDED.dispose();
   DELETED.dispose();
   SAME_CONTENT.dispose();
 }
 @Override
 public void dispose() {
   defaultComponent.dispose();
   for (ViewersMultiSandboxViewComponent c : additionalComponents) {
     c.dispose();
   }
   getSite().getPage().removeSelectionListener(forwardRevealListener);
   super.dispose();
 }
Ejemplo n.º 17
0
  @Override
  public void dispose() {
    if (taskModel != null) {
      taskModel.dispose();
      taskModel = null;
    }

    super.dispose();
  }
Ejemplo n.º 18
0
  @Override
  public void dispose() {
    toplevel.kill();
    toplevel.dispose();
    super.dispose();

    if (this.equals(OcamlPlugin.getLastFocusedToplevelInstance()))
      OcamlPlugin.setLastFocusedToplevelInstance(null);
  }
Ejemplo n.º 19
0
 public void dispose() {
   super.dispose();
   if (ibuffer != null && ibuffer.isDisposed() == false) {
     ibuffer.dispose();
   }
   if (this.thread != null) {
     this.thread.shutdown();
   }
 }
 @Override
 public void dispose() {
   super.dispose();
   if (listener != null)
     DebugUITools.getDebugContextManager().removeDebugContextListener(listener);
   /* getState().removeListener(stateListener); */
   if (selectionSynchronizer != null) {
     selectionSynchronizer.dispose();
   }
 }
Ejemplo n.º 21
0
  @Override
  public void dispose() {
    if (getActionGroup() != null) {
      getActionGroup().dispose();
    }

    Workspace.getInstance().uninstallResourceListener(this);
    //		ProjectBuilder.removePropertyChangeListener(this);
    super.dispose();
  }
 /** {@inheritDoc} */
 @Override
 public void dispose() {
   cmrRepositoryManager.removeCmrRepositoryChangeListener(this);
   InspectIT.getDefault()
       .getInspectITConfigurationInterfaceManager()
       .removeProfileChangeListener(this);
   InspectIT.getDefault()
       .getInspectITConfigurationInterfaceManager()
       .removeEnvironmentChangeListener(this);
   super.dispose();
 }
Ejemplo n.º 23
0
 @Override
 public void dispose() {
   for (MarketDataViewItem item : mItemMap.values()) {
     item.dispose();
   }
   mItemMap = null;
   mItems = null;
   if (mClipboard != null) {
     mClipboard.dispose();
   }
   super.dispose();
 }
Ejemplo n.º 24
0
 @Override
 public void dispose() {
   if (canvas3D != null) {
     canvas3D.dispose();
     canvas3D = null;
   }
   lastSceneRef = null;
   getSite()
       .getWorkbenchWindow()
       .getSelectionService()
       .removePostSelectionListener(SceneExplorerView.VIEW_ID, this);
   super.dispose();
 }
Ejemplo n.º 25
0
 @Override
 public void dispose() {
   if (checkIocStatusJob != null) {
     checkIocStatusJob.cancel();
   }
   IContextService cs =
       (IContextService) PlatformUI.getWorkbench().getService(IContextService.class);
   if (cs != null && contextActivation != null) {
     cs.deactivateContext(contextActivation);
     contextActivation = null;
   }
   getSite().getPage().removePartListener(tomoPartAdapter);
   super.dispose();
 }
Ejemplo n.º 26
0
 @Override
 public void dispose() {
   if (job != null) {
     if (job.getState() == Job.RUNNING) job.cancel();
     job = null;
   }
   getSite().getPage().removePartListener(editorListener);
   if (featureModelEditor != null) {
     featureModelEditor.getOriginalFeatureModel().removeListener(modelListener);
     featureModelEditor.getFeatureModel().removeListener(modelListener);
     featureModelEditor = null;
   }
   super.dispose();
 }
Ejemplo n.º 27
0
 @Override
 public void dispose() {
   // Unregister the listener
   if (null != resourceListChangedListener) {
     UiListenerHandler.getInstance()
         .removeResourceListChangedUIListener(resourceListChangedListener);
     resourceManager.resourceSelectionChanged(null);
   }
   if (null != resourcePropertiesChangedListener) {
     UiListenerHandler.getInstance()
         .removeResourcePropertiesChangedUIListener(resourcePropertiesChangedListener);
   }
   super.dispose();
 }
Ejemplo n.º 28
0
  @Override
  public void dispose() {
    if (fViewer != null) {
      getViewSite().getPage().removePostSelectionListener(this);
      getViewSite().getPage().removePartListener(fPartListener);
      fViewer = null;
    }
    if (fActionGroups != null) {
      fActionGroups.dispose();
      fActionGroups = null;
    }

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

    super.dispose();
  }
Ejemplo n.º 29
0
  /* (non-Javadoc)
   * @see org.eclipse.ui.part.WorkbenchPart#dispose()
   */
  @Override
  public void dispose() {
    view.removeViewChangeListener(viewChangeListener);

    if (subsetHistory != null) {
      PropertyChangeSupport propertyChangeSupport =
          (PropertyChangeSupport) subsetHistory.getAdapter(PropertyChangeSupport.class);
      if (propertyChangeSupport != null) {
        propertyChangeSupport.removePropertyChangeListener(propertyChangeListener);
      }
    }

    if (UIActivator.getDefault() != null) {
      IPreferenceStore preferences = UIActivator.getDefault().getPreferenceStore();
      preferences.removePropertyChangeListener(preferenceChangeListener);
    }

    super.dispose();
  }
  public void dispose() {
    if (fContextActivation != null) {
      IContextService ctxService = (IContextService) getSite().getService(IContextService.class);
      if (ctxService != null) {
        ctxService.deactivateContext(fContextActivation);
      }
    }
    if (fViewer != null) {
      getViewSite().getPage().removePostSelectionListener(this);
      getViewSite().getPage().removePartListener(fPartListener);
      fViewer = null;
    }
    if (fActionGroups != null) fActionGroups.dispose();

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

    super.dispose();
  }