Class ProjectDataDeleteTask
java.lang.Object
ghidra.util.task.Task
ghidra.framework.main.projectdata.actions.ProjectDataDeleteTask
- All Implemented Interfaces:
MonitoredRunnable
Task
that handles deleting files
and folders
from the project.
This task will iterate all the files and folders specified by the user to weed out common problem issues (read-only files, checked-out files), ask the user to confirm, and then perform the actual delete operations.
This task will show a summary dialog if there were multiple files involved or any errors encountered.
-
Field Summary
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
Constructor Summary
ConstructorDescriptionProjectDataDeleteTask
(List<DomainFile> files, List<DomainFolder> folders, Component parentComponent) Creates a new task to delete the specified files and folders. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(TaskMonitor monitor) This is the method that will be called to do the workMethods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, setHasProgress
-
Constructor Details
-
ProjectDataDeleteTask
public ProjectDataDeleteTask(List<DomainFile> files, List<DomainFolder> folders, Component parentComponent) Creates a new task to delete the specified files and folders.
-
-
Method Details
-
run
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
Swing.runLater(Runnable)
orSwing.runNow(Runnable)
to schedule the Runnable inside of the AWT Event Thread.
-