Examples of ILaunchNode


Examples of com.eclipserunner.model.ILaunchNode

    return allNodesHaveSameType();
  }
 
  public boolean canBeOpened() {
    if (hasExactlyOneNode() && firstNodeHasType(ILaunchNode.class)) {
      ILaunchNode launchNode = getFirstNodeAs(ILaunchNode.class);
      ILaunchConfiguration configuration = launchNode.getLaunchConfiguration();
      try {
        for (IResource res : configuration.getMappedResources()) {
          if (res instanceof IFile) {
            return true;
          }
View Full Code Here

Examples of com.eclipserunner.model.ILaunchNode

    }
    return nodes;
  }

  protected ILaunchNode setupLaunchNodeMock(ILaunchConfiguration configuration, ICategoryNode category) {
    ILaunchNode node = mock(ILaunchNode.class);
    when(node.getLaunchConfiguration()).thenReturn(configuration);
    when(node.getCategoryNode()).thenReturn(category);
    return node;
  }
View Full Code Here

Examples of com.eclipserunner.model.ILaunchNode

  protected void assertEqualsLaunchConfigurationNodeArray(Object[] elements, ILaunchConfiguration ...configs) {
    if (elements.length != configs.length) {
      Assert.fail();
    }
    for (int i = 0; i < elements.length; i++) {
      ILaunchNode node = (ILaunchNode) elements[i];
      if (!node.getLaunchConfiguration().equals(configs[i])) {
        Assert.fail();
      }
    }
  }
View Full Code Here

Examples of com.eclipserunner.model.ILaunchNode

      }
    }

    // add remaining configurations
    for(ILaunchConfiguration launchConfiguration : launchConfigurations) {
      ILaunchNode launchNode = new LaunchNode();
      launchNode.setLaunchConfiguration(launchConfiguration);
      runnerModel.addLaunchNode(launchNode);
    }
  }
View Full Code Here

Examples of com.eclipserunner.model.ILaunchNode

  public String getText(Object element) {
    if (element instanceof ICategoryNode) {
      return ((ICategoryNode) element).getName();
    }
    else if (element instanceof ILaunchNode) {
      ILaunchNode launchConfiguration = (ILaunchNode) element;
      return debugModelPresentation.getText(launchConfiguration.getLaunchConfiguration());
    }
    else if (element instanceof ILaunchTypeNode) {
      return debugModelPresentation.getText(((ILaunchTypeNode) element).getLaunchConfigurationType());
    }
    return debugModelPresentation.getText(element);
View Full Code Here

Examples of com.eclipserunner.model.ILaunchNode

  }

  public void removeCategoryNode(ICategoryNode categoryNode) {
    // Iterator in order to avoid java.util.ConcurrentModificationException
    for (Iterator<ILaunchNode> launchNodeIterator = categoryNode.getLaunchNodes().iterator(); launchNodeIterator.hasNext();) {
      ILaunchNode launchNode = launchNodeIterator.next();
      launchNodeIterator.remove();
      deleteLaunchConfigurationFile(launchNode.getLaunchConfiguration());
    }
    categoryNodes.remove(categoryNode);
    categoryNode.removeCategoryNodeChangeListener(this);
    fireModelChangedEvent();
  }
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.