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

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


    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

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

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

    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

    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

  }

  @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

  }

  @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

Related Classes of org.eclipse.sapphire.ui.swt.gef.parts.DiagramConnectionEditPart

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.