Examples of DiagramConnectionEditPart


Examples of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

    super(owner, index, locatorIndex);
  }
 
  @Override
  protected Color getBorderColor() {
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)this.getOwner();
    DiagramResourceCache cache = editPart.getCastedModel().getDiagramModel().getResourceCache();
    return isPrimary() ? cache.getColor(FOREGROUND_COLOR_PRIMARY) : cache.getColor(FOREGROUND_COLOR_SECONDARY);
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

    return isPrimary() ? cache.getColor(FOREGROUND_COLOR_PRIMARY) : cache.getColor(FOREGROUND_COLOR_SECONDARY);
  }

  @Override
  protected Color getFillColor() {
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)this.getOwner();
    DiagramResourceCache cache = editPart.getCastedModel().getDiagramModel().getResourceCache();
    return isPrimary() ? cache.getColor(BACKGROUND_COLOR_PRIMARY) : cache.getColor(BACKGROUND_COLOR_SECONDARY);
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

    return (PolylineConnection) ((GraphicalEditPart) getHost()).getFigure();
  }

  protected void removeSelectionHandles() {
    super.removeSelectionHandles();
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)getHost();
    editPart.updateStyle(getConnectionFigure());
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

    super(owner, index, locatorIndex);
  }
 
  @Override
  protected Color getBorderColor() {
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)this.getOwner();
    DiagramResourceCache cache = editPart.getCastedModel().getDiagramModel().getResourceCache();
    return isPrimary() ? cache.getColor(FOREGROUND_COLOR_PRIMARY) : cache.getColor(FOREGROUND_COLOR_SECONDARY);
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

    return isPrimary() ? cache.getColor(FOREGROUND_COLOR_PRIMARY) : cache.getColor(FOREGROUND_COLOR_SECONDARY);
  }

  @Override
  protected Color getFillColor() {
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)this.getOwner();
    DiagramResourceCache cache = editPart.getCastedModel().getDiagramModel().getResourceCache();
    return isPrimary() ? cache.getColor(BACKGROUND_COLOR_PRIMARY) : cache.getColor(BACKGROUND_COLOR_SECONDARY);
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

  }

  @Override
  protected Command getReconnectTargetCommand(ReconnectRequest request) {
    DiagramNodeModel newTarget = (DiagramNodeModel) getHost().getModel();
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)request.getConnectionEditPart();
    ReconnectConnectionCommand cmd = new ReconnectConnectionCommand(editPart.getCastedModel());
    cmd.setNewTarget(newTarget);
    return cmd;
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

  }

  @Override
  protected Command getReconnectSourceCommand(ReconnectRequest request) {
    DiagramNodeModel newSource = (DiagramNodeModel) getHost().getModel();
    DiagramConnectionEditPart editPart = (DiagramConnectionEditPart)request.getConnectionEditPart();
    ReconnectConnectionCommand cmd = new ReconnectConnectionCommand(editPart.getCastedModel());
    cmd.setNewSource(newSource);
    return cmd;
  }
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.