public class CProjectNature extends Object implements org.eclipse.core.resources.IProjectNature
Modifier and Type | Field and Description |
---|---|
static String |
C_NATURE_ID |
Constructor and Description |
---|
CProjectNature() |
CProjectNature(org.eclipse.core.resources.IProject project) |
Modifier and Type | Method and Description |
---|---|
static void |
addCNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor mon) |
static void |
addNature(org.eclipse.core.resources.IProject project,
String natureId,
org.eclipse.core.runtime.IProgressMonitor monitor)
Utility method for adding a nature to a project.
|
void |
configure() |
void |
deconfigure() |
org.eclipse.core.resources.IProject |
getProject() |
static void |
removeCNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor mon) |
static void |
removeNature(org.eclipse.core.resources.IProject project,
String natureId,
org.eclipse.core.runtime.IProgressMonitor monitor)
Utility method for removing a project nature from a project.
|
void |
setProject(org.eclipse.core.resources.IProject project) |
public static final String C_NATURE_ID
public CProjectNature()
public CProjectNature(org.eclipse.core.resources.IProject project)
public static void addCNature(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor mon) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void removeCNature(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor mon) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void addNature(org.eclipse.core.resources.IProject project, String natureId, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
project
- the project to add the naturenatureId
- 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 void removeNature(org.eclipse.core.resources.IProject project, String natureId, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
project
- 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 configure() throws org.eclipse.core.runtime.CoreException
configure
in interface org.eclipse.core.resources.IProjectNature
org.eclipse.core.runtime.CoreException
IProjectNature.configure()
public void deconfigure() throws org.eclipse.core.runtime.CoreException
deconfigure
in interface org.eclipse.core.resources.IProjectNature
org.eclipse.core.runtime.CoreException
IProjectNature.deconfigure()
public org.eclipse.core.resources.IProject getProject()
getProject
in interface org.eclipse.core.resources.IProjectNature
IProjectNature.getProject()
public void setProject(org.eclipse.core.resources.IProject project)
setProject
in interface org.eclipse.core.resources.IProjectNature
IProjectNature.setProject(org.eclipse.core.resources.IProject)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.