|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mtj.core.project.MTJNature
public abstract class MTJNature
This abstract Nature
implementation must be the
superclass of all natures that may be created to be added to a
IMTJProject
project.
All clients interested in adding a new nature to MTJ must extend this class.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.
Constructor Summary | |
---|---|
MTJNature()
|
Method Summary | |
---|---|
static void |
addNatureToProject(IProject project,
String natureId,
IProgressMonitor monitor)
Adds the specified nature in the given project. |
void |
configure()
|
void |
deconfigure()
|
IProject |
getProject()
|
static void |
removeNatureFromProject(IProject project,
String natureId,
IProgressMonitor monitor)
Removes the specified nature from the given project. |
void |
setProject(IProject project)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MTJNature()
Method Detail |
---|
public void configure() throws CoreException
CoreException
public void deconfigure() throws CoreException
CoreException
public IProject getProject()
public void setProject(IProject project)
public static void addNatureToProject(IProject project, String natureId, IProgressMonitor monitor) throws CoreException, OperationCanceledException
The nature will be append in the end of the list of natures associated with the given project.
project
- the project in which we'll associate the given nature.natureId
- the fully qualified nature extension identifier, formed
by combining the nature extension id with the id of the
declaring plug-in. (e.g. "org.eclipse.mtj.core.l10nNature")monitor
- a progress monitor, or null
if progress
reporting is not desired.
CoreException
- if this method fails. Reasons include:
OperationCanceledException
- if the operation is canceled.
Cancellation can occur even if no progress monitor is
provided.public static void removeNatureFromProject(IProject project, String natureId, IProgressMonitor monitor) throws CoreException
After removal of specified nature, the order of the remaining natures will be maintained
project
- the project from which we'll remove the association to the
given nature.natureId
- the fully qualified nature extension identifier, formed
by combining the nature extension id with the id of the
declaring plug-in. (e.g. "org.eclipse.mtj.core.l10nNature")monitor
- a progress monitor, or null
if progress
reporting is not desired.
CoreException
- if this method fails. Reasons include:
OperationCanceledException
- if the operation is canceled.
Cancellation can occur even if no progress monitor is
provided.
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |