public final class MMICoreUtil
extends java.lang.Object
EClass
in a given StructuredReference
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MMI_IGNORE_DOMAIN_UPDATE_OPTION
Option set against an EditingDomain to ignore updates to that domain.
|
Constructor and Description |
---|
MMICoreUtil() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.ecore.EObject |
create(org.eclipse.emf.ecore.EClass eCls)
Creates the mapped
EObject for a given EClass . |
static org.eclipse.gmf.runtime.emf.type.core.IClientContext |
getClientContext()
Method to obtain the client context lazily, since the getClientContext()
method of ClientContextManager can take some time.
|
static org.eclipse.emf.ecore.EClass |
getEClass(java.lang.String eClsID)
Returns the EClass corresponding to the given String eClsID.
|
static java.util.Collection |
getEditingDomainsToUpdate()
Returns the EditingDomains that need to be updated for domain changes
|
static java.lang.String |
getStringID(org.eclipse.emf.ecore.EClass eClass)
Returns the String representation of an eClass in the form of a namespace
prefix registered in the MMIFactoryRegistry, a separator, and the eClass
name.
|
static org.eclipse.emf.common.util.URI |
getURI(java.lang.String sRefFragment)
Convenience method to return a MMI URI with the given sRefFragment as the
URI's fragment
|
static org.eclipse.emf.common.notify.Adapter |
getWrappedObject(org.eclipse.emf.common.notify.Adapter object) |
public static final java.lang.String MMI_IGNORE_DOMAIN_UPDATE_OPTION
Boolean
.
false
(accept domain updates).public static java.lang.String getStringID(org.eclipse.emf.ecore.EClass eClass)
eClass
- to obtain the String representation for.public static org.eclipse.emf.ecore.EClass getEClass(java.lang.String eClsID)
eClsID
- the ID of the EClass in the form of a namespace prefix
registered in the MMIFactoryRegistry, a separator, and the eClass name.public static org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClass eCls)
EObject
for a given EClass
.
The returned EObject implements ITarget interface.
eCls
- Type of EObject
to be created.ITarget
public static final org.eclipse.emf.common.util.URI getURI(java.lang.String sRefFragment)
sRefFragment
- String fragment for the MMI URIpublic static org.eclipse.gmf.runtime.emf.type.core.IClientContext getClientContext()
public static final java.util.Collection getEditingDomainsToUpdate()
public static org.eclipse.emf.common.notify.Adapter getWrappedObject(org.eclipse.emf.common.notify.Adapter object)