Class UndoActionDialog

java.lang.Object
docking.DialogComponentProvider
ghidra.framework.main.datatree.UndoActionDialog
All Implemented Interfaces:
ActionContextProvider, StatusListener, TaskListener

public class UndoActionDialog extends DialogComponentProvider
Dialog that confirms undo of an action; specify whether a .keep file should be created on the undo of the action.
  • Field Details

  • Constructor Details

    • UndoActionDialog

      public UndoActionDialog(String title, ImageIcon icon, String helpTag, String actionString, List<DomainFile> fileList)
      Constructor
      Parameters:
      fileList - list of DomainFile objects to show in the list
  • Method Details

    • cancelCallback

      protected void cancelCallback()
      Description copied from class: DialogComponentProvider
      The callback method for when the "Cancel" button is pressed. The default behavior is to call setVisible(false) and dispose() on the dialog.
      Overrides:
      cancelCallback in class DialogComponentProvider
    • okCallback

      protected void okCallback()
      Description copied from class: DialogComponentProvider
      The callback method for when the "OK" button is pressed.
      Overrides:
      okCallback in class DialogComponentProvider
    • showDialog

      public int showDialog(PluginTool tool)
      Show the dialog; return an ID for the action that the user chose.
      Returns:
      OK, or CANCEL
    • getSelectedDomainFiles

      public DomainFile[] getSelectedDomainFiles()
    • saveCopy

      public boolean saveCopy()