Examples of DiagramConnectionModel


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

        editpartObj = viewer.getEditPartRegistry().get(shapeModel);
      }
      else if (sapphirePart instanceof DiagramConnectionPart)
      {
        connPart = (DiagramConnectionPart)sapphirePart;
        DiagramConnectionModel connModel = this.getDiagramModel().getDiagramConnectionModel(connPart);
        editpartObj = viewer.getEditPartRegistry().get(connModel);       
      }
      return (GraphicalEditPart)editpartObj;
    }
    return null;
View Full Code Here

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

  protected Command createDeleteCommand(GroupRequest deleteRequest)
  {
    Object child = getHost().getModel();
    if (child instanceof DiagramConnectionModel)
    {
      DiagramConnectionModel connModel = (DiagramConnectionModel)child;
      return new DeleteConnectionCommand(connModel.getPresentation());
    }
    return super.createDeleteCommand(deleteRequest);
  }
View Full Code Here

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

      Edge edge = (Edge)object;
      if (!(edge.data instanceof DiagramConnectionModel))
      {
        continue;
      }
      DiagramConnectionModel conn = (DiagramConnectionModel)edge.data;
      NodeList nodes = edge.vNodes;
      DiagramConnectionPart connPart = conn.getModelPart();
      ArrayList<org.eclipse.sapphire.ui.Point> connBendPoints = new ArrayList<org.eclipse.sapphire.ui.Point>();
      if (nodes != null)
      {
        //int bpIndex = 0;
        for (int i = 0; i < nodes.size(); i++)
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.