com.borland.primetime.teamdev.vcs
Class VCSUtils

java.lang.Object
  |
  +--com.borland.primetime.teamdev.vcs.VCSUtils

public class VCSUtils
extends java.lang.Object

Utility class for VCS implementers


Constructor Summary
VCSUtils()
           
 
Method Summary
static void addIgnorePath(Url ignorePath)
           
static VCS getActiveVCS()
           
static java.lang.String getActiveVCSName()
           
static Url getBackupUrl(Url url)
           
static Url getBackupUrl(Url url, JBProject project)
          This version should be called every time a project, via a node, is available.
static FileNode getBrowserActiveNode()
          Get the node that is currently being displayed in the browser.
static Url[] getExcludedPaths()
           
static Url[] getExcludedPaths(Project project)
          Extract all the excluded path stored in the project
static java.util.Vector getLocalRevisions(FileNode fileNode)
           
static FileNode[] getSelectedNodesInProjectPane()
          Get all the nodes that are currently selected in the Project Pane
static boolean isInProjectDirectory(Url activeUrl)
          Is a given file found in the directory that the .jpr JBuilder project file is in.
static void makeLocalBackup(Url url, int backupCount)
           
static void showProjectStatus(CommitAction checkinAction)
          Display the dialog to browse the status of all updated files in the project.
static void showVcsConfigurationDialog()
          Show Version Control System configurartion panel in Project Properties dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCSUtils

public VCSUtils()
Method Detail

showProjectStatus

public static void showProjectStatus(CommitAction checkinAction)
Display the dialog to browse the status of all updated files in the project.

getSelectedNodesInProjectPane

public static FileNode[] getSelectedNodesInProjectPane()
Get all the nodes that are currently selected in the Project Pane

getBrowserActiveNode

public static FileNode getBrowserActiveNode()
Get the node that is currently being displayed in the browser. The node must be a subclass of FileNode but we cannot assume that it's a text file at this point.
See Also:
VCS.isBinary()

isInProjectDirectory

public static boolean isInProjectDirectory(Url activeUrl)
Is a given file found in the directory that the .jpr JBuilder project file is in.
Parameters:
filename - Filename to investigate.
Returns:
true if the file is in the project directory.

getActiveVCS

public static VCS getActiveVCS()

getActiveVCSName

public static java.lang.String getActiveVCSName()

getBackupUrl

public static Url getBackupUrl(Url url)

getBackupUrl

public static Url getBackupUrl(Url url,
                               JBProject project)
This version should be called every time a project, via a node, is available. I.E., from the History pane. Binary Nodes dob't have any associated viewer and so the History panel is the only component that is used in the Content Viewer. The viewer is called from the Browser constructor so if we use the getBackupUrl(Url) form the call to Browser.getActiveBrowser() will return null. --PC

makeLocalBackup

public static void makeLocalBackup(Url url,
                                   int backupCount)

getLocalRevisions

public static java.util.Vector getLocalRevisions(FileNode fileNode)

showVcsConfigurationDialog

public static void showVcsConfigurationDialog()
Show Version Control System configurartion panel in Project Properties dialog

addIgnorePath

public static void addIgnorePath(Url ignorePath)

getExcludedPaths

public static Url[] getExcludedPaths(Project project)
Extract all the excluded path stored in the project

getExcludedPaths

public static Url[] getExcludedPaths()