Examples of SWTBotGefConnectionEditPart


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

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

    Point startMove = connection.getPoints().getMidpoint().getCopy();
View Full Code Here

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

    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 */
    syncWithUIThread();
    assertEquals(1, wire.getBendpoints().size());
  }
View Full Code Here

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

        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(
        EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
View Full Code Here

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

        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),
        EditPartMatcherFactory.withLabel("limitDecision")));
View Full Code Here

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

        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),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());
View Full Code Here

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

        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),
        EditPartMatcherFactory.withLabel("split")));
    assertFalse(parts.isEmpty());
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.