java.lang.Object
com.inductiveautomation.factorypmi.designer.workspace.undo.AbstractUndoAction
All Implemented Interfaces:
UndoManager.UndoAction
Direct Known Subclasses:
UndoConvertToContainer, UndoGroup, UndoRotation, UndoUngroup

public abstract class AbstractUndoAction extends Object implements UndoManager.UndoAction
  • Constructor Details

    • AbstractUndoAction

      public AbstractUndoAction(String resourceKey)
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: UndoManager.UndoAction
      The description of the action will be used to determine grouping equality as well as for display purposes.
      Specified by:
      getDescription in interface UndoManager.UndoAction
    • getDescriptionArgs

      protected Object[] getDescriptionArgs()
    • 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.
      Specified by:
      isGroupSequenceIndependent in interface UndoManager.UndoAction