|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.core.ManagedCProjectNature
public class ManagedCProjectNature
Field Summary | |
---|---|
static java.lang.String |
BUILDER_ID
|
static java.lang.String |
BUILDER_NAME
|
static java.lang.String |
MNG_NATURE_ID
|
Constructor Summary | |
---|---|
ManagedCProjectNature()
|
Method Summary | |
---|---|
static void |
addManagedBuilder(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static void |
addManagedNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Utility method for adding a managed nature to a project. |
static void |
addNature(org.eclipse.core.resources.IProject project,
java.lang.String natureId,
org.eclipse.core.runtime.IProgressMonitor monitor)
Utility method for adding a nature to a project. |
void |
configure()
|
void |
deconfigure()
|
static java.lang.String |
getBuilderID()
Get the correct builderID |
static org.eclipse.core.resources.ICommand |
getBuildSpec(org.eclipse.core.resources.IProjectDescription description,
java.lang.String builderID)
|
org.eclipse.core.resources.IProject |
getProject()
|
static void |
removeManagedNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor mon)
Utility method to remove the managed nature from a project. |
static void |
removeNature(org.eclipse.core.resources.IProject project,
java.lang.String natureId,
org.eclipse.core.runtime.IProgressMonitor monitor)
Utility method for removing a project nature from a 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 |
Field Detail |
---|
public static final java.lang.String BUILDER_NAME
public static final java.lang.String BUILDER_ID
public static final java.lang.String MNG_NATURE_ID
Constructor Detail |
---|
public ManagedCProjectNature()
Method Detail |
---|
public static void addManagedNature(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
proj
- the project to add the managed nature to.monitor
- a progress monitor to indicate the duration of the operation, or
null
if progress reporting is not required.
org.eclipse.core.runtime.CoreException
public static void addManagedBuilder(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void addNature(org.eclipse.core.resources.IProject project, java.lang.String natureId, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
proj
- the project to add the nature to.natureId
- the id of the nature to assign to the projectmonitor
- a progress monitor to indicate the duration of the operation, or
null
if progress reporting is not required.
org.eclipse.core.runtime.CoreException
public static org.eclipse.core.resources.IProjectDescription setBuildSpec(org.eclipse.core.resources.IProjectDescription description, org.eclipse.core.resources.ICommand newCommand)
public static org.eclipse.core.resources.ICommand getBuildSpec(org.eclipse.core.resources.IProjectDescription description, java.lang.String builderID)
public static java.lang.String getBuilderID()
public void configure() throws org.eclipse.core.runtime.CoreException
configure
in interface org.eclipse.core.resources.IProjectNature
org.eclipse.core.runtime.CoreException
public void deconfigure() throws org.eclipse.core.runtime.CoreException
deconfigure
in interface org.eclipse.core.resources.IProjectNature
org.eclipse.core.runtime.CoreException
public org.eclipse.core.resources.IProject getProject()
getProject
in interface org.eclipse.core.resources.IProjectNature
public static void removeManagedNature(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor mon) throws org.eclipse.core.runtime.CoreException
project
- to remove the managed nature frommon
- progress monitor to indicate the duration of the operation, or
null
if progress reporting is not required.
org.eclipse.core.runtime.CoreException
public static void removeNature(org.eclipse.core.resources.IProject project, java.lang.String natureId, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
proj
- the project to remove the nature fromnatureId
- the nature id to removemonitor
- a progress monitor to indicate the duration of the operation, or
null
if progress reporting is not required.
org.eclipse.core.runtime.CoreException
public void setProject(org.eclipse.core.resources.IProject project)
setProject
in interface org.eclipse.core.resources.IProjectNature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |