Bug 15877 Jar export wizard (driver 020502)
Hi, I really don't know if this is the correct category for this bug. Sorry if I am at the wrong place. The option of saving the "export to jar" wizard settings on a file is really good. The only problem is that if I activate the Jar wizard again (not using the jardesc file) to do an export that I don't to create a jardesc for, all the previous settings are loaded again, including the jardesc file name. Since this information is on the 2nd or 3rd page, I got it rewrite without knowing it. Maybe the export wizard should keep the previous settings only if a jardesc is NOT created (afterall why do I need then persisted between wizard activations if I saved the information?).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
final ConfirmSaveModifiedResourcesDialog dlg= new ConfirmSaveModifiedResourcesDialog(fParentShell, dirtyFiles);
		final int[] intResult= new int[1];
		Runnable runnable= new Runnable() {
			public void run() {
				intResult[0]= dlg.open();
			}
		};
		display.syncExec(runnable);
		return intResult[0] == IDialogConstants.OK_ID;
	}
	/**
	 * Asks to confirm to save the modified resources
	 * and save them if OK is pressed.
	 * 
	 * @return true if user pressed OK and save was successful.
	 */
	private boolean saveModifiedResourcesIfUserConfirms(IFile[] dirtyFiles) {
		if (confirmSaveModifiedResources(dirtyFiles))
			return saveModifiedResources(dirtyFiles);
		
		for (int i= 0; i < dirtyFiles.length; i++)
			addError(JarPackagerMessages.getFormattedString("JarFileExportOperation.fileUnsaved", dirtyFiles[i].getFullPath()), null); 
		return false;
	}
	/**
	 * Save all of the editors in the workbench.  
	 * 
	 * @return true if successful.
	 */
	private boolean saveModifiedResources(final IFile[] dirtyFiles) {