}
}
private void addWidgetCommand(List<ClipboardCommand> commands, TreeItemInfo item)
throws Exception {
final XmlObjectMemento memento = XmlObjectMemento.createMemento(item);
commands.add(new ClipboardCommand() {
private static final long serialVersionUID = 0L;
@Override
public void execute(XmlObjectInfo tree) throws Exception {
TreeItemInfo item = (TreeItemInfo) memento.create(tree);
XmlObjectUtils.flowContainerCreate(tree, item, null);
memento.apply();
}
});
}
});
}