use of com.cubrid.cubridmanager.ui.mondashboard.editor.command.DeleteHostMonitorCommand in project cubrid-manager by CUBRID.
the class HostMonitorEditPolicy method createDeleteCommand.
/**
* create a command of delete figure
*
* @param deleteRequest to delete figure
* @return command of delete figure
*/
protected Command createDeleteCommand(GroupRequest deleteRequest) {
DeleteHostMonitorCommand deleteCommand = new DeleteHostMonitorCommand();
EditPart host = getHost();
deleteCommand.setNodeToDelete((HostNode) host.getModel());
deleteCommand.setDashboard((Dashboard) host.getParent().getModel());
return deleteCommand;
}
Aggregations