public interface VcsIntegration
Defines a VCS integration facade that will be loaded from a plugin.
Type Params | Return Type | Name and description |
---|---|---|
|
public ActivationStatus |
activateFor(WsdlProjectPro project) A callback that activates this integration component for the specified project. |
|
public void |
cloneRepository(java.lang.String uri, Credentials credentials, java.io.File emptyDirectory) Download all files from the selected repository into the path provided |
|
public CommitResult |
commit(java.util.Collection<VcsUpdate> updates, java.lang.String commitMessage) Creates a local commit with the changes. |
|
public VcsBranch |
createBranch(WsdlProjectPro project, java.lang.String branchName) Creates a new branch |
|
public void |
createTag(WsdlProjectPro project, java.lang.String tagName) Create a tag (label) for the current state and commit the tag to the remote repository. |
|
public void |
discardAllChanges(WsdlProjectPro project) Discards all changes |
|
public boolean |
disconnectFromRemoteRepository(WsdlProjectPro project) Disconnects project from the remote repository |
|
public java.util.Set<java.lang.String> |
getAvailableTags(WsdlProjectPro project) Gets the names of all existing tags. |
|
public java.util.List<VcsBranch> |
getBranchList(WsdlProjectPro project, boolean showRemoteBranches) Gets list of branches in the repository of the project |
|
public java.util.List<VcsBranch> |
getBranchList(WsdlProjectPro project, boolean showRemoteBranches, boolean silentMode) Gets list of branches in the repository of the project |
|
public VcsBranchStatus |
getBranchStatus(WsdlProjectPro project) Compute the branch status for the current branch |
|
public VcsBranch |
getCurrentBranch(WsdlProjectPro project)
|
|
public java.lang.String |
getDescription()
|
|
public java.util.Collection<VcsUpdate> |
getLocalRepositoryUpdates(WsdlProjectPro project) Get a list of all the local, uncommitted updates. |
|
public java.lang.String |
getName()
|
|
public java.util.List<HistoryEntry> |
getProjectHistory(WsdlProjectPro project) Gets the complete commit history of the specified project. |
|
public java.util.List<HistoryEntry> |
getProjectHistory(WsdlProjectPro project, int numberOfCommits) Gets the latest commit history entries of the specified project. |
|
public 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. |
|
public boolean |
hasAtLeastOneCommit(WsdlProjectPro project) Checks for at least one commit |
|
public boolean |
hasRemoteRepository(WsdlProjectPro project) Also, @see#setupRemoteRepository |
|
public boolean |
hasRemoteRepository(java.io.File projectDirectory) Also, @see#setupRemoteRepository |
|
public boolean |
hasUncommittedChanges(WsdlProjectPro project)
|
|
public boolean |
isActivatedFor(java.io.File projectDirectory)
|
|
public boolean |
isActivatedFor(WsdlProjectPro project)
|
|
public CommitResult |
pushToRemote(WsdlProjectPro project) Sends all the last local commits to the remote repository. |
|
public void |
revert(java.util.Collection<VcsUpdate> updates) Reverts a local update. |
|
public boolean |
setupRemoteRepository(WsdlProjectPro project, java.lang.String uri, Credentials credentials) Call it for a composite project that contains a repository |
|
public boolean |
switchBranch(WsdlProjectPro project, VcsBranch branch) Switches the repository to decided branch |
|
public boolean |
updateFromRemoteRepository(java.io.File projectFile) Apply all the changes from the remote repository |
|
public 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