Examples of editParts()


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("limitDecision")));
    assertFalse(parts.isEmpty());

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

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

    assertEquals(2, containerPart.children().size());

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

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    containerPart = parts.get(0);
    assertEquals(2, containerPart.children().size());
  }
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("limitDecision")));
    assertFalse(parts.isEmpty());

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

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

    assertEquals(2, containerPart.children().size());

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

    parts = gEditor.editParts(AllOf.allOf(EditPartMatcherFactory.editPartOfType(StructuredActivityPart.class),
        EditPartMatcherFactory.withLabel("limitDecision")));
    containerPart = parts.get(0);
    assertEquals(3, containerPart.children().size());
  }
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(SequentialActivityPart.class));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart editPart = parts.get(0);
    editPart.doubleClick();
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(NextGraphicalEditPart.class));
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart editPart = parts.get(0);
    assertTrue(editPart.children().isEmpty());
View Full Code Here

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

    assertTrue(editPart.children().isEmpty());

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

    parts = gEditor.editParts(EditPartMatcherFactory.editPartOfType(NextGraphicalEditPart.class));
    editPart = parts.get(0);
    assertTrue(editPart.children().isEmpty());
  }

  public void testPerformOpen() 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(EditPartMatcherFactory
        .editPartOfType(SimpleActivityPart.class));
    assertFalse(parts.isEmpty());

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

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

    Matcher matcher = AllOf.allOf(EditPartMatcherFactory.editPartOfType(SimpleActivityWithContainerPart.class),
        EditPartMatcherFactory.withLabel("limitDecision"));

    StsBotConfigEditor editor = getBot().activeConfigEditor();
    StsBotGefEditor gEditor = editor.toGefEditorFromUri(BatchSchemaConstants.URI);
    List<SWTBotGefEditPart> parts = gEditor.editParts(matcher);
    assertFalse(parts.isEmpty());

    SWTBotGefEditPart activityPart = parts.get(0);
    activityPart.select();
    gEditor.pressShortcut(KeyStroke.getInstance(SWT.DEL));
View Full Code Here

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

    SWTBotGefEditPart activityPart = parts.get(0);
    activityPart.select();
    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);
  }
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.