Examples of ILaunchMode


Examples of org.eclipse.debug.core.ILaunchMode

  private ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();

  @Test
  public void getImageShouldReturnAnImageForAValidLaunchMode() {
    ILaunchMode mode = manager.getLaunchModes()[0];
    assertThat(provider.getImage(mode), notNullValue());
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchMode

  @Test
  public void getTextShouldReturnTheLabelOfALaunchModeWithoutTheShortcutChar() {
    String originalLabel = "&Run";
    String expectedLabel = "Run";

    ILaunchMode mode = mock(ILaunchMode.class);
    given(mode.getLabel()).willReturn(originalLabel);

    assertThat(provider.getText(mode), equalTo(expectedLabel));
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchMode

  @Test
  public void getForegroundShouldReturnDarkGrayForAnInvalidLaunchMode() {
    Color expectedColor = PlatformUI.getWorkbench().getDisplay()
        .getSystemColor(SWT.COLOR_DARK_GRAY);

    ILaunchMode mode = mock(ILaunchMode.class);
    given(mode.getIdentifier()).willReturn("noSuchId");

    assertThat(provider.getForeground(mode), equalTo(expectedColor));
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchMode

        case LAUNCH:
          segments.add(new LaunchName(d.getLaunchName(), d.getLaunchTypeId()));
          break;
        case LAUNCH_MODE: {
          String id = d.getLaunchModeId();
          ILaunchMode mode = manager.getLaunchMode(id);
          if (mode == null) {
            mode = new UndefinedLaunchMode(id);
          }
          segments.add(mode);
          break;
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.