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