|
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.model.project.impl.MidletSuiteProject
public class MidletSuiteProject
Implementation of the IMidletSuiteProject interface providing access to MIDlet suite specific information.
Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.
| Field Summary | |
|---|---|
static String |
CLASSES_DIRECTORY
The verified sub-directory for classes |
static String |
LIBS_DIRECTORY
The verified sub-directory for libraries |
| Fields inherited from interface org.eclipse.mtj.core.model.project.IMidletSuiteProject |
|---|
APPLICATION_DESCRIPTOR_NAME |
| Constructor Summary | |
|---|---|
MidletSuiteProject(IJavaProject javaProject)
Private constructor for singleton instances of the class. |
|
| Method Summary | |
|---|---|
void |
addMidletSuiteProjectListener(IMidletSuiteProjectListener listener)
|
static boolean |
containsJavaMEClasspathContainer(IJavaProject javaProject)
Return a boolean indicating whether the project contains the JavaME classpath container. |
void |
createPackage(IProgressMonitor monitor,
boolean obfuscate,
boolean packageInactiveConfigs)
Create a deployed JAR file package for this MIDlet suite project. |
ApplicationDescriptor |
getApplicationDescriptor()
Return an ApplicationDescriptor instance wrapped around the Application Descriptor (JAD) file for this MIDlet suite. |
IFile |
getApplicationDescriptorFile()
Return the Application Descriptor file |
File[] |
getClasspath(IProgressMonitor monitor)
Return the classpath for this project. |
Configurations |
getConfigurations()
Return Configurations of the project. |
static String |
getDefaultJadFileName(IProject project)
Return the default JAD file name for the specified project. |
IDevice |
getDevice()
Return the device referenced by this project. |
String |
getJadFileName()
Return the file holding the JAD file. |
String |
getJarFilename()
Return the name to use for the JAR file. |
IJavaProject |
getJavaProject()
Return the underlying java project. |
MetaData |
getMetaData()
Return the metadata for this MIDlet suite. |
IProject |
getProject()
Return the underlying project instance. |
ISignatureProperties |
getSignatureProperties()
Get the ISignatureProperties associated with this MIDlet suite |
String |
getTempKeyPassword()
|
String |
getTempKeystorePassword()
|
IFolder |
getVerifiedClassesOutputFolder(IProgressMonitor monitor)
Get the IFolder into which verified classes should be written. |
IFolder |
getVerifiedLibrariesOutputFolder(IProgressMonitor monitor)
Get the IFolder into which verified libraries should be written. |
IFolder |
getVerifiedOutputFolder(IProgressMonitor monitor)
Get the IFolder into which verified classes should be written. |
boolean |
isDeployedJarUpToDate()
Return a boolean indicating whether the project's deployed jar file exists and is up to date compared with the code contained within the jar. |
boolean |
isPreprocessedProject()
Return a boolean indicating whether the underlying project is a preprocessed project. |
PreverificationError[] |
preverify(IResource[] toVerify,
IFolder outputFolder,
IProgressMonitor monitor)
Preverify the specified resources. |
PreverificationError[] |
preverifyJarFile(File jarFile,
IFolder outputFolder,
IProgressMonitor monitor)
Launch the preverification process on the specified jar file. |
void |
removeMidletSuiteProjectListener(IMidletSuiteProjectListener listener)
|
void |
saveMetaData()
Save the MIDlet suite metadata. |
void |
setDeployedJarFileUpToDate(boolean upToDate)
Set the flag indicating whether or not the deployed jar file for this MIDlet suite project is currently up to date. |
void |
setDevice(IDevice device,
IProgressMonitor monitor)
Set the device being used by this project. |
void |
setEnabledSymbolDefinitionSet(SymbolDefinitionSet set)
Set the symbol definition set that is enabled for this project. |
void |
setJadFileName(String jadFileName)
|
void |
setSignatureProperties(ISignatureProperties props)
Set the ISignatureProperties to use for this MIDlet suite |
void |
setTempKeyPassword(String pass)
|
void |
setTempKeystorePassword(String pass)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLASSES_DIRECTORY
public static final String LIBS_DIRECTORY
| Constructor Detail |
|---|
public MidletSuiteProject(IJavaProject javaProject)
| Method Detail |
|---|
public static boolean containsJavaMEClasspathContainer(IJavaProject javaProject)
throws JavaModelException
javaProject - the project to be tested
JavaModelExceptionpublic static String getDefaultJadFileName(IProject project)
project -
public void addMidletSuiteProjectListener(IMidletSuiteProjectListener listener)
addMidletSuiteProjectListener in interface IMidletSuiteProject
public void createPackage(IProgressMonitor monitor,
boolean obfuscate,
boolean packageInactiveConfigs)
throws CoreException
IMidletSuiteProject
createPackage in interface IMidletSuiteProjectmonitor - progress monitorobfuscate - a boolean indicating whether to obfuscate the resulting
packaged code.packageInactiveConfigs - - a boolean indicating whether to package
all configurations (including inactive configurations) or just
package active configuration.
CoreExceptionpublic ApplicationDescriptor getApplicationDescriptor()
IMidletSuiteProject
getApplicationDescriptor in interface IMidletSuiteProjectpublic IFile getApplicationDescriptorFile()
getApplicationDescriptorFile in interface IMidletSuiteProject
public File[] getClasspath(IProgressMonitor monitor)
throws CoreException
IMidletSuiteProject
getClasspath in interface IMidletSuiteProjectCoreExceptionpublic Configurations getConfigurations()
IMidletSuiteProject
getConfigurations in interface IMidletSuiteProjectpublic IDevice getDevice()
getDevice in interface IMidletSuiteProjectpublic String getJadFileName()
IMidletSuiteProject
getJadFileName in interface IMidletSuiteProjectpublic String getJarFilename()
IMidletSuiteProject
getJarFilename in interface IMidletSuiteProjectpublic IJavaProject getJavaProject()
IMidletSuiteProject
getJavaProject in interface IMidletSuiteProjectpublic MetaData getMetaData()
public IProject getProject()
IMidletSuiteProject
getProject in interface IMidletSuiteProject
public ISignatureProperties getSignatureProperties()
throws CoreException
IMidletSuiteProject
getSignatureProperties in interface IMidletSuiteProjectCoreExceptionpublic String getTempKeyPassword()
getTempKeyPassword in interface IMidletSuiteProjectpublic String getTempKeystorePassword()
getTempKeystorePassword in interface IMidletSuiteProject
public IFolder getVerifiedClassesOutputFolder(IProgressMonitor monitor)
throws CoreException
IMidletSuiteProject
getVerifiedClassesOutputFolder in interface IMidletSuiteProjectmonitor - progress monitor
CoreException
public IFolder getVerifiedLibrariesOutputFolder(IProgressMonitor monitor)
throws CoreException
IMidletSuiteProject
getVerifiedLibrariesOutputFolder in interface IMidletSuiteProjectmonitor - progress monitor
CoreException
public IFolder getVerifiedOutputFolder(IProgressMonitor monitor)
throws CoreException
IMidletSuiteProject
getVerifiedOutputFolder in interface IMidletSuiteProjectmonitor - progress monitor
CoreException
public boolean isDeployedJarUpToDate()
throws CoreException
IMidletSuiteProject
isDeployedJarUpToDate in interface IMidletSuiteProjectCoreException - if there is a problem retrieving the information.
public boolean isPreprocessedProject()
throws CoreException
CoreException
public PreverificationError[] preverify(IResource[] toVerify,
IFolder outputFolder,
IProgressMonitor monitor)
throws CoreException,
IOException,
PreverifierNotFoundException
IMidletSuiteProject
preverify in interface IMidletSuiteProjecttoVerify - the resources to be preverifiedoutputFolder - the folder into which the output will be writtenmonitor - progress monitor
CoreException
IOException
PreverifierNotFoundException
public PreverificationError[] preverifyJarFile(File jarFile,
IFolder outputFolder,
IProgressMonitor monitor)
throws CoreException,
IOException,
PreverifierNotFoundException
IMidletSuiteProject
preverifyJarFile in interface IMidletSuiteProjectjarFile - The jar file to be preverified.outputFolder - The folder into which the output is to be placed.monitor - Progress monitor
CoreException
IOException
PreverifierNotFoundExceptionpublic void removeMidletSuiteProjectListener(IMidletSuiteProjectListener listener)
removeMidletSuiteProjectListener in interface IMidletSuiteProject
public void saveMetaData()
throws CoreException
IMidletSuiteProject
saveMetaData in interface IMidletSuiteProjectCoreException
public void setDeployedJarFileUpToDate(boolean upToDate)
throws CoreException
IMidletSuiteProject
setDeployedJarFileUpToDate in interface IMidletSuiteProjectupToDate - whether the deployed jar file is up to date.
CoreException - if there is a problem setting the information.
public void setDevice(IDevice device,
IProgressMonitor monitor)
throws CoreException
IMidletSuiteProject
setDevice in interface IMidletSuiteProjectCoreException
public void setEnabledSymbolDefinitionSet(SymbolDefinitionSet set)
throws CoreException,
PersistenceException
IMidletSuiteProject
setEnabledSymbolDefinitionSet in interface IMidletSuiteProjectset - the set to be enabled
CoreException
PersistenceExceptionpublic void setJadFileName(String jadFileName)
setJadFileName in interface IMidletSuiteProjectpublic void setSignatureProperties(ISignatureProperties props)
IMidletSuiteProject
setSignatureProperties in interface IMidletSuiteProjectpublic void setTempKeyPassword(String pass)
setTempKeyPassword in interface IMidletSuiteProjectpublic void setTempKeystorePassword(String pass)
setTempKeystorePassword in interface IMidletSuiteProject
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||