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
}
		
		
		if (element instanceof IFile) {
			return (IFile) element;
		}
		
		
		ResourceMapping mapping = getResourceMapping(element);
		if (mapping != null) {
			return getFileFromResourceMapping(mapping);
		}
		
		
		Object adapter = getAdapter(element, IFile.class, true);
		if (adapter instanceof IFile) {
			return (IFile) adapter;
		}
		
		
		adapter = getAdapter(element, IResource.class, true);
		if (adapter instanceof IFile) {
			return (IFile) adapter;
		}
		return null;
    }
	/**
     * Returns the resource mapping corresponding to the given model element, or <code>null</code>
     * if there is no applicable resource mapping.
     *