capint
11/21/2016 - 2:44 PM

Eclipse >> Status handling

Eclipse >> Status handling

>> Status handlers
  Responsible for presenting problems by logging or showing appropriate feedback to the user (generally dialogs).
  Extend org.eclipse.ui.statushandlers.AbstractStatusHandler

>> Status manager
  Is the entry point for all statuses that are to be displayed in the user interface. Handlers are not intended to be used directly. They should be referenced via the StatusManager
  For example:
  
  StatusManager.getManager().handle(new Status(IStatus.ERROR, PLUGIN_ID, "Error message", exception));//$NON-NLS-1$

>> StatusAdapter
  Wraps an instance of IStatus and can hold additional information