|
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.
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.
| Field Summary | |
|---|---|
static IStatus |
OK_STATUS
Status code for which a UI prompter is registered. |
| Constructor Summary | |
|---|---|
MTJCore()
The constructor. |
|
| Method Summary | |
|---|---|
static ILibrarySpecification |
createLibrarySpecification(String identifier,
String name,
Version version)
|
static IDeviceClasspath |
createNewDeviceClasspath()
|
static ILibrary |
createNewLibrary()
Create a new ILibrary instance. |
static IPreverifier |
createPreverifier(String preverifierType,
Object param)
Create a new Preverifier instance based on the preverifier type. |
static MTJCore |
getDefault()
Returns the shared instance. |
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()
|
static ILibraryImporter |
getLibraryImporter(String type)
Returns a library importer associated to a specific type. |
static IMetaData |
getMetaData(IProject project,
ProjectType projectType)
|
static String |
getPluginVersion()
Return the current version associated with this plug-in. |
static File |
getProguardJarFile()
Return the File instance representing the Proguard implementation jar file as defined by the user preferences. |
static boolean |
getProjectBooleanPreference(IProject project,
String key)
Return a boolean preference scoped to the specified project where possible, otherwise falling back to instance scope. |
static IEclipsePreferences |
getProjectPreferences(IProject context)
Return the preferences that are specific to the project and plugin. |
static String |
getProjectStringPreference(IProject project,
String key)
Return a String preference scoped to the specified project where possible, otherwise falling back to instance scope. |
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 registry that can be used to manage the symbols that are saved on the workspace |
static ISymbolSetRegistry |
getSymbolSetRegistry()
Returns the symbol set registry that can be used to manage the symbols that are 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 instance. |
static void |
log(int severity,
String message)
Log the specified message. |
static void |
log(int severity,
String message,
Throwable throwable)
Log the specified message and exception |
static void |
log(int severity,
Throwable throwable)
Log the specified exception. |
static IStatus |
newStatus(int severity,
int code,
String message)
Creates a new status object for our plug-in. |
static IStatus |
newStatus(int severity,
int code,
String message,
Throwable exception)
Creates a new status object for our plug-in. |
static void |
setResourcesAsDerived(IContainer container)
Recursively set the resources in the specified container and all resources within that container as derived. |
void |
start(BundleContext context)
|
static Object |
statusPrompt(IStatus status,
Object source)
Attempt to prompt on a status object. |
void |
stop(BundleContext context)
|
static void |
throwCoreException(int severity,
int code,
String message)
Throw a new CoreException wrapped around the specified String. |
static void |
throwCoreException(int severity,
int code,
Throwable exception)
Throw a new CoreException wrapped around the specified exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IStatus OK_STATUS
| Constructor Detail |
|---|
public MTJCore()
| Method Detail |
|---|
public static ILibrarySpecification createLibrarySpecification(String identifier,
String name,
Version version)
identifier - name - version -
public static IDeviceClasspath createNewDeviceClasspath()
public static ILibrary createNewLibrary()
ILibrary instance.
ILibrary.
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 ISymbolSetRegistry getSymbolSetRegistry()
public static IDeviceFinder getDeviceFinder()
IDeviceFinder instance that can be used to find for
devices in a specific directory.
IDeviceFinder instance.public static ISymbolSetFactory getSymbolSetFactory()
public static MTJCore getDefault()
public static String getDeploymentDirectoryName()
public static IDeviceRegistry getDeviceRegistry()
public static ILibraryImporter getLibraryImporter(String type)
type - library importer type
public static IMetaData getMetaData(IProject project,
ProjectType projectType)
project -
public static String getPluginVersion()
public static File getProguardJarFile()
public static boolean getProjectBooleanPreference(IProject project,
String key)
project - key -
public static IEclipsePreferences getProjectPreferences(IProject context)
context -
public static String getProjectStringPreference(IProject project,
String key)
project - key -
public static InputStream getResourceAsStream(IPath path)
path - relative resource path.
public static String getResourcesDirectoryName()
public static String getVerifiedOutputDirectoryName()
public static IWorkspace getWorkspace()
public static void log(int severity,
String message)
severity - message -
public static void log(int severity,
String message,
Throwable throwable)
severity - message - throwable -
public static void log(int severity,
Throwable throwable)
severity - throwable -
public static IStatus newStatus(int severity,
int code,
String message)
severity - the severity; one of OK, ERROR,
INFO, or WARNINGcode - the plug-in-specific status code, or OKmessage - a human-readable message, localized to the current locale
public static IStatus newStatus(int severity,
int code,
String message,
Throwable exception)
severity - the severity; one of OK, ERROR,
INFO, or WARNINGcode - the plug-in-specific status code, or OKmessage - a human-readable message, localized to the current localeexception - a low-level exception, or null if not
applicable
public static void setResourcesAsDerived(IContainer container)
throws CoreException
container -
CoreException
public static Object statusPrompt(IStatus status,
Object source)
throws CoreException
status - source -
CoreException
public static void throwCoreException(int severity,
int code,
String message)
throws CoreException
severity - code - message -
CoreException
public static void throwCoreException(int severity,
int code,
Throwable exception)
throws CoreException
severity - code - exception -
CoreException
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 | |||||||||