Examples of sourceConnections()


Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart.sourceConnections()

    editor.activateTool(TOOL_CONNECTION);
    editor.drag(100, 20, 130, 20);
    editor.click(130, 20);

    final SWTBotGefEditPart circuitPart = editor.editParts(instanceOf(CircuitEditPart.class)).get(0);
    final SWTBotGefConnectionEditPart wirePart = circuitPart.sourceConnections().get(0);
    final Wire wire = (Wire) (wirePart.part()).getModel();
    final Connection connection = (Connection) wirePart.part().getFigure();

    editor.activateTool("Select");
    assertEquals("Select", getActiveToolLabel());
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart.sourceConnections()

    editor.activateTool("Select");
    assertEquals("Select", getActiveToolLabel());

    final SWTBotGefEditPart circuitPart = editor.editParts(instanceOf(CircuitEditPart.class)).get(0);
    final SWTBotGefConnectionEditPart wirePart = circuitPart.sourceConnections().get(0);
    final Wire wire = (Wire) wirePart.part().getModel();

    assertEquals(0, wire.getBendpoints().size());
    wirePart.createBenpoint(130, 250);
    /* we need to wait the drag operates */
 
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart.sourceConnections()

        EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart activityPart = parts.get(0);
    SWTBotGefConnectionEditPart transitionPart = activityPart.sourceConnections().get(0);
    SWTBotGefEditPart containerPart = transitionPart.target();
    containerPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

    parts = gEditor.editParts(AllOf.allOf(
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart.sourceConnections()

        EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart activityPart = parts.get(0);
    SWTBotGefConnectionEditPart transitionPart = activityPart.sourceConnections().get(0);
    transitionPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));

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

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart.sourceConnections()

        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));
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart.sourceConnections()

        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));
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.