public interface ESProject
ESLocalProject and
ESRemoteProject, representing a locally checked out and a project on the server. This interface groups all
attributes and calls which are available on both.| Modifier and Type | Method and Description |
|---|---|
void |
addTag(ESPrimaryVersionSpec versionSpec,
ESTagVersionSpec tag,
org.eclipse.core.runtime.IProgressMonitor monitor)
Adds a tag to the specified version of this project on the server.
|
void |
delete(org.eclipse.core.runtime.IProgressMonitor monitor)
Deletes the project.
|
List<ESBranchInfo> |
getBranches(org.eclipse.core.runtime.IProgressMonitor monitor)
Returns a list of branches for the current project.
|
ESGlobalProjectId |
getGlobalProjectId()
Returns the global ID of the project.
|
List<ESHistoryInfo> |
getHistoryInfos(ESHistoryQuery<? extends ESHistoryQuery<?>> query,
org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieves a part of the project's version history from the server based on the given query.
|
String |
getProjectName()
Returns the project's name.
|
void |
removeTag(ESPrimaryVersionSpec versionSpec,
ESTagVersionSpec tag,
org.eclipse.core.runtime.IProgressMonitor monitor)
Removes a tag from the specified version of this project on the server.
|
ESPrimaryVersionSpec |
resolveVersionSpec(ESVersionSpec versionSpec,
org.eclipse.core.runtime.IProgressMonitor monitor)
Resolves a
ESVersionSpec to a ESPrimaryVersionSpec by querying the server. |
ESGlobalProjectId getGlobalProjectId()
String getProjectName()
void delete(org.eclipse.core.runtime.IProgressMonitor monitor)
throws IOException,
ESException
Deletes the project.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession.
monitor - an IProgressMonitor instance that is used to indicate progress while deleting the projectIOException - in case an I/O related error occurred while deleting the projectESException - in case any other error occurred while deleting the projectESPrimaryVersionSpec resolveVersionSpec(ESVersionSpec versionSpec, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
ESVersionSpec to a ESPrimaryVersionSpec by querying the server.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession.versionSpec - the ESVersionSpec to resolvemonitor - an IProgressMonitor instance that is used to indicate progress while resolving the versionESPrimaryVersionSpecESException - in case an error occurs while resolving the given ESVersionSpecList<ESBranchInfo> getBranches(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Returns a list of branches for the current project.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession.
monitor - an IProgressMonitor instance that is used to indicate progress while fetching the branch
informationESException - in case an error occurs while retrieving the branch information for the projectList<ESHistoryInfo> getHistoryInfos(ESHistoryQuery<? extends ESHistoryQuery<?>> query, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Retrieves a part of the project's version history from the server based on the given query. Use
ESHistoryQueryFactory to generate query objects.
query - the ESHistoryQuery to be performed in order to fetch the history informationmonitor - an IProgressMonitor instance that is used to indicate progress while fetching the history
informationESException - in case an error occurs while retrieving the history informationvoid addTag(ESPrimaryVersionSpec versionSpec, ESTagVersionSpec tag, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Adds a tag to the specified version of this project on the server.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession.
versionSpec - the ESPrimaryVersionSpec that should be taggedtag - the tag being createdmonitor - an IProgressMonitor instance that is used to indicate progress while adding the tagESException - in case the given tag could not be removedvoid removeTag(ESPrimaryVersionSpec versionSpec, ESTagVersionSpec tag, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Removes a tag from the specified version of this project on the server.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession.
versionSpec - the ESPrimaryVersionSpec identifying the version from which the tag should be removedtag - the ESTagVersionSpec to be removedmonitor - an IProgressMonitor instance that is used to indicate progress while removing the tagESException - in case the given tag could not be removedCopyright © 2017. All rights reserved.