Bug 71546 CVS decoration not updated for jars after a commit
When committing a jar that is in the classpath, the CVS decoration is not updated in the package view. The decoration is first updated when closing the package view an opening it again.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ResourceToItemsMapper.java
ICompilationUnit cu= (ICompilationUnit) elem.getAncestor(IJavaElement.COMPILATION_UNIT);
					if (cu != null) {
						
						res= cu.getResource();
					}
				}
				return res; 
			}
			return null;
		} else if (element instanceof IResource) {
			return (IResource) element;
		}
		return null;
	}
	private void applyColorsAndFonts(Item item, ViewerLabel updateLabel) {
		if (item instanceof TreeItem) {
			TreeItem treeItem= (TreeItem) item;
			treeItem.setFont(updateLabel.getFont());
			treeItem.setForeground(updateLabel.getForeground());
			treeItem.setBackground(updateLabel.getBackground());
		} else if (item instanceof TableItem) {
			TableItem tableItem= (TableItem) item;
			tableItem.setFont(updateLabel.getFont());
			tableItem.setForeground(updateLabel.getForeground());
			tableItem.setBackground(updateLabel.getBackground());
		}
	}
	
}