public class PovClipseProjectNature
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
POVCLIPSE_PROJECT_NATURE_ID |
Constructor and Description |
---|
PovClipseProjectNature()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addPovClipseProjectNature(IProject project)
Adds the PovClipse project nature to the given project.
|
static boolean |
addPovClipseProjectNature(IProject project,
Shell errDisplayer)
Same as
addPovClipseProjectNature(IProject project)
but handles the error logging and displaying. |
void |
configure() |
void |
deconfigure() |
IProject |
getProject() |
static boolean |
hasPovClipseProjectNature(IProject project) |
static boolean |
removePovClipseProjectNature(IProject project)
Removes all PovClipse project natures from the given project.
|
void |
setProject(IProject project) |
public static final java.lang.String POVCLIPSE_PROJECT_NATURE_ID
public static boolean addPovClipseProjectNature(IProject project, Shell errDisplayer)
addPovClipseProjectNature(IProject project)
but handles the error logging and displaying.project
- The IProject
to receive the PovClipse project nature.true
if the PovClipse project nature was added,
false
if it was already there or in case of an error.public static boolean addPovClipseProjectNature(IProject project) throws CoreException
project
- The IProject
to receive the PovClipse project nature.true
if the PovClipse project nature was added,
false
if it was already there.CoreException
- In case of an error.public static boolean hasPovClipseProjectNature(IProject project) throws CoreException
project
- The project to be examined.true
if the project has already the
PovClipse project nature, false
otherwise.CoreException
- If the project could not be examined.public static boolean removePovClipseProjectNature(IProject project) throws CoreException
project
- The IProject
to remove the PovClipse project natures.true
if at lease one PovClipse project nature was removed,
false
if the project did not have a PovClipse project nature.CoreException
- In case of an error.public void configure() throws CoreException
CoreException
org.eclipse.core.resources.IProjectNature#configure()
public void deconfigure() throws CoreException
CoreException
org.eclipse.core.resources.IProjectNature#deconfigure()
public IProject getProject()
org.eclipse.core.resources.IProjectNature#getProject()
public void setProject(IProject project)
org.eclipse.core.resources.IProjectNature#setProject(org.eclipse.core.resources.IProject)