Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/rpm
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-01-11 15:58:05 +0000
committerCamilo Bernal2013-01-11 16:51:24 +0000
commitd1b20076b899e1f7732ebc460904aae843a21aae (patch)
tree72591339809f0978fde51349fc318dc7ecea321a /rpm
parent09fe925ee71224e064cf49a2181fee13bd5ce46b (diff)
downloadorg.eclipse.linuxtools-d1b20076b899e1f7732ebc460904aae843a21aae.tar.gz
org.eclipse.linuxtools-d1b20076b899e1f7732ebc460904aae843a21aae.tar.xz
org.eclipse.linuxtools-d1b20076b899e1f7732ebc460904aae843a21aae.zip
Removing rpm nature is unneeded.
Change-Id: I9b35e8a6f6a1715fe2d126514a300fb1b562d388 Reviewed-on: https://git.eclipse.org/r/9629 Tested-by: Hudson CI Reviewed-by: Camilo Bernal <cabernal@redhat.com> IP-Clean: Camilo Bernal <cabernal@redhat.com> Tested-by: Camilo Bernal <cabernal@redhat.com>
Diffstat (limited to 'rpm')
-rw-r--r--rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/RPMProjectNature.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/RPMProjectNature.java b/rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/RPMProjectNature.java
index bfc7ca07ad..03f7b70af0 100644
--- a/rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/RPMProjectNature.java
+++ b/rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/RPMProjectNature.java
@@ -10,10 +10,6 @@
*******************************************************************************/
package org.eclipse.linuxtools.rpm.core;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IProjectNature;
@@ -40,17 +36,6 @@ public class RPMProjectNature implements IProjectNature {
}
/**
- * Removes the RPM project nature from a given workspace project.
- * @param project the project
- * @param mon a progress monitor, or <code>null</code> if progress monitoring
- * is not desired
- * @throws CoreException if removing the RPM project nature fails
- */
- public static void removeRPMNature(IProject project, IProgressMonitor mon) throws CoreException {
- removeNature(project, IRPMConstants.RPM_NATURE_ID, mon);
- }
-
- /**
* Utility method for adding a nature to a project.
*
* @param proj
@@ -75,26 +60,6 @@ public class RPMProjectNature implements IProjectNature {
project.setDescription(description, monitor);
}
- /**
- * Utility method for removing a project nature from a project.
- *
- * @param proj
- * the project to remove the nature from
- * @param natureId
- * the nature id to remove
- * @param monitor
- * a progress monitor to indicate the duration of the operation,
- * or <code>null</code> if progress reporting is not required.
- */
- private static void removeNature(IProject project, String natureId, IProgressMonitor monitor) throws CoreException {
- IProjectDescription description = project.getDescription();
- String[] prevNatures = description.getNatureIds();
- List<String> newNatures = new ArrayList<String>(Arrays.asList(prevNatures));
- newNatures.remove(natureId);
- description.setNatureIds(newNatures.toArray(new String[newNatures.size()]));
- project.setDescription(description, monitor);
- }
-
public void configure() throws CoreException {
}

Back to the top