Search in sources :

Example 6 with LockGraph

use of org.jkiss.dbeaver.model.impl.admin.locks.LockGraph in project dbeaver by dbeaver.

the class LockGraphNodeEditPart method createFigure.

@Override
protected IFigure createFigure() {
    LockGraphNode node = (LockGraphNode) getModel();
    LockGraph graph = (LockGraph) getParent().getModel();
    LockGraphNodeFigure nodeFigure = new LockGraphNodeFigure(node.getTitle(), (node == graph.getSelection()));
    this.targetAnchor = new LockGraphConnectionAnchor(nodeFigure);
    this.sourceAnchor = new LockGraphConnectionAnchor(nodeFigure);
    return nodeFigure;
}
Also used : LockGraph(org.jkiss.dbeaver.model.impl.admin.locks.LockGraph) LockGraphNode(org.jkiss.dbeaver.model.impl.admin.locks.LockGraphNode)

Aggregations

LockGraph (org.jkiss.dbeaver.model.impl.admin.locks.LockGraph)6 LockGraphNode (org.jkiss.dbeaver.model.impl.admin.locks.LockGraphNode)4 GridData (org.eclipse.draw2d.GridData)2