org.eclipse.cdt.make.core
Class MakeProjectNature
java.lang.Object
org.eclipse.cdt.make.core.MakeProjectNature
- All Implemented Interfaces:
- org.eclipse.core.resources.IProjectNature
public class MakeProjectNature
- extends java.lang.Object
- implements org.eclipse.core.resources.IProjectNature
Field Summary |
static java.lang.String |
NATURE_ID
|
Method Summary |
void |
addBuildSpec()
|
static void |
addNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static void |
addToBuildSpec(org.eclipse.core.resources.IProject project,
java.lang.String builderID,
org.eclipse.core.runtime.IProgressMonitor mon)
Adds a builder to the build spec for the given project. |
void |
configure()
|
void |
deconfigure()
|
static org.eclipse.core.resources.ICommand |
getBuildSpec(org.eclipse.core.resources.IProjectDescription description,
java.lang.String builderID)
|
org.eclipse.core.resources.IProject |
getProject()
|
void |
removeBuildSpec()
|
static void |
removeFromBuildSpec(org.eclipse.core.resources.IProject project,
java.lang.String builderID,
org.eclipse.core.runtime.IProgressMonitor mon)
Removes the given builder from the build spec for the given project. |
static org.eclipse.core.resources.IProjectDescription |
setBuildSpec(org.eclipse.core.resources.IProjectDescription description,
org.eclipse.core.resources.ICommand newCommand)
Update the Java command in the build spec (replace existing one if present,
add one first if none). |
void |
setProject(org.eclipse.core.resources.IProject project)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NATURE_ID
public static final java.lang.String NATURE_ID
MakeProjectNature
public MakeProjectNature()
addNature
public static void addNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
getBuildSpec
public static org.eclipse.core.resources.ICommand getBuildSpec(org.eclipse.core.resources.IProjectDescription description,
java.lang.String builderID)
setBuildSpec
public static org.eclipse.core.resources.IProjectDescription setBuildSpec(org.eclipse.core.resources.IProjectDescription description,
org.eclipse.core.resources.ICommand newCommand)
- Update the Java command in the build spec (replace existing one if present,
add one first if none).
addToBuildSpec
public static void addToBuildSpec(org.eclipse.core.resources.IProject project,
java.lang.String builderID,
org.eclipse.core.runtime.IProgressMonitor mon)
throws org.eclipse.core.runtime.CoreException
- Adds a builder to the build spec for the given project.
- Throws:
org.eclipse.core.runtime.CoreException
removeFromBuildSpec
public static void removeFromBuildSpec(org.eclipse.core.resources.IProject project,
java.lang.String builderID,
org.eclipse.core.runtime.IProgressMonitor mon)
throws org.eclipse.core.runtime.CoreException
- Removes the given builder from the build spec for the given project.
- Throws:
org.eclipse.core.runtime.CoreException
addBuildSpec
public void addBuildSpec()
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
configure
public void configure()
throws org.eclipse.core.runtime.CoreException
- Specified by:
configure
in interface org.eclipse.core.resources.IProjectNature
- Throws:
org.eclipse.core.runtime.CoreException
- See Also:
IProjectNature.configure()
removeBuildSpec
public void removeBuildSpec()
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
deconfigure
public void deconfigure()
throws org.eclipse.core.runtime.CoreException
- Specified by:
deconfigure
in interface org.eclipse.core.resources.IProjectNature
- Throws:
org.eclipse.core.runtime.CoreException
- See Also:
IProjectNature.deconfigure()
getProject
public org.eclipse.core.resources.IProject getProject()
- Specified by:
getProject
in interface org.eclipse.core.resources.IProjectNature
- See Also:
IProjectNature.getProject()
setProject
public void setProject(org.eclipse.core.resources.IProject project)
- Specified by:
setProject
in interface org.eclipse.core.resources.IProjectNature
- See Also:
IProjectNature.setProject(org.eclipse.core.resources.IProject)