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
}
			progressMonitor.done();
		}
	}
	
	protected boolean preconditionsOK() {
		if (!fJarPackage.areClassFilesExported() && !fJarPackage.areJavaFilesExported()) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.noExportTypeChosen"), null); 
			return false;
		}
		if (fJarPackage.getSelectedElements() == null || fJarPackage.getSelectedElements().size() == 0) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.noResourcesSelected"), null); 
			return false;
		}
		if (fJarPackage.getJarLocation() == null) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.invalidJarLocation"), null); 
			return false;
		}
		if (!fJarPackage.doesManifestExist()) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.manifestDoesNotExist"), null); 
			return false;
		}
		if (!fJarPackage.isMainClassValid(new BusyIndicatorRunnableContext())) {
			addError(JarPackagerMessages.getString("JarFileExportOperation.invalidMainClass"), null); 
			return false;
		}
		IEditorPart[] dirtyEditors= JavaPlugin.getDirtyEditors();
		if (dirtyEditors.length > 0) {
			List unsavedFiles= new ArrayList(dirtyEditors.length);
			List selection= fJarPackage.getSelectedResources();