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

CommandLineVcsDirReader (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.cmdline
Class CommandLineVcsDirReader

java.lang.Object
  extended byorg.netbeans.modules.vcscore.cmdline.ExecuteCommand
      extended byorg.netbeans.modules.vcscore.cmdline.CommandLineVcsDirReader
All Implemented Interfaces:
Runnable, TextInput, VcsCommandExecutor

public class CommandLineVcsDirReader
extends ExecuteCommand

Read a single VCS directory.


Field Summary
 
Fields inherited from class org.netbeans.modules.vcscore.cmdline.ExecuteCommand
DEFAULT_REGEX, exitStatus, STATUS_USE_REG_EXP_PARSE_OUTPUT
 
Fields inherited from interface org.netbeans.modules.vcscore.commands.VcsCommandExecutor
FAILED, INTERRUPTED, SUCCEEDED
 
Constructor Summary
CommandLineVcsDirReader(DirReaderListener listener, VcsFileSystem fileSystem, UserCommand list, Hashtable vars)
           
 
Method Summary
 void addFileReaderListener(FileReaderListener l)
          Add a file reader listener, that gets the updated attributes of the processed file(s).
 List getRawData()
           
 VcsCommandVisualizer getVisualizer()
          Get the graphical visualization of the command.
protected  void printDataOutput(String[] data)
           
 void run()
          Execute the command.
protected  void runClass(String exec, String className, String[] args)
          Loads class of given name with some arguments and execute its list() method.
static String[] translateElements(String[] cmdElements, UserCommand list)
          Translate elements obtained from the command line reader to elements used by RefreshCommandSupport
 
Methods inherited from class org.netbeans.modules.vcscore.cmdline.ExecuteCommand
addDataErrorOutputListener, addDataOutputListener, addErrorOutputListener, addImmediateTextErrorListener, addImmediateTextOutputListener, addOutputListener, addRegexErrorListener, addRegexOutputListener, addTextErrorListener, addTextOutputListener, createProcessingFiles, getCommand, getDescribedCommand, getExec, getExitStatus, getFiles, getFileSystem, getTask, getVariables, preprocessCommand, printDataErrorOutput, printDataErrorOutputReal, printErrorOutput, printOutput, runCommand, runCommand, sendInput, setAdditionalParams, setAdditionalParams, setDescribedCommand, setTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineVcsDirReader

public CommandLineVcsDirReader(DirReaderListener listener,
                               VcsFileSystem fileSystem,
                               UserCommand list,
                               Hashtable vars)
Method Detail

getVisualizer

public VcsCommandVisualizer getVisualizer()
Get the graphical visualization of the command.

Specified by:
getVisualizer in interface VcsCommandExecutor
Overrides:
getVisualizer in class ExecuteCommand
Returns:
null no visualization is desired.

getRawData

public List getRawData()

printDataOutput

protected void printDataOutput(String[] data)
Overrides:
printDataOutput in class ExecuteCommand

runClass

protected void runClass(String exec,
                        String className,
                        String[] args)
Loads class of given name with some arguments and execute its list() method.

Overrides:
runClass in class ExecuteCommand
Parameters:
className - the name of the class to be loaded
args - the arguments

run

public void run()
Description copied from class: ExecuteCommand
Execute the command.

Specified by:
run in interface Runnable
Overrides:
run in class ExecuteCommand

addFileReaderListener

public void addFileReaderListener(FileReaderListener l)
Add a file reader listener, that gets the updated attributes of the processed file(s).

This is an empty method, the listener is added nowhere. This class uses the passed listener for the notification.

Specified by:
addFileReaderListener in interface VcsCommandExecutor
Overrides:
addFileReaderListener in class ExecuteCommand

translateElements

public static String[] translateElements(String[] cmdElements,
                                         UserCommand list)
Translate elements obtained from the command line reader to elements used by RefreshCommandSupport

Parameters:
list - the refresh command
Returns:
new set of elements in the correct form for RefreshCommandSupport

 

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