Ejemplo n.º 1
0
  @Override
  public void dispose() {
    super.dispose();

    getWorkbenchPart()
        .getSite()
        .getWorkbenchWindow()
        .getWorkbench()
        .removeWindowListener(windowListener);
    ((GraphicalEditPart) fGraphicalViewer.getRootEditPart())
        .getFigure()
        .removeMouseListener(mouseListener);

    fGraphicalViewer = null;
  }
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.gef.ui.actions.SelectionAction#dispose()
  */
 public void dispose() {
   if (window != null) {
     window.close();
   }
   super.dispose();
 }