Search in sources :

Example 1 with DeleteHostMonitorCommand

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;
}
Also used : EditPart(org.eclipse.gef.EditPart) DeleteHostMonitorCommand(com.cubrid.cubridmanager.ui.mondashboard.editor.command.DeleteHostMonitorCommand)

Aggregations

DeleteHostMonitorCommand (com.cubrid.cubridmanager.ui.mondashboard.editor.command.DeleteHostMonitorCommand)1 EditPart (org.eclipse.gef.EditPart)1