@Override public void execute() { location = link.getBendpoints().get(index); link.getBendpoints().remove(index); link.forceRefresh(); }
@Override public void undo() { link.getBendpoints().add(index, location); }
@Override public boolean canExecute() { return (link != null) && (link.getBendpoints().size() > index); }