[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Rectilinear Routing as Default in GMF 2.1.1 +
|
Hi Ugo,
You can modify the routing style directly in your connection's EditPart.
Here is an example :
/**
* @generated NOT
*/
protected Connection createConnectionFigure() {
ConnectionFigure figure = new ConnectionFigure();
RoutingStyle style = (RoutingStyle) ((View) getModel()).getStyle(NotationPackage.Literals.ROUTING_STYLE);
style.setRouting(Routing.RECTILINEAR_LITERAL);
return figure;
}