Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
String | getID () |
boolean | isManaged (IResource resource) |
String | getRepositoryString (IResource resource) |
VCSResourceInfo | getResourceInfo (IResource resource) |
abstract VCSResourceInfo | getCurrentResourceInfo (IResource resource) |
String | getUrl (IResource resource) |
void | connect (IProject project, String repositoryRoot, String directory, IProgressMonitor progress) |
void | disconnect (IProject project, boolean deleteContent, IProgressMonitor progress) |
IProject | checkoutProject (String newProjectName, FileList fileList, IProgressMonitor monitor) |
void | revert (IResource resource) |
void | switch_ (IResource resource, String url, String revision, IProgressMonitor monitor) |
void | update (IResource resource, String targetRevision, IProgressMonitor monitor) |
IProject de.fu_berlin.inf.dpp.vcs.VCSProvider.checkoutProject | ( | String | newProjectName, |
FileList | fileList, | ||
IProgressMonitor | monitor | ||
) |
Checks out the project specified by the FileList as a new project under the provided name.
newProjectName | |
fileList | |
monitor |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
void de.fu_berlin.inf.dpp.vcs.VCSProvider.connect | ( | IProject | project, |
String | repositoryRoot, | ||
String | directory, | ||
IProgressMonitor | progress | ||
) |
Connects the project to the directory in the repository.
project | |
repositoryRoot | |
directory | |
progress | may be null. |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
void de.fu_berlin.inf.dpp.vcs.VCSProvider.disconnect | ( | IProject | project, |
boolean | deleteContent, | ||
IProgressMonitor | progress | ||
) |
Disconnects the project from the repository.
project | |
deleteContent | |
progress | may be null. |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
abstract VCSResourceInfo de.fu_berlin.inf.dpp.vcs.VCSProvider.getCurrentResourceInfo | ( | IResource | resource | ) | [pure virtual] |
Returns VCS specific information for the resource. For SVN, it returns the revision that was used to get this file. E.g. if a file was last changed in revision 121, HEAD is 127, and we do an "svn update -r 124", then this method returns revision 124. We need this revision to replicate changes: If we used the actual revision in commands, it's possible that the URL changes.
resource |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
String de.fu_berlin.inf.dpp.vcs.VCSProvider.getID | ( | ) |
Returns the id of the provider.
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter.
String de.fu_berlin.inf.dpp.vcs.VCSProvider.getRepositoryString | ( | IResource | resource | ) |
resource |
null
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
VCSResourceInfo de.fu_berlin.inf.dpp.vcs.VCSProvider.getResourceInfo | ( | IResource | resource | ) |
Returns VCS specific information for the resource. For SVN, it returns the actual revision of the file (last changed revision), uniquely identifying the resource in the repository. E.g. if a file was last changed in revision 121, HEAD is 127, and we do an "svn update -r 124", then this method returns revision 121. We need this revision to detect changes: We get sync changed events only if the actual revision of a resource changes.
resource |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
String de.fu_berlin.inf.dpp.vcs.VCSProvider.getUrl | ( | IResource | resource | ) |
resource |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
boolean de.fu_berlin.inf.dpp.vcs.VCSProvider.isManaged | ( | IResource | resource | ) |
resource |
true
if the resource is under version control Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
void de.fu_berlin.inf.dpp.vcs.VCSProvider.revert | ( | IResource | resource | ) |
Reverts the local changes to the resource.
resource |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
void de.fu_berlin.inf.dpp.vcs.VCSProvider.switch_ | ( | IResource | resource, |
String | url, | ||
String | revision, | ||
IProgressMonitor | monitor | ||
) |
Switches the resource to the specified URL and revision.
monitor |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.
void de.fu_berlin.inf.dpp.vcs.VCSProvider.update | ( | IResource | resource, |
String | targetRevision, | ||
IProgressMonitor | monitor | ||
) |
Updates the file to the specified revision.
resource | |
targetRevision | |
monitor |
Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.