Class ResourcePasteAction
java.lang.Object
com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceUndoAction
com.inductiveautomation.ignition.designer.navtree.model.ResourcePasteAction
- All Implemented Interfaces:
UndoManager.UndoAction
-
Constructor Summary
ConstructorsConstructorDescriptionResourcePasteAction
(DesignerContext context, AbstractNavTreeNode sourceNode, AbstractResourceNavTreeNode parentNode, List<ProjectResource> toPaste, String objectKey) Creates a paste undo action. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected int
boolean
execute()
This function executes (redoes) the actionboolean
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.protected String
void
setNameFormat
(String nameFormat) boolean
undo()
This function will reverse the actionMethods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceUndoAction
extractProjectResources, getDescription
-
Constructor Details
-
Method Details
-
actionKey
- Specified by:
actionKey
in classAbstractResourceUndoAction
-
objectKey
- Specified by:
objectKey
in classAbstractResourceUndoAction
-
actionSize
protected int actionSize()- Specified by:
actionSize
in classAbstractResourceUndoAction
-
setNameFormat
-
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
-
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.
-