use of org.talend.sqlbuilder.erdiagram.ui.actions.CreateRelationAction in project tdi-studio-se by Talend.
the class ErDiagramMenuProvider method buildContextMenu.
@Override
public void buildContextMenu(IMenuManager menu) {
menu.add(new Separator(RELATION));
menu.add(new Separator(GEFActionConstants.GROUP_EDIT));
IAction action;
action = getAction(ActionFactory.DELETE.getId());
((ErDiagramItemDeleteAction) action).update();
if (action.isEnabled()) {
menu.appendToGroup(GEFActionConstants.GROUP_EDIT, action);
}
CreateRelationAction createRelation;
createRelation = new CreateRelationAction(part);
createRelation.update();
if (createRelation.isEnabled()) {
menu.add(createRelation);
}
TableAddAction addAction = new TableAddAction(part);
addAction.update();
menu.add(addAction);
}
Aggregations