Bug 5853 Jar packager: progress reporting not optimal
- follow smoke test until step "Create a Jar from a Jar Package Description" - do the steps observe: the progress bar show 100% right from the beginning.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
}
			return classFiles.iterator();
		}
		else {
			
			List binaryFiles= new ArrayList(1);
			IFile cpFile= outputContainer.getFile(pathInJar);
			if (cpFile.isAccessible()) {
				if (!cpFile.isLocal(IResource.DEPTH_ZERO))
					cpFile.setLocal(true , IResource.DEPTH_ZERO, progressMonitor);
				binaryFiles.add(cpFile);
			}
			else {
				String msg= JarPackagerMessages.getFormattedString("JarFileExportOperation.resourceOnCasspathNotAccessible", cpFile.getFullPath()); 
				throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), JavaStatusConstants.INTERNAL_ERROR, msg, null));
			}
			return binaryFiles.iterator();
		}
	}
	/**
	 * Answers whether the given resource is a Java file.
	 * The resource must be a file whose file name ends with ".java".
	 * 
	 * @return a <code>true<code> if the given resource is a Java file
	 */
	boolean isJavaFile(IResource file) {
		return file != null
			&& file.getType() == IFile.FILE
			&& file.getFileExtension() != null
			&& file.getFileExtension().equalsIgnoreCase("java");