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 theBatchInfoobject 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 intMAX_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 populatedBatchInfoinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(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
-
-
-
-
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 populatedBatchInfoinstance.- Parameters:
batchInfo-BatchInfostate objectdestFolder-DomainFolderwhere to place imported filesprogramManager-ProgramManagerto 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: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
SystemUtilities.runSwingLater(Runnable)orSystemUtilities.runSwingNow(Runnable)to schedule the Runnable inside of the AWT Event Thread.
-
-