Package ghidra.debug.api.progress
Interface ProgressListener
public interface ProgressListener
A listener for events on the progress service, including updates to task progress
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDescribes how or why a task monitor was disposed -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeUpdated(MonitorReceiver monitor) Some other attribute has been updated cancelled cancel enabled indeterminate maximum show progress value in percent stringvoiderrorReported(MonitorReceiver monitor, Throwable error) A task has reported an errorvoidmessageUpdated(MonitorReceiver monitor, String message) A task has updated a monitor's messagevoidmonitorCreated(MonitorReceiver monitor) A new task monitor has been createdvoidmonitorDisposed(MonitorReceiver monitor, ProgressListener.Disposal disposal) A task monitor has been disposedvoidprogressUpdated(MonitorReceiver monitor, long progress) A task's progress has updated
-
Method Details
-
monitorCreated
A new task monitor has been createdThe subscriber ought to display the monitor as soon as is reasonable. Optionally, a subscriber may apply a grace period, e.g., half a second, before displaying it, in case it is quickly disposed.
- Parameters:
monitor- a means of retrieving messages and progress about the task
-
monitorDisposed
A task monitor has been disposed- Parameters:
monitor- the receiver for the disposed monitordisposal- why it was disposed
-
messageUpdated
A task has updated a monitor's message- Parameters:
monitor- the receiver whose monitor's message changedmessage- the new message
-
errorReported
A task has reported an error- Parameters:
monitor- the receiver for the task reporting the errorerror- the exception representing the error
-
progressUpdated
A task's progress has updatedNote the subscriber may need to use
MonitorReceiver.getMaximum()to properly update the display.- Parameters:
monitor- the receiver whose monitor's progress changedprogress- the new progress value
-
attributeUpdated
Some other attribute has been updated- cancelled
- cancel enabled
- indeterminate
- maximum
- show progress value in percent string
- Parameters:
monitor- the receiver whose monitor's attribute(s) changed
-