Class DeleteProjectFilesTask
java.lang.Object
ghidra.util.task.Task
ghidra.framework.main.projectdata.actions.DeleteProjectFilesTask
- All Implemented Interfaces:
- MonitoredRunnable
Task for recursively deleting project files from a Ghidra project
- 
Field SummaryFields inherited from class ghidra.util.task.TasktaskMonitor, waitForTaskCompleted
- 
Constructor SummaryConstructorsConstructorDescriptionDeleteProjectFilesTask(Set<DomainFolder> folders, Set<DomainFile> files, int fileCount, Component parent) Construct a new DeleteProjectFilesTask with the list of folders and files to delete.
- 
Method SummaryModifier and TypeMethodDescriptionintintvoidrun(TaskMonitor monitor) This is the method that will be called to do the workMethods inherited from class ghidra.util.task.TaskaddTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, setHasProgress
- 
Constructor Details- 
DeleteProjectFilesTaskpublic DeleteProjectFilesTask(Set<DomainFolder> folders, Set<DomainFile> files, int fileCount, Component parent) Construct a new DeleteProjectFilesTask with the list of folders and files to delete.- Parameters:
- folders- the fist of DomainFolders (and all files contained recursively in those folders) to delete
- files- the list of DomainFiles to delete
- fileCount- the number of files being deleted
- parent- the component to use for parenting any dialogs that are shown
 
 
- 
- 
Method Details- 
runDescription 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.
- 
getFileCountpublic int getFileCount()
- 
getTotalDeletedpublic int getTotalDeleted()
 
-