|
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.project.runtime.MTJRuntime
public class MTJRuntime
This class contains configuration information for multi-configuration support. Now it contains "device" and "symbol set" information, and a boolean "active" to indicate if this configuration is the current active one. This class may contains more information if need in future.
ISymbolSet| Field Summary | |
|---|---|
static String |
ATTR_ACTIVE
|
static String |
ATTR_DEVICEGROUP
|
static String |
ATTR_DEVICENAME
|
static String |
ATTR_NAME
|
static String |
ATTR_VALUE
|
static String |
ELEM_DEVICE
|
static String |
ELEM_SYMBOL
|
static String |
ELEM_SYMBOL_SET
|
static String |
ELEM_WORKSPACE_SYMBOLSET
|
| Constructor Summary | |
|---|---|
MTJRuntime(Element configElement)
Construct Configuration from meta data XML file. |
|
MTJRuntime(String name)
|
|
| Method Summary | |
|---|---|
void |
addMTJRuntimeChangeListener(IMTJRuntimeChangeListener listener)
|
boolean |
equals(Object obj)
If name equals, then configuration equals. |
void |
fireSymbolSetChanged()
|
IDevice |
getDevice()
|
String |
getName()
|
ISymbolSet |
getRuntimeSymbolSet()
All preprocessing related code should NOT use this method to get ISymbolSet, instead, getSymbolSetForPreprocessing() should be used for preprocessing purpose. |
ISymbolSet |
getRuntimeSymbolSetForPreprocessing()
All preprocessing related function should use this method to get SymbolSet. |
List<ISymbolSet> |
getWorkspaceScopeSymbolSets()
Returns a list of symbolsets that are on the workspace level. |
int |
hashCode()
|
boolean |
isActive()
|
void |
removeMTJRuntimeChangeListener(IMTJRuntimeChangeListener listener)
Note:Since instance of configuration have a long life cycle (as long as the Midlet project), so we should remove listener manually when it no longer used. |
void |
setActive(boolean active)
|
void |
setDevice(IDevice device)
|
void |
setName(String name)
|
void |
setSymbolSet(ISymbolSet symbolSet)
|
void |
setWorkspaceScopeSymbolSets(List<ISymbolSet> symbolSets)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTR_NAME
public static final String ATTR_ACTIVE
public static final String ELEM_DEVICE
public static final String ATTR_DEVICEGROUP
public static final String ATTR_DEVICENAME
public static final String ELEM_SYMBOL_SET
public static final String ELEM_WORKSPACE_SYMBOLSET
public static final String ELEM_SYMBOL
public static final String ATTR_VALUE
| Constructor Detail |
|---|
public MTJRuntime(Element configElement)
throws PersistenceException
configElement - - The <configuration> xml element.
PersistenceExceptionpublic MTJRuntime(String name)
| Method Detail |
|---|
public void addMTJRuntimeChangeListener(IMTJRuntimeChangeListener listener)
public boolean equals(Object obj)
equals in class Objectpublic void fireSymbolSetChanged()
public IDevice getDevice()
public String getName()
public ISymbolSet getRuntimeSymbolSet()
public ISymbolSet getRuntimeSymbolSetForPreprocessing()
public List<ISymbolSet> getWorkspaceScopeSymbolSets()
public int hashCode()
hashCode in class Objectpublic boolean isActive()
public void removeMTJRuntimeChangeListener(IMTJRuntimeChangeListener listener)
listener - public void setActive(boolean active)
public void setDevice(IDevice device)
device - public void setName(String name)
name - public void setSymbolSet(ISymbolSet symbolSet)
public void setWorkspaceScopeSymbolSets(List<ISymbolSet> symbolSets)
public String toString()
toString in class Object
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||