Package org.eclipse.gmf.runtime.notation

Examples of org.eclipse.gmf.runtime.notation.Node.eContainer()


    // check to make sure all node are contained in a diagram
    if (operation instanceof ILayoutNodeOperation) {
      Iterator nodes = ((ILayoutNodeOperation)operation).getLayoutNodes().listIterator();
      if (nodes.hasNext()) {
        Node node = ((ILayoutNode)nodes.next()).getNode();
        View container = (View)node.eContainer();
        if (!(container instanceof Diagram))
          return false;
      }
    }
    else {
View Full Code Here


    // check to make sure all node are contained in a diagram
    if (operation instanceof ILayoutNodeOperation) {
      Iterator nodes = ((ILayoutNodeOperation)operation).getLayoutNodes().listIterator();
      if (nodes.hasNext()) {
        Node node = ((ILayoutNode)nodes.next()).getNode();
        View container = (View)node.eContainer();
        if (!(container instanceof Diagram))
          return false;
      }
    }
    else {
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.