Class StatusImageProvider

java.lang.Object
com._1c.g5.v8.dt.common.ui.StatusImageProvider

public class StatusImageProvider extends Object
Provide images for IStatus by severity.
  • Field Details

    • TASK_STATUS_IMAGES

      public static final StatusImageProvider TASK_STATUS_IMAGES
      Standard task images for all status severity
    • MESSAGE_STATUS_IMAGES

      public static final StatusImageProvider 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 be null
      okImageId - image id of IStatus.OK severity, cannot be null
      infoImageId - image id of IStatus.INFO severity, cannot be null
      warningImageId - image id of IStatus.WARNING severity, cannot be null
      errorImageId - image id of IStatus.ERROR severity, cannot be null
      cancelImageId - image id of IStatus.CANCEL severity, cannot be null
  • 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 null if 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 be null
      Returns:
      image for given status, can be null if status is null or no image regestred for given severity