|
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.ObjectPlugin
org.eclipse.mtj.core.MTJCore
public class MTJCore
The main plug-in class to be used in the workbench.
The single instance of this class can be accessed from any plug-in declaring
the MTJ Core plug-in as a prerequisite via MTJCore.getJavaCore()
. The Java model plug-in will be activated automatically if not already
active.
Constructor Summary | |
---|---|
MTJCore()
Creates the MTJ core plug-in. |
Method Summary | |
---|---|
static IMetaData |
createMetaData(IProject project,
ProjectType projectType)
Construct a new metadata object for the given type of project. |
static IAPI |
createNewAPI(ProjectType projectType)
Create a new IAPI instance. |
static IDeviceClasspath |
createNewDeviceClasspath()
Construct a new deviceClasspath instance. |
static ILibrary |
createNewLibrary(ProjectType projectType)
Create a new ILibrary instance. |
static IPreverifier |
createPreverifier(String preverifierType,
Object param)
Create a new Preverifier instance based on the preverifier type. |
static IMTJProject |
geMTJProject(IProject project)
Returns the active MTJ project associated with the specified IProject, or null if no MTJ project yet exists for the IProject. |
static String |
getDeploymentDirectoryName()
Get the deployment directory name the user has specified in the preferences. |
static IDeviceFinder |
getDeviceFinder()
Return the IDeviceFinder instance that can be used to find for
devices in a specific directory. |
static IDeviceRegistry |
getDeviceRegistry()
Returns the IDeviceRegistry instance that can be used to manage
the devices available in MTJ. |
static ILibraryImporter |
getLibraryImporter(String type)
Returns a library importer associated to a specific type. |
static MTJCore |
getMTJCore()
Returns the single instance of the MTJ core plug-in runtime class. |
static String |
getMTJCoreVersion()
Return MTJ Core plug-in version. |
static String |
getPluginId()
Returns the symbolic name of MTJUIPlugin as specified by its Bundle-SymbolicName manifest header. |
static File |
getProguardJarFile()
Return the File instance representing the Proguard implementation jar file as defined by the user preferences. |
static InputStream |
getResourceAsStream(IPath path)
Gets the InputStream for a resource inside the plug-in. |
static String |
getResourcesDirectoryName()
Get the resources directory name the user has specified in the preferences. |
static ISymbolSetFactory |
getSymbolSetFactory()
Returns the symbol set factory that can be used create symbolsets and symbols. |
static ISymbolSetRegistry |
getSymbolSetRegistry()
Returns the symbol set registry that can be used to manage the symbols that were saved on the workspace |
static String |
getVerifiedOutputDirectoryName()
Get the verified output directory name the user has specified in the preferences. |
static IWorkspace |
getWorkspace()
Returns the workspace. |
void |
start(BundleContext context)
|
void |
stop(BundleContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MTJCore()
Method Detail |
---|
public static IMetaData createMetaData(IProject project, ProjectType projectType)
NOTE: Each type of IMetaData is associated to a specific
type of project. For example, the IMIDPMetaData
is associated to
IMidletSuiteProject
.
This metadata will not be persisted until the
IMetaData.saveMetaData()
method is invoked.
project
- the project to be associated to the metadata.projectType
- the project type associated to this metadata.
public static IAPI createNewAPI(ProjectType projectType)
IAPI
instance.
NOTE: Each type of API is associated to a specific type
of project. For example, the IMIDPAPI
is associated to
IMidletSuiteProject
.
projectType
- the type of project.
IAPI
instance. Possible instances are:
ProjectType.MIDLET_SUITE
this
method will return an IMIDPAPI
instance.ProjectType.UNKNOWN
this method
will return null
.public static IDeviceClasspath createNewDeviceClasspath()
public static ILibrary createNewLibrary(ProjectType projectType)
ILibrary
instance.
NOTE: Each type of library is associated to a specific
type of project. For example, the IMIDPLibrary
is associated to
IMidletSuiteProject
.
projectType
- the type of project.
ILibrary
instance. Possible instances are:
ProjectType.MIDLET_SUITE
this
method will return an IMIDPLibrary
instance.ProjectType.UNKNOWN
this method
will return null
.public static IPreverifier createPreverifier(String preverifierType, Object param) throws CoreException
null
if the preverifier cannot be created for some reason.
preverifierType
- type of the preverifier to be createdparam
- Any parameter that is required by each preverifier type.
Please check PreverifierType for information about each type
available and the parameters they accept
null
if the preverifier
cannot be created for some reason.
CoreException
- if failed to get the preverifier parameters.public static IMTJProject geMTJProject(IProject project)
null
if no MTJ project yet exists for the IProject.
project
- the project for extracting the associated MTJ type of
project.
null
will be returned in case no type of MTJ project
was associated to the given project.public static String getDeploymentDirectoryName()
public static IDeviceFinder getDeviceFinder()
IDeviceFinder
instance that can be used to find for
devices in a specific directory.
IDeviceFinder
instance.public static IDeviceRegistry getDeviceRegistry()
IDeviceRegistry
instance that can be used to manage
the devices available in MTJ.
IDeviceRegistry
instance.public static ILibraryImporter getLibraryImporter(String type)
Clients should refer to ILibraryImporter
documentation to find
the list of importers.
type
- library importer type.
ILibraryImporter
instance for the given type.public static MTJCore getMTJCore()
public static String getMTJCoreVersion()
public static File getProguardJarFile()
public static InputStream getResourceAsStream(IPath path)
path
- relative resource path.
public static String getResourcesDirectoryName()
public static ISymbolSetFactory getSymbolSetFactory()
ISymbolSetFactory
instance.public static ISymbolSetRegistry getSymbolSetRegistry()
ISymbolSetRegistry
instance.public static String getVerifiedOutputDirectoryName()
public static IWorkspace getWorkspace()
public static String getPluginId()
public void start(BundleContext context) throws Exception
Exception
public void stop(BundleContext context) throws Exception
Exception
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |