|
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.device.impl.AbstractDevice
public abstract class AbstractDevice
Abstract superclass of the various device implementations.
| Field Summary | |
|---|---|
protected String |
bundle
|
protected Classpath |
classpath
|
protected boolean |
debugServer
|
protected String |
description
|
protected Properties |
deviceProperties
|
protected File |
executable
|
protected String |
groupName
|
protected String |
launchCommandTemplate
|
protected String |
name
|
protected IPreverifier |
preverifier
|
protected String[] |
protectionDomains
|
| Constructor Summary | |
|---|---|
AbstractDevice()
|
|
| Method Summary | |
|---|---|
protected void |
addLaunchConfigurationValue(Map<String,String> executionProperties,
String propertyName,
ILaunchConfiguration launchConfiguration,
String launchConstant)
Add a value from the launch configuration to the execution properties map. |
protected File |
copyForLaunch(IMidletSuiteProject suite,
IProgressMonitor monitor,
boolean launchFromJad)
Copy the deployed jar and jad for use during launching. |
boolean |
equals(AbstractDevice device)
Test equality on a AbstractDevice and return a boolean indicating equality. |
String |
getBundle()
Return the bundle identifier that should be used to load this persistable. |
Classpath |
getClasspath()
Return the classpath provided by this device. |
ILibrary |
getConfigurationLibrary()
Return the library that provides the configuration for this device or null if no such library can be found. |
String |
getDescription()
Return the displayable description of this device. |
Properties |
getDeviceProperties()
Return the properties associated with this device. |
File |
getExecutable()
|
String |
getGroupName()
Return the name of the device group to which this device belongs. |
protected File |
getJadForLaunch(IMidletSuiteProject midletSuite,
File temporaryDirectory,
IProgressMonitor monitor)
Return the JAD file to use for launching from the specified temporary directory. |
String |
getLaunchCommandTemplate()
|
String |
getName()
Return the name of this device. |
protected String |
getOTAURL(ILaunchConfiguration launchConfig,
IMidletSuiteProject midletSuite)
Return the Over the Air URL for accessing the JAD file via the built-in OTA HTTP server. |
IPreverifier |
getPreverifier()
Return the preverifier to be used to preverify classes for this device. |
ILibrary |
getProfileLibrary()
Return the library that provides the profile for this device or null if no such library can be found. |
protected String |
getProjectClasspathString(IMidletSuiteProject midletSuite,
File temporaryDirectory,
IProgressMonitor monitor)
Return the classpath string to be used when launching the specified project. |
String[] |
getProtectionDomains()
Return the list of protection domains specified by this device. |
protected String |
getSpecifiedJadURL(ILaunchConfiguration launchConfiguration)
Return the url specified by the user for direct launching or null if none was specified. |
boolean |
isDebugServer()
Return a boolean describing whether this device wants to act as a debug server rather than attaching to the debugger as a client. |
boolean |
isPredeploymentRequired()
Deprecated. this method is no longer called during launching |
void |
loadUsing(IPersistenceProvider persistenceProvider)
Load the state of this object using the specified persistence state information. |
void |
setBundle(String bundle)
Set the bundle identifier that is used to load this persistable. |
void |
setClasspath(Classpath classpath)
|
void |
setDebugServer(boolean debugServer)
|
void |
setDescription(String description)
|
void |
setDeviceProperties(Properties deviceProperties)
|
void |
setExecutable(File executable)
|
void |
setGroupName(String groupName)
|
void |
setLaunchCommandTemplate(String launchCommandTemplate)
|
void |
setName(String name)
Set the name of this device. |
void |
setPredeploymentRequired(boolean predeploymentRequired)
Deprecated. |
void |
setPreverifier(IPreverifier preverifier)
|
void |
setProtectionDomains(String[] protectionDomains)
|
protected boolean |
shouldDirectLaunchJAD(ILaunchConfiguration configuration)
Return a boolean indicating whether or not the emulation should just directly launch a specified JAD URL without the other things that normally happen during launching. |
protected boolean |
shouldDoOTA(ILaunchConfiguration configuration)
Return a boolean indicating whether or not the emulation should be launched as OTA. |
void |
storeUsing(IPersistenceProvider persistenceProvider)
Save the state of this object using the specified persistence state information. |
String |
toString()
|
protected String |
urlEncoded(String value)
Encode the specified information for a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.mtj.core.model.device.IDevice |
|---|
getLaunchCommand |
| Field Detail |
|---|
protected String bundle
protected Classpath classpath
protected boolean debugServer
protected String description
protected Properties deviceProperties
protected File executable
protected String name
protected String[] protectionDomains
protected String groupName
protected IPreverifier preverifier
protected String launchCommandTemplate
| Constructor Detail |
|---|
public AbstractDevice()
| Method Detail |
|---|
public boolean equals(AbstractDevice device)
device -
public String getBundle()
IBundleReferencePersistable
getBundle in interface IBundleReferencePersistableIBundleReferencePersistable.getBundle()public Classpath getClasspath()
IDevice
getClasspath in interface IDeviceIDevice.getClasspath()public ILibrary getConfigurationLibrary()
IDevicenull if no such library can be found.
getConfigurationLibrary in interface IDeviceIDevice.getConfigurationLibrary()public String getDescription()
IDevicenull value, the device's name will be used as the
description instead.
getDescription in interface IDevicenull if the
device's name should be used instead.public Properties getDeviceProperties()
IDevice
getDeviceProperties in interface IDevicepublic File getExecutable()
public String getName()
IDevicenull.
getName in interface IDevicepublic IPreverifier getPreverifier()
IDevice
getPreverifier in interface IDevicepublic ILibrary getProfileLibrary()
IDevicenull if no such library can be found.
getProfileLibrary in interface IDevicepublic String[] getProtectionDomains()
IDevicenull from this method will imply that this device does not
support protection domains.
getProtectionDomains in interface IDevicenull if the
device does not provide any protection domains.public String getGroupName()
IDevicenull value.
getGroupName in interface IDevicepublic boolean isDebugServer()
IDevice
isDebugServer in interface IDevicepublic boolean isPredeploymentRequired()
IDevice
isPredeploymentRequired in interface IDeviceIDevice.isPredeploymentRequired()
public void loadUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
loadUsing in interface IPersistablePersistenceExceptionpublic void setClasspath(Classpath classpath)
classpath - The classpath to set.public void setDebugServer(boolean debugServer)
debugServer - The debugServer to set.public void setDescription(String description)
description - The description to set.public void setDeviceProperties(Properties deviceProperties)
deviceProperties - The deviceProperties to set.public void setExecutable(File executable)
executable - The executable to set.public void setName(String name)
IDevicenull.
setName in interface IDevicename - The name to set.public void setPredeploymentRequired(boolean predeploymentRequired)
predeploymentRequired - The predeploymentRequired to set.public void setPreverifier(IPreverifier preverifier)
preverifier - The preverifier to set.public void setProtectionDomains(String[] protectionDomains)
protectionDomains - The protectionDomains to set.public void setGroupName(String groupName)
groupName - The groupName to set.
public void storeUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
storeUsing in interface IPersistablePersistenceExceptionpublic String toString()
toString in class Objectpublic void setBundle(String bundle)
IBundleReferencePersistable
setBundle in interface IBundleReferencePersistablepublic String getLaunchCommandTemplate()
public void setLaunchCommandTemplate(String launchCommandTemplate)
launchCommandTemplate - The launchCommandTemplate to set.
protected void addLaunchConfigurationValue(Map<String,String> executionProperties,
String propertyName,
ILaunchConfiguration launchConfiguration,
String launchConstant)
throws CoreException
executionProperties - propertyName - launchConfiguration - launchConstant -
CoreException
protected File copyForLaunch(IMidletSuiteProject suite,
IProgressMonitor monitor,
boolean launchFromJad)
throws CoreException
suite - monitor - launchFromJad - - If launch from a JAD file.
IOException
CoreException
protected File getJadForLaunch(IMidletSuiteProject midletSuite,
File temporaryDirectory,
IProgressMonitor monitor)
midletSuite - temporaryDirectory - monitor -
protected String getSpecifiedJadURL(ILaunchConfiguration launchConfiguration)
throws CoreException
null if none was specified.
launchConfiguration -
CoreException
protected boolean shouldDirectLaunchJAD(ILaunchConfiguration configuration)
throws CoreException
configuration -
CoreException
protected boolean shouldDoOTA(ILaunchConfiguration configuration)
throws CoreException
configuration -
CoreExceptionprotected String urlEncoded(String value)
value -
protected String getOTAURL(ILaunchConfiguration launchConfig,
IMidletSuiteProject midletSuite)
throws CoreException
launchConfig -
CoreException
protected String getProjectClasspathString(IMidletSuiteProject midletSuite,
File temporaryDirectory,
IProgressMonitor monitor)
throws CoreException
midletSuite -
CoreException
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||