|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMidletSuiteProject
This interface represents access to MIDlet suite project specific information. It acts as a wrapper around an IJavaProject.
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 |
APPLICATION_DESCRIPTOR_NAME
The project's application descriptor. |
| Method Summary | |
|---|---|
void |
addMidletSuiteProjectListener(IMidletSuiteProjectListener listener)
|
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()
|
File[] |
getClasspath(IProgressMonitor monitor)
Return the classpath for this project. |
Configurations |
getConfigurations()
Return Configurations of the project. |
IDevice |
getDevice()
Return the device associated with this MIDlet suite 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. |
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. |
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)
|
| Field Detail |
|---|
static final String APPLICATION_DESCRIPTOR_NAME
| Method Detail |
|---|
void addMidletSuiteProjectListener(IMidletSuiteProjectListener listener)
listener -
void createPackage(IProgressMonitor monitor,
boolean obfuscate,
boolean packageInactiveConfigs)
throws CoreException
monitor - 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.
CoreExceptionApplicationDescriptor getApplicationDescriptor()
IFile getApplicationDescriptorFile()
File[] getClasspath(IProgressMonitor monitor)
throws CoreException
monitor -
CoreExceptionConfigurations getConfigurations()
IDevice getDevice()
String getJadFileName()
String getJarFilename()
IJavaProject getJavaProject()
IProject getProject()
ISignatureProperties getSignatureProperties()
throws CoreException
CoreExceptionString getTempKeyPassword()
String getTempKeystorePassword()
IFolder getVerifiedClassesOutputFolder(IProgressMonitor monitor)
throws CoreException
monitor - progress monitor
CoreException
IFolder getVerifiedLibrariesOutputFolder(IProgressMonitor monitor)
throws CoreException
monitor - progress monitor
CoreException
IFolder getVerifiedOutputFolder(IProgressMonitor monitor)
throws CoreException
monitor - progress monitor
CoreException
boolean isDeployedJarUpToDate()
throws CoreException
CoreException - if there is a problem retrieving the information.
PreverificationError[] preverify(IResource[] toVerify,
IFolder outputFolder,
IProgressMonitor monitor)
throws CoreException,
IOException,
PreverifierNotFoundException
toVerify - the resources to be preverifiedoutputFolder - the folder into which the output will be writtenmonitor - progress monitor
CoreException
IOException
PreverifierNotFoundException
PreverificationError[] preverifyJarFile(File jarFile,
IFolder outputFolder,
IProgressMonitor monitor)
throws CoreException,
IOException,
PreverifierNotFoundException
jarFile - The jar file to be preverified.outputFolder - The folder into which the output is to be placed.monitor - Progress monitor
CoreException
IOException
PreverifierNotFoundExceptionvoid removeMidletSuiteProjectListener(IMidletSuiteProjectListener listener)
listener -
void saveMetaData()
throws CoreException
CoreException
void setDeployedJarFileUpToDate(boolean upToDate)
throws CoreException
upToDate - whether the deployed jar file is up to date.
CoreException - if there is a problem setting the information.
void setDevice(IDevice device,
IProgressMonitor monitor)
throws CoreException
device - monitor -
CoreException
void setEnabledSymbolDefinitionSet(SymbolDefinitionSet set)
throws CoreException,
PersistenceException
set - the set to be enabled
CoreException
{@link - PersistenceException}
PersistenceExceptionvoid setJadFileName(String jadFileName)
void setSignatureProperties(ISignatureProperties props)
throws CoreException
props -
CoreExceptionvoid setTempKeyPassword(String pass)
void setTempKeystorePassword(String pass)
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||