Bug 6478 Jar packager progress messages misleading
When exporting classes to a JAR file, the progress message says things like: "Exporting org.eclipse.foo.MyFile.java" This is misleading, because it looks like it's adding .java files to the zip, but it's actually adding class files. I actually canceled the export and went to check the jar file when I saw these messages. I suggest just trimming the .java suffix: "Exporting org.eclipse.foo.MyFile"
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");