1. A method for restoring one or more code view edits while operating in a design view of a dual-view editing environment, said method comprising: encapsulating said one or more code view edits into an edit object, responsive to a user moving from said code view to said design view; associating said edit object with a design edit element stored on a design view edit stack; receiving a command from said user in said design view to restore said one or more code view edits; unpacking said one or more code view edits from said edit object responsive to said command; and loading said one or more code view edits into a code view edit stack.