Package com._1c.g5.v8.dt.common.ui
Class StatusImageProvider
java.lang.Object
com._1c.g5.v8.dt.common.ui.StatusImageProvider
Provide images for
IStatus by severity.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StatusImageProviderStandard message images for all status severitystatic final StatusImageProviderStandard task images for all status severity -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TASK_STATUS_IMAGES
Standard task images for all status severity -
MESSAGE_STATUS_IMAGES
Standard message images for all status severity
-
-
Constructor Details
-
StatusImageProvider
protected StatusImageProvider(org.eclipse.jface.resource.ImageRegistry imageRegistry, String okImageId, String infoImageId, String warningImageId, String errorImageId, String cancelImageId) Create image provider for status by severity- Parameters:
imageRegistry- an registry contain images, cannot benullokImageId- image id ofIStatus.OKseverity, cannot benullinfoImageId- image id ofIStatus.INFOseverity, cannot benullwarningImageId- image id ofIStatus.WARNINGseverity, cannot benullerrorImageId- image id ofIStatus.ERRORseverity, cannot benullcancelImageId- image id ofIStatus.CANCELseverity, cannot benull
-
-
Method Details
-
getImage
public org.eclipse.swt.graphics.Image getImage(int severity) Gets image for given status severity- Parameters:
severity- for gets image- Returns:
- image for given status severity, can be
nullif no image regestred for given severity
-
getImage
public org.eclipse.swt.graphics.Image getImage(org.eclipse.core.runtime.IStatus status) Gets image for given status by severity- Parameters:
status- for gets image, can benull- Returns:
- image for given status, can be
nullif status is null or no image regestred for given severity
-