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. |
|
void |
cloneRepository(java.lang.String uri, Credentials credentials, java.io.File emptyDirectory) Download all files from the selected repository into the path provided |
|
CommitResult |
commit(java.util.Collection<VcsUpdate> updates, java.lang.String commitMessage) Creates a local commit with the changes. |
|
VcsBranch |
createBranch(WsdlProjectPro project, java.lang.String branchName) Creates a new branch |
|
void |
createTag(WsdlProjectPro project, java.lang.String tagName) Create a tag (label) for the current state and commit the tag to the remote repository. |
|
void |
discardAllChanges(WsdlProjectPro project) Discards all changes |
|
boolean |
disconnectFromRemoteRepository(WsdlProjectPro project) Disconnects project from 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, boolean showRemoteBranches) Gets list of branches in the repository of the project |
|
java.util.List<VcsBranch> |
getBranchList(WsdlProjectPro project, boolean showRemoteBranches, boolean silentMode) Gets list of branches in the repository of the project |
|
VcsBranchStatus |
getBranchStatus(WsdlProjectPro project) Compute the branch status for the current branch |
|
VcsBranch |
getCurrentBranch(WsdlProjectPro project) @param project the project with repository |
|
java.lang.String |
getDescription() @return a description of the integration |
|
java.util.Collection<VcsUpdate> |
getLocalRepositoryUpdates(WsdlProjectPro project) Get a list of all the local, uncommitted updates. |
|
java.lang.String |
getName() @return a name of the integration |
|
java.util.List<HistoryEntry> |
getProjectHistory(WsdlProjectPro project) Gets the complete commit history of the specified project. |
|
java.util.List<HistoryEntry> |
getProjectHistory(WsdlProjectPro project, int numberOfCommits) Gets the latest commit history entries 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 |
hasAtLeastOneCommit(WsdlProjectPro project) Checks for at least one commit |
|
boolean |
hasRemoteRepository(WsdlProjectPro project) Also, @see#setupRemoteRepository |
|
boolean |
hasRemoteRepository(java.io.File projectDirectory) Also, @see#setupRemoteRepository |
|
boolean |
hasUncommittedChanges(WsdlProjectPro project) @param project a composite project with a repository |
|
boolean |
isActivatedFor(java.io.File projectDirectory) @param projectDirectory directory to check does it contains a repository |
|
boolean |
isActivatedFor(WsdlProjectPro project) @param project project to check does it's folder contains a repository |
|
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, Credentials credentials) Call it for a composite project that contains a repository |
|
boolean |
switchBranch(WsdlProjectPro project, VcsBranch branch) Switches the repository to decided branch |
|
boolean |
updateFromRemoteRepository(java.io.File projectFile) Apply all the changes from the remote repository |
|
boolean |
updateFromRemoteRepository(WsdlProjectPro project) 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 openedDownload all files from the selected repository into the path provided
uri
- of the remote repositorycredentials
- contains the credentials for the remote repositoryemptyDirectory
- an empty directory to which to download filesCreates a local commit with the changes.
updates
- a collection of objects representing the local updatescommitMessage
- user's commit message explaining the changesCreates a new branch
project
- the project for which to check (which will often contain a reference to a repository)branchName
- the name of a new branchCreate 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 tagDiscards all changes
project
- a composite project with a repositoryDisconnects project from the remote repository
project
- a composite project with a repositoryGets 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)showRemoteBranches
- whether remote-tracking branches should be shownGets 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)showRemoteBranches
- whether remote-tracking branches should be shownsilentMode
- suppress user interaction during executionCompute the branch status for the current branch
project
- a composite project with 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)Gets the latest commit history entries of the specified project.
project
- the project for which to check (which will often contain a reference to a repository)numberOfCommits
- number of commits to be returnedGet 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)Checks for at least one commit
project
- the composite project that has a Git repositoryAlso, @see#setupRemoteRepository
project
- to checkAlso, @see#setupRemoteRepository
projectDirectory
- to check
project
- a composite project with a repository
projectDirectory
- directory to check does it contains a repository
project
- project to check does it's folder 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 a composite project that contains a repository
project
- a composite project with a repositoryuri
- of the remote repositorycredentials
- contains the 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 savedApply all the changes from the remote repository
project
- the project which will contain a data from remote repository