This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 104123 - Model needs to support rollbackTransaction
Summary: Model needs to support rollbackTransaction
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: XAM (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: pnarayan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-16 23:15 UTC by Nam Nguyen
Modified: 2007-05-22 00:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed rollbackTransaction() implementation; needs unitests. (2.91 KB, patch)
2007-05-16 23:17 UTC, Nam Nguyen
Details | Diff
Patch for getCurrentDocumentText() (1.44 KB, patch)
2007-05-16 23:19 UTC, Nam Nguyen
Details | Diff
minor adjustment to xam.patch (2.94 KB, patch)
2007-05-22 00:01 UTC, Nam Nguyen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2007-05-16 23:15:27 UTC
The use cases are:
- During multiple mutations transaction client code might need control to
rollback the model to the state before beginTransaction is called.
- Refactoring UI need to start mutations just to get the source of the model as
if refactored, then rollback to original state.

The rollback should also preserve the undo queue.
Comment 1 Nam Nguyen 2007-05-16 23:17:36 UTC
Created attachment 42482 [details]
Proposed rollbackTransaction() implementation; needs unitests.
Comment 2 Nam Nguyen 2007-05-16 23:19:32 UTC
Created attachment 42483 [details]
Patch for getCurrentDocumentText()
Comment 3 Nam Nguyen 2007-05-22 00:01:22 UTC
Created attachment 42623 [details]
minor adjustment to xam.patch