Package ghidra.feature.vt.gui.task
Class ApplyMarkupItemTask
java.lang.Object
ghidra.util.task.Task
ghidra.feature.vt.gui.task.VtTask
ghidra.feature.vt.gui.task.ApplyMarkupItemTask
- All Implemented Interfaces:
ghidra.util.task.MonitoredRunnable
- Direct Known Subclasses:
ForceApplyMarkupItemTask
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Collection
<VTMarkupItem> protected final ghidra.framework.options.ToolOptions
Fields inherited from class ghidra.util.task.Task
taskMonitor, waitForTaskCompleted
-
Constructor Summary
ConstructorDescriptionApplyMarkupItemTask
(VTSession session, Collection<VTMarkupItem> markupItems, ghidra.framework.options.ToolOptions options) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doWork
(ghidra.util.task.TaskMonitor monitor) protected VTMarkupItemApplyActionType
getApplyActionType
(VTMarkupItem markupItem, ghidra.framework.options.ToolOptions markupItemOptions) protected boolean
Determine if session events should be suspended during task execution.Methods inherited from class ghidra.feature.vt.gui.task.VtTask
addErrors, getErrorDetails, getErrorHeader, hasErrors, reportError, run, showErrors, wasCancelled, wasSuccessfull
Methods inherited from class ghidra.util.task.Task
addTaskListener, canCancel, cancel, getStatusTextAlignment, getTaskTitle, getWaitForTaskCompleted, hasProgress, isCancelled, isModal, monitoredRun, notifyTaskListeners, setHasProgress
-
Field Details
-
markupItems
-
options
protected final ghidra.framework.options.ToolOptions options
-
-
Constructor Details
-
ApplyMarkupItemTask
public ApplyMarkupItemTask(VTSession session, Collection<VTMarkupItem> markupItems, ghidra.framework.options.ToolOptions options)
-
-
Method Details
-
shouldSuspendSessionEvents
protected boolean shouldSuspendSessionEvents()Description copied from class:VtTask
Determine if session events should be suspended during task execution. This can improve performance during task execution at the expense of bulk table updates at task completion. Method return false by default. If not constructed with a session this method is not used.- Overrides:
shouldSuspendSessionEvents
in classVtTask
- Returns:
- true if events should be suspended
-
getApplyActionType
protected VTMarkupItemApplyActionType getApplyActionType(VTMarkupItem markupItem, ghidra.framework.options.ToolOptions markupItemOptions) -
doWork
protected boolean doWork(ghidra.util.task.TaskMonitor monitor) throws ghidra.util.exception.CancelledException
-