Class EMFStoreProjectWrapper
- java.lang.Object
-
- org.eclipse.emf.ecp.emfstore.core.internal.EMFStoreProjectWrapper
-
- All Implemented Interfaces:
ECPCheckoutSource
,ECPProviderAware
,ECPRepositoryAware
public class EMFStoreProjectWrapper extends java.lang.Object implements ECPCheckoutSource
This is the EMFStore implementation of aECPCheckoutSource
.- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description EMFStoreProjectWrapper(InternalRepository repository, org.eclipse.emf.emfstore.client.ESRemoteProject remoteProject)
The Constructor fro creating anEMFStoreProjectWrapper
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkout(java.lang.String projectName, ECPProperties projectProperties)
This method is called in order execute the checkout.org.eclipse.emf.emfstore.client.ESRemoteProject
getCheckoutData()
This return theESRemoteProject
used in this wrapper.java.lang.String
getDefaultCheckoutName()
This return the default name for a project that was checked out.ECPProvider
getProvider()
The Provider this class references in any way.ECPRepository
getRepository()
This returns theECPRepository
this object references in any way.
-
-
-
Constructor Detail
-
EMFStoreProjectWrapper
public EMFStoreProjectWrapper(InternalRepository repository, org.eclipse.emf.emfstore.client.ESRemoteProject remoteProject)
The Constructor fro creating anEMFStoreProjectWrapper
.- Parameters:
repository
- the repository for this CheckoutSourceremoteProject
- the remote project to be checked out
-
-
Method Detail
-
getRepository
public ECPRepository getRepository()
This returns theECPRepository
this object references in any way.- Specified by:
getRepository
in interfaceECPRepositoryAware
- Returns:
- the known
ECPRepository
-
getProvider
public ECPProvider getProvider()
The Provider this class references in any way.- Specified by:
getProvider
in interfaceECPProviderAware
- Returns:
- the known
ECPProvider
-
getDefaultCheckoutName
public java.lang.String getDefaultCheckoutName()
This return the default name for a project that was checked out.- Specified by:
getDefaultCheckoutName
in interfaceECPCheckoutSource
- Returns:
- the default name
-
checkout
public void checkout(java.lang.String projectName, ECPProperties projectProperties) throws ECPProjectWithNameExistsException
This method is called in order execute the checkout.- Specified by:
checkout
in interfaceECPCheckoutSource
- Parameters:
projectName
- the name of the project to createprojectProperties
- theECPProperties
to use- Throws:
ECPProjectWithNameExistsException
- is thrown when a project with such a name already exists
-
getCheckoutData
public org.eclipse.emf.emfstore.client.ESRemoteProject getCheckoutData()
This return theESRemoteProject
used in this wrapper.- Returns:
- the
ESRemoteProject
used
-
-