public interface SourceTransaction
| Modifier and Type | Method and Description | 
|---|---|
void | 
abort()
Rolls back changes to the beginning of the transaction, releases
 all locked resources, and closes the transaction. 
 | 
void | 
addListener(SourceTransactionListener listener)
Registers the given observer to begin receiving notifications when
 changes are made during this transaction. 
 | 
javax.swing.undo.UndoableEdit | 
commit()
Commits the transaction changes, releases all
 locked resources, and closes the transaction. 
 | 
SourceFile | 
getOwningSourceFile()
Get the SourceFile this transaction is attached to. 
 | 
void | 
removeListener(SourceTransactionListener listener)
Unregisters the given observer. 
 | 
void | 
rollback()
Rolls back all changes made in this transaction
 and keeps the transaction open. 
 | 
void | 
rollback(SourceSavepoint savepoint)
Rolls back changes up to the given savepoint
 and keeps the transaction open. 
 | 
SourceSavepoint | 
savepoint()
Puts the transaction into a stable state such that it
 can be saved and used for future rollbacks. 
 | 
SourceFile getOwningSourceFile()
SourceSavepoint savepoint()
void rollback(SourceSavepoint savepoint)
savepoint - A savepoint previousely returned
 by the savepoint methodvoid rollback()
javax.swing.undo.UndoableEdit commit()
void abort()
void addListener(SourceTransactionListener listener)
listener - The listener to be added.void removeListener(SourceTransactionListener listener)
listener - The listener to be removed.