org.eclipse.ui.statushandlers
public abstract class AbstractStatusAreaProvider extends ErrorSupportProvider
A status area provider creates an area that displays detailed information
about StatusAdapter or IStatus.
The area provider can be set in WorkbenchStatusDialogManager as well as in
JFace Policy since its extends ErrorSupportProvider.
| Constructor and Description |
|---|
AbstractStatusAreaProvider() |
| Modifier and Type | Method and Description |
|---|---|
Control |
createSupportArea(Composite parent,
IStatus status)
Create an area for adding support components as a child of parent.
|
abstract Control |
createSupportArea(Composite parent,
StatusAdapter statusAdapter)
Create an area for detailed support area as a child of the given parent.
|
boolean |
validFor(IStatus status)
This method is called before
createSupportArea(Composite, IStatus) to check if the
AbstractStatusAreaProvider will display any significant
informations. |
boolean |
validFor(StatusAdapter statusAdapter)
This method is called before
createSupportArea(Composite, StatusAdapter) to check if the
AbstractStatusAreaProvider will display any significant
informations. |
public abstract Control createSupportArea(Composite parent, StatusAdapter statusAdapter)
parent - A Composite that will host support area.statusAdapter - The StatusAdapter to be supported.public final Control createSupportArea(Composite parent, IStatus status)
ErrorSupportProvidercreateSupportArea in class ErrorSupportProviderparent - The parent Compositestatus - The IStatus that is being displayed.public boolean validFor(StatusAdapter statusAdapter)
createSupportArea(Composite, StatusAdapter) to check if the
AbstractStatusAreaProvider will display any significant
informations. If not, then it will not be presented at all.statusAdapter - - StatusAdapter for which status are will be
requested.StatusAdapterpublic final boolean validFor(IStatus status)
createSupportArea(Composite, IStatus) to check if the
AbstractStatusAreaProvider will display any significant
informations. If not, then it will not be presented at all.
This implementation wraps the IStatus into StatusAdapter
and calls validFor(StatusAdapter).validFor in class ErrorSupportProviderstatus - - IStatus for which status are will be requested.IStatusGuidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.