Bug 6125 JAR packager reports open files very late
1. edit in a file, don't save 2. open the JAR packager on it's project 3. enter all path, destination, name of jar packager description, etc 4. press finish: 'JAR creation failed: Unsaved Editors' 5. To save, I have to quit the wizard, save, open the wizard again and then enter all fields again - I should be allowed to create a JAR with unsaved editors - If not, there should be a dialog to allow saving
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
else
							pkgRoot= jProject.findPackageFragmentRoot(resource.getFullPath().removeLastSegments(1));
					} catch (JavaModelException ex) {
						addWarning(JarPackagerMessages.getFormattedString("JarFileExportOperation.javaPackageNotDeterminable", resource.getFullPath()), ex); 
						return;
					}
				}
			}
			
			if (pkgRoot != null) {
				leadSegmentsToRemove= pkgRoot.getPath().segmentCount();
				if (fJarPackage.useSourceFolderHierarchy()&& !pkgRoot.getElementName().equals(pkgRoot.DEFAULT_PACKAGEROOT_PATH))
					leadSegmentsToRemove--;
			}
			
			IPath destinationPath= resource.getFullPath().removeFirstSegments(leadSegmentsToRemove);
			
			boolean isInOutputFolder= false;
			if (isInJavaProject) {
				try {
					isInOutputFolder= jProject.getOutputLocation().isPrefixOf(resource.getFullPath());
				} catch (JavaModelException ex) {
					isInOutputFolder= false;
				}
			}
			
			exportClassFiles(progressMonitor, pkgRoot, resource, jProject, destinationPath);
			exportResource(progressMonitor, pkgRoot, isInJavaProject, resource, destinationPath, isInOutputFolder);
			progressMonitor.worked(1);
			ModalContext.checkCanceled(progressMonitor);