super.execute();
UiElementNode uiParent = mParentPart.getUiNode();
if (uiParent != null) {
final AndroidEditor editor = uiParent.getEditor();
if (editor instanceof LayoutEditor) {
((LayoutEditor) editor).wrapUndoRecording(
String.format("Create %1$s", mDescriptor.getXmlLocalName()),
new Runnable() {
public void run() {
UiEditorActions actions = ((LayoutEditor) editor).getUiEditorActions();
if (actions != null) {
DropFeedback.addElementToXml(mParentPart, mDescriptor, mTargetPoint,
actions);
}
}
});
}
}