CTabItem item = null;
boolean error = false;
Image image = null;
for (int i = 0; i < tabs.length; i++) {
item = fTabFolder.getItem(i);
ILaunchConfigurationTab tab = tabs[i];
image = tab.getImage();
item.setImage(image);
if(!tab.isValid(getWorkingCopy())) {
error = tab.getErrorMessage() != null;
if(error) {
ImageRegistry reg = getPlugin().getImageRegistry();
String errorImageName = "error_" + tab.getName();
Image errorImage = reg.get(errorImageName);
if(errorImage == null){
ImageDescriptor desc = reg.getDescriptor("over_error");
DecorationOverlayIcon icon = new DecorationOverlayIcon(image, desc, IDecoration.TOP_LEFT);
reg.put(errorImageName , icon);