Class ResourcePasteAction
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceUndoAction
- 
- com.inductiveautomation.ignition.designer.navtree.model.ResourcePasteAction
 
 
- 
- All Implemented Interfaces:
- UndoManager.UndoAction
 
 public class ResourcePasteAction extends AbstractResourceUndoAction 
- 
- 
Constructor SummaryConstructors Constructor Description ResourcePasteAction(DesignerContext context, AbstractNavTreeNode sourceNode, AbstractResourceNavTreeNode parentNode, java.util.List<ProjectResource> toPaste, java.lang.String objectKey)Creates a paste undo action.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringactionKey()protected intactionSize()booleanexecute()This function executes (redoes) the actionbooleanisGroupSequenceIndependent()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 java.lang.StringobjectKey()voidsetNameFormat(java.lang.String nameFormat)booleanundo()This function will reverse the action- 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceUndoActionextractProjectResources, getDescription
 
- 
 
- 
- 
- 
Constructor Detail- 
ResourcePasteActionpublic ResourcePasteAction(DesignerContext context, AbstractNavTreeNode sourceNode, AbstractResourceNavTreeNode parentNode, java.util.List<ProjectResource> toPaste, java.lang.String objectKey) Creates a paste undo action. Will "prep" the project on the first execute.- Parameters:
- parentNode- Used to select the child nodes after the paste. Optional.
 
 
- 
 - 
Method Detail- 
actionKeyprotected java.lang.String actionKey() - Specified by:
- actionKeyin class- AbstractResourceUndoAction
 
 - 
objectKeyprotected java.lang.String objectKey() - Specified by:
- objectKeyin class- AbstractResourceUndoAction
 
 - 
actionSizeprotected int actionSize() - Specified by:
- actionSizein class- AbstractResourceUndoAction
 
 - 
setNameFormatpublic void setNameFormat(java.lang.String nameFormat) 
 - 
executepublic boolean execute() Description copied from interface:UndoManager.UndoActionThis function executes (redoes) the action- Returns:
- false if the execution failed
 
 - 
undopublic boolean undo() Description copied from interface:UndoManager.UndoActionThis function will reverse the action- Returns:
- false if the undo failed
 
 - 
isGroupSequenceIndependentpublic boolean isGroupSequenceIndependent() Description copied from interface:UndoManager.UndoActionThis 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.
 
- 
 
-