Class VersionControlDialog

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

public class VersionControlDialog extends DialogComponentProvider
Dialog to get comments for adding a file to version control or checking in a file.
  • Field Details

  • Constructor Details

    • VersionControlDialog

      public VersionControlDialog(boolean addToVersionControl)
      Constructor
      Parameters:
      addToVersionControl - true for adding; false for check-in
  • 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
    • setKeepCheckboxEnabled

      public void setKeepCheckboxEnabled(boolean enabled, boolean selected, String disabledMsg)
    • setCurrentFileName

      public void setCurrentFileName(String filename)
      Set the name of the current file being added to version control or being updated.
      Parameters:
      filename - the name of the file currently to be added, whose comment we need.