* Create a new HierarchyEditMode that uses the edge tips defined on {@link GraphLoader}.
*
* @return the configured edit mode
*/
private HierarchyEditMode createHierarchyEditMode() {
HierarchyEditMode mode = new HierarchyEditMode() {
@Override
protected String getEdgeTip(Edge edge) {
return fDependencyGraph.getEdgeTip(edge);
}
@Override
protected String getNodeTip(Node node) {
return fDependencyGraph.getNodeTip(node);
}
};
mode.allowBendCreation(false);
mode.allowEdgeCreation(false);
mode.allowMoveLabels(false);
mode.allowMovePorts(false);
mode.allowNodeCreation(false);
mode.allowNodeEditing(false);
mode.allowResizeNodes(false);
// show tool tips over nodes & edges
mode.showNodeTips(true);
mode.showEdgeTips(true);
return mode;
}