Examples of execute()


Examples of org.eclipse.egit.core.op.UntrackOperation.execute()

    assertTrackedState(fileArr, true);

    UntrackOperation utop = new UntrackOperation(Arrays.asList(fileArr));

    utop.execute(new NullProgressMonitor());

    assertTrackedState(fileArr, false);
  }

  @SuppressWarnings("boxing")
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commands.shared.AbstractRebaseCommandHandler.execute()

        return AbstractRebaseHistoryCommandHandler.this
            .createRebaseOperation(
            repository2, ref);
      }
    };
    rebaseCurrentRef.execute(repository);
    return null;
  }

  /**
   * Factory method delegating creation of RebaseOperation to concrete
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commands.shared.RebaseCurrentRefCommand.execute()

    // Because the enabled state is for both starting a new rebase as well
    // as working with an existing rebase, it can be that this is executed
    // even though starting a new rebase is not possible. So check enabled
    // state again here. See also isEnabled.
    if (rebaseCurrent.isEnabled())
      return rebaseCurrent.execute(event);
    else
      return null;
  }

  @Override
View Full Code Here

Examples of org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute()

          config, timeout, false);
      fetchOperationUI.setCredentialsProvider(new EGitCredentialsProvider());
      SubMonitor subMonitor = SubMonitor.convert(monitor);

      try {
        fetchOperationUI.execute(subMonitor);
        gsd.updateRevs();
      } catch (Exception e) {
        showInformationDialog(remoteName);
        Activator.logError(e.getMessage(), e);
      }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.pull.PullOperationUI.execute()

        Set<Repository> repositories = new HashSet<Repository>();
        for (GitSynchronizeData gsd : gsds)
          repositories.add(gsd.getRepository());

        PullOperationUI pull = new PullOperationUI(repositories);
        pull.execute(monitor);
      }
    };
  }

  @Override
View Full Code Here

Examples of org.eclipse.egit.ui.internal.push.PushOperationUI.execute()

        "+refs/heads/*:refs/heads/*");

    myRepository.getConfig().save();
    // and push
    PushOperationUI pa = new PushOperationUI(myRepository, "push", false);
    pa.execute(null);

    try {
      // delete the stable branch again
      RefUpdate op = myRepository.updateRef("refs/heads/stable");
      op.setRefLogMessage("branch deleted", //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.emf.common.command.BasicCommandStack.execute()

        }
      } catch (IOException e) {
        Status status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
        ErrorUtils.showErrorWithLogging(status);
      }
      basicCommandStack.execute(new RecordingCommand(getEditingDomain()) {

        @Override
        protected void doExecute() {
          importDiagram();
        }
View Full Code Here

Examples of org.eclipse.emf.common.command.Command.execute()

                  createChildrenCommand = new CreateChildrenFromJavaModelCommand(pack, Flags.AccPublic, false);
                } else if (initialObjectCreationPage.recursiveChildrenButton.getSelection()) {
                  createChildrenCommand = new CreateChildrenFromJavaModelCommand(pack, Flags.AccPublic, true);
                }
                if (createChildrenCommand != null && createChildrenCommand.canExecute()) {
                  createChildrenCommand.execute();
                }
              }
              // Save the contents of the resource to the file system.
              //
              Map options = new HashMap();
View Full Code Here

Examples of org.eclipse.emf.common.command.CommandStack.execute()

    final TransactionalEditingDomain editingDomain = DiagramEditorFactory.createResourceSetAndEditingDomain();
    final ResourceSet resourceSet = editingDomain.getResourceSet();
    // Create a resource for this file.
    final Resource resource = resourceSet.createResource(diagramResourceUri);
    final CommandStack commandStack = editingDomain.getCommandStack();
    commandStack.execute(new RecordingCommand(editingDomain) {

      @Override
      protected void doExecute() {
        resource.setTrackingModification(true);
        resource.getContents().add(diagram);
View Full Code Here

Examples of org.eclipse.emf.common.command.CompoundCommand.execute()

    for (EObject element : elements) {
      createCreateLinkCommand(cmd, element);
    }
    setOverride(cmd);
    if (cmd.canExecute())
      cmd.execute();
  }

  /**
   * Adds to the provided compound command to create a link from a proxy for
   * element to the drop target. If a proxy already exists, it is reused. If a
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.