public class RemoteSyncNature
extends java.lang.Object
implements org.eclipse.core.resources.IProjectNature
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NATURE_ID |
| Constructor and Description |
|---|
RemoteSyncNature() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addNature(org.eclipse.core.resources.IProject prj,
org.eclipse.core.runtime.IProgressMonitor monitor)
Add the 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() |
org.eclipse.core.resources.IProject |
getProject() |
static boolean |
hasNature(org.eclipse.core.resources.IProject project)
Returns true if the given project has the remote nature.
|
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.
|
void |
setProject(org.eclipse.core.resources.IProject project) |
public static final java.lang.String NATURE_ID
public static void addNature(org.eclipse.core.resources.IProject prj,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
prj - monitor - org.eclipse.core.runtime.CoreExceptionpublic 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
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.CoreExceptionpublic static boolean hasNature(org.eclipse.core.resources.IProject project)
java.lang.NullPointerException - if project is nullpublic 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
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.CoreExceptionpublic void configure()
throws org.eclipse.core.runtime.CoreException
configure in interface org.eclipse.core.resources.IProjectNatureorg.eclipse.core.runtime.CoreExceptionpublic void deconfigure()
throws org.eclipse.core.runtime.CoreException
deconfigure in interface org.eclipse.core.resources.IProjectNatureorg.eclipse.core.runtime.CoreExceptionpublic org.eclipse.core.resources.IProject getProject()
getProject in interface org.eclipse.core.resources.IProjectNaturepublic void setProject(org.eclipse.core.resources.IProject project)
setProject in interface org.eclipse.core.resources.IProjectNatureCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.