Examples of LaunchNode


Examples of com.eclipserunner.model.impl.LaunchNode

    assertEquals(1, actual.size());
  }
 
  @Test
  public void ensureThatLaunchNodeIsSelected() throws Exception {
    when(strucuredSelection.getFirstElement()).thenReturn(new LaunchNode());
   
    boolean launchNodeSelected = selection.firstNodeHasType(LaunchNode.class);
   
    assertTrue(launchNodeSelected);
  }
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

 
  @Test
  public void shouldReturnLaunchNodesWhenNothingElseIsSelected() throws Exception {
    ILaunchConfiguration configuration = mock(ILaunchConfiguration.class);
   
    LaunchNode launchNode = new LaunchNode();
    launchNode.setLaunchConfiguration(configuration);
   
    List<Object> expected = Arrays.asList(
      (Object) launchNode
    );
   
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

 
  @Test
  public void shouldReturnLaunchNodesWhenMoreTypesOrSelected() throws Exception {
    ILaunchConfiguration configuration = mock(ILaunchConfiguration.class);
   
    LaunchNode launchNode = new LaunchNode();
    launchNode.setLaunchConfiguration(configuration);
   
    List<Object> expected = Arrays.asList(
      (Object) launchNode, "aaaa"
    );
   
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

    assertEquals(nodes.size(), 0);
  }
 
  @Test
  public void ensureThatSelectionCanBeLaunched() throws Exception {
    LaunchNode launchNode = new LaunchNode();
   
    when(strucuredSelection.getFirstElement()).thenReturn(launchNode);
    when(strucuredSelection.size()).thenReturn(1);
   
    boolean canBeLaunched = selection.canBeLaunched();
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

    assertTrue(canBeLaunched);
  }
 
  @Test
  public void ensureThatSelectionCannotBeLaunchedWhenMoreElementsAreSelected() throws Exception {
    LaunchNode launchNode = new LaunchNode();
   
    when(strucuredSelection.getFirstElement()).thenReturn(launchNode);
    when(strucuredSelection.size()).thenReturn(2);
   
    boolean canBeLaunched = selection.canBeLaunched();
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

    assertFalse(canBeLaunched);
  }
 
  @Test
  public void ensureThatSelectionCanBeRenamed() throws Exception {
    LaunchNode launchNode = new LaunchNode();
   
    List<Object> expected = Arrays.asList(
      (Object) launchNode
    );
     
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

    assertTrue(canBeRenamed);
  }
 
  @Test
  public void ensureThatSelectionCannotBeRenamedWhenTwoTypesAreSelected() throws Exception {
    LaunchNode launchNode = new LaunchNode();
    CategoryNode categoryNode = new CategoryNode("aaa");
   
    List<Object> expected = Arrays.asList(
      (Object) launchNode, categoryNode
    );
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

      }
    }

    // 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.impl.LaunchNode

   */
  public static void readDefaultRunnerModel() throws CoreException {
    IRunnerModel runnerModel = getDefaultModel();
    ILaunchManager launchManager = getLaunchManager();
    for (ILaunchConfiguration launchConfiguration : launchManager.getLaunchConfigurations()) {
      LaunchNode launchNode = new LaunchNode();
      launchNode.setLaunchConfiguration(launchConfiguration);
      runnerModel.getDefaultCategoryNode().add(launchNode);
    }
  }
View Full Code Here

Examples of com.eclipserunner.model.impl.LaunchNode

    }
    return null;
  }

  private static ILaunchNode createLaunchCategory(ILaunchConfiguration launchConfiguration, boolean isBookmarked) {
    LaunchNode launchNode = new LaunchNode();
    launchNode.setLaunchConfiguration(launchConfiguration);
    launchNode.setBookmarked(isBookmarked);
    return launchNode;
  }
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.