use of org.eclipse.gef.editparts.AbstractConnectionEditPart in project dbeaver by serge-rider.
the class DirectedGraphLayoutVisitor method addEntityEdges.
// ******************* Entity contribution methods **********/
protected void addEntityEdges(GraphicalEditPart entityPart) {
List<?> outgoing = entityPart.getSourceConnections();
for (int i = 0; i < outgoing.size(); i++) {
AbstractConnectionEditPart connectionPart = (AbstractConnectionEditPart) entityPart.getSourceConnections().get(i);
addConnectionEdges(connectionPart);
}
}
use of org.eclipse.gef.editparts.AbstractConnectionEditPart in project dbeaver by serge-rider.
the class DirectedGraphLayoutVisitor method applyEntityResults.
// ******************* EntityPart apply methods **********/
public void applyEntityResults(GraphicalEditPart entityPart) {
Node n = (Node) partToNodesMap.get(entityPart);
IFigure tableFigure = entityPart.getFigure();
Dimension preferredSize = tableFigure.getPreferredSize();
Rectangle bounds = new Rectangle(n.x, n.y, preferredSize.width, preferredSize.height);
tableFigure.setBounds(bounds);
for (int i = 0; i < entityPart.getSourceConnections().size(); i++) {
AbstractConnectionEditPart relationship = (AbstractConnectionEditPart) entityPart.getSourceConnections().get(i);
applyConnectionResults(relationship);
}
}
Aggregations