Search in sources :

Example 1 with RoundPolylineConnection

use of org.jboss.tools.hibernate.ui.diagram.editors.figures.RoundPolylineConnection in project jbosstools-hibernate by jbosstools.

the class ConnectionEditPart method createFigure.

protected IFigure createFigure() {
    PolylineConnection connection = new RoundPolylineConnection();
    connection.setForegroundColor(getColor());
    connection.setTargetDecoration(new PolygonDecoration());
    connection.setVisible(getModelConnection().isVisible());
    return connection;
}
Also used : PolygonDecoration(org.eclipse.draw2d.PolygonDecoration) RoundPolylineConnection(org.jboss.tools.hibernate.ui.diagram.editors.figures.RoundPolylineConnection) RoundPolylineConnection(org.jboss.tools.hibernate.ui.diagram.editors.figures.RoundPolylineConnection) PolylineConnection(org.eclipse.draw2d.PolylineConnection)

Aggregations

PolygonDecoration (org.eclipse.draw2d.PolygonDecoration)1 PolylineConnection (org.eclipse.draw2d.PolylineConnection)1 RoundPolylineConnection (org.jboss.tools.hibernate.ui.diagram.editors.figures.RoundPolylineConnection)1