Package org.eclipse.sapphire.ui.swt.gef.model

Examples of org.eclipse.sapphire.ui.swt.gef.model.DiagramNodeModel


    if (deltaX != 0 || deltaY != 0) {
      SapphireDiagramEditor editor = node.getDiagramModel().getSapphireDiagramEditor();
      List<DiagramConnectionModel> srcConnections = node.getSourceConnections();
      for (GraphicalEditPart part : editor.getSelectedEditParts()) {
        if (part instanceof DiagramNodeEditPart) {
          DiagramNodeModel otherNode = ((DiagramNodeEditPart)part).getCastedModel();
          List<DiagramConnectionModel> targetConnections = otherNode.getTargetConnections();
          for (DiagramConnectionModel conn : targetConnections) {
            if (srcConnections.contains(conn)) {
              moveAllBendpoints(conn, deltaX, deltaY);
            }
          }
View Full Code Here


      HashKey hashKey;

      if (object instanceof HashKey)
      {
        hashKey = (HashKey) object;
        DiagramNodeModel hkA1 = hashKey.getFirstNode();
        DiagramNodeModel hkA2 = hashKey.getSecondNode();

        isEqual = (hkA1.equals(sourceNode) && hkA2.equals(targetNode))
            || (hkA1.equals(targetNode) && hkA2.equals(sourceNode));
      }
      return isEqual;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.model.DiagramNodeModel

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.