Interface Workspace

  • All Superinterfaces:
    org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.jobs.ISchedulingRule, org.eclipse.emf.common.notify.Notifier
    All Known Implementing Classes:
    WorkspaceImpl

    public interface Workspace
    extends org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.jobs.ISchedulingRule
    A representation of the model object ' Workspace'. Maps ResourceSet to IWorkspaceRoot.

    The following features are supported:

    See Also:
    ClassMakerPackage.getWorkspace()
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Stage contains​(org.eclipse.emf.ecore.EObject blueprint)
      Contribution createContribution​(org.eclipse.emf.ecore.EObject blueprint, org.eclipse.core.runtime.IProgressMonitor monitor)
      Create new Contribution.
      Project createProject​(java.lang.String name, org.eclipse.core.runtime.IProgressMonitor monitor)
      Create Project.
      void delete​(java.lang.Object object, org.eclipse.core.runtime.IProgressMonitor monitor)
      Contribution getContribution​(java.lang.String projectName)
      Lookup Contribution by underlying project resource name.
      Contribution getContribution​(java.lang.String nsURI, Stage filter)
      Lookup Contribution by underlying project resource name.
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject)
      Lookup workspace Contribution by any type of EObject contained.
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject, boolean searchOptimistic)
      Lookup workspace Contribution by model EPackage.
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject, Stage filter)
      Lookup workspace Contribution by model EPackage.
      Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject, Stage filter, boolean searchOptimistic)
      Lookup workspace Contribution by model EPackage.
      org.eclipse.emf.common.util.EMap<StageQualifier,​Customizer> getCustomizers()
      Returns the value of the 'Customizers' map.
      Project getProject​(java.lang.String name)
      Lookup project by name.
      Project getProject​(org.eclipse.emf.ecore.EObject eObject)
      Lookup project by name.
      Project getProject​(org.eclipse.emf.ecore.resource.Resource resource)
      Lookup project by name.
      org.eclipse.emf.common.util.EList<Project> getProjects()
      Returns the value of the 'Projects' containment reference list.
      org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
      Returns the value of the 'Resource Set' attribute.
      SCMRegistry<?> getSCMRegistry()
      Returns the value of the 'SCM Registry' reference.
      ClassMakerService getService()
      Returns the value of the 'Service' container reference.
      void initialize()
      Initializes Workspace.
      void provision​(org.eclipse.core.runtime.IProgressMonitor monitor)
      Provision target platform.
      void registerProject​(Project project)
      void setService​(ClassMakerService value)
      Sets the value of the 'Service' container reference.
      void unregisterProject​(Project project)
      • 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.core.runtime.jobs.ISchedulingRule

        contains, isConflicting
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Method Detail

      • getProjects

        org.eclipse.emf.common.util.EList<Project> getProjects()
        Returns the value of the 'Projects' containment reference list. The list contents are of type Project. It is bidirectional and its opposite is 'Workspace'.

        If the meaning of the 'Projects' containment reference list isn't clear, there really should be more of a description here...

        Projects contained in the Workspace.
        Returns:
        the value of the 'Projects' containment reference list.
        See Also:
        ClassMakerPackage.getWorkspace_Projects(), Project.getWorkspace()
      • getResourceSet

        org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
        Returns the value of the 'Resource Set' attribute.

        If the meaning of the 'Resource Set' attribute isn't clear, there really should be more of a description here...

        Returns:
        the value of the 'Resource Set' attribute.
        See Also:
        org.genericdomain.EnterpriseDomainPackage#getWorkspace_ResourceSet()
      • setService

        void setService​(ClassMakerService value)
        Sets the value of the 'Service' container reference.
        Parameters:
        value - the new value of the 'Service' container reference.
        See Also:
        getService()
      • initialize

        void initialize()
        Initializes Workspace.
      • provision

        void provision​(org.eclipse.core.runtime.IProgressMonitor monitor)
                throws org.eclipse.core.runtime.CoreException
        Provision target platform.
        Throws:
        org.eclipse.core.runtime.CoreException
      • createProject

        Project createProject​(java.lang.String name,
                              org.eclipse.core.runtime.IProgressMonitor monitor)
                       throws org.eclipse.core.runtime.CoreException
        Create Project.
        Throws:
        org.eclipse.core.runtime.CoreException
      • createContribution

        Contribution createContribution​(org.eclipse.emf.ecore.EObject blueprint,
                                        org.eclipse.core.runtime.IProgressMonitor monitor)
                                 throws org.eclipse.core.runtime.CoreException
        Create new Contribution.
        Throws:
        org.eclipse.core.runtime.CoreException
      • getContribution

        Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject)
        Lookup workspace Contribution by any type of EObject contained.
      • getContribution

        Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject,
                                     boolean searchOptimistic)
        Lookup workspace Contribution by model EPackage.
        Parameters:
        searchOptimistic - true if use OR while EPackage comparison, overwise use AND.
      • getContribution

        Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject,
                                     Stage filter)
        Lookup workspace Contribution by model EPackage.
        Parameters:
        filter - returns blueprint EPackage if Stage is less or equal MODELED, generated if it equals LOADED.
      • getContribution

        Contribution getContribution​(org.eclipse.emf.ecore.EObject eObject,
                                     Stage filter,
                                     boolean searchOptimistic)
        Lookup workspace Contribution by model EPackage.
        Parameters:
        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.
      • getContribution

        Contribution getContribution​(java.lang.String projectName)
        Lookup Contribution by underlying project resource name.
      • getContribution

        Contribution getContribution​(java.lang.String nsURI,
                                     Stage filter)
        Lookup Contribution by underlying project resource name.
      • getProject

        Project getProject​(java.lang.String name)
        Lookup project by name.
      • getProject

        Project getProject​(org.eclipse.emf.ecore.EObject eObject)
        Lookup project by name.
      • getProject

        Project getProject​(org.eclipse.emf.ecore.resource.Resource resource)
        Lookup project by name.
      • registerProject

        void registerProject​(Project project)
      • unregisterProject

        void unregisterProject​(Project project)
      • contains

        Stage contains​(org.eclipse.emf.ecore.EObject blueprint)
      • delete

        void delete​(java.lang.Object object,
                    org.eclipse.core.runtime.IProgressMonitor monitor)
             throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException