Bug 121084 [jar packager] Next and Finish buttons are disabled if project is selected by keyboard
Next button is not enabled if keyboard is use to select file. How to reproduce : 1. in a Java project, in Package Explorer make JRE System Library the current item 2. From keyboard select alt-f,o (export wizard) 3. On select pane, press Enter 4. On second pane, (the Finish and Next buttons are disabled), select a project using arrow key and space to select projet. --> Finish and Next buttons are still disabled... Workaround : - Use mouse to select project in second pane.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java
String[] directoryNames= settings.getArray(STORE_DESTINATION_NAMES);
			if (directoryNames == null)
				return; 
			fJarPackage.setJarLocation(Path.fromOSString(directoryNames[0]));
		}
	}
	/**
	 *	Stores the widget values in the JAR package.
	 */
	protected void updateModel() {
		if (getControl() == null)
			return;
		
		
		if (fExportClassFilesCheckbox.getSelection() && !fJarPackage.areClassFilesExported())
			fExportOutputFoldersCheckbox.setSelection(false);
		if (fExportOutputFoldersCheckbox.getSelection() && !fJarPackage.areOutputFoldersExported())
			fExportClassFilesCheckbox.setSelection(false);
		fJarPackage.setExportClassFiles(fExportClassFilesCheckbox.getSelection());
		fJarPackage.setExportOutputFolders(fExportOutputFoldersCheckbox.getSelection());
		fJarPackage.setExportJavaFiles(fExportJavaFilesCheckbox.getSelection());
		fJarPackage.setElements(getSelectedElements());
		
		String comboText= fDestinationNamesCombo.getText();
		IPath path= Path.fromOSString(comboText);
		if (path.segmentCount() > 0 && ensureTargetFileIsValid(path.toFile()) && path.getFileExtension() == null) 
			
			path= path.addFileExtension(JarPackagerUtil.JAR_EXTENSION);
		fJarPackage.setJarLocation(path);