Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.vcs.VCSProvider Interface Reference
Inheritance diagram for de.fu_berlin.inf.dpp.vcs.VCSProvider:
de.fu_berlin.inf.dpp.vcs.VCSAdapter de.fu_berlin.inf.dpp.vcs.SubclipseAdapter

List of all members.

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)

Member Function Documentation

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.

Parameters:
newProjectName
fileList
monitor
Returns:
The newly created project.

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.

Parameters:
project
repositoryRoot
directory
progressmay 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.

Parameters:
project
deleteContent
progressmay 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.

Parameters:
resource
Returns:
See also:
getResourceInfo

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.

Returns:
id of the provider.

Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter.

String de.fu_berlin.inf.dpp.vcs.VCSProvider.getRepositoryString ( IResource  resource)
Parameters:
resource
Returns:
URL of the repository root of this resource as a String, or 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.

Parameters:
resource
Returns:
See also:
getCurrentResourceInfo

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)
Parameters:
resource
Returns:
The URL of the remote resource in the repository, or null.

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)
Parameters:
resource
Returns:
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.

Parameters:
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.

Parameters:
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.

Parameters:
resource
targetRevision
monitor

Implemented in de.fu_berlin.inf.dpp.vcs.SubclipseAdapter, and de.fu_berlin.inf.dpp.vcs.VCSAdapter.

 All Classes Namespaces Files Functions Variables Enumerations