if (JavaPlugin.getWorkspace().getRoot().getLocation().isPrefixOf(fJarPackage.getJarLocation())) { int segments= JavaPlugin.getWorkspace().getRoot().getLocation().matchingFirstSegments(fJarPackage.getJarLocation()); IPath path= fJarPackage.getJarLocation().removeFirstSegments(segments); IResource resource= JavaPlugin.getWorkspace().getRoot().findMember(path); if (resource != null) {  if (fJarPackage.getSelectedResources().contains(resource)) { setErrorMessage(JarPackagerMessages.getString("JarPackageWizardPage.error.cantExportJARIntoItself")); return false; } } }
	protected boolean validateDestinationGroup() {		if (fDestinationNamesCombo.getText().length() == 0) {			return false;		}		if (fJarPackage.getJarLocation().toString().endsWith("/")) { //$NON-NLS-1$			setErrorMessage(JarPackagerMessages.getString("JarPackageWizardPage.error.exportDestinationMustNotBeDirectory")); //$NON-NLS-1$			fDestinationNamesCombo.setFocus();			return false;		}		return ensureTargetFileIsValid(fJarPackage.getJarLocation().toFile());	}