Package ghidra.framework.main
Class GetVersionedObjectTask
java.lang.Object
ghidra.util.task.Task
ghidra.framework.main.GetVersionedObjectTask
- All Implemented Interfaces:
MonitoredRunnable
A modal task that gets a domain object for a specific version.
-
Field Summary
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
Constructor Summary
ConstructorsConstructorDescriptionGetVersionedObjectTask
(Object consumer, DomainFile domainFile, int versionNumber) Constructor; task will get a read only domain objectGetVersionedObjectTask
(Object consumer, DomainFile domainFile, int versionNumber, boolean readOnly) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the versioned domain object.void
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
-
GetVersionedObjectTask
Constructor; task will get a read only domain object- Parameters:
consumer
- consumer of the domain objectdomainFile
- domain fileversionNumber
- version
-
GetVersionedObjectTask
public GetVersionedObjectTask(Object consumer, DomainFile domainFile, int versionNumber, boolean readOnly) Constructor- Parameters:
consumer
- consumer of the domain objectdomainFile
- domain fileversionNumber
- versionreadOnly
- true if the object should be read only versus immutable
-
-
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. -
getVersionedObject
Return the versioned domain object.
-