Class WorkspaceImpl

  • All Implemented Interfaces:
    org.eclipse.core.runtime.jobs.ISchedulingRule, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Workspace

    public class WorkspaceImpl
    extends org.eclipse.emf.ecore.impl.EObjectImpl
    implements Workspace
    An implementation of the model object ' Workspace'.

    The following features are implemented:

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject

        org.eclipse.emf.ecore.InternalEObject.EStore
    • Field Summary

      • Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        ELAST_EOBJECT_FLAG
      • Fields inherited from interface org.eclipse.emf.ecore.InternalEObject

        EOPPOSITE_FEATURE_BASE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SCMRegistry<?> basicGetSCMRegistry()
      org.eclipse.emf.common.notify.NotificationChain basicSetService​(ClassMakerService newService, org.eclipse.emf.common.notify.NotificationChain msgs)
      boolean contains​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)  
      Stage contains​(org.eclipse.emf.ecore.EObject blueprint)
      Contribution createContribution​(org.eclipse.emf.ecore.EObject blueprint, org.eclipse.core.runtime.IProgressMonitor monitor)
      Project createProject​(java.lang.String name, org.eclipse.core.runtime.IProgressMonitor monitor)
      void delete​(java.lang.Object object, org.eclipse.core.runtime.IProgressMonitor monitor)
      org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature​(org.eclipse.emf.common.notify.NotificationChain msgs)
      java.lang.Object eGet​(int featureID, boolean resolve, boolean coreType)
      org.eclipse.emf.common.notify.NotificationChain eInverseAdd​(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
      org.eclipse.emf.common.notify.NotificationChain eInverseRemove​(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
      boolean eIsSet​(int featureID)
      void eSet​(int featureID, java.lang.Object newValue)
      void eUnset​(int featureID)
      Contribution getContribution​(java.lang.String projectName)
      Contribution getContribution​(java.lang.String nsURI, Stage filter)
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject)
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject, boolean searchOptimistic)
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject, Stage filter)
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject, Stage filter, boolean searchOptimistic)
      org.eclipse.emf.common.util.EMap<StageQualifier,​Customizer> getCustomizers()
      Project getProject​(java.lang.String name)
      Project getProject​(org.eclipse.emf.ecore.EObject eObject)
      Project getProject​(org.eclipse.emf.ecore.resource.Resource resource)
      org.eclipse.emf.common.util.EList<Project> getProjects()
      org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
      SCMRegistry<?> getSCMRegistry()
      ClassMakerService getService()
      void initialize()
      boolean isConflicting​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)  
      void provision​(org.eclipse.core.runtime.IProgressMonitor monitor)
      void registerProject​(Project project)
      void setService​(ClassMakerService newService)
      java.lang.String toString()
      void unregisterProject​(Project project)
      • Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
      • Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
      • Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        eNotificationRequired, eNotify
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.ecore.InternalEObject

        eNotificationRequired
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Method Detail

      • getResourceSet

        public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
        Specified by:
        getResourceSet in interface Workspace
        Returns:
        the value of the 'Resource Set' attribute.
        See Also:
        org.genericdomain.EnterpriseDomainPackage#getWorkspace_ResourceSet()
      • basicSetService

        public org.eclipse.emf.common.notify.NotificationChain basicSetService​(ClassMakerService newService,
                                                                               org.eclipse.emf.common.notify.NotificationChain msgs)
      • basicGetSCMRegistry

        public SCMRegistry<?> basicGetSCMRegistry()
      • provision

        public void provision​(org.eclipse.core.runtime.IProgressMonitor monitor)
                       throws org.eclipse.core.runtime.CoreException
        Specified by:
        provision in interface Workspace
        Throws:
        org.eclipse.core.runtime.CoreException
      • createContribution

        public Contribution createContribution​(org.eclipse.emf.ecore.EObject blueprint,
                                               org.eclipse.core.runtime.IProgressMonitor monitor)
                                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        createContribution in interface Workspace
        Throws:
        org.eclipse.core.runtime.CoreException
      • getContribution

        public Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject,
                                            boolean searchOptimistic)
        Specified by:
        getContribution in interface Workspace
        searchOptimistic - true if use OR while EPackage comparison, overwise use AND.
      • getContribution

        public Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject,
                                            Stage filter)
        Specified by:
        getContribution in interface Workspace
        filter - returns blueprint EPackage if Stage is less or equal MODELED, generated if it equals LOADED.
      • getContribution

        public Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject,
                                            Stage filter,
                                            boolean searchOptimistic)
        Specified by:
        getContribution in interface Workspace
        filter - returns blueprint EPackage if Stage is less or equal MODELED, generated if it equals LOADED.
        searchOptimistic - true if use OR while EPackage comparison, overwise use AND.
      • createProject

        public Project createProject​(java.lang.String name,
                                     org.eclipse.core.runtime.IProgressMonitor monitor)
                              throws org.eclipse.core.runtime.CoreException
        Specified by:
        createProject in interface Workspace
        Throws:
        org.eclipse.core.runtime.CoreException
      • getProject

        public Project getProject​(org.eclipse.emf.ecore.EObject eObject)
        Specified by:
        getProject in interface Workspace
      • getProject

        public Project getProject​(org.eclipse.emf.ecore.resource.Resource resource)
        Specified by:
        getProject in interface Workspace
      • contains

        public Stage contains​(org.eclipse.emf.ecore.EObject blueprint)
        Specified by:
        contains in interface Workspace
      • delete

        public void delete​(java.lang.Object object,
                           org.eclipse.core.runtime.IProgressMonitor monitor)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        delete in interface Workspace
        Throws:
        org.eclipse.core.runtime.CoreException
      • eInverseAdd

        public org.eclipse.emf.common.notify.NotificationChain eInverseAdd​(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                           int featureID,
                                                                           org.eclipse.emf.common.notify.NotificationChain msgs)
        Overrides:
        eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eInverseRemove

        public org.eclipse.emf.common.notify.NotificationChain eInverseRemove​(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                              int featureID,
                                                                              org.eclipse.emf.common.notify.NotificationChain msgs)
        Overrides:
        eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eBasicRemoveFromContainerFeature

        public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature​(org.eclipse.emf.common.notify.NotificationChain msgs)
        Overrides:
        eBasicRemoveFromContainerFeature in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eGet

        public java.lang.Object eGet​(int featureID,
                                     boolean resolve,
                                     boolean coreType)
        Specified by:
        eGet in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eSet

        public void eSet​(int featureID,
                         java.lang.Object newValue)
        Specified by:
        eSet in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eUnset

        public void eUnset​(int featureID)
        Specified by:
        eUnset in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eIsSet

        public boolean eIsSet​(int featureID)
        Specified by:
        eIsSet in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • contains

        public boolean contains​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)
        Specified by:
        contains in interface org.eclipse.core.runtime.jobs.ISchedulingRule
      • isConflicting

        public boolean isConflicting​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)
        Specified by:
        isConflicting in interface org.eclipse.core.runtime.jobs.ISchedulingRule