String text = this.helper.getCreateChildText(owner, feature, child, selection); setLabel(EMFEditPlugin.INSTANCE.getString( "_UI_CreateChildCommand_label", new Object[] { text }));
/** * This returns the label by delegating to * <code>helper.getCreateChildText()</code>. */ public String getText() { return helper.getCreateChildText(owner, feature, child, selection); }
/** * 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 returns the icon by delegating to * <code>helper.getCreateChildImage()</code>. */ public Object getImage() { return helper.getCreateChildImage(owner, feature, child, selection); }
/** * This returns the description by delegating to * <code>helper.getCreateChildDescription()</code>. */ @Override public String getDescription() { return helper.getCreateChildDescription(owner, feature, child, selection); }
/** * 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); }
/** * 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 returns the tool tip text by delegating to * <code>helper.getCreateChildToolTipText()</code>. */ public String getToolTipText() { return helper.getCreateChildToolTipText(owner, feature, child, selection); }