Package org.intellij.vcs.mks.sicommands

Examples of org.intellij.vcs.mks.sicommands.SandboxInfo


        final SandboxesCommand command = new SandboxesCommandTest().executeCommand(SandboxesCommandTest.FILE_1);
        final ArrayList<SandboxInfo> oldList = command.result;

        final ArrayList<SandboxInfo> newList = new ArrayList<SandboxInfo>(oldList);
        final SandboxInfo sandboxInfo = oldList.get(2);
        final SandboxInfo newSandboxInfo = new SandboxInfo(sandboxInfo.sandboxPath, sandboxInfo.serverHostAndPort, sandboxInfo.projectPath, "newDevpath");
        newList.set(2, newSandboxInfo);
        final SandboxListSynchronizerImpl synchronizer = new SandboxListSynchronizerImpl(null);

        final ArrayList<SandboxListListener> listeners = new ArrayList<SandboxListListener>();
        final List<String> sandboxAdded = new ArrayList<String>();
View Full Code Here


        final SandboxesCommand command = new SandboxesCommandTest().executeCommand(SandboxesCommandTest.FILE_1);
        final ArrayList<SandboxInfo> oldList = command.result;

        final ArrayList<SandboxInfo> newList = new ArrayList<SandboxInfo>(oldList);
        final SandboxInfo sandboxInfo = oldList.get(oldList.size() - 1);

        final SandboxInfo newSandboxInfo = new SandboxInfo(sandboxInfo.sandboxPath.replace("c:", "d:"), sandboxInfo.serverHostAndPort, sandboxInfo.projectPath, sandboxInfo.projectVersion);
        newList.add(newSandboxInfo);
        final SandboxListSynchronizerImpl synchronizer = new SandboxListSynchronizerImpl(null);

        final ArrayList<SandboxListListener> listeners = new ArrayList<SandboxListListener>();
        final List<String> sandboxAdded = new ArrayList<String>();
View Full Code Here

                                         ArrayList<SandboxListListener> listeners) {
        int oldIndex = 0;
        int newIndex = 0;

        while (oldIndex < oldList.size() && newIndex < newList.size()) {
            final SandboxInfo oldSandbox = oldList.get(oldIndex);
            final SandboxInfo newSandbox = newList.get(newIndex);

            final int compareCode = oldSandbox.sandboxPath.compareTo(newSandbox.sandboxPath);
            if (0 == compareCode) {
                if (!oldSandbox.equals(newSandbox)) {
                    fireSandboxUpdated(newSandbox, listeners);
View Full Code Here

          String sandboxPath = matcher.group(SANDBOX_PATH_GROUP_IDX);
          String projectPath = matcher.group(PROJECT_PATH_GROUP_IDX);
          String projectType = matcher.group(PROJECT_TYPE_GROUP_IDX);
          String projectVersion = matcher.group(PROJECT_VERSION_GROUP_IDX);
          String serverHostAndPort = matcher.group(SERVER_GROUP_IDX);
          final SandboxInfo info =
              resolveSandbox(sandboxPath, serverHostAndPort, projectPath, projectVersion);
          result.add(info);
        }
      }
    } catch (IOException e) {
View Full Code Here

  }

  private SandboxInfo resolveSandbox(String sandboxPath, String serverHostAndPort, String projectPath,
                     String projectVersion) {
    boolean isSubSandbox = isSubSandbox(projectPath);
    SandboxInfo info;
    if (isSubSandbox) {
      if (currentTopSandbox == null) {
        throw new IllegalStateException("encountering a subsandbox without its containing sandbox");
      }
      info = new SandboxInfo(currentTopSandbox, sandboxPath, projectPath, projectVersion);
    } else {
      if (projectPath.indexOf('/') < 0) {
        throw new IllegalStateException("projectPath [" + projectPath + "] does not contain /");
      }
      info = new SandboxInfo(sandboxPath, serverHostAndPort, projectPath, projectVersion);
      currentTopSandbox = info;
    }
    return info;
  }
View Full Code Here

                String projectName = sandboxWorkItem.getField("projectName").getValueAsString();
                String buildRevision = sandboxWorkItem.getField("buildRevision").getValueAsString();
                String devPath = sandboxWorkItem.getField("developmentPath").getValueAsString();
                boolean isSubsandbox = sandboxWorkItem.getField("isSubsandbox").getBoolean();
                SandboxInfo sandbox;
                if (!isSubsandbox) {
                    sandbox = new SandboxInfo(sandboxName,server,projectName,buildRevision, devPath);
                } else {
                    String parentSandbox = sandboxWorkItem.getField("parentSandbox").getValueAsString();
                    sandbox = new SandboxInfo(sandboxesByPath.get(parentSandbox), sandboxName, projectName, buildRevision, devPath);
                }
                sandboxesByPath.put(sandboxName, sandbox);
                tempSandboxes.add(sandbox);
            }
            sandboxesByPath.clear();
View Full Code Here

TOP

Related Classes of org.intellij.vcs.mks.sicommands.SandboxInfo

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.