public final class RefactoringCommit extends Object implements Transaction, ProgressProvider
Transaction
Constructor and Description |
---|
RefactoringCommit(Collection<? extends ModificationResult> results)
RefactoringCommit is just collection of ModificationResults
|
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(ProgressListener listener)
Registers ProgressListener to receive events.
|
void |
commit()
do commit
|
void |
removeProgressListener(ProgressListener listener)
Removes ProgressListener from the list of listeners.
|
void |
rollback()
do rollback (undo)
|
public RefactoringCommit(Collection<? extends ModificationResult> results)
results
- public void commit()
Transaction
commit
in interface Transaction
public void rollback()
Transaction
rollback
in interface Transaction
public void addProgressListener(ProgressListener listener)
addProgressListener
in interface ProgressProvider
listener
- The listener to register.public void removeProgressListener(ProgressListener listener)
removeProgressListener
in interface ProgressProvider
listener
- The listener to remove.