Class VersionControlTask

java.lang.Object
ghidra.util.task.Task
ghidra.framework.main.datatree.VersionControlTask
All Implemented Interfaces:
MonitoredRunnable
Direct Known Subclasses:
CheckInTask

public abstract class VersionControlTask extends Task
Task to show a dialog to enter comments for checking in a file
  • Field Details Link icon

    • list Link icon

      protected List<DomainFile> list
    • actionID Link icon

      protected int actionID
    • keepCheckedOut Link icon

      protected boolean keepCheckedOut
    • createKeep Link icon

      protected boolean createKeep
    • comments Link icon

      protected String comments
    • filesInUse Link icon

      protected boolean filesInUse
    • tool Link icon

      protected PluginTool tool
    • wasCanceled Link icon

      protected boolean wasCanceled
    • parent Link icon

      protected Component parent
  • Constructor Details Link icon

    • VersionControlTask Link icon

      protected VersionControlTask(String title, PluginTool tool, List<DomainFile> list, Component parent)
      Constructor
      Parameters:
      title - title of the task
      tool - tool associated with the task
      list - list of domain files
      parent - parent of the version control dialog; may be null
  • Method Details Link icon

    • showDialog Link icon

      protected void showDialog(boolean addToVersionControl, DomainFile file)
      Show the dialog.
      Parameters:
      addToVersionControl - true if the dialog is for adding files to version control, false for checking in files.
      file - the file currently to be added or checked-in to version control
    • checkFilesInUse Link icon

      protected void checkFilesInUse()
      Sets the filesInUse field if any file is in use. Call this method from the run() method so that the "Keep checked out" checkbox on the dialog is disabled if files are still in use.
    • checkFilesForUnsavedChanges Link icon

      protected boolean checkFilesForUnsavedChanges()