|
|||||||||
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 EObject s 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 EPackage s which are not supported by the provider. |
Set<org.eclipse.emf.ecore.EClass> |
getVisibleEClasses()
Get the currently visible EClass es. |
Set<org.eclipse.emf.ecore.EPackage> |
getVisiblePackages()
Get the currently visible EPackage s. |
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 EClass es. |
void |
setVisiblePackages(Set<org.eclipse.emf.ecore.EPackage> visiblePackages)
Set the visible EPackage s. |
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 ECPRepositoryAware
InternalProvider getProvider()
getProvider
in interface ECPProviderAware
Object getProviderSpecificData()
void setProviderSpecificData(Object data)
data
- the provider specific data of this projectvoid 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)
EObject
s 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()
EPackage
s which are not supported by the provider. EObjects from these packages
cannot be created within the project.
Collection
of unsupported EPackage
svoid setVisiblePackages(Set<org.eclipse.emf.ecore.EPackage> visiblePackages)
EPackage
s. New model elements can only be created from EPackage
s contained in
the visiblePackages and the setVisibleEClasses(Set)
.
visiblePackages
- the EPackage
s to be visibleSet<org.eclipse.emf.ecore.EPackage> getVisiblePackages()
EPackage
s. If no filter is set, then all EPackage
s supported by the
provider are returned.
Set
of EPackage
s that should be available, or all supported EPackagesSet<org.eclipse.emf.ecore.EClass> getVisibleEClasses()
EClass
es. If no visible EClass
es are set, then an empty Set
is
returned.
Set
of EClass
es that should be available, or empty.void setVisibleEClasses(Set<org.eclipse.emf.ecore.EClass> visibleEClasses)
EClass
es.
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 |