Examples of editParts()


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

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

    for (int i = 0; i < 3 && gEditor.editParts(matcher).size() > 0; i++) {
      Thread.sleep(1000);
    }
    parts = gEditor.editParts(matcher);
    assertEquals(Collections.emptyList(), parts);
  }

  @SuppressWarnings("unchecked")
  public void testDeleteContainerPart() throws Exception {
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(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    assertFalse(parts.isEmpty());

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

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

    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),
        EditPartMatcherFactory.withLabel("limitDecision")));
    assertEquals(Collections.emptyList(), parts);
  }
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(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    assertFalse(parts.isEmpty());

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

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

    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")));
    assertEquals(Collections.emptyList(), parts);
  }
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(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());
    SWTBotGefEditPart activityPart = parts.get(0);
View Full Code Here

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

        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_STEP);
    activityPart.click();
View Full Code Here

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

    assertEquals(Collections.emptyList(), parts);

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

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

  @SuppressWarnings("unchecked")
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(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("step1")));
    assertFalse(parts.isEmpty());
    SWTBotGefEditPart activityPart = parts.get(0);
View Full Code Here

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

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