Class ResourcePasteAction

    • Constructor Detail

      • ResourcePasteAction

        public 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

      • setNameFormat

        public void setNameFormat​(java.lang.String nameFormat)
      • 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.