public interface IRevertConfig
Modifier and Type | Method and Description |
---|---|
void |
addElements(java.util.Collection<MObject> elementsToAdd,
org.modelio.vbasic.progress.IModelioProgress monitor)
Add elements to be reverted.
|
void |
addFiles(java.util.Collection<java.io.File> filesToRevert)
Add files to be reverted.
|
boolean |
doReleaseLocks()
Tells whether locks must be kept or released.
|
IRevertDetail |
getDetails()
Get the list of elements to commit revert dependency analysis.
|
java.util.Collection<MObject> |
getSelection()
Get the elements on which the revert was run.
|
boolean |
isBatchMode() |
boolean |
isRecursive()
Get whether the revert must be recursive.
|
void |
setRecursive(boolean isRecursive,
org.modelio.vbasic.progress.IModelioProgress monitor)
Set whether the revert must be recursive.
|
void |
setReleaseLocks(boolean releaseLocks)
Set whether locks must be kept or released.
|
void setReleaseLocks(boolean releaseLocks)
releaseLocks
- true
to release locks, false
to keep them.java.util.Collection<MObject> getSelection()
Does not contain all elements that will be reverted.
for this call getDetails()
.
getDetails()
boolean doReleaseLocks()
true
if locks must be released, false
to keep them.boolean isRecursive()
void addElements(java.util.Collection<MObject> elementsToAdd, org.modelio.vbasic.progress.IModelioProgress monitor)
Calling this method reruns dependency analysis and invalidates the value returned by
getDetails()
. getDetails()
must then be called again to get the new revert details.
elementsToAdd
- The elements to be added to the revert operation.monitor
- the progress monitor to use for reporting progress to the user. done()
on the given monitor. null
, indicating that no progress should be reported and that the operation cannot be
cancelled.IRevertDetail getDetails()
void setRecursive(boolean isRecursive, org.modelio.vbasic.progress.IModelioProgress monitor)
Changing this value reruns dependency analysis and invalidates the
value returned by getDetails()
. getDetails()
must then be called again to get the new revert
details.
isRecursive
- whether the revert must be recursive.monitor
- the progress monitor to use for reporting progress to the user. boolean isBatchMode()
void addFiles(java.util.Collection<java.io.File> filesToRevert)
filesToRevert
- the additional files to revert.