Bug 122819 [Metadata] Some UI classes use CPL
Several UI classes have CPL rather than EPL in their copyright notices. These should be fixed to indicate the proper license. I will attach a file because it is easier to read. CC Nick: the JAOO RCP adventure builder example in platform-ui-home is also all copyright with CPL - I don't know if that was intentional or not. If not, you probably need to update your template preferences to use EPL.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/ResourceUtil.java
* @param element the model element, or <code>null</code>
     * @return the resource mapping corresponding to the model element, or <code>null</code>
     * @since 3.2
     */
    public static ResourceMapping getResourceMapping(Object element) {
		if (element == null) {
			return null;
		}
		
		
		if (element instanceof ResourceMapping) {
			return (ResourceMapping) element;
		}
		
		
		Object adapter = getAdapter(element, ResourceMapping.class, true);
		if (adapter instanceof ResourceMapping) {
			return (ResourceMapping) adapter;
		}
		return null;
	}
    
    /**
     * Tries to extra a single file from the given resource mapping.
     * Returns the file if the mapping maps to a single file, or <code>null</code>
     * if it maps to zero or multiple files.
     * 
     * @param mapping the resource mapping
     * @return the file, or <code>null</code>
     */