|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.xtools.uml.msl.lang.ActiveLanguageManager
public class ActiveLanguageManager
Public API for working with the Active Language.
| Method Summary | |
|---|---|
static String |
getActiveLanguage(EObject semanticContext,
EObject modelContext)
Determines the active language. |
static String |
getPersistedLanguageInRootPackage(EObject context)
Utility method to get the persisted language in the model. |
static void |
setActiveLanguage(String languageId)
Set the active language. |
static void |
setFirstDescriptorActive()
Sets the active language to be the derived language descriptor 'First'. |
static void |
setModelDescriptorActive()
Sets the active language to be the Model descriptor. |
static void |
setPersistedLanguageInRootPackage(EObject context,
String languageID,
boolean loadLanguageData)
Persists the language id of the given descriptor in to the root package that owns the given context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getActiveLanguage(EObject semanticContext,
EObject modelContext)
semanticContext - -
the semantic element that will store the code fragment. Note: This context element will be used by the
'First' language descriptor to determine the 'first' language found.modelContext - -
The context to determine the persisted model language from (Note: this is needed if the current active language
is set to be Model)
String identifier for the language that is
currently designated as "active" in the tooling environment.public static void setActiveLanguage(String languageId)
languageId - The new language to be set as activepublic static void setModelDescriptorActive()
public static void setFirstDescriptorActive()
public static String getPersistedLanguageInRootPackage(EObject context)
context - The context to find the root package from
public static void setPersistedLanguageInRootPackage(EObject context,
String languageID,
boolean loadLanguageData)
context - The context to find the root package fromdescriptor - The language descriptor that defines the language to persist. Or null
if the persisted language should be removed from the root package.loadLanguageDefaults - true if the given discriptor's Libraries, profiles, etc should be applied to the root model
false if just the language should be persisted
|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||