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

DefaultVcsFactory (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore
Class DefaultVcsFactory

java.lang.Object
  extended byorg.netbeans.modules.vcscore.DefaultVcsFactory
All Implemented Interfaces:
VcsFactory

public class DefaultVcsFactory
extends Object
implements VcsFactory

This class provides a default implementation of VcsFactory.


Field Summary
protected  WeakReference fileSystem
           
 
Constructor Summary
DefaultVcsFactory(VcsFileSystem fileSystem)
          Creates new DefaultVcsFactory
 
Method Summary
 SystemAction[] getActions(Collection fos)
          Get the array of VCS actions for a collection of FileObjects.
 VcsCommandExecutor getCommandExecutor(VcsCommand command, Hashtable variables)
          Deprecated. This method is retained for compatibility only. XXX how to replace usages? It's called from 31 places.
 FileStatusProvider getFileStatusProvider()
          Get the provider of the VCS status information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileSystem

protected WeakReference fileSystem
Constructor Detail

DefaultVcsFactory

public DefaultVcsFactory(VcsFileSystem fileSystem)
Creates new DefaultVcsFactory

Method Detail

getFileStatusProvider

public FileStatusProvider getFileStatusProvider()
Get the provider of the VCS status information. The default provider is the filesystem cache if implements FileStatusProvider or null otherwise.

Specified by:
getFileStatusProvider in interface VcsFactory

getActions

public SystemAction[] getActions(Collection fos)
Get the array of VCS actions for a collection of FileObjects. If the collection is null, it gets the FileObjects from currently selected nodes.

Specified by:
getActions in interface VcsFactory
Parameters:
fos - the collection of FileObjects or null.
Returns:
the array of instances of VcsActions, one for each child of the root command node.

getCommandExecutor

public VcsCommandExecutor getCommandExecutor(VcsCommand command,
                                             Hashtable variables)
Deprecated. This method is retained for compatibility only. XXX how to replace usages? It's called from 31 places.

Get the command executor for the command.

Specified by:
getCommandExecutor in interface VcsFactory
Parameters:
command - the command to get the executor for
variables - the Hashtable of (variable name, variable value) pairs
Returns:
the command executor or null when no executor is found. If command is instance of UserCommand, an instance of ExecuteCommand is returned.

 

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