if( severity == Status.Severity.ERROR )
{
if( this.errorImage == null )
{
final ImageDescriptor desc = new ProblemOverlayImageDescriptor( this.baseImageDescriptor, Status.Severity.ERROR );
this.errorImage = desc.createImage();
}
return this.errorImage;
}
else if( severity == Status.Severity.WARNING )
{
if( this.warningImage == null )
{
final ImageDescriptor desc = new ProblemOverlayImageDescriptor( this.baseImageDescriptor, Status.Severity.WARNING );
this.warningImage = desc.createImage();
}
return this.warningImage;
}
else