|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.core.util.ECPUtil
public final class ECPUtil
This class provides common functionality.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ECPContainer getModelContext(ECPModelContextProvider contextProvider, Object... elements)
ECPContainer
for the provided elements.
contextProvider
- the ECPModelContextProvider
to useelements
- the elements to check
ECPContainer
for the elements or nullpublic static ECPProperties createProperties()
ECPProperties
.
ECPProperties
public static boolean isDisposed(Object object)
ECPDisposable
and disposed.
object
- the object to check
ECPDisposable
and ECPDisposable.isDisposed()
returns
true, false otherwisepublic static boolean isClosed(Object object)
ECPProject
and closed.
object
- the object to check
ECPProject
and not open, false otherwisepublic static ECPElement getResolvedElement(ECPElement elementOrDescriptor)
ECPElement
is an ElementDescriptor
and resolves it when necessary.
elementOrDescriptor
- the ECPElement
to check
public 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 subclasses
Collection
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |