Examples of dispose()


Examples of org.eclipse.ecf.presence.chatroom.IChatRoomContainer.dispose()

      toNotify = new ArrayList(chatrooms);
      chatrooms.clear();
    }
    for (final Iterator i = toNotify.iterator(); i.hasNext();) {
      final IChatRoomContainer cc = (IChatRoomContainer) i.next();
      cc.dispose();
    }
  }

  public void dispose() {
    synchronized (invitationListeners) {
View Full Code Here

Examples of org.eclipse.ecf.provider.generic.TCPServerSOContainer.dispose()

  protected synchronized void destroyServers() {
    for (final Iterator i = servers.iterator(); i.hasNext();) {
      final TCPServerSOContainer s = (TCPServerSOContainer) i.next();
      if (s != null) {
        try {
          s.dispose();
        } catch (final Exception e) {
          ClientPlugin.log("Exception destroying server " + s.getConfig().getID()); //$NON-NLS-1$
        }
      }
    }
View Full Code Here

Examples of org.eclipse.egit.core.internal.rebase.RebaseInteractivePlan.dispose()

          private void finishRebaseInteractive() {
            RebaseInteractivePlan plan = RebaseInteractivePlan
                .getPlan(repository);
            if (plan != null && !plan.isRebasingInteractive())
              plan.dispose();
          }
        });
  }

  private void handleUncommittedChanges(final Repository repository,
View Full Code Here

Examples of org.eclipse.egit.core.test.TestProject.dispose()

      IgnoreOperation operation = executeIgnore(ignoreme.getLocation());
      String content = nested.getFileContent("please/.gitignore");
      assertEquals("/ignoreme\n", content);
      assertFalse(operation.isGitignoreOutsideWSChanged());
    } finally {
      nested.dispose();
    }
  }

  private IgnoreOperation executeIgnore(IPath... paths) throws Exception {
    final IgnoreOperation operation = new IgnoreOperation(Arrays.asList(paths));
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.CommitProposalProcessor.dispose()

    assistant.enableAutoInsert(true);
    final CommitProposalProcessor processor = getCommitProposalProcessor();
    getTextWidget().addDisposeListener(new DisposeListener() {

      public void widgetDisposed(DisposeEvent e) {
        processor.dispose();
      }
    });
    assistant.setContentAssistProcessor(processor, IDocument.DEFAULT_CONTENT_TYPE);
    return assistant;
  }
View Full Code Here

Examples of org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider.dispose()

                    Glyph.geometry(Color.GREEN, Color.BLUE));
            image = (Image) fac.getImage(layer);
            assertSame(image, image2);
           
        } finally {
            fac.dispose();
            itemProvider.dispose();
        }
    }

    @Test
View Full Code Here

Examples of org.eclipse.emf.transaction.TransactionalEditingDomain.dispose()

          } catch (IOException e) {
            e.printStackTrace();
          }
        }
        }finally{
          domain.dispose();
        }
      }
    }

    @Override
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry.dispose()

    this.activeConfig = null;

    // dispose the ActionRegistry (will dispose all actions)
    ActionRegistry actionRegistry = getActionRegistry();
    if (actionRegistry != null) {
      actionRegistry.dispose();
    }
    // important: always call super implementation of dispose
    if (getDiagramTypeProvider() != null)
      super.dispose();
  }
View Full Code Here

Examples of org.eclipse.jdt.debug.eval.IAstEvaluationEngine.dispose()

    if (fEngines != null) {
      Iterator<IAstEvaluationEngine> engines = fEngines.values().iterator();
      while (engines.hasNext()) {
        IAstEvaluationEngine engine = engines
            .next();
        engine.dispose();
      }
      fEngines.clear();
    }
    fVirtualMachine = null;
    setThreadStartHandler(null);
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider.dispose()

  }
 
  private ImageDescriptor getImageDescriptor(HistoryDefinitionLocation elem) {
    JavaElementImageProvider imageProvider= new JavaElementImageProvider();
    ImageDescriptor desc = JavaPluginImages.DESC_FIELD_DEFAULT;
    imageProvider.dispose();
    return desc;
  }
 
  /*
   * @see Action#run()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.