protected override void ApplyAction() { if (node_.NodeType != fromType_) { throw new ApplicationException(); } #if DEBUG Logger.Log(this, String.Format("Applying NodeTypeChange:\n{0}", PrintPatch())); #endif node_.Transform(toType_); }
public void TransformNode(Node node, NodeType targetType) { node.Transform(targetType); }