|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InternalProject
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.emf.ecp.core.ECPProject |
|---|
TYPE |
| Method Summary | |
|---|---|
InternalProject |
clone(String name)
This method clones a project. |
boolean |
contains(Object object)
Check whether a project contains an Object. |
InternalProvider |
getProvider()
This method returns the provider of this project. |
Object |
getProviderSpecificData()
This method returns the provider specific data of this project. |
Iterator<org.eclipse.emf.ecore.EObject> |
getReferenceCandidates(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference)
Get all possible EObjects from the provider to which a reference can be added from a certain
EObject based
on the type of the EReference. |
InternalRepository |
getRepository()
This method returns the repository this project is shared on. |
Set<org.eclipse.emf.ecore.EPackage> |
getUnsupportedEPackages()
Returns a collection of EPackages which are not supported by the provider. |
Set<org.eclipse.emf.ecore.EClass> |
getVisibleEClasses()
Get the currently visible EClasses. |
Set<org.eclipse.emf.ecore.EPackage> |
getVisiblePackages()
Get the currently visible EPackages. |
boolean |
isModelRoot(Object object)
This method checks whether the provided object is the model root of the project. |
void |
notifyObjectsChanged(Collection<Object> objects,
boolean structural)
This method is a callback for the provider to notify the project about changes. |
void |
notifyProvider(InternalProvider.LifecycleEvent event)
This method is used to notify the provider about a InternalProvider.LifecycleEvent of this project. |
void |
saveProperties()
Deprecated. As of 1.1 properties are saved automatically when they're changed. |
void |
setProviderSpecificData(Object data)
This method sets the provider specific data of this project. |
void |
setVisibleEClasses(Set<org.eclipse.emf.ecore.EClass> visibleEClasses)
Set the visible EClasses. |
void |
setVisiblePackages(Set<org.eclipse.emf.ecore.EPackage> visiblePackages)
Set the visible EPackages. |
void |
undispose(InternalRepository repository)
This method undisposes the project based on a repository. |
| Methods inherited from interface org.eclipse.emf.ecp.core.ECPProject |
|---|
close, deleteElements, getContents, hasDirtyContents, isOpen, open, saveContents |
| Methods inherited from interface org.eclipse.emf.ecp.core.util.ECPContainer |
|---|
canDelete, delete |
| 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.core.util.ECPPropertiesAware |
|---|
getProperties |
| Methods inherited from interface org.eclipse.emf.edit.domain.IEditingDomainProvider |
|---|
getEditingDomain |
| Methods inherited from interface org.eclipse.emf.ecp.core.util.ECPProjectAware |
|---|
getProject |
| Methods inherited from interface org.eclipse.emf.ecp.internal.core.util.PropertiesStore.StorableElement |
|---|
isStorable, write |
| Method Detail |
|---|
InternalRepository getRepository()
getRepository in interface ECPRepositoryAwareInternalProvider getProvider()
getProvider in interface ECPProviderAwareObject getProviderSpecificData()
void setProviderSpecificData(Object data)
data - the provider specific data of this project
void notifyObjectsChanged(Collection<Object> objects,
boolean structural)
objects - the objects that have changedstructural - if the changes where structural (e.g. delete)void undispose(InternalRepository repository)
repository - the repositoryvoid notifyProvider(InternalProvider.LifecycleEvent event)
InternalProvider.LifecycleEvent of this project.
event - to pass to the providerInternalProject clone(String name)
name - the name of the project to create
@Deprecated void saveProperties()
Iterator<org.eclipse.emf.ecore.EObject> getReferenceCandidates(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference)
EObjects from the provider to which a reference can be added from a certain
EObject based
on the type of the EReference.
eObject - - the EObject for which the reference should be set.eReference - - the EReference to be set.
Iterator over all EObject that can be added as a referenceboolean isModelRoot(Object object)
object - the object to check
Set<org.eclipse.emf.ecore.EPackage> getUnsupportedEPackages()
EPackages which are not supported by the provider. EObjects from these packages
cannot be created within the project.
Collection of unsupported EPackagesvoid setVisiblePackages(Set<org.eclipse.emf.ecore.EPackage> visiblePackages)
EPackages. New model elements can only be created from EPackages contained in
the visiblePackages and the setVisibleEClasses(Set).
visiblePackages - the EPackages to be visibleSet<org.eclipse.emf.ecore.EPackage> getVisiblePackages()
EPackages. If no filter is set, then all EPackages supported by the
provider are returned.
Set of EPackages that should be available, or all supported EPackagesSet<org.eclipse.emf.ecore.EClass> getVisibleEClasses()
EClasses. If no visible EClasses are set, then an empty Set is
returned.
Set of EClasses that should be available, or empty.void setVisibleEClasses(Set<org.eclipse.emf.ecore.EClass> visibleEClasses)
EClasses.
visibleEClasses - the classes that should be availableboolean contains(Object object)
object - the object to check for containment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||