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

VcsAction (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore
Class VcsAction

java.lang.Object
  extended byorg.netbeans.modules.vcscore.VcsAction

Deprecated. This class is retained just for compatibility reasons. Use the new VCS APIs instead.

public final class VcsAction
extends Object

Several static methods.


Method Summary
static void addImportantFiles(Collection fos, Table res, boolean all, VcsFileSystem fileSystem)
          Deprecated. Add files.
static void addImportantFiles(Collection fos, Table res, boolean all, VcsFileSystem fileSystem, boolean doNotTestFS)
          Deprecated. Add files.
static void assureFilesSaved(Collection fos)
          Deprecated. Make sure, that the files are saved.
static VcsCommandExecutor[] doCommand(Table files, VcsCommand cmd, Hashtable additionalVars, VcsFileSystem fileSystem)
          Deprecated. Do a command on a set of files.
static VcsCommandExecutor[] doCommand(Table files, VcsCommand cmd, Hashtable additionalVars, VcsFileSystem fileSystem, CommandOutputListener stdoutListener, CommandOutputListener stderrListener, CommandDataOutputListener stdoutDataListener, CommandDataOutputListener stderrDataListener)
          Deprecated. Do a command on a set of files.
static VcsCommandExecutor[] doCommand(Table files, VcsCommand cmd, Hashtable additionalVars, VcsFileSystem fileSystem, CommandOutputListener stdoutListener, CommandOutputListener stderrListener, CommandDataOutputListener stdoutDataListener, CommandDataOutputListener stderrDataListener, boolean saveProcessingFiles)
          Deprecated. Do a command on a set of files.
static VcsCommandExecutor[] doEdit(Table files, VcsFileSystem fileSystem)
          Deprecated. Prepare for edit files in VCS.
static VcsCommandExecutor[] doLock(Table files, VcsFileSystem fileSystem)
          Deprecated. Lock files in VCS.
static void doUnlock(Table files, VcsFileSystem fileSystem)
          Deprecated. Unlock files in VCS.
static void performVcsCommand(VcsCommand cmd, VcsFileSystem fileSystem, Collection fileObjects, boolean isExpert)
          Deprecated. Perform the specified VCS command on a collection of FileObjects.
static void performVcsCommand(VcsCommand cmd, VcsFileSystem fileSystem, Collection fileObjects, boolean isExpert, Hashtable additionalVars)
          Deprecated. Perform the specified VCS command on a collection of FileObjects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doLock

public static VcsCommandExecutor[] doLock(Table files,
                                          VcsFileSystem fileSystem)
Deprecated. 
Lock files in VCS. This command does not save the file contents.

Parameters:
files - the table pairs of file name and associated FileObject
Returns:
The array of command executors if the lock command was found. Otherwise null is returned.

doUnlock

public static void doUnlock(Table files,
                            VcsFileSystem fileSystem)
Deprecated. 
Unlock files in VCS.

Parameters:
files - the table pairs of file name and associated FileObject

doEdit

public static VcsCommandExecutor[] doEdit(Table files,
                                          VcsFileSystem fileSystem)
Deprecated. 
Prepare for edit files in VCS. This command does not save the file contents.

Parameters:
files - the table pairs of file name and associated FileObject
Returns:
The array of command executors if the edit command was found. Otherwise null is returned.

doCommand

public static VcsCommandExecutor[] doCommand(Table files,
                                             VcsCommand cmd,
                                             Hashtable additionalVars,
                                             VcsFileSystem fileSystem)
Deprecated. 
Do a command on a set of files.

Parameters:
files - the table of pairs of files and file objects, to perform the command on
cmd - the command to perform
additionalVars - additional variables to FS variables, or null when no additional variables are needed
fileSystem - the VCS file system
Returns:
the command executors of all executed commands.

doCommand

public static VcsCommandExecutor[] doCommand(Table files,
                                             VcsCommand cmd,
                                             Hashtable additionalVars,
                                             VcsFileSystem fileSystem,
                                             CommandOutputListener stdoutListener,
                                             CommandOutputListener stderrListener,
                                             CommandDataOutputListener stdoutDataListener,
                                             CommandDataOutputListener stderrDataListener)
Deprecated. 
Do a command on a set of files.

Parameters:
files - the table of pairs of files and file objects, to perform the command on
cmd - the command to perform
additionalVars - additional variables to FS variables, or null when no additional variables are needed
fileSystem - the VCS file system
Returns:
the command executors of all executed commands.

doCommand

public static VcsCommandExecutor[] doCommand(Table files,
                                             VcsCommand cmd,
                                             Hashtable additionalVars,
                                             VcsFileSystem fileSystem,
                                             CommandOutputListener stdoutListener,
                                             CommandOutputListener stderrListener,
                                             CommandDataOutputListener stdoutDataListener,
                                             CommandDataOutputListener stderrDataListener,
                                             boolean saveProcessingFiles)
Deprecated. 
Do a command on a set of files.

Parameters:
files - the table of pairs of files and file objects, to perform the command on
cmd - the command to perform
additionalVars - additional variables to FS variables, or null when no additional variables are needed
fileSystem - the VCS file system
saveProcessingFiles - whether save processing files prior command execution
Returns:
the command executors of all executed commands.

assureFilesSaved

public static void assureFilesSaved(Collection fos)
Deprecated. 
Make sure, that the files are saved. If not, save them. Synchronized, so that we do not try to save the same objects twice in parallel.

Parameters:
fos - the collection of FileObjects which or under which modified files are saved.

addImportantFiles

public static void addImportantFiles(Collection fos,
                                     Table res,
                                     boolean all,
                                     VcsFileSystem fileSystem)
Deprecated. 
Add files.

Parameters:
res - the Table of path and FileObject pairs.
all - whether to add unimportant files as well
fileSystem - the file system

addImportantFiles

public static void addImportantFiles(Collection fos,
                                     Table res,
                                     boolean all,
                                     VcsFileSystem fileSystem,
                                     boolean doNotTestFS)
Deprecated. 
Add files.

Parameters:
res - the Table of path and FileObject pairs.
all - whether to add unimportant files as well
fileSystem - the file system
doNotTestFS - if true, FileObjects will not be tested whether they belong to VcsFileSystem

performVcsCommand

public static void performVcsCommand(VcsCommand cmd,
                                     VcsFileSystem fileSystem,
                                     Collection fileObjects,
                                     boolean isExpert)
Deprecated. 
Perform the specified VCS command on a collection of FileObjects. Can handle also LIST and LIST_SUB commands.


performVcsCommand

public static void performVcsCommand(VcsCommand cmd,
                                     VcsFileSystem fileSystem,
                                     Collection fileObjects,
                                     boolean isExpert,
                                     Hashtable additionalVars)
Deprecated. 
Perform the specified VCS command on a collection of FileObjects. Can handle also LIST and LIST_SUB commands.


 

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