Package ghidra.framework.main.datatree
Class CheckInTask
- java.lang.Object
 - 
- ghidra.util.task.Task
 - 
- ghidra.framework.main.datatree.VersionControlTask
 - 
- ghidra.framework.main.datatree.CheckInTask
 
 
 
 
- 
- All Implemented Interfaces:
 CheckinHandler,MonitoredRunnable
public class CheckInTask extends VersionControlTask implements CheckinHandler
Task to perform a check on a list of DomainFiles. 
- 
- 
Field Summary
- 
Fields inherited from class ghidra.framework.main.datatree.VersionControlTask
actionID, comments, createKeep, filesInUse, keepCheckedOut, list, parent, tool, wasCanceled 
- 
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CheckInTask(PluginTool tool, java.util.List<DomainFile> list, java.awt.Component parent)Construct a new CheckInTask. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateKeepFile()Returns true if the system should create a keep file copy of the user's check-in file.java.lang.StringgetComment()Returns the check-in comment.booleankeepCheckedOut()Returns true if check-out state should be retained.voidrun(TaskMonitor myMonitor)This is the method that will be called to do the work- 
Methods inherited from class ghidra.framework.main.datatree.VersionControlTask
checkFilesForUnsavedChanges, checkFilesInUse, showDialog 
- 
Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, hasProgress, isModal, monitoredRun, notifyTaskListeners, setHasProgress 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
CheckInTask
public CheckInTask(PluginTool tool, java.util.List<DomainFile> list, java.awt.Component parent)
Construct a new CheckInTask.- Parameters:
 tool- tool that has the files to be checked inlist- list of domain files to be checked inparent- parent of error dialog if an error occurs
 
 - 
 
- 
Method Detail
- 
run
public void run(TaskMonitor myMonitor)
Description copied from class:TaskThis is the method that will be called to do the workNote: The run(TaskMonitor) method should not make any calls directly on Swing components, as these calls are not thread safe. Place Swing calls in a Runnable, then call
Swing.runLater(Runnable)orSwing.runNow(Runnable)to schedule the Runnable inside of the AWT Event Thread. 
- 
getComment
public java.lang.String getComment() throws CancelledExceptionDescription copied from interface:CheckinHandlerReturns the check-in comment.- Specified by:
 getCommentin interfaceCheckinHandler- Returns:
 - the check-in comment
 - Throws:
 CancelledException- thrown if user cancels the check-in
 
- 
keepCheckedOut
public boolean keepCheckedOut() throws CancelledExceptionDescription copied from interface:CheckinHandlerReturns true if check-out state should be retained.- Specified by:
 keepCheckedOutin interfaceCheckinHandler- Returns:
 - true if check-out state should be retained
 - Throws:
 CancelledException- thrown if user cancels the check-in
 
- 
createKeepFile
public boolean createKeepFile() throws CancelledExceptionDescription copied from interface:CheckinHandlerReturns true if the system should create a keep file copy of the user's check-in file.- Specified by:
 createKeepFilein interfaceCheckinHandler- Throws:
 CancelledException- thrown if user cancels the check-in
 
 - 
 
 -