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 (editorInput == null) {
			return null;
		}
        
        
        Object o = editorInput.getAdapter(IFile.class);
        if (o instanceof IFile) {
			return (IFile) o;
		}
        return null;
    }
    /**
     * Returns the resource corresponding to the given editor input, or <code>null</code>
     * if there is no applicable resource.
     * Returns <code>null</code> if the given editor input is <code>null</code>.
     * 
     * @param editorInput the editor input
     * @return the file corresponding to the editor input, or <code>null</code>
     */
    public static IResource getResource(IEditorInput editorInput) {
		if (editorInput == null) {
			return null;
		}
        
        
        Object o = editorInput.getAdapter(IResource.class);
        if (o instanceof IResource) {
			return (IResource) o;
		}