Defines a VCS integration facade that will be loaded from a plugin.
| Type Params | Return Type | Name and description |
|---|---|---|
|
ActivationStatus |
activateFor(WsdlProjectPro project)A callback that activates this integration component for the specified project. |
|
ImportProjectFromVcsGui |
buildRepositoryDownloadGui(Workspace workspace)Return a GUI component for selecting a repository containing a composite project. |
|
RepositorySelectionGui |
buildRepositorySelectionGui(WsdlProjectPro project)Return a GUI component for selecting the repository to associate with a project. |
|
CommitResult |
commit(java.util.Collection<VcsUpdate> updates, java.lang.String commitMessage)Creates a local commit with the changes. |
|
void |
createTag(WsdlProjectPro project, java.lang.String tagName)Create a tag (label) for the current state and commit the tag to the remote repository. |
|
java.util.Set<java.lang.String> |
getAvailableTags(WsdlProjectPro project)Gets the names of all existing tags. |
|
java.util.List<VcsBranch> |
getBranchList(WsdlProjectPro project)Gets list of branches in the repository of the project |
|
VcsBranch |
getCurrentBranch(WsdlProjectPro project)
|
|
java.lang.String |
getDescription()
|
|
java.util.Collection<VcsUpdate> |
getLocalRepositoryUpdates(WsdlProjectPro project)Get a list of all the local, uncommitted updates. |
|
java.lang.String |
getName()
|
|
java.util.List<HistoryEntry> |
getProjectHistory(WsdlProjectPro project)Gets the complete commit history of the specified project. |
|
java.util.Collection<VcsUpdate> |
getRemoteRepositoryUpdates(java.io.File projectFile)Get a list of all the updates in the remote repository, along with info about whether there's a conflict with local changes. |
|
boolean |
hasRemoteRepository(WsdlProjectPro project)Also, @see#setupRemoteRepository |
|
boolean |
hasRemoteRepository(java.io.File projectDirectory)Also, @see#setupRemoteRepository |
|
boolean |
isActivatedFor(java.io.File projectDirectory)
|
|
CommitResult |
pushToRemote(WsdlProjectPro project)Sends all the last local commits to the remote repository. |
|
void |
revert(java.util.Collection<VcsUpdate> updates)Reverts a local update. |
|
boolean |
setupRemoteRepository(WsdlProjectPro project, java.lang.String uri, CredentialsProvider credentialsProvider)Call it for composite project which contains a repository |
|
boolean |
switchBranch(WsdlProjectPro project, VcsBranch branch)Switches the repository to decided branch |
|
boolean |
updateFromRemoteRepository(java.io.File projectFile, boolean overwriteLocalChanges)Apply all the changes from the remote repository |
A callback that activates this integration component for the specified project. Called when a project associated with this particular VCS is opened.
project - the project that has been openedReturn a GUI component for selecting a repository containing a composite project. The GUI is responsible for processing user input and handling the download (which should be possible to cancel while in progress).
workspace - the workspace that the project will be added to after the downloadReturn a GUI component for selecting the repository to associate with a project.
project - the project with which the repository is to be associatedCreates a local commit with the changes.
updates - a collection of objects representing the local updatescommitMessage - user's commit message explaining the changesCreate a tag (label) for the current state and commit the tag to the remote repository. There must be no local updates when this operation is performed, and the tag name must be unique.
project - the project for which to check (which will often contain a reference to a repository)tagName - the name of the tagGets the names of all existing tags. If it is possible to have them sorted by creation date, the set shall be a SortedSet with the oldest tag being the first.
project - the project for which to check (which will often contain a reference to a repository)Gets list of branches in the repository of the project
project - the project for which to check (which will often contain a reference to a repository)
project - the project with repository
Get a list of all the local, uncommitted updates.
project - the project for which to check (which will contain a reference to a repository)
Gets the complete commit history of the specified project.
project - the project for which to check (which will often contain a reference to a repository)Get a list of all the updates in the remote repository, along with info about whether there's a conflict with local changes.
projectFile - file (where project is saved) for the project for which to check (which will contain a reference to a repository)Also, @see#setupRemoteRepository
project - to checkAlso, @see#setupRemoteRepository
projectDirectory - to check
projectDirectory - directory to check does it contains a repositorySends all the last local commits to the remote repository.
project - the project changes which are pushedReverts a local update.
updates - an collection of objects representing the updates to revertCall it for composite project which contains a repository
project - a composite project with a repositoryuri - of the remote repositorycredentialsProvider - contains a credentials for the remote repository to save it for futureSwitches the repository to decided branch
project - the project for which to check (which will often contain a reference to a repository)Apply all the changes from the remote repository
projectFile - the file where project savedoverwriteLocalChanges - whether the update should overwrite all conflicting local changes