public class ResourceDeleteAction extends AbstractResourceUndoAction
Constructor and Description |
---|
ResourceDeleteAction(DesignerProjectContext context,
java.util.List<AbstractResourceNavTreeNode> nodes,
java.lang.String objectKey) |
ResourceDeleteAction(DesignerProjectContext context,
java.util.List<AbstractResourceNavTreeNode> nodes,
java.lang.String actionKey,
java.lang.String objectKey) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
actionKey() |
protected int |
actionSize() |
boolean |
execute()
This function executes (redoes) the action
|
boolean |
isGroupSequenceIndependent()
This function should return true if a group of these actions can be undone by ONLY calling undo() on the
first action in the group, and redone by ONLY calling execute() on the last action in the group.
|
java.lang.String |
objectKey() |
boolean |
undo()
This function will reverse the action
|
extractProjectResources, getDescription, requestLocks, updateAndReleaseLocks
public ResourceDeleteAction(DesignerProjectContext context, java.util.List<AbstractResourceNavTreeNode> nodes, java.lang.String objectKey)
public ResourceDeleteAction(DesignerProjectContext context, java.util.List<AbstractResourceNavTreeNode> nodes, java.lang.String actionKey, java.lang.String objectKey)
public boolean execute()
UndoManager.UndoAction
public boolean undo()
UndoManager.UndoAction
protected java.lang.String actionKey()
actionKey
in class AbstractResourceUndoAction
public java.lang.String objectKey()
objectKey
in class AbstractResourceUndoAction
protected int actionSize()
actionSize
in class AbstractResourceUndoAction
public boolean isGroupSequenceIndependent()
UndoManager.UndoAction