Package ghidra.plugins.importer.tasks
Class ImportBatchTask
java.lang.Object
ghidra.util.task.Task
ghidra.plugins.importer.tasks.ImportBatchTask
- All Implemented Interfaces:
MonitoredRunnable
Performs a batch import using the data provided in the
BatchInfo
object which
specifies what files and the import language that should be used.
If there are just a few files to import, they will be opened using the ProgramManager, otherwise the programManager parameter will be unused.
-
Field Summary
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
Constructor Summary
ConstructorDescriptionImportBatchTask
(BatchInfo batchInfo, DomainFolder destFolder, ProgramManager programManager, boolean stripLeading, boolean stripAllContainerPath) Start a Batch Import session with an already populatedBatchInfo
instance. -
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
-
Field Details
-
MAX_PROGRAMS_TO_OPEN
public static final int MAX_PROGRAMS_TO_OPEN- See Also:
-
-
Constructor Details
-
ImportBatchTask
public ImportBatchTask(BatchInfo batchInfo, DomainFolder destFolder, ProgramManager programManager, boolean stripLeading, boolean stripAllContainerPath) Start a Batch Import session with an already populatedBatchInfo
instance.- Parameters:
batchInfo
-BatchInfo
state objectdestFolder
-DomainFolder
where to place imported filesprogramManager
-ProgramManager
to use when opening newly imported files, null okstripLeading
- boolean true if each import source's leading path should be omitted when creating the destination project folder path.stripAllContainerPath
- boolean true if each imported file's parent container source path should be completely omitted when creating the destination project folder path. (the imported file's path within its container is still used)
-
-
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.
-