站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

VcsStatusProvider (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.spi.vcs
Class VcsStatusProvider

java.lang.Object
  extended byorg.netbeans.spi.vcs.VcsStatusProvider

public abstract class VcsStatusProvider
extends Object

The provider of VCS attributes of the file. These describes the status of the working file with respect to its repository version. Any method that returns the string representation of an VCS attribute of a file may return an empty string if that information is not available from the given version control system.


Constructor Summary
VcsStatusProvider()
           
 
Method Summary
static VcsStatusProvider findProvider(FileObject file)
          Find the status provider for a FileObject.
abstract  FileStatusInfo[] getPossibleStates()
          Get the array of all possible file states.
abstract  FileStatusInfo getStatus(String filePath)
          Get the status of a file.
abstract  boolean isLocal(String filePath)
          Find out whether the file is local (is not version controlled)
abstract  void refresh(String path, boolean recursive)
          Refresh the file state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsStatusProvider

public VcsStatusProvider()
Method Detail

findProvider

public static VcsStatusProvider findProvider(FileObject file)
Find the status provider for a FileObject.


getPossibleStates

public abstract FileStatusInfo[] getPossibleStates()
Get the array of all possible file states.


getStatus

public abstract FileStatusInfo getStatus(String filePath)
Get the status of a file.

Parameters:
filePath - the path of the file from filesystem root.
Returns:
The file status information object or null if the status is not known. Use refresh to update the status information.

isLocal

public abstract boolean isLocal(String filePath)
Find out whether the file is local (is not version controlled)

Parameters:
filePath - the path of the file from filesystem root.

refresh

public abstract void refresh(String path,
                             boolean recursive)
Refresh the file state.

Parameters:
path - the path of the file from filesystem root.
recursive - whether to perform a recursive refresh when called on a folder.

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.