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:
  • Method Summary

    Modifier and Type
    Method
    Description
    contains(org.eclipse.emf.ecore.EObject blueprint)
    createContribution(org.eclipse.emf.ecore.EObject blueprint, org.eclipse.core.runtime.IProgressMonitor monitor)
    Create new Contribution.
    createProject(String name, org.eclipse.core.runtime.IProgressMonitor monitor)
    Create Project.
    void
    delete(Object object, org.eclipse.core.runtime.IProgressMonitor monitor)
    getContribution(String projectName)
    Lookup Contribution by underlying project resource name.
    getContribution(String nsURI, Stage filter)
    Lookup Contribution by underlying project resource name.
    getContribution(org.eclipse.emf.ecore.EObject eObject)
    Lookup workspace Contribution by any type of EObject contained.
    getContribution(org.eclipse.emf.ecore.EObject eObject, boolean searchOptimistic)
    Lookup workspace Contribution by model EPackage.
    getContribution(org.eclipse.emf.ecore.EObject eObject, Stage filter)
    Lookup workspace Contribution by model EPackage.
    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>
    Returns the value of the 'Customizers' map.
    org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EPackage>
    Returns the value of the 'Excluded EPackages' reference list.
    org.eclipse.emf.common.util.EMap<StageQualifier,Customizer>
    Returns the value of the 'Non Exclusive Customizers' map.
    Lookup project by name.
    getProject(org.eclipse.emf.ecore.EObject eObject)
    Lookup project by name.
    getProject(org.eclipse.emf.ecore.resource.Resource resource)
    Lookup project by name.
    org.eclipse.emf.common.util.EList<Project>
    Returns the value of the 'Projects' containment reference list.
    org.eclipse.emf.ecore.resource.ResourceSet
    Returns the value of the 'Resource Set' attribute.
    Returns the value of the 'SCM Registry' reference.
    Returns the value of the 'Service' container reference.
    void
    Initializes Workspace.
    void
    provision(org.eclipse.core.runtime.IProgressMonitor monitor)
    Provision target platform.
    void
    void
    Sets the value of the 'Service' container reference.
    void

    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 Details

    • 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:
    • 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.enterprisedomain.EnterpriseDomainPackage#getWorkspace_ResourceSet()
    • getCustomizers

      org.eclipse.emf.common.util.EMap<StageQualifier,Customizer> getCustomizers()
      Returns the value of the 'Customizers' map. The key is of type StageQualifier, and the value is of type Customizer, Customizers collection.
      Returns:
      the value of the 'Customizers' map.
      See Also:
    • getNonExclusiveCustomizers

      org.eclipse.emf.common.util.EMap<StageQualifier,Customizer> getNonExclusiveCustomizers()
      Returns the value of the 'Non Exclusive Customizers' map. The key is of type StageQualifier, and the value is of type Customizer,
      Returns:
      the value of the 'Non Exclusive Customizers' map.
      See Also:
    • getService

      ClassMakerService getService()
      Returns the value of the 'Service' container reference. It is bidirectional and its opposite is 'Workspace'.

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

      Returns:
      the value of the 'Service' container reference.
      See Also:
    • 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:
    • getSCMRegistry

      SCMRegistry<?> getSCMRegistry()
      Returns the value of the 'SCM Registry' reference. The SCMRegistry.
      Returns:
      the value of the 'SCM Registry' reference.
      See Also:
    • getExcludedEPackages

      org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EPackage> getExcludedEPackages()
      Returns the value of the 'Excluded EPackages' reference list. The list contents are of type EPackage.
      Returns:
      the value of the 'Excluded EPackages' reference list.
      See Also:
    • 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(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(String projectName)
      Lookup Contribution by underlying project resource name.
    • getContribution

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

      Project getProject(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(Object object, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
      Throws:
      org.eclipse.core.runtime.CoreException