Examples of SWTBotGefEditPart


Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart

    List<SWTBotGefEditPart> parts = gEditor.editParts(AllOf.allOf(
        EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());
    SWTBotGefEditPart activityPart = parts.get(0);

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertEquals(Collections.emptyList(), parts);

    gEditor.activateTool(BatchSchemaConstants.ELEM_NEXT);
    activityPart.click();

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart containerPart = parts.get(0);
    assertFalse(containerPart.children().isEmpty());
  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart

    List<SWTBotGefEditPart> parts = gEditor.editParts(AllOf.allOf(
        EditPartMatcherFactory.editPartOfType(SimpleActivityPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart step1 = parts.get(0);
    SWTBotGefConnectionEditPart transitionPart = step1.sourceConnections().get(0);
    SWTBotGefEditPart step2 = transitionPart.target();
    assertTrue(step2.part() instanceof SimpleActivityPart);

    transitionPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(SimpleActivityPart.class),
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart

    List<SWTBotGefEditPart> parts = gEditor.editParts(AllOf.allOf(
        EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("split")));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart split = parts.get(0);
    SWTBotGefConnectionEditPart transitionPart = split.sourceConnections().get(0);
    SWTBotGefEditPart step3 = transitionPart.target();
    assertTrue(step3.part() instanceof SimpleActivityPart);

    transitionPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart

    StsBotGefEditor gEditor = editor.toGefEditorFromUri(BatchSchemaConstants.URI);
    List<SWTBotGefEditPart> parts = gEditor.editParts(EditPartMatcherFactory
        .editPartOfType(ActivityDiagramPart.class));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart diagramPart = parts.get(0);
    assertEquals(2, diagramPart.children().size());

    gEditor.activateTool(BatchSchemaConstants.ELEM_SPLIT);
    diagramPart.click();

    gEditor.editParts(EditPartMatcherFactory.editPartOfType(ActivityDiagramPart.class));
    diagramPart = parts.get(0);
    assertEquals(2, diagramPart.children().size());

  }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart

    StsBotGefEditor gEditor = editor.toGefEditorFromUri(BatchSchemaConstants.URI);
    List<SWTBotGefEditPart> parts = gEditor.editParts(EditPartMatcherFactory
        .editPartOfType(ActivityDiagramPart.class));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart diagramPart = parts.get(0);
    assertEquals(2, diagramPart.children().size());

    gEditor.activateTool(BatchSchemaConstants.ELEM_JOB);
    diagramPart.click();

    gEditor.editParts(EditPartMatcherFactory.editPartOfType(ActivityDiagramPart.class));
    diagramPart = parts.get(0);
    assertEquals(3, diagramPart.children().size());
  }
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.