|
|||||||||
| 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 EPackages 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.
ECPPropertiespublic 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)
EPackages to find all subclasses for the provided super class.
superClass - - the class for which to get the subclasses
Collection of EClassespublic static Set<org.eclipse.emf.ecore.EPackage> getAllRegisteredEPackages()
EPackages.
Epackagespublic static ECPProjectManager getECPProjectManager()
ECPProjectManager.
ECPProjectManagerpublic static ECPRepositoryManager getECPRepositoryManager()
ECPRepositoryManager.
ECPRepositoryManagerpublic static ECPProviderRegistry getECPProviderRegistry()
ECPProviderRegistry.
ECPProviderRegistrypublic static ECPObserverBus getECPObserverBus()
ECPObserverBus.
ECPObserverBus
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||