/* (non-Javadoc) * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure() */ protected IFigure createFigure() { Figure f = new FreeformLayer(); f.setBorder(new MarginBorder(3)); f.setLayoutManager(new FreeformLayout()); // Create the static router for the connection layer >ConnectionLayer connLayer = >(ConnectionLayer)getLayer >(LayerConstants.CONNECTION_LAYER); > connLayer.setConnectionRouter(new >ShortestPathConnectionRouter(f)); return f; }