Examples of execute()


Examples of org.intellij.vcs.mks.sicommands.cli.GetContentRevision.execute()

    if (VcsRevisionNumber.NULL.equals(myRevision)) {
      return null;
    } else {
      GetContentRevision getRevisionCommand = new GetContentRevision(new ArrayList<VcsException>(), mksvcs,
          this.getRevisionNumber(), this.getFile().getPath());
      getRevisionCommand.execute();
      return getRevisionCommand.getContent();
    }
  }

  @NotNull
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.cli.GetRevisionInfo.execute()

    }

    private GetRevisionInfo getRevisionInfo(@NotNull final VirtualFile virtualFile, final ArrayList<VcsException> errors) {
        GetRevisionInfo command = new GetRevisionInfo(errors, mksVcs, virtualFile.getPath(),
            VfsUtil.virtualToIoFile(virtualFile.getParent()));
        command.execute();
        if (command.errors.isEmpty()) {
            return command;
        } else //noinspection ThrowableResultOfMethodCallIgnored
            if (errors.size() == 1 && errors.get(0).getMessage().equals(GetRevisionInfo.NOT_A_MEMBER)) {
                Runnable runnable = new Runnable() {
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.cli.LockMemberCommand.execute()

    }

    private void lock(MksSandboxInfo sandbox, MksChangePackage aPackage, String[] pathsToUnlock) {
        final LockMemberCommand lockCmd = new LockMemberCommand(new ArrayList<VcsException>(), mksVcs, sandbox,
            aPackage, pathsToUnlock);
        lockCmd.execute();
    }

    private void unlock(MksSandboxInfo sandbox, String[] pathsToUnlock) {
        final UnlockMemberCommand unlockCmd =
            new UnlockMemberCommand(new ArrayList<VcsException>(), mksVcs, sandbox, pathsToUnlock);
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.cli.RenameChangePackage.execute()

//      logger.debug(
            logger.debug("renaming MKS CP [" + mksChangePackage.getId() + "] => \"" + name + "\"");
        }
        RenameChangePackage renameChangePackage =
            new RenameChangePackage(new ArrayList<VcsException>(), mksVcs, mksChangePackage, name);
        renameChangePackage.execute();
        if (renameChangePackage.foundError()) {
            logger.error("error renaming change package " + mksChangePackage);
        }
    }
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.cli.ResyncCommand.execute()

        relativePaths[i++] = entry.getKey().getRelativePath(file, '/');
      }

      final ResyncCommand resyncCommand =
          new ResyncCommand(exceptions, mksVcs, entry.getKey().sandboxPath, relativePaths);
      resyncCommand.execute();
    }
  }

  @NotNull
  public String getActionName(@NotNull AbstractVcs vcs) {
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.cli.SandboxesCommand.execute()

  }

  public SandboxesCommand executeCommand(String outputFile) {
    final SandboxesCommand command = createCommand(new ArrayList<VcsException>(), outputFile);
    command.execute();
    return command;
  }

  private SandboxesCommand createCommand(final List<VcsException> errors, final String outputFile) {
    MksCLIConfiguration mksCLIConfiguration = new MksCLIConfiguration() {
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.cli.UnlockMemberCommand.execute()

    }

    private void unlock(MksSandboxInfo sandbox, String[] pathsToUnlock) {
        final UnlockMemberCommand unlockCmd =
            new UnlockMemberCommand(new ArrayList<VcsException>(), mksVcs, sandbox, pathsToUnlock);
        unlockCmd.execute();
    }

    /**
     * Lookup is done using the cpid, not the cp name. This allows looking up a changelist even the change package has been renamed
     *
 
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.cli.ViewSandboxRemoteChangesCommand.execute()

    final ArrayList<VcsException> exceptions = new ArrayList<VcsException>();
    for (final MksSandboxInfo sandbox : sandboxes) {
      final AbstractViewSandboxCommand command =
          new ViewSandboxRemoteChangesCommand(exceptions, mksVcs, sandbox.sandboxPath);
      command.execute();
      for (final Map.Entry<String, MksMemberState> entry : command.getMemberStates().entrySet()) {
        final MksMemberState state = entry.getValue();
        switch (state.status) {
          case REMOTELY_ADDED:
            updatedFiles.getGroupById(FileGroup.CREATED_ID)
View Full Code Here

Examples of org.izi.binding.Binding.BindingRegistration.execute()

      BindingRegistration registration =
         bind().textOf(component).after(EventRegistrations.never()).to(model, ModelForTests.VALUE);
      component.setText("Text");
      assertEquals("", model.getValue());
      // when
      registration.execute();
      // then
      assertEquals("Text", model.getValue());
   }

   @Test
View Full Code Here

Examples of org.jacoco.ant.ReportTask.execute()

    sourcefiles.add(sourcepath);
   
    // report output folder
    task.createHtml().setDestdir(mxtest.getCoverageReports());
   
    task.execute();
  }
}
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.