|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Every VCS back-end that needs to be integrated in JBuilder has to implement the VCS
interface.
There are several query methods that are used to expose the capabilities of a
VCS. The interface is meant to be simpel and quick to be impelemented but it has
to be generic enough to support widely different systems. For example, the method
hasProjectHandling()
is used to return if the VCS is able to manage
multiple files as a single unit, called project. This is capability can be used to
do multiple check-ins with one operation, delegating to the VCS the task to discover
what files need to be checked-in. This is a much more efficient solution than having
to call the VCS for each single file. Nevertheless if somebody writes a back-end for RCS,
a file-base VCS, JBuilder will respect this limitation. Note that if the a class that
returns false
from hasProjectHandling()
will still need to
implement the project-based version of the checkin()
method leaving it empty.
Field Summary | |
static java.lang.String |
CATEGORY
|
static java.lang.String |
PROP_IGNORE
|
Method Summary | |
DeleteDialogInterface |
getDeleteDialog()
Return a custom dialog for deleting/removing a Url from a repository |
java.lang.String |
getDescription()
Returns a longer description for the VCS that can be used to describe it |
java.lang.String |
getName()
Returns a name that can be used to describe the back-end implementation (i.e.: CVS,PVCS,ClearCase etc.) |
PropertyPage |
getProjectConfigPage(JBProject project)
Returns the JPanel used to configure a repository for a particular VCS system. |
java.util.List |
getProjectStatus(Project project)
Returns a List of VCSFileinfo s describing the status of each node in the
VCS. |
java.util.Vector |
getRevisions(Url url)
Given a FileNode, it retrieves the revision history for the file. |
byte[] |
getSource(Url url,
RevisionInfo rev)
Retrieves the source of a file given the revision. |
VCSBrowserContextActionProvider |
getVCSBrowserContextActionProvider()
When the VCSProjectBrowser displays the list of files that need VCS actions it needs to know who provides the context actions for the right-click operation of the file list. |
ActionGroup |
getVCSContextMenuGroup()
Get the Project Pane's context menu Group specification for this VCS. |
ActionGroup |
getVCSFileMenuGroup()
Get the File-based Menu Group specification for this VCS. |
javax.swing.Icon |
getVCSIcon()
Return a 20x20 icon for this Version Control System |
ActionGroup |
getVCSProjectMenuGroup()
Get the Project-based VCS menu items to appear in the Team menu. |
boolean |
isBinary(Url fnode)
Test if the file is flagged as binary by the VCS. |
boolean |
isUnderVCS(Url url)
Check if a file is under control of the VCS. |
Field Detail |
public static final java.lang.String CATEGORY
public static final java.lang.String PROP_IGNORE
Method Detail |
public PropertyPage getProjectConfigPage(JBProject project)
public boolean isUnderVCS(Url url)
fileNode
- The Project
node that identyfies the file.public java.util.Vector getRevisions(Url url)
url
- The Url
that points to the file.RevisionInfo
,
Url
public byte[] getSource(Url url, RevisionInfo rev)
fileNode
- The FileNode
that points to the file.rev
- The RevisionInfo
object that identifies the
revision to retrieve.FileNode
,
RevisionInfo
public java.util.List getProjectStatus(Project project)
List
of VCSFileinfo
s describing the status of each node in the
VCS.project
- The base project used for the search.public VCSBrowserContextActionProvider getVCSBrowserContextActionProvider()
VCSBrowserContextActionProvider
public boolean isBinary(Url fnode)
public java.lang.String getName()
public java.lang.String getDescription()
public javax.swing.Icon getVCSIcon()
public ActionGroup getVCSProjectMenuGroup()
public ActionGroup getVCSFileMenuGroup()
public ActionGroup getVCSContextMenuGroup()
public DeleteDialogInterface getDeleteDialog()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |