Package ghidra.app.util.task
Class OpenProgramTask
java.lang.Object
ghidra.util.task.Task
ghidra.app.util.task.OpenProgramTask
- All Implemented Interfaces:
MonitoredRunnable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
Constructor Summary
ConstructorsConstructorDescriptionOpenProgramTask
(DomainFile domainFile, boolean forceReadOnly, Object consumer) OpenProgramTask
(DomainFile domainFile, int version, boolean forceReadOnly, Object consumer) OpenProgramTask
(DomainFile domainFile, int version, Object consumer) OpenProgramTask
(DomainFile domainFile, Object consumer) OpenProgramTask
(Object consumer) OpenProgramTask
(URL ghidraURL, Object consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProgramToOpen
(DomainFile domainFile, int version) void
addProgramToOpen
(DomainFile domainFile, int version, boolean forceReadOnly) void
addProgramToOpen
(URL ghidraURL) Get the first successful open program requestGet all successful open program requestsboolean
void
run
(TaskMonitor monitor) This is the method that will be called to do the workvoid
Invoking this method prior to task execution will prevent the use of optional checkout which require prompting the user.void
setOpenPromptText
(String text) void
Invoking this method prior to task execution will prevent any confirmation interaction with the user (e.g., optional checkout, snapshot recovery, etc.).Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, setHasProgress
-
Constructor Details
-
OpenProgramTask
-
OpenProgramTask
-
OpenProgramTask
-
OpenProgramTask
-
OpenProgramTask
-
OpenProgramTask
-
-
Method Details
-
setOpenPromptText
-
addProgramToOpen
-
addProgramToOpen
-
addProgramToOpen
-
hasOpenProgramRequests
public boolean hasOpenProgramRequests() -
setSilent
public void setSilent()Invoking this method prior to task execution will prevent any confirmation interaction with the user (e.g., optional checkout, snapshot recovery, etc.). Errors may still be displayed if they occur. -
setNoCheckout
public void setNoCheckout()Invoking this method prior to task execution will prevent the use of optional checkout which require prompting the user. -
getOpenPrograms
Get all successful open program requests- Returns:
- all successful open program requests
-
getOpenProgram
Get the first successful open program request- Returns:
- first successful open program request or null if none
-
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.
-