Package org.openiaml.model.diagram.helpers

Examples of org.openiaml.model.diagram.helpers.IAccessibleTextAwareEditPart


 
  protected void assertHasDerivedMarker(ShapeNodeEditPart p, boolean check) {
    boolean found = false;
    for (Object o : p.getChildren()) {
      if (o instanceof IAccessibleTextAwareEditPart) {
        IAccessibleTextAwareEditPart text = (IAccessibleTextAwareEditPart) o;
       
        // is this a stereotype label? then we don't need to check it
        if (text.getLabelText().equals(": " + p.resolveSemanticElement().eClass().getName()))
          continue;
       
        boolean c = hasDerivedMarker(text.getLabelText());
        if (check) {
          assertTrue("The label '" + text + " (" + text.getLabelText() + ") should be derived", c);
        } else {
          assertFalse("The label '" + text + " (" + text.getLabelText() + ") should not be derived", c);
        }
        found = true;
      }
    }
    assertTrue("No IAccessibleTextAwareEditPart was ever found on " + p, found);
View Full Code Here

TOP

Related Classes of org.openiaml.model.diagram.helpers.IAccessibleTextAwareEditPart

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.