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.
  • Constructor Details

    • GetVersionedObjectTask

      public GetVersionedObjectTask(Object consumer, DomainFile domainFile, int versionNumber)
      Constructor; task will get a read only domain object
      Parameters:
      consumer - consumer of the domain object
      domainFile - domain file
      versionNumber - version
    • GetVersionedObjectTask

      public GetVersionedObjectTask(Object consumer, DomainFile domainFile, int versionNumber, boolean readOnly)
      Constructor
      Parameters:
      consumer - consumer of the domain object
      domainFile - domain file
      versionNumber - version
      readOnly - true if the object should be read only versus immutable
  • Method Details

    • run

      public void run(TaskMonitor monitor)
      Description copied from class: Task
      This is the method that will be called to do the work

      Note: 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) or Swing.runNow(Runnable)to schedule the Runnable inside of the AWT Event Thread.

      Specified by:
      run in class Task
      Parameters:
      monitor - The TaskMonitor that will monitor the executing Task
    • getVersionedObject

      public DomainObject getVersionedObject()
      Return the versioned domain object.