use of org.jkiss.dbeaver.ext.erd.command.EntityDeleteCommand in project dbeaver by serge-rider.
the class EntityEditPolicy method createDeleteCommand.
@Override
protected Command createDeleteCommand(GroupRequest request) {
EntityPart entityPart = (EntityPart) getHost();
Rectangle bounds = entityPart.getFigure().getBounds().getCopy();
EntityDiagram parent = (EntityDiagram) (entityPart.getParent().getModel());
return new EntityDeleteCommand(parent, entityPart, bounds);
}
Aggregations