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
public abstract class VersionControlTask extends Task
Task to show a dialog to enter comments for checking in a file
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW protected intactionIDNEW protected java.lang.StringcommentsNEW protected booleancreateKeepNEW protected booleanfilesInUseNEW protected booleankeepCheckedOutNEW protected java.util.List<DomainFile>listNEW protected java.awt.ComponentparentNEW protected PluginTooltoolNEW protected booleanwasCanceled-
Fields inherited from class ghidra.util.task.Task
waitForTaskCompleted
-
-
Constructor Summary
Constructors Change Modifier Constructor Description protectedVersionControlTask(java.lang.String title, PluginTool tool, java.util.List<DomainFile> list, java.awt.Component parent)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description NEW protected booleancheckFilesForUnsavedChanges()NEW protected voidcheckFilesInUse()Sets the filesInUse field if any file is in use.NEW protected voidshowDialog(boolean addToVersionControl, java.lang.String filename)Show the dialog.-
Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, hasProgress, isForgettable, isInterruptible, isModal, monitoredRun, notifyTaskListeners, run, setForgettable, setHasProgress, setInterruptible
-
-
-
-
Field Detail
-
list NEW
protected java.util.List<DomainFile> list
-
tool NEW
protected PluginTool tool
Constructor Detail
-
VersionControlTask
protected VersionControlTask(java.lang.String title, PluginTool tool, java.util.List<DomainFile> list, java.awt.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 Detail
-
showDialog NEW
protected void showDialog(boolean addToVersionControl, java.lang.String filename)Show the dialog.- Parameters:
addToVersionControl- true if the dialog is for adding files to version control, false for checking in files.filename- the name of the file currently to be added, whose comment we need.
-
-