Examples of editParts()


Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

    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.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

      }
    });

    StsBotConfigEditor editor = getBot().activeConfigEditor();
    StsBotGefEditor gEditor = editor.toGefEditorFromUri(BatchSchemaConstants.URI);
    List<SWTBotGefEditPart> parts = gEditor.editParts(AllOf.allOf(
        EditPartMatcherFactory.editPartOfType(SimpleActivityPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart step1 = parts.get(0);
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

    assertTrue(step2.part() instanceof SimpleActivityPart);

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

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(SimpleActivityPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());
    assertTrue(parts.get(0).sourceConnections().isEmpty());
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

      }
    });

    StsBotConfigEditor editor = getBot().activeConfigEditor();
    StsBotGefEditor gEditor = editor.toGefEditorFromUri(BatchSchemaConstants.URI);
    List<SWTBotGefEditPart> parts = gEditor.editParts(AllOf.allOf(
        EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("split")));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart split = parts.get(0);
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

    assertTrue(step3.part() instanceof SimpleActivityPart);

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

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("split")));
    assertFalse(parts.isEmpty());
    assertTrue(parts.get(0).sourceConnections().isEmpty());
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

      }
    });

    StsBotConfigEditor editor = getBot().activeConfigEditor();
    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());
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

    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.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

    });
    waitForRunningJobsToFinish(runningJobsListener, 5000);

    StsBotConfigEditor editor = getBot().activeConfigEditor();
    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());
View Full Code Here

Examples of org.springframework.ide.eclipse.config.tests.util.gef.StsBotGefEditor.editParts()

    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());
  }

  private class RunningJobsCounter implements IJobChangeListener {
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.