/** * This returns the result of this command by delegating to * <code>helper.getCreateChildResult()</code>. */ @Override public Collection<?> getResult() { Collection<?> result = helper.getCreateChildResult(child); return result == null ? Collections.EMPTY_LIST : result; }
/** * This executes the wrapped command and sets the affected objects to the * collection returned by <code>helper.getCreateChildResult()</code>. */ @Override public void execute() { super.execute(); affectedObjects = helper.getCreateChildResult(child); }
/** * This redoes the wrapped command and sets the affected objects to the * collection returned by <code>helper.getCreateChildResult()</code>. */ @Override public void redo() { super.redo(); affectedObjects = helper.getCreateChildResult(child); }