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, wait
createCustomRollbackActions, rollbackChanges, rollbackMissingFileDeletion
public java.lang.String getRollbackOperationName()
RollbackEnvironment
getRollbackOperationName
in interface RollbackEnvironment
public void rollbackModifiedWithoutCheckout(java.util.List<VirtualFile> files, java.util.List<VcsException> exceptions, RollbackProgressListener listener)
RollbackEnvironment
ChangelistBuilder.processModifiedWithoutCheckout(com.intellij.openapi.vfs.VirtualFile)
.rollbackModifiedWithoutCheckout
in interface RollbackEnvironment
files
- the files to rollback.listener
- @return list of errors occurred, or an empty list if no errors occurred.public void rollbackIfUnchanged(VirtualFile file)
RollbackEnvironment
rollbackIfUnchanged
in interface RollbackEnvironment
file
- the file to rollback.public static java.lang.String getRollbackOperationText()