public interface ProjectSpace extends IdentifiableElement, APIDelegate<ESLocalProjectImpl>
ModelPackage.getProjectSpace()| Modifier and Type | Field and Description |
|---|---|
static String |
RUNNABLE_CONTEXT_ID
ID of the runnable change context option.
|
| Modifier and Type | Method and Description |
|---|---|
FileIdentifier |
addFile(File file)
Adds a file to this project space.
|
FileIdentifier |
addFile(File file,
String fileIdentifier)
Adds a file to this project space.
|
void |
addOperations(List<? extends AbstractOperation> operations)
Adds a list of operations to this project space.
|
void |
addTag(PrimaryVersionSpec versionSpec,
TagVersionSpec tag)
Adds a tag to the specified version of this project.
|
CompositeOperationHandle |
beginCompositeOperation()
Begin a composite operation on the projectSpace.
|
PrimaryVersionSpec |
commit(org.eclipse.core.runtime.IProgressMonitor monitor)
Commits all pending changes of the project space.
|
PrimaryVersionSpec |
commit(String logMessage,
ESCommitCallback callback,
org.eclipse.core.runtime.IProgressMonitor monitor)
Commits all pending changes of the project space.
|
PrimaryVersionSpec |
commitToBranch(BranchVersionSpec branch,
String logMessage,
ESCommitCallback callback,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method allows to commit changes to a new branch.
|
void |
delete(org.eclipse.core.runtime.IProgressMonitor monitor)
Deletes the project space.
|
void |
exportLocalChanges(File file)
Export all local changes to a file.
|
void |
exportLocalChanges(File file,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Export all local changes to a file.
|
void |
exportProject(File file)
Export a project to the given file.
|
void |
exportProject(File file,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Export a project to the given file.
|
PrimaryVersionSpec |
getBaseVersion()
Returns the value of the 'Base Version' containment reference.
|
List<BranchInfo> |
getBranches()
Returns a list of branches of the current project.
|
org.eclipse.emf.common.util.EList<EMFStoreProperty> |
getChangedSharedProperties()
Returns the value of the 'Changed Shared Properties'
reference list.
|
List<AbstractChangePackage> |
getChanges(VersionSpec sourceVersion,
VersionSpec targetVersion) |
FileDownloadStatus |
getFile(FileIdentifier fileIdentifier)
Gets a file with a specific identifier.
|
FileInformation |
getFileInfo(FileIdentifier fileIdentifier)
Gets the file information for a specific file identifier.
|
Date |
getLastUpdated()
Returns the value of the 'Last Updated' attribute.
|
AbstractChangePackage |
getLocalChangePackage()
Returns the value of the 'Local Change Package' containment reference.
|
AbstractChangePackage |
getLocalChangePackage(boolean canonize)
Gathers all local operations and canonizes them.
|
PrimaryVersionSpec |
getMergedVersion()
Returns the value of the 'Merged Version' containment reference.
|
org.eclipse.emf.common.util.EList<String> |
getOldLogMessages()
Returns the value of the 'Old Log Messages' attribute
list.
|
OperationManager |
getOperationManager()
Get the
OperationManager for this ProjectSpace. |
Project |
getProject()
Returns the value of the 'Project' containment reference.
|
String |
getProjectDescription()
Returns the value of the 'Project Description' attribute.
|
ProjectId |
getProjectId()
Returns the value of the 'Project Id' containment reference.
|
ProjectInfo |
getProjectInfo()
Get a project info for the project space.
|
String |
getProjectName()
Returns the value of the 'Project Name' attribute.
|
org.eclipse.emf.common.util.EList<EMFStoreProperty> |
getProperties()
Returns the value of the 'Properties' containment
reference list.
|
PropertyManager |
getPropertyManager()
Get the
PropertyManager for this ProjectSpace. |
int |
getResourceCount()
Returns the value of the 'Resource Count' attribute.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Returns the resource set of the ProjectSpace.
|
Usersession |
getUsersession()
Returns the value of the 'Usersession' reference.
|
org.eclipse.emf.common.util.EList<FileIdentifier> |
getWaitingUploads()
Returns the value of the 'Waiting Uploads' containment
reference list.
|
Workspace |
getWorkspace()
Returns the value of the 'Workspace' container reference.
|
boolean |
hasUnsavedChanges()
Determine if the project space has unsaved changes to any element in the project.
|
void |
importLocalChanges(String fileName)
Import changes from a file.
|
void |
init()
Initialize the project space and its resources.
|
void |
initResources(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Initialize the resources of the project space.
|
boolean |
isDirty()
Returns the value of the 'Dirty' attribute.
|
boolean |
isShared()
Whether this project space has been shared.
|
boolean |
isTransient()
Shows whether projectSpace is transient.
|
boolean |
isUpdated()
Determines whether the project is up to date, that is, whether the base
revision and the head revision are equal.
|
void |
makeTransient()
Will make the projectSpace transient, it will not make its content or
changes persistent.
|
void |
mergeBranch(PrimaryVersionSpec branchSpec,
ConflictResolver conflictResolver,
org.eclipse.core.runtime.IProgressMonitor monitor)
Allows to merge a version from another branch into the current
project space.
|
AbstractChangePackage |
mergeResolvedConflicts(ChangeConflictSet conflictSet,
List<AbstractChangePackage> myChangePackages,
List<AbstractChangePackage> theirChangePackages)
Merges the resolved conflict sets.
|
void |
removeTag(PrimaryVersionSpec versionSpec,
TagVersionSpec tag)
Removes a tag to the specified version of this project.
|
org.eclipse.emf.ecore.EObject |
resolve(ModelElementUrlFragment modelElementUrlFragment)
Resolve the url to a model element.
|
PrimaryVersionSpec |
resolveVersionSpec(VersionSpec versionSpec,
org.eclipse.core.runtime.IProgressMonitor monitor)
Resolve a version spec to a primary version spec.
|
void |
revert()
Revert all local changes in the project space.
|
void |
save()
Saves the project space.
|
void |
setBaseVersion(PrimaryVersionSpec value)
Sets the value of the '
Base Version' containment reference. |
void |
setDirty(boolean value)
Sets the value of the '
Dirty
' attribute. |
void |
setLastUpdated(Date value)
Sets the value of the '
Last Updated' attribute. |
void |
setLocalChangePackage(AbstractChangePackage value)
Sets the value of the '
Local Change Package' containment reference. |
void |
setMergedVersion(PrimaryVersionSpec value)
Sets the value of the '
Merged Version' containment reference. |
void |
setProject(Project value)
Sets the value of the '
Project' containment reference. |
void |
setProjectDescription(String value)
Sets the value of the '
Project Description' attribute. |
void |
setProjectId(ProjectId value)
Sets the value of the '
Project Id' containment reference. |
void |
setProjectName(String value)
Sets the value of the '
Project Name' attribute. |
void |
setProperty(OrgUnitProperty property)
Sets a new OrgUnitProperty for the current user.
|
void |
setResourceCount(int value)
Sets the value of the '
Resource Count' attribute. |
void |
setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Sets the resource set of the project space.
|
void |
setRunnableContext(ESRunnableContext runnableContext)
Provides a context in which a
Runnable is executed. |
void |
setUsersession(Usersession value)
Sets the value of the '
Usersession' reference. |
void |
setWorkspace(Workspace value)
Sets the value of the '
Workspace' container reference. |
ProjectInfo |
shareProject(org.eclipse.core.runtime.IProgressMonitor monitor)
Shares this project space.
|
ProjectInfo |
shareProject(Usersession session,
org.eclipse.core.runtime.IProgressMonitor monitor)
Shares this project space.
|
void |
transmitProperties()
Transmit the OrgUnitproperties to the server.
|
void |
undoLastOperation()
Undo the last operation of the projectSpace.
|
void |
undoLastOperations(int nrOperations)
Undo the last operation n operations of the projectSpace.
|
PrimaryVersionSpec |
update(org.eclipse.core.runtime.IProgressMonitor monitor)
Update the project to the head version.
|
PrimaryVersionSpec |
update(VersionSpec version)
Update the project to the given version.
|
PrimaryVersionSpec |
update(VersionSpec version,
ESUpdateCallback callback,
org.eclipse.core.runtime.IProgressMonitor progress)
Update the workspace to the given revision.
|
getIdentifier, setIdentifiereAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDelivercreateAPI, toAPIstatic final String RUNNABLE_CONTEXT_ID
void setRunnableContext(ESRunnableContext runnableContext)
Provides a context in which a Runnable is executed.
This may be used to provide a context while applying operations on a
ESLocalProject.
runnableContext - the runnable context to be setFileIdentifier addFile(File file) throws FileTransferException
FileInformation via getFileInfo(FileIdentifier) and then
remove it via FileInformation.cancelPendingUpload().file - to be added to the project spaceFileTransferException - if any error occursFileIdentifier addFile(File file, String fileIdentifier) throws FileTransferException
FileInformation via getFileInfo(FileIdentifier) and then
remove it via FileInformation.cancelPendingUpload().file - to be added to the project spacefileIdentifier - the file identifier to be used for the given fileFileTransferException - if any error occursvoid addOperations(List<? extends AbstractOperation> operations)
operations - the list of operations to be addedvoid addTag(PrimaryVersionSpec versionSpec, TagVersionSpec tag) throws ESException
versionSpec - the versionSpectag - the tagESException - if exception occurs on the serverCompositeOperationHandle beginCompositeOperation()
PrimaryVersionSpec commit(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
monitor - a progress monitor that may be used during the commit to indicate the progressESException - in case the commit went wrongPrimaryVersionSpec commit(String logMessage, ESCommitCallback callback, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
logMessage - a log message describing the changes to be committedcallback - an optional callback method to be performed while the commit
is in progress, may be nullmonitor - an optional progress monitor to be used while the commit is in
progress, may be nullESException - in case the commit went wrongPrimaryVersionSpec commitToBranch(BranchVersionSpec branch, String logMessage, ESCommitCallback callback, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
commit(IProgressMonitor) with the addition of a Branch specifier.
Once the branch is created use commit(IProgressMonitor) for further commits.branch - branch specifierlogMessage - optional log messagecallback - optional callback, passing an implementation is recommendedmonitor - optional progress monitorESException - in case of an exceptionvoid mergeBranch(PrimaryVersionSpec branchSpec, ConflictResolver conflictResolver, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
branchSpec - the version which is supposed to be mergedconflictResolver - a ConflictResolver for conflict resolvingmonitor - a progress monitor that may be used during the merge to indicate the progressESException - in case of an exceptionAbstractChangePackage mergeResolvedConflicts(ChangeConflictSet conflictSet, List<AbstractChangePackage> myChangePackages, List<AbstractChangePackage> theirChangePackages) throws ChangeConflictException
conflictSet - a set containing the conflictsmyChangePackages - a list of local change packagestheirChangePackages - a list of containing the incoming change packagesChangeConflictException - in case the conflicts can not be resolvedList<BranchInfo> getBranches() throws ESException
BranchInfoESException - in case of an exceptionvoid exportLocalChanges(File file) throws IOException
file - the file being exported toIOException - if writing to the given file failsvoid exportLocalChanges(File file, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws IOException
file - the file being exported toprogressMonitor - the progress monitor that should be used while exportingIOException - if writing to the given file failsvoid exportProject(File file) throws IOException
file - the file being exported toIOException - if writing to the given file failsvoid exportProject(File file, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws IOException
file - the file being exported toprogressMonitor - the progress monitor that should be used during the exportIOException - if writing to the given file failsPrimaryVersionSpec getBaseVersion()
If the meaning of the 'Base Version' containment reference isn't clear, there really should be more of a description here...
setBaseVersion(PrimaryVersionSpec),
ModelPackage.getProjectSpace_BaseVersion()org.eclipse.emf.common.util.EList<EMFStoreProperty> getChangedSharedProperties()
EMFStoreProperty.
If the meaning of the 'Changed Shared Properties' map isn't clear, there really should be more of a description here...
ModelPackage.getProjectSpace_ChangedSharedProperties()Workspace getWorkspace()
Project Spaces'.
If the meaning of the 'Workspace' container reference isn't clear, there really should be more of a description here...
setWorkspace(Workspace),
ModelPackage.getProjectSpace_Workspace(),
Workspace.getProjectSpaces()void setWorkspace(Workspace value)
Workspace' container reference.
value - the new value of the 'Workspace' container reference.getWorkspace()AbstractChangePackage getLocalChangePackage()
If the meaning of the 'Local Change Package' containment reference isn't clear, there really should be more of a description here...
setLocalChangePackage(AbstractChangePackage),
ModelPackage.getProjectSpace_LocalChangePackage()void setLocalChangePackage(AbstractChangePackage value)
Local Change Package' containment reference.
value - the new value of the 'Local Change Package' containment reference.getLocalChangePackage()AbstractChangePackage getLocalChangePackage(boolean canonize)
canonize - true if the operations should be canonizedPrimaryVersionSpec getMergedVersion()
If the meaning of the 'Merged Version' containment reference isn't clear, there really should be more of a description here...
setMergedVersion(PrimaryVersionSpec),
ModelPackage.getProjectSpace_MergedVersion()void setMergedVersion(PrimaryVersionSpec value)
Merged Version' containment reference.
value - the new value of the 'Merged Version' containment reference.getMergedVersion()List<AbstractChangePackage> getChanges(VersionSpec sourceVersion, VersionSpec targetVersion) throws ESException
sourceVersion - the source version specificationtargetVersion - the target version specificationESException - if any error in the EmfStore occursFileDownloadStatus getFile(FileIdentifier fileIdentifier) throws FileTransferException
fileIdentifier - file identifier string.FileTransferException - if any error occurs retrieving the filesFileInformation getFileInfo(FileIdentifier fileIdentifier)
fileIdentifier - the file identifier for which to get the informationDate getLastUpdated()
If the meaning of the 'Last Updated' attribute isn't clear, there really should be more of a description here...
setLastUpdated(Date),
ModelPackage.getProjectSpace_LastUpdated()org.eclipse.emf.common.util.EList<String> getOldLogMessages()
String.
If the meaning of the 'Old Log Messages' attribute list isn't clear, there really should be more of a description here...
ModelPackage.getProjectSpace_OldLogMessages()OperationManager getOperationManager()
OperationManager for this ProjectSpace.Project getProject()
If the meaning of the 'Project' reference isn't clear, there really should be more of a description here...
setProject(Project),
ModelPackage.getProjectSpace_Project()String getProjectDescription()
If the meaning of the 'Project Description' attribute isn't clear, there really should be more of a description here...
setProjectDescription(String),
ModelPackage.getProjectSpace_ProjectDescription()ProjectId getProjectId()
If the meaning of the 'Project Id' containment reference isn't clear, there really should be more of a description here...
setProjectId(ProjectId),
ModelPackage.getProjectSpace_ProjectId()ProjectInfo getProjectInfo()
String getProjectName()
If the meaning of the 'Project Name' attribute isn't clear, there really should be more of a description here...
setProjectName(String),
ModelPackage.getProjectSpace_ProjectName()org.eclipse.emf.common.util.EList<EMFStoreProperty> getProperties()
EMFStoreProperty.
If the meaning of the 'Properties' map isn't clear, there really should be more of a description here...
ModelPackage.getProjectSpace_Properties()PropertyManager getPropertyManager()
PropertyManager for this ProjectSpace.Usersession getUsersession()
If the meaning of the 'Usersession' reference isn't clear, there really should be more of a description here...
setUsersession(Usersession),
ModelPackage.getProjectSpace_Usersession()org.eclipse.emf.common.util.EList<FileIdentifier> getWaitingUploads()
FileIdentifier.
If the meaning of the 'Waiting Uploads' containment reference list isn't clear, there really should be more of a description here...
ModelPackage.getProjectSpace_WaitingUploads()void importLocalChanges(String fileName) throws IOException
fileName - the file name to import fromIOException - if file access failsvoid init()
void initResources(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet - the resource set the project space should usevoid delete(org.eclipse.core.runtime.IProgressMonitor monitor)
throws IOException
monitor - a progress monitor that may be used during the delete to indicate the progressIOException - in case the project space could not be deletedorg.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet - the resource set to be used by this project spaceboolean isDirty()
If the meaning of the 'Dirty' attribute isn't clear, there really should be more of a description here...
setDirty(boolean),
ModelPackage.getProjectSpace_Dirty()boolean isTransient()
boolean isUpdated()
throws ESException
ESException - if the head revision can not be resolvedvoid makeTransient()
void removeTag(PrimaryVersionSpec versionSpec, TagVersionSpec tag) throws ESException
versionSpec - the versionSpectag - the tagESException - if exception occurs on the serverorg.eclipse.emf.ecore.EObject resolve(ModelElementUrlFragment modelElementUrlFragment) throws MEUrlResolutionException
modelElementUrlFragment - the urlMEUrlResolutionException - if model element does not exist in project.PrimaryVersionSpec resolveVersionSpec(VersionSpec versionSpec, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
versionSpec - the spec to resolvemonitor - a progress monitor that may be used during resolving the version to indicate the progressESException - if resolving failsvoid revert()
void setBaseVersion(PrimaryVersionSpec value)
Base Version' containment reference.
value - the new value of the 'Base Version' containment reference.getBaseVersion()int getResourceCount()
If the meaning of the 'Resource Count' attribute isn't clear, there really should be more of a description here...
setResourceCount(int),
ModelPackage.getProjectSpace_ResourceCount()void setResourceCount(int value)
Resource Count' attribute.
value - the new value of the 'Resource Count' attribute.getResourceCount()void setDirty(boolean value)
Dirty
' attribute.
value - the new value of the 'Dirty' attribute.isDirty()void setLastUpdated(Date value)
Last Updated' attribute.
value - the new value of the 'Last Updated' attribute.getLastUpdated()void setProject(Project value)
Project' containment reference.
value - the new value of the 'Project' containment reference.getProject()void setProjectDescription(String value)
Project Description' attribute.
value - the new value of the 'Project Description' attribute.getProjectDescription()void setProjectId(ProjectId value)
Project Id' containment reference.
value - the new value of the 'Project Id' containment reference.getProjectId()void setProjectName(String value)
Project Name' attribute.
value - the new value of the 'Project Name' attribute.getProjectName()void setProperty(OrgUnitProperty property)
property - the new propertyvoid setUsersession(Usersession value)
Usersession' reference.
value - the new value of the 'Usersession' reference.getUsersession()ProjectInfo shareProject(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
ESException - if an error occurs during the sharing of the projectProjectInfo shareProject(Usersession session, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
session - the Usersession that should be used for sharing the
projectmonitor - an instance of an IProgressMonitorESException - if an error occurs during the sharing of the projectvoid transmitProperties()
void undoLastOperation()
void undoLastOperations(int nrOperations)
nrOperations - the number of operations to be undonePrimaryVersionSpec update(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
monitor - a progress monitor that may be used during update to indicate progressESException - if update fails PrimaryVersionSpec update(VersionSpec version) throws ESException
version - the version to update toESException - if update fails PrimaryVersionSpec update(VersionSpec version, ESUpdateCallback callback, org.eclipse.core.runtime.IProgressMonitor progress) throws ESException
version - the VersionSpec to update tocallback - the ESUpdateCallback that will be called when the update
has been performedprogress - an IProgressMonitor instanceESException - in case the update went wrongboolean hasUnsavedChanges()
void save()
boolean isShared()
Copyright © 2017. All rights reserved.