Package ghidra.framework.main
Class GetVersionedObjectTask
- java.lang.Object
-
- ghidra.util.task.Task
-
- ghidra.framework.main.GetVersionedObjectTask
-
- All Implemented Interfaces:
MonitoredRunnable
public class GetVersionedObjectTask extends Task
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
Constructors Constructor Description GetVersionedObjectTask(java.lang.Object consumer, DomainFile domainFile, int versionNumber)Constructor; task will get a read only domain objectGetVersionedObjectTask(java.lang.Object consumer, DomainFile domainFile, int versionNumber, boolean readOnly)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainObjectgetVersionedObject()Return the versioned domain object.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
-
-
-
-
Constructor Detail
-
GetVersionedObjectTask
public GetVersionedObjectTask(java.lang.Object consumer, DomainFile domainFile, int versionNumber)Constructor; task will get a read only domain object- Parameters:
consumer- consumer of the domain objectdomainFile- domain fileversionNumber- version
-
GetVersionedObjectTask
public GetVersionedObjectTask(java.lang.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 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.
-
getVersionedObject
public DomainObject getVersionedObject()
Return the versioned domain object.
-
-