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

VcsCommandsProvider (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.spi.vcs
Class VcsCommandsProvider

java.lang.Object
  extended byorg.netbeans.spi.vcs.VcsCommandsProvider
Direct Known Subclasses:
DefaultVcsCommandsProvider

public abstract class VcsCommandsProvider
extends Object

The provider of VCS commands and their executor.


Constructor Summary
VcsCommandsProvider()
           
 
Method Summary
abstract  Command createCommand(Class cmdClass)
          Create a new VCS command of the given class type.
abstract  Command createCommand(String cmdName)
          Create a new VCS command of the given name.
static VcsCommandsProvider findProvider(FileObject file)
          Find the status provider for a FileObject.
abstract  String[] getCommandNames()
          Get the list of VCS command names.
 String getType()
          Get the unique representation of the type of the provided version control system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsCommandsProvider

public VcsCommandsProvider()
Method Detail

findProvider

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


getCommandNames

public abstract String[] getCommandNames()
Get the list of VCS command names.


createCommand

public abstract Command createCommand(String cmdName)
Create a new VCS command of the given name.

Returns:
The command or null when the command of the given name does not exist.

createCommand

public abstract Command createCommand(Class cmdClass)
Create a new VCS command of the given class type.

Returns:
The command or null when the command of the given class type does not exist.

getType

public String getType()
Get the unique representation of the type of the provided version control system. Paired with command name creates a unique command identification. MUST be redefined to return meaningful value, it's not abstract just for compatability reasons.

Returns:
The unique type of the provided VCS.
Since:
1.13

 

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