Package org.eclipse.ui.statushandlers
Class AbstractStatusAreaProvider
- java.lang.Object
-
- org.eclipse.jface.dialogs.ErrorSupportProvider
-
- org.eclipse.ui.statushandlers.AbstractStatusAreaProvider
-
public abstract class AbstractStatusAreaProvider extends ErrorSupportProvider
A status area provider creates an area that displays detailed information about
StatusAdapterorIStatus.The area provider can be set in
WorkbenchStatusDialogManageras well as in JFacePolicysince its extendsErrorSupportProvider.
-
-
Constructor Summary
Constructors Constructor Description AbstractStatusAreaProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ControlcreateSupportArea(Composite parent, IStatus status)Create an area for adding support components as a child of parent.abstract ControlcreateSupportArea(Composite parent, StatusAdapter statusAdapter)Create an area for detailed support area as a child of the given parent.booleanvalidFor(StatusAdapter statusAdapter)This method is called beforecreateSupportArea(Composite, StatusAdapter)to check if it will display any significant implementation.-
Methods inherited from class org.eclipse.jface.dialogs.ErrorSupportProvider
validFor
-
-
-
-
Method Detail
-
createSupportArea
public abstract Control createSupportArea(Composite parent, StatusAdapter statusAdapter)
Create an area for detailed support area as a child of the given parent.- Parameters:
parent- ACompositethat will host support area.statusAdapter- TheStatusAdapterto be supported.- Returns:
- a control, that hold all support elements.
-
createSupportArea
public final Control createSupportArea(Composite parent, IStatus status)
Description copied from class:ErrorSupportProviderCreate an area for adding support components as a child of parent.- Specified by:
createSupportAreain classErrorSupportProvider- Parameters:
parent- The parentCompositestatus- TheIStatusthat is being displayed.- Returns:
- Control
-
validFor
public boolean validFor(StatusAdapter statusAdapter)
This method is called beforecreateSupportArea(Composite, StatusAdapter)to check if it will display any significant implementation.Important: This API is a part of work in progress and therefore is suitable only for support area providers (which are presented in the status dialog tray).
- Parameters:
statusAdapter- -StatusAdapterfor which status are will be requested.- Returns:
- true if provider is able to process particular
StatusAdapter - Since:
- 3.6
-
-