public abstract class DefaultRollbackEnvironment extends java.lang.Object implements RollbackEnvironment
| Constructor and Description |
|---|
DefaultRollbackEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRollbackOperationName()
Returns the name of operation which is shown in the UI (in menu item name, dialog title and button text).
|
static java.lang.String |
getRollbackOperationText() |
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 |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCustomRollbackActions, rollbackChanges, rollbackMissingFileDeletionpublic java.lang.String getRollbackOperationName()
RollbackEnvironmentgetRollbackOperationName in interface RollbackEnvironmentpublic void rollbackModifiedWithoutCheckout(java.util.List<VirtualFile> files, java.util.List<VcsException> exceptions, RollbackProgressListener listener)
RollbackEnvironmentChangelistBuilder.processModifiedWithoutCheckout(com.intellij.openapi.vfs.VirtualFile).rollbackModifiedWithoutCheckout in interface RollbackEnvironmentfiles - the files to rollback.listener - @return list of errors occurred, or an empty list if no errors occurred.public void rollbackIfUnchanged(VirtualFile file)
RollbackEnvironmentrollbackIfUnchanged in interface RollbackEnvironmentfile - the file to rollback.public static java.lang.String getRollbackOperationText()