dialog.setInitialSelection(null);
dialog.setInitialSelections(null);
	protected void handleMainClassBrowseButtonPressed() {		List resources= fJarPackage.getSelectedResources();		if (resources == null) {			setErrorMessage(JarPackagerMessages.getString("JarManifestWizardPage.error.noResourceSelected")); //$NON-NLS-1$			return;		}		IJavaSearchScope searchScope= SearchEngine.createJavaSearchScope((IResource[])resources.toArray(new IResource[resources.size()]));		SelectionStatusDialog dialog= (SelectionStatusDialog)JavaUI.createMainTypeDialog(getContainer().getShell(), getContainer(), searchScope, 0, false);		dialog.setTitle(JarPackagerMessages.getString("JarManifestWizardPage.mainTypeSelectionDialog.title")); //$NON-NLS-1$		dialog.setMessage(JarPackagerMessages.getString("JarManifestWizardPage.mainTypeSelectionDialog.message")); //$NON-NLS-1$		IType mainClass= fJarPackage.getMainClass();		if (mainClass != null)			dialog.setInitialSelections(new String[] {mainClass.getElementName()});		else			dialog.setInitialSelection(null);		if (dialog.open() == dialog.OK) {			fJarPackage.setMainClass((IType)dialog.getResult()[0]);			fMainClassText.setText(fJarPackage.getMainClassName());		} else if (!fJarPackage.isMainClassValid(getContainer())) {			// user did not cancel: no types were found			fJarPackage.setMainClass(null);			fMainClassText.setText(fJarPackage.getMainClassName());		}	}