public class OCLCommon extends Object implements OCLConstants
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_ID |
OCL_DELEGATE_URI, OCL_DELEGATE_URI_LPG, OCL_DELEGATE_URI_SLASH
Constructor and Description |
---|
OCLCommon() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultDefaultDelegationMode()
Return the default value of the "default.delegation.mode" preference, returning the LPG value for now.
|
static EAnnotation |
getDelegateAnnotation(EModelElement eModelElement)
Return the OCL Delegate EAnnotation, which is an EAnnotation with
OCLConstants.OCL_DELEGATE_URI
as its source, or if no such EAnnotation is present, then the first EAnnotation with a source
whose URI starts with OCLConstants.OCL_DELEGATE_URI and a / character/ |
static String |
getDelegateAnnotation(EModelElement eModelElement,
String key)
Return the keyed detail of an OCL Delegate EAnnotation, which is an EAnnotation with
OCLConstants.OCL_DELEGATE_URI
as its source, or if no such EAnnotation is present, then the first EAnnotation with a source
whose URI starts with OCLConstants.OCL_DELEGATE_URI and a / character/ |
static <T> T |
getPreference(PreferenceableOption<T> option,
IScopeContext[] contexts)
Return the preference value for
|
static <T> void |
installListener(PreferenceableOption<T> option)
Install an IPreferenceChangeListener so that option.fireChanged() is notified of any change in the Eclipse preference.
|
static boolean |
isDelegateURI(String string)
Return true if string denotes an OCL Delegate, which is the string
OCLConstants.OCL_DELEGATE_URI ,
or a string starting with OCLConstants.OCL_DELEGATE_URI and a / character. |
public static final String PLUGIN_ID
public static String getDefaultDefaultDelegationMode()
public static EAnnotation getDelegateAnnotation(EModelElement eModelElement)
OCLConstants.OCL_DELEGATE_URI
as its source, or if no such EAnnotation is present, then the first EAnnotation with a source
whose URI starts with OCLConstants.OCL_DELEGATE_URI
and a / character/public static String getDelegateAnnotation(EModelElement eModelElement, String key)
OCLConstants.OCL_DELEGATE_URI
as its source, or if no such EAnnotation is present, then the first EAnnotation with a source
whose URI starts with OCLConstants.OCL_DELEGATE_URI
and a / character/public static <T> T getPreference(PreferenceableOption<T> option, IScopeContext[] contexts)
option
- contexts
- public static <T> void installListener(PreferenceableOption<T> option)
public static boolean isDelegateURI(String string)
OCLConstants.OCL_DELEGATE_URI
,
or a string starting with OCLConstants.OCL_DELEGATE_URI
and a / character.Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.