return KeyStroke.getKeyStroke(KeyEvent.VK_D, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask());
}
public void performAction(ActionEvent e) {
ProjectController mediator = getProjectController();
if (mediator.getCurrentObjEntity() != null) {
removeObjEntity();
}
else if (mediator.getCurrentDbEntity() != null) {
removeDbEntity();
}
else if (mediator.getCurrentQuery() != null) {
removeQuery();
}
else if (mediator.getCurrentProcedure() != null) {
removeProcedure();
}
else if (mediator.getCurrentDataMap() != null) {
// In context of Data node just remove from Data Node
if (mediator.getCurrentDataNode() != null) {
removeDataMapFromDataNode();
}
else {
// Not under Data Node, remove completely
removeDataMap();
}
}
else if (mediator.getCurrentDataNode() != null) {
removeDataNode();
}
else if (mediator.getCurrentDataDomain() != null) {
removeDomain();
}
}