Package org.eclipse.team.ui.synchronize

Examples of org.eclipse.team.ui.synchronize.ISynchronizeManager


    setPageComplete(false);
   
    if (_runtime != null) {
      try {
        // try to init user and password from existing participant
        ISynchronizeManager manager = TeamUI.getSynchronizeManager();
        ISynchronizeParticipantReference[] participantRefs = manager.getSynchronizeParticipants();
        for (ISynchronizeParticipantReference reference : participantRefs) {
          if (reference.getParticipant() != null && reference.getParticipant() instanceof WGARemoteServerSynchronizationParticipant) {
            WGARemoteServerSynchronizationParticipant participant = (WGARemoteServerSynchronizationParticipant) reference.getParticipant();
            if (participant.getRuntime() != null && participant.getRuntime().getName().equals(_runtime.getName())) {
              // init user and password from existing participant
View Full Code Here


            }
        }

        try {
      WGARemoteServerSynchronizationParticipant participant = new WGARemoteServerSynchronizationParticipant(server, _runtime);
      ISynchronizeManager manager = TeamUI.getSynchronizeManager();
      manager.addSynchronizeParticipants(new ISynchronizeParticipant[] {participant});
      ISynchronizeView view = manager.showSynchronizeViewInActivePage();
      view.display(participant);
      return true;
    } catch (Throwable e) {
      WorkbenchUtils.showErrorDialog(WGADesignerPlugin.getDefault(), getShell(), "Unable to initialize synchronization", "Unable to initialize synchronization with WGA server '" + server.getUrl().toString() + "'.", e);
      return false;
View Full Code Here

        }

        try {
            prepareSyncParticipant();

            ISynchronizeManager manager = TeamUI.getSynchronizeManager();
            manager.addSynchronizeParticipants(new ISynchronizeParticipant[] { syncParticipant });
            ISynchronizeView view = manager.showSynchronizeViewInActivePage();
            view.display(syncParticipant);
            syncParticipant.reset();

        } catch (InterruptedException e) {
            logger.warn("Operation canceled: " + e.getMessage());
View Full Code Here

        }

        // TODO: implement refreshing: this is not the right way to do that, there should be some listener that handles
        // refreshing the UI, and avoids the double refresh that actually occurs when first displaying the sync view
        // to have a proper refresh we should have state caching
        final ISynchronizeManager manager = TeamUI.getSynchronizeManager();
        Display display = PlatformUI.getWorkbench().getDisplay();
        display.asyncExec(new Runnable() {
            public void run() {
                ISynchronizeView view = manager.showSynchronizeViewInActivePage();
                ISynchronizeParticipant participant = view.getParticipant();
                if (participant instanceof SubscriberParticipant) {
                    SubscriberParticipant sp = (SubscriberParticipant) participant;
                    if (logger.isDebugEnabled()) {
                        logger.debug("Reset component subscriber...");
View Full Code Here

TOP

Related Classes of org.eclipse.team.ui.synchronize.ISynchronizeManager

Copyright © 2018 www.massapicom. 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.