Bug 15790 Java file icons too fat in editor tabs
Eclipse 20020508 All platforms 1) Open a .txt file. 2) Open a .java file Look at the space between the edge of the tab and the image and the edge of the image and the start of the text. The image used for *.java has extra space on the left and right edges. This is using up pixels that would be better used for displaying the file name.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaUILabelProvider.java
public boolean isLabelProperty(Object element, String property) {
		return true;	
	}
	/* (non-Javadoc)
	 * @see IBaseLabelProvider#removeListener(ILabelProviderListener)
	 */
	public void removeListener(ILabelProviderListener listener) {
		if (fLabelDecorators != null) {
			for (int i= 0; i < fLabelDecorators.length; i++) {
				fLabelDecorators[i].removeListener(listener);
			}
		}
		super.removeListener(listener);	
	}
	
	public static ILabelDecorator[] getDecorators(boolean errortick, ILabelDecorator extra) {
		if (errortick) {
			if (extra == null) {
				return new ILabelDecorator[] { new ProblemsLabelDecorator(null) };
			} else {
				return new ILabelDecorator[] { new ProblemsLabelDecorator(null), extra };
			}
		}
		if (extra != null) {
			return new ILabelDecorator[] { extra };
		}
		return null;
	}	
}