|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.ecp.internal.core.util.Element
org.eclipse.emf.ecp.spi.core.DefaultProvider
org.eclipse.emf.ecp.cdo.internal.core.CDOProvider
public class CDOProvider
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecp.spi.core.InternalProvider |
|---|
InternalProvider.LifecycleEvent |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecp.spi.core.util.ECPDisposable |
|---|
ECPDisposable.DisposeListener |
| Field Summary | |
|---|---|
static String |
NAME
The unique provider name. |
static String |
PROP_BRANCH_PATH
The key for the branch path ECP project property. |
static String |
PROP_CONNECTOR_DESCRIPTION
The key for the connector description ECP project property. |
static String |
PROP_CONNECTOR_TYPE
The key for the connector type ECP project property. |
static String |
PROP_REPOSITORY_NAME
The key for the repository name ECP project property. |
static String |
PROP_TIME_STAMP
The key for the time stamp ECP project property. |
static String |
PROP_WORKSPACE_ID
The key for the workspace ID ECP project property. |
| Fields inherited from interface org.eclipse.emf.ecp.spi.core.InternalProvider |
|---|
EMF_ADAPTER_FACTORY |
| Fields inherited from interface org.eclipse.emf.ecp.core.ECPProvider |
|---|
TYPE |
| Constructor Summary | |
|---|---|
CDOProvider()
Default constructor. |
|
| Method Summary | ||
|---|---|---|
void |
cloneProject(InternalProject projectToClone,
InternalProject targetProject)
This method clones a project. |
|
void |
delete(InternalProject project,
Collection<Object> objects)
Deletes a collection of EObjects from the model. |
|
void |
fillChildren(ECPContainer context,
Object parent,
InternalChildrenList childrenList)
Fills the elements of a certain parent object, depending on the context into the childrenList. |
|
|
getAdapter(Object adaptable,
Class<T> adapterType)
|
|
org.eclipse.emf.common.util.EList<Object> |
getElements(InternalProject project)
This method returns an EList of the root elements. |
|
static CDOProvider |
getInstance()
Deprecated. use ECPUtil.getECPProviderRegistry().getProvider(CDOProvider.NAME) instead |
|
ECPContainer |
getModelContext(Object element)
Returns the first ECPContainer that can be found for the provided Object. |
|
static CDOProjectData |
getProjectData(InternalProject project)
Get CDOProjectData for the given internal project. |
|
static File |
getProjectFolder(InternalProject project)
Get the folder for the configuration data of the internal project. |
|
static CDORepositoryData |
getRepositoryData(InternalRepository repository)
Retrieve CDORepositoryData for a given InternalRepository. |
|
org.eclipse.emf.common.notify.Notifier |
getRoot(InternalProject project)
Method checking whether an object is the root of the model container. |
|
void |
handleLifecycle(ECPContainer context,
InternalProvider.LifecycleEvent event)
This method is called to handle a specific life cycle. |
|
boolean |
isSlow(Object parent)
Whether this provider is slow or not. |
|
boolean |
isThreadSafe()
Whether it is safe to modify the EList of model elements
ot this provider. |
|
| Methods inherited from class org.eclipse.emf.ecp.spi.core.DefaultProvider |
|---|
addDisposeListener, contains, createEditingDomain, dispose, doSave, getAdapter, getDescription, getLabel, getLinkElements, getOpenProjects, getProvider, getType, getUIProvider, getUnsupportedEPackages, hasCreateProjectWithoutRepositorySupport, hasCreateRepositorySupport, isDirty, isDisposed, modelExists, removeDisposeListener, setDescription, setLabel, setUIProvider |
| Methods inherited from class org.eclipse.emf.ecp.internal.core.util.Element |
|---|
compareTo, equals, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.ecp.core.util.ECPElement |
|---|
getName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public static final String NAME
public static final String PROP_CONNECTOR_TYPE
public static final String PROP_CONNECTOR_DESCRIPTION
public static final String PROP_REPOSITORY_NAME
public static final String PROP_BRANCH_PATH
public static final String PROP_TIME_STAMP
public static final String PROP_WORKSPACE_ID
| Constructor Detail |
|---|
public CDOProvider()
| Method Detail |
|---|
@Deprecated public static CDOProvider getInstance()
public <T> T getAdapter(Object adaptable,
Class<T> adapterType)
DefaultProvider
getAdapter in interface AdapterProvidergetAdapter in class DefaultProviderpublic boolean isSlow(Object parent)
DefaultProvider
isSlow in interface InternalProviderisSlow in class DefaultProviderparent - to check
public void fillChildren(ECPContainer context,
Object parent,
InternalChildrenList childrenList)
DefaultProvider
fillChildren in interface InternalProviderfillChildren in class DefaultProvidercontext - the context to useparent - the parent to read the children fromchildrenList - the list to fillpublic org.eclipse.emf.common.util.EList<Object> getElements(InternalProject project)
EList of the root elements.
project - the project to get the root elements for
public void handleLifecycle(ECPContainer context,
InternalProvider.LifecycleEvent event)
DefaultProvider
handleLifecycle in interface InternalProviderhandleLifecycle in class DefaultProvidercontext - the context to handle the lifecycle forevent - the lifecycle event to handlepublic ECPContainer getModelContext(Object element)
ECPContainer that can be found for the provided Object.
getModelContext in interface ECPModelContextProvidergetModelContext in class DefaultProviderelement - the element to search the ECPContainer for
ECPContainer of this elementpublic static CDORepositoryData getRepositoryData(InternalRepository repository)
CDORepositoryData for a given InternalRepository.
repository - the internal repositorz
CDORepositoryDatapublic static CDOProjectData getProjectData(InternalProject project)
CDOProjectData for the given internal project.
project - the internal project
CDOProjectDatapublic static File getProjectFolder(InternalProject project)
project - the internal project.
File
public void delete(InternalProject project,
Collection<Object> objects)
project - the project from where to deleteobjects - the Collection if Objects to delete
public void cloneProject(InternalProject projectToClone,
InternalProject targetProject)
projectToClone - the project to be clonedtargetProject - the project to add the cloned data topublic org.eclipse.emf.common.notify.Notifier getRoot(InternalProject project)
project - to check the root container for
Notifier that is the model root of this projectpublic boolean isThreadSafe()
EList of model elements
ot this provider.
InternalProvider.isThreadSafe()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||