use of com.cubrid.common.ui.er.commands.DeleteTableCommand in project cubrid-manager by CUBRID.
the class TableEditPolicy method createDeleteCommand.
@Override
protected Command createDeleteCommand(GroupRequest request) {
TablePart tablePart = (TablePart) getHost();
Rectangle bounds = tablePart.getFigure().getBounds().getCopy();
ERSchema parent = (ERSchema) (tablePart.getParent().getModel());
DeleteTableCommand deleteCmd = new DeleteTableCommand();
deleteCmd.setSchema(parent);
deleteCmd.setTable((ERTable) (tablePart.getModel()));
deleteCmd.setOriginalBounds(bounds);
return deleteCmd;
}
Aggregations