Undo groupings
Undo groupings
- Subject: Undo groupings
- From: Anthony Paras <email@hidden>
- Date: Thu, 17 Mar 2005 07:00:38 -0500
I'm trying to use undo groupings, but it doesn't seem to be working -- the
editing context isn't properly undone. Below is the code I'm using. Does
anyone see anything wrong with it? Thanks.
- Tony
session().defaultEditingContext().undoManager().beginUndoGrouping();
try {
doSomething();
} catch (Exception e) {
session().defaultEditingContext().undoManager().endUndoGrouping();
session().defaultEditingContext().undoManager().undoNestedGroup();
setErrorString("Something failed. Please try again later.");
return this;
}
session().defaultEditingContext().undoManager().endUndoGrouping();
...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden