Class ResourceDeleteAction
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceUndoAction
-
- com.inductiveautomation.ignition.designer.navtree.model.ResourceDeleteAction
-
- All Implemented Interfaces:
UndoManager.UndoAction
public class ResourceDeleteAction extends AbstractResourceUndoAction
-
-
Constructor Summary
Constructors Constructor Description ResourceDeleteAction(DesignerContext context, java.util.List<AbstractResourceNavTreeNode> nodes, java.lang.String objectKey)
ResourceDeleteAction(DesignerContext context, java.util.List<AbstractResourceNavTreeNode> nodes, java.lang.String actionKey, java.lang.String objectKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
actionKey()
protected int
actionSize()
boolean
execute()
This function executes (redoes) the actionboolean
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-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceUndoAction
extractProjectResources, getDescription
-
-
-
-
Constructor Detail
-
ResourceDeleteAction
public ResourceDeleteAction(DesignerContext context, java.util.List<AbstractResourceNavTreeNode> nodes, java.lang.String objectKey)
-
ResourceDeleteAction
public ResourceDeleteAction(DesignerContext context, java.util.List<AbstractResourceNavTreeNode> nodes, java.lang.String actionKey, java.lang.String objectKey)
-
-
Method Detail
-
execute
public boolean execute()
Description copied from interface:UndoManager.UndoAction
This function executes (redoes) the action- Returns:
- false if the execution failed
-
undo
public boolean undo()
Description copied from interface:UndoManager.UndoAction
This function will reverse the action- Returns:
- false if the undo failed
-
actionKey
protected java.lang.String actionKey()
- Specified by:
actionKey
in classAbstractResourceUndoAction
-
objectKey
public java.lang.String objectKey()
- Specified by:
objectKey
in classAbstractResourceUndoAction
-
actionSize
protected int actionSize()
- Specified by:
actionSize
in classAbstractResourceUndoAction
-
isGroupSequenceIndependent
public boolean isGroupSequenceIndependent()
Description copied from interface:UndoManager.UndoAction
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.
-
-