Examples of LaunchTypeNode


Examples of com.eclipserunner.model.impl.LaunchTypeNode

  protected void assertEqualsTypeNodeArrays(Object[] elements, Object[] typeNodes) {
    if (elements.length != typeNodes.length) {
      Assert.fail();
    }
    for (int i = 0; i < elements.length; i++) {
      LaunchTypeNode node1 = (LaunchTypeNode) elements[i];
      LaunchTypeNode node2 = (LaunchTypeNode) typeNodes[i];

      if (!node1.getLaunchConfigurationType().equals(node2.getLaunchConfigurationType())) {
        Assert.fail();
      }
    }
  }
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchTypeNode

    }
    return typeNode.toArray();
  }

  protected LaunchTypeNode asLaunchConfigurationTypeNode(ILaunchConfigurationType type, ICategoryNode category) {
    LaunchTypeNode node = mock(LaunchTypeNode.class);
    when(node.getLaunchConfigurationType()).thenReturn(type);
    when(node.getCategoryNode()).thenReturn(category);
    return node;
  }
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchTypeNode

    assertFalse(launchNodeSelected);
  }
 
  @Test
  public void ensureThatLaunchTypeNodeIsSelected() throws Exception {
    when(strucuredSelection.getFirstElement()).thenReturn(new LaunchTypeNode());
   
    boolean launchNodeSelected = selection.firstNodeHasType(LaunchTypeNode.class);
   
    assertTrue(launchNodeSelected);
  }
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchTypeNode

    assertFalse(canBeRenamed);
  }
 
  @Test
  public void ensureThatSelectionCannotBeRenamedWhenOneSelectedElementIsNotRenamable() throws Exception {
    LaunchTypeNode typeNode = new LaunchTypeNode();
   
    List<Object> expected = Arrays.asList(
      (Object) typeNode
    );
     
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchTypeNode

    List<LaunchTypeNode> launchTypeNodes = new ArrayList<LaunchTypeNode>();
    for (ILaunchNode launchNode : categoryNode.getLaunchNodes()) {
      try {
        ILaunchConfigurationType type = launchNode.getLaunchConfiguration().getType();
        if (!isTypeOnTheList(type, launchTypeNodes)) {
          LaunchTypeNode launchNodeType = new LaunchTypeNode();
          launchNodeType.setCategoryNode(categoryNode);
          launchNodeType.setLaunchConfigurationType(type);

          launchTypeNodes.add(launchNodeType);
        }
      } catch (CoreException e) {
      }
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.