|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ProjectType>
org.eclipse.mtj.core.project.ProjectType
public enum ProjectType
This enum represents the types of IMTJProject
's provided by MTJ.
At the moment, MTJ only provides one implementation of IMTJProject
,
the IMidletSuiteProject
project type.
Clients must use this enum in some MTJCore
methods to retrieve
resources associated with an specific type of project, for example, an
IMetaData
that is accessible via the
MTJCore.createMetaData(IProject, ProjectType)
method.
CLients must use the fromProject(IProject)
method to try identify
from which type of MTJProjet a IProject belongs.
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.
Enum Constant Summary | |
---|---|
MIDLET_SUITE
Represents a IMidletSuiteProject type of project. |
|
UNKNOWN
Represents an unknown type of project |
Method Summary | |
---|---|
static ProjectType |
fromProject(IProject project)
Return the project type of the given project. |
static ProjectType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ProjectType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ProjectType MIDLET_SUITE
IMidletSuiteProject
type of project.
public static final ProjectType UNKNOWN
Method Detail |
---|
public static ProjectType[] values()
for (ProjectType c : ProjectType.values()) System.out.println(c);
public static ProjectType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ProjectType fromProject(IProject project)
project
- the project from which we try to define it's type.
UNKNOWN
if the type could not be
defined.
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |