Class DeleteProjectFilesTask
- java.lang.Object
-
- ghidra.util.task.Task
-
- ghidra.framework.main.projectdata.actions.DeleteProjectFilesTask
-
- All Implemented Interfaces:
MonitoredRunnable
public class DeleteProjectFilesTask extends Task
Task for recursively deleting project files from a Ghidra project
-
-
Field Summary
-
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
-
Constructor Summary
Constructors Constructor Description DeleteProjectFilesTask(java.util.Set<DomainFolder> folders, java.util.Set<DomainFile> files, int fileCount, java.awt.Component parent)
Construct a new DeleteProjectFilesTask with the list of folders and files to delete.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFileCount()
int
getTotalDeleted()
void
run(TaskMonitor monitor)
This is the method that will be called to do the work-
Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, hasProgress, isModal, monitoredRun, notifyTaskListeners, setHasProgress
-
-
-
-
Constructor Detail
-
DeleteProjectFilesTask
public DeleteProjectFilesTask(java.util.Set<DomainFolder> folders, java.util.Set<DomainFile> files, int fileCount, java.awt.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 deletefiles
- the list of DomainFiles to deletefileCount
- the number of files being deletedparent
- the component to use for parenting any dialogs that are shown
-
-
Method Detail
-
run
public void run(TaskMonitor monitor)
Description copied from class:Task
This 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
SystemUtilities.runSwingLater(Runnable)
orSystemUtilities.runSwingNow(Runnable)
to schedule the Runnable inside of the AWT Event Thread.
-
getFileCount
public int getFileCount()
-
getTotalDeleted
public int getTotalDeleted()
-
-