Package ghidra.framework.main.datatree
Class VersionControlTask
java.lang.Object
ghidra.util.task.Task
ghidra.framework.main.datatree.VersionControlTask
- All Implemented Interfaces:
MonitoredRunnable
- Direct Known Subclasses:
CheckInTask
Task to show a dialog to enter comments for checking in a file
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected String
protected boolean
protected boolean
protected boolean
protected List
<DomainFile> protected Component
protected PluginTool
protected boolean
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
Constructor Summary
ModifierConstructorDescriptionprotected
VersionControlTask
(String title, PluginTool tool, List<DomainFile> list, Component parent) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
Sets the filesInUse field if any file is in use.protected void
showDialog
(boolean addToVersionControl, DomainFile file) Show the dialog.Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, run, setHasProgress
-
Field Details
-
list
-
actionID
protected int actionID -
keepCheckedOut
protected boolean keepCheckedOut -
createKeep
protected boolean createKeep -
comments
-
filesInUse
protected boolean filesInUse -
tool
-
wasCanceled
protected boolean wasCanceled -
parent
-
-
Constructor Details
-
VersionControlTask
protected VersionControlTask(String title, PluginTool tool, List<DomainFile> list, Component parent) Constructor- Parameters:
title
- title of the tasktool
- tool associated with the tasklist
- list of domain filesparent
- parent of the version control dialog; may be null
-
-
Method Details
-
showDialog
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
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
protected boolean checkFilesForUnsavedChanges()
-