public final class ECPUtil extends Object
Modifier and Type | Method and Description |
---|---|
static ECPProperties |
createProperties()
This creates an empty
ECPProperties . |
static Set<org.eclipse.emf.ecore.EPackage> |
getAllRegisteredEPackages()
Returns the set of all known
EPackages . |
static ECPObserverBus |
getECPObserverBus()
Helper method to get the instance of the
ECPObserverBus . |
static ECPProjectManager |
getECPProjectManager()
Helper method to get the instance of the
ECPProjectManager . |
static ECPProviderRegistry |
getECPProviderRegistry()
Helper method to get the instance of the
ECPProviderRegistry . |
static ECPRepositoryManager |
getECPRepositoryManager()
Helper method to get the instance of the
ECPRepositoryManager . |
static ECPContainer |
getModelContext(ECPModelContextProvider contextProvider,
Object... elements)
Return the common
ECPContainer for the provided elements. |
static ECPElement |
getResolvedElement(ECPElement elementOrDescriptor)
Checks whether the
ECPElement is an ElementDescriptor and resolves it when necessary. |
static Collection<org.eclipse.emf.ecore.EClass> |
getSubClasses(org.eclipse.emf.ecore.EClass superClass)
This method looks through all known
EPackage s to find all subclasses for the provided super class. |
static boolean |
isClosed(Object object)
Checks whether an object is an
ECPProject and closed. |
static boolean |
isDisposed(Object object)
Checks whether an object is an
ECPDisposable and disposed. |
public static ECPContainer getModelContext(ECPModelContextProvider contextProvider, Object... elements)
ECPContainer
for the provided elements.contextProvider
- the ECPModelContextProvider
to useelements
- the elements to checkECPContainer
for the elements or nullpublic static ECPProperties createProperties()
ECPProperties
.ECPProperties
public static boolean isDisposed(Object object)
ECPDisposable
and disposed.object
- the object to checkECPDisposable
and ECPDisposable.isDisposed()
returns
true, false otherwisepublic static boolean isClosed(Object object)
ECPProject
and closed.object
- the object to checkECPProject
and not open, false otherwisepublic static ECPElement getResolvedElement(ECPElement elementOrDescriptor)
ECPElement
is an ElementDescriptor
and resolves it when necessary.elementOrDescriptor
- the ECPElement
to checkpublic static Collection<org.eclipse.emf.ecore.EClass> getSubClasses(org.eclipse.emf.ecore.EClass superClass)
EPackage
s to find all subclasses for the provided super class.superClass
- - the class for which to get the subclassesCollection
of EClasses
public static Set<org.eclipse.emf.ecore.EPackage> getAllRegisteredEPackages()
EPackages
.Epackages
public static ECPProjectManager getECPProjectManager()
ECPProjectManager
.ECPProjectManager
public static ECPRepositoryManager getECPRepositoryManager()
ECPRepositoryManager
.ECPRepositoryManager
public static ECPProviderRegistry getECPProviderRegistry()
ECPProviderRegistry
.ECPProviderRegistry
public static ECPObserverBus getECPObserverBus()
ECPObserverBus
.ECPObserverBus
Copyright © 2016. All rights reserved.