Bug 8476 JAR Packager: Make main class field editable
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarManifestWizardPage.java
}
	protected void handleManifestFileBrowseButtonPressed() {
		ElementTreeSelectionDialog dialog= createWorkspaceFileSelectionDialog(JarPackagerMessages.getString("JarManifestWizardPage.manifestSelectionDialog.title"), JarPackagerMessages.getString("JarManifestWizardPage.manifestSelectionDialog.message")); 
		if (fJarPackage.doesManifestExist())
			dialog.setInitialSelections(new IResource[] {fJarPackage.getManifestFile()});
		if (dialog.open() ==  dialog.OK) {
			Object[] resources= dialog.getResult();
			if (resources.length != 1)
				setErrorMessage(JarPackagerMessages.getString("JarManifestWizardPage.error.onlyOneManifestMustBeSelected")); 
			else {
				setErrorMessage(""); 
				fJarPackage.setManifestLocation(((IResource)resources[0]).getFullPath());
				fManifestFileText.setText(fJarPackage.getManifestLocation().toString());
			}
		}
	}
	protected void handleMainClassBrowseButtonPressed() {
		List resources= fJarPackage.getSelectedResources();
		if (resources == null) {
			setErrorMessage(JarPackagerMessages.getString("JarManifestWizardPage.error.noResourceSelected")); 
			return;
		}
		IJavaSearchScope searchScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope((IResource[])resources.toArray(new IResource[resources.size()]));
		SelectionDialog dialog= JavaUI.createMainTypeDialog(getContainer().getShell(), getContainer(), searchScope, 0, false, ""); 
		dialog.setTitle(JarPackagerMessages.getString("JarManifestWizardPage.mainTypeSelectionDialog.title")); 
		dialog.setMessage(JarPackagerMessages.getString("JarManifestWizardPage.mainTypeSelectionDialog.message")); 
		if (fJarPackage.getMainClass() != null)
			dialog.setInitialSelections(new Object[] {fJarPackage.getMainClass()});
		if (dialog.open() == dialog.OK) {
			fJarPackage.setMainClass((IType)dialog.getResult()[0]);