plugin/src/com/carrotgarden/eclipse/space/util/NatureUtil.java
/**
	 * Removes a nature from a project. This does nothing if the project doesn't
	 * have the nature.
	 */
Removes a nature from a project. This does nothing if the project doesn't
have the nature.
Removes a nature from a project . This does nothing if the project doesn ' t have the nature .
public static void remove(final IProject project, final String natureId, final IProgressMonitor monintor)
			throws CoreException {
		final IProjectDescription desc = project.getDescription();
		final String[] oldNaturesArr = desc.getNatureIds();
		final Set<String> natures = new LinkedHashSet<String>();
		for (final String n : oldNaturesArr) {
			if (!n.equals(natureId)) {
				natures.add(n);
			}
		}
		if (natures.size() != oldNaturesArr.length) {
			desc.setNatureIds(natures.toArray(new String[natures.size()]));
			project.setDescription(desc, monintor);
		}
	}
public static void remove ( final IProject project , final String natureId , final IProgressMonitor monintor ) throws CoreException { final IProjectDescription desc = project . getDescription ( ) ; final String [ ] oldNaturesArr = desc . getNatureIds ( ) ; final Set < String > natures = new LinkedHashSet < String > ( ) ; for ( final String n : oldNaturesArr ) { if ( ! n . equals ( natureId ) ) { natures . add ( n ) ; } } if ( natures . size ( ) != oldNaturesArr . length ) { desc . setNatureIds ( natures . toArray ( new String [ natures . size ( ) ] ) ) ; project . setDescription ( desc , monintor ) ; } }
Removes a nature from a project.
Removes a nature from a project .
// Something removed