Package org.openiaml.model.diagram.edit.parts.ActivityOperationEditPart

Examples of org.openiaml.model.diagram.edit.parts.ActivityOperationEditPart.ExtendedActivityOperationFigure


    // what is the content pane?
    IFigure fig = part.getContentPane();
    assertTrue("CompositeOperation should be extended: " + fig.getClass(),
        fig instanceof ExtendedActivityOperationFigure);

    ExtendedActivityOperationFigure ext = (ExtendedActivityOperationFigure) fig;
    // check to see it has the correct initial parent value
    assertEquals("Parent: root element", ext.getFigureActivityOperationParentNameFigure().getText());

    // change the root name
    gmf.setName(root, "a new parent name");
    assertEquals(root.getName(), "a new parent name");
    // the parent label should have changed
    assertEquals("Parent: a new parent name", ext.getFigureActivityOperationParentNameFigure().getText());
  }
View Full Code Here


    // what is the content pane?
    IFigure fig_o = partOp.getContentPane();
    assertTrue("CompositeOperation should be extended: " + fig_o.getClass(),
        fig_o instanceof ExtendedActivityOperationFigure);

    ExtendedActivityOperationFigure ext_o = (ExtendedActivityOperationFigure) fig_o;
    // check to see it has the correct initial parent value
    assertEquals("Parent: root element", ext_o.getFigureActivityOperationParentNameFigure().getText());

    // change the root name
    gmf.setName(root, "a new parent name");
    assertEquals(root.getName(), "a new parent name");

    // the parent labels should have changed
    assertEquals("Parent: a new parent name", ext_o.getFigureActivityOperationParentNameFigure().getText());
  }
View Full Code Here

TOP

Related Classes of org.openiaml.model.diagram.edit.parts.ActivityOperationEditPart.ExtendedActivityOperationFigure

Copyright © 2018 www.massapicom. 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.