public interface ICancelAddCommand
| Modifier and Type | Method and Description | 
|---|---|
void | 
addElement(MObject toCancel)
Add the given element to the collection of elements to undo. 
 | 
void | 
addElements(java.util.Collection<MObject> toCancel)
Add the given elements to the collection of elements to undo. 
 | 
boolean | 
canExecute()
Tells whether the command can be executed. 
 | 
void | 
execute(org.modelio.vbasic.progress.IModelioProgress iMonitor)
Cancel the "Add to version" command on the given elements and their descendant. 
 | 
java.util.Collection<MObject> | 
getElements()
Get the elements to cancel. 
 | 
void addElements(java.util.Collection<MObject> toCancel)
toCancel - the elements to cancel.void addElement(MObject toCancel)
toCancel - the element to cancel.java.util.Collection<MObject> getElements()
The returned collection reflects the command configuration and may be freely modified .
boolean canExecute()
false if the selected elements are invalid.void execute(org.modelio.vbasic.progress.IModelioProgress iMonitor)
      throws CmsException
iMonitor - the progress monitor to use for reporting progress to the user.null, indicating that no progress should be reported and that the operation cannot be canceled.CmsException - in case of CMS error