public final class ActivationUtilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Set<org.eclipse.emf.ecore.EModelElement> |
getAllActivations()
Retrieves a set of all items that are root items of all current activations.
|
static int |
getNoOfErrors(org.eclipse.emf.ecore.EModelElement item)
Retrieves the number of errors that have been identified for the provided item.
|
static int |
getNoOfWarnings(org.eclipse.emf.ecore.EModelElement item)
Retrieves the number of warnings that have been identified for the provided item.
|
static org.eclipse.uml2.uml.Class |
getUmlMetaClass(org.eclipse.emf.ecore.EModelElement item)
Retrieves the UML Class that represents the current metaclass for the provided item .
|
static org.eclipse.uml2.uml.Model |
getUmlMetaModel(org.eclipse.emf.ecore.EModelElement item)
Retrieves the metamodel for which this item is currently activated.
|
static boolean |
hasMetaClass(org.eclipse.emf.ecore.EModelElement item)
Checks if an item has been classified by a metaclass.
|
boolean |
isItemKindSupported(org.eclipse.emf.ecore.EModelElement item)
Checks if the kind of provided item is supported by MetaModelAgent or not.
|
static void |
modelLoaded(org.eclipse.emf.ecore.EModelElement item,
org.eclipse.emf.common.util.URI uri)
This method should be called when a model is loaded in the workspace and MetaModelAgent shold be activated for that model.
|
public static boolean hasMetaClass(org.eclipse.emf.ecore.EModelElement item)
item
- the UML-element or diagram to be checked.public static org.eclipse.uml2.uml.Class getUmlMetaClass(org.eclipse.emf.ecore.EModelElement item)
item
- the UML-element or diagram for which the metaclass should be retrieved.public static org.eclipse.uml2.uml.Model getUmlMetaModel(org.eclipse.emf.ecore.EModelElement item)
item
- the UML-element or diagram for which the metamodel should be retrieved.public static java.util.Set<org.eclipse.emf.ecore.EModelElement> getAllActivations()
public static int getNoOfErrors(org.eclipse.emf.ecore.EModelElement item)
item
- the UML-element or diagram for which number of errors should be returned.public static int getNoOfWarnings(org.eclipse.emf.ecore.EModelElement item)
item
- the UML-element or diagram for which number of warnings should be returned.public boolean isItemKindSupported(org.eclipse.emf.ecore.EModelElement item)
item
- the element or diagram for which MetaModelAgent support should be reported.public static void modelLoaded(org.eclipse.emf.ecore.EModelElement item, org.eclipse.emf.common.util.URI uri)
item
- the model that has been loadeduri
- the reference to the loaded element