public interface RollbackEnvironment
Modifier and Type | Method and Description |
---|---|
default java.util.Collection<? extends AnAction> |
createCustomRollbackActions() |
java.lang.String |
getRollbackOperationName()
Returns the name of operation which is shown in the UI (in menu item name, dialog title and button text).
|
void |
rollbackChanges(java.util.List<Change> changes,
java.util.List<VcsException> vcsExceptions,
RollbackProgressListener listener)
Rolls back the specified changes.
|
void |
rollbackIfUnchanged(VirtualFile file)
This is called when the user performs an undo that returns a file to a state in which it was
checked out or last saved.
|
void |
rollbackMissingFileDeletion(java.util.List<FilePath> files,
java.util.List<VcsException> exceptions,
RollbackProgressListener listener)
Rolls back the deletion of files which have been deleted locally but not scheduled for deletion
from VCS.
|
void |
rollbackModifiedWithoutCheckout(java.util.List<VirtualFile> files,
java.util.List<VcsException> exceptions,
RollbackProgressListener listener)
Rolls back the modifications of files which have been made writable but not properly checked out from VCS.
|
java.lang.String getRollbackOperationName()
void rollbackChanges(java.util.List<Change> changes, java.util.List<VcsException> vcsExceptions, RollbackProgressListener listener)
changes
- the changes to roll back.vcsExceptions
- listener
- void rollbackMissingFileDeletion(java.util.List<FilePath> files, java.util.List<VcsException> exceptions, RollbackProgressListener listener)
ChangelistBuilder.processLocallyDeletedFile(com.intellij.openapi.vcs.FilePath)
.files
- the files to rollback deletion of.exceptions
- listener
- @return list of errors occurred, or an empty list if no errors occurred.void rollbackModifiedWithoutCheckout(java.util.List<VirtualFile> files, java.util.List<VcsException> exceptions, RollbackProgressListener listener)
ChangelistBuilder.processModifiedWithoutCheckout(com.intellij.openapi.vfs.VirtualFile)
.files
- the files to rollback.exceptions
- listener
- @return list of errors occurred, or an empty list if no errors occurred.void rollbackIfUnchanged(VirtualFile file)
file
- the file to rollback.default java.util.Collection<? extends AnAction> createCustomRollbackActions()