IJavaSearchScope searchScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope((IResource[])resources.toArray(new IResource[resources.size()]));
IJavaSearchScope searchScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope((IResource[])resources.toArray(new IResource[resources.size()]), true);
	protected void handleMainClassBrowseButtonPressed() {		List resources= JarPackagerUtil.asResources(fJarPackage.getElements());		if (resources == null) {			setErrorMessage(JarPackagerMessages.getString("JarManifestWizardPage.error.noResourceSelected")); //$NON-NLS-1$			return;		}		IJavaSearchScope searchScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope((IResource[])resources.toArray(new IResource[resources.size()]));		SelectionDialog dialog= JavaUI.createMainTypeDialog(getContainer().getShell(), getContainer(), searchScope, 0, false, ""); //$NON-NLS-1$		dialog.setTitle(JarPackagerMessages.getString("JarManifestWizardPage.mainTypeSelectionDialog.title")); //$NON-NLS-1$		dialog.setMessage(JarPackagerMessages.getString("JarManifestWizardPage.mainTypeSelectionDialog.message")); //$NON-NLS-1$		if (fJarPackage.getManifestMainClass() != null)			dialog.setInitialSelections(new Object[] {fJarPackage.getManifestMainClass()});		if (dialog.open() == Window.OK) {			fJarPackage.setManifestMainClass((IType)dialog.getResult()[0]);			fMainClassText.setText(JarPackagerUtil.getMainClassName(fJarPackage));		} else if (!fJarPackage.isMainClassValid(getContainer())) {			// user did not cancel: no types were found			fJarPackage.setManifestMainClass(null);			fMainClassText.setText(JarPackagerUtil.getMainClassName(fJarPackage));		}	}