Package ghidra.plugins.importer.tasks
Class ImportBatchTask
- java.lang.Object
-
- ghidra.util.task.Task
-
- ghidra.plugins.importer.tasks.ImportBatchTask
-
- All Implemented Interfaces:
MonitoredRunnable
public class ImportBatchTask extends Task
Performs a batch import using the data provided in theBatchInfo
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 Modifier and Type Field Description static int
MAX_PROGRAMS_TO_OPEN
-
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
-
Constructor Summary
Constructors Constructor Description ImportBatchTask(BatchInfo batchInfo, DomainFolder destFolder, ProgramManager programManager, boolean stripLeading, boolean stripAllContainerPath)
Start a Batch Import session with an already populatedBatchInfo
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, setHasProgress
-
-
-
-
Field Detail
-
MAX_PROGRAMS_TO_OPEN
public static final int MAX_PROGRAMS_TO_OPEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 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
Swing.runLater(Runnable)
orSwing.runNow(Runnable)
to schedule the Runnable inside of the AWT Event Thread.
-
-