/** * Helper method to return an image with error overlay. * * @param baseKey - key of the base image. Expected to be in repository. * @return an image with error overlay. */ public static Image getImageWithError(String baseKey) { return VersionTreeImages.getImageOverlaid( baseKey, VersionTreeImages.IMG_OVR_ERROR, IDecoration.BOTTOM_LEFT); }
/** * Helper method to return an image with warning overlay. * * @param baseKey - key of the base image. Expected to be in repository. * @return an image with warning overlay. */ public static Image getImageWithWarning(String baseKey) { return VersionTreeImages.getImageOverlaid( baseKey, VersionTreeImages.IMG_OVR_WARNING, IDecoration.BOTTOM_LEFT); }