|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InternalProvider
| Nested Class Summary | |
|---|---|
static class |
InternalProvider.LifecycleEvent
Possible lifecycle events. |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecp.spi.core.util.ECPDisposable |
|---|
ECPDisposable.DisposeListener |
| Field Summary | |
|---|---|
static org.eclipse.emf.edit.provider.ComposedAdapterFactory |
EMF_ADAPTER_FACTORY
ComposedAdapterFactory to use. |
| Fields inherited from interface org.eclipse.emf.ecp.core.ECPProvider |
|---|
TYPE |
| Method Summary | |
|---|---|
void |
cloneProject(InternalProject projectToClone,
InternalProject targetProject)
This method clones a project. |
boolean |
contains(InternalProject project,
Object object)
Checks whether a specific project contains a specific object. |
org.eclipse.emf.edit.domain.EditingDomain |
createEditingDomain(InternalProject project)
This method creates an editing domain each time it is called. |
void |
delete(InternalProject project,
Collection<Object> objects)
Deletes a collection of EObjects from the model. |
void |
doSave(InternalProject project)
This method manually triggers the save of the model data. |
void |
fillChildren(ECPContainer context,
Object parent,
InternalChildrenList childrenList)
Fills the elements of a certain parent object, depending on the context into the childrenList. |
org.eclipse.emf.common.util.EList<? extends Object> |
getElements(InternalProject project)
This method returns an EList of the root elements. |
Iterator<org.eclipse.emf.ecore.EObject> |
getLinkElements(InternalProject project,
org.eclipse.emf.ecore.EObject modelElement,
org.eclipse.emf.ecore.EReference eReference)
Return all EObjects that this provider supports for linking them to the modelElement and the provided
eReference. |
Set<InternalProject> |
getOpenProjects()
Array of all ECPProjects based on this ECPProvider which are open. |
org.eclipse.emf.common.notify.Notifier |
getRoot(InternalProject project)
Method checking whether an object is the root of the model container. |
AdapterProvider |
getUIProvider()
Allows access of the corresponding UI Adapter. |
Set<org.eclipse.emf.ecore.EPackage> |
getUnsupportedEPackages(Collection<org.eclipse.emf.ecore.EPackage> ePackages,
InternalRepository repository)
EPackages that are not supported by this provider. |
void |
handleLifecycle(ECPContainer context,
InternalProvider.LifecycleEvent event)
This method is called to handle a specific life cycle. |
boolean |
isDirty(InternalProject project)
This method checks, whether the model is in a dirty state. |
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. |
boolean |
modelExists(InternalProject project)
Checks whether the data of the project still exists, method is called on startup. |
void |
setUIProvider(AdapterProvider uiProvider)
Allows to set the uiProvider. |
| Methods inherited from interface org.eclipse.emf.ecp.core.ECPProvider |
|---|
getLabel, hasCreateProjectWithoutRepositorySupport, hasCreateRepositorySupport |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.emf.ecp.core.util.ECPProviderAware |
|---|
getProvider |
| Methods inherited from interface org.eclipse.emf.ecp.core.util.ECPModelContextProvider |
|---|
getModelContext |
| Methods inherited from interface org.eclipse.emf.ecp.spi.core.util.InternalRegistryElement |
|---|
getDescription, getLabel, setDescription, setLabel |
| Methods inherited from interface org.eclipse.emf.ecp.core.util.ECPElement |
|---|
getName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.eclipse.emf.ecp.spi.core.util.ECPDisposable |
|---|
addDisposeListener, dispose, isDisposed, removeDisposeListener |
| Methods inherited from interface org.eclipse.emf.ecp.spi.core.util.AdapterProvider |
|---|
getAdapter |
| Field Detail |
|---|
static final org.eclipse.emf.edit.provider.ComposedAdapterFactory EMF_ADAPTER_FACTORY
ComposedAdapterFactory to use.
| Method Detail |
|---|
AdapterProvider getUIProvider()
void setUIProvider(AdapterProvider uiProvider)
uiProvider - the uiProvider to setorg.eclipse.emf.edit.domain.EditingDomain createEditingDomain(InternalProject project)
project - the InternalProject to create the domain for.
EditingDomainboolean isSlow(Object parent)
parent - to check
boolean isThreadSafe()
EList of model elements
ot this provider.
void fillChildren(ECPContainer context,
Object parent,
InternalChildrenList childrenList)
context - the context to useparent - the parent to read the children fromchildrenList - the list to fill
void handleLifecycle(ECPContainer context,
InternalProvider.LifecycleEvent event)
context - the context to handle the lifecycle forevent - the lifecycle event to handleorg.eclipse.emf.common.util.EList<? extends Object> getElements(InternalProject project)
EList of the root elements.
project - the project to get the root elements for
Set<org.eclipse.emf.ecore.EPackage> getUnsupportedEPackages(Collection<org.eclipse.emf.ecore.EPackage> ePackages,
InternalRepository repository)
EPackages that are not supported by this provider.
ePackages - packages to filter fromrepository - the repository to check
Collection of EPackages that are not supported
Iterator<org.eclipse.emf.ecore.EObject> getLinkElements(InternalProject project,
org.eclipse.emf.ecore.EObject modelElement,
org.eclipse.emf.ecore.EReference eReference)
EObjects that this provider supports for linking them to the modelElement and the provided
eReference.
project - - the project the call is frommodelElement - - EObject to add the EReference toeReference - - the EReference to add
Iterator of EObject that can be linkedvoid doSave(InternalProject project)
project - the project to save the model data forboolean isDirty(InternalProject project)
project - the project to check the dirty state for
void delete(InternalProject project,
Collection<Object> objects)
project - the project from where to deleteobjects - the Collection if Objects to delete
void cloneProject(InternalProject projectToClone,
InternalProject targetProject)
projectToClone - the project to be clonedtargetProject - the project to add the cloned data toboolean modelExists(InternalProject project)
DefaultProvider
implements this by returning true, adopt if needed.
project - InternalProject to check
org.eclipse.emf.common.notify.Notifier getRoot(InternalProject project)
project - to check the root container for
Notifier that is the model root of this projectSet<InternalProject> getOpenProjects()
boolean contains(InternalProject project,
Object object)
project - the project to checkobject - the object to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||