public class EditCommand extends BasicCommand
files, requests
builder
localDirectory
Constructor and Description |
---|
EditCommand()
Construct a new editors command.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRequestForFile(File file,
Entry entry)
This method is called for each explicit file and for files within a
directory.
|
void |
commandTerminated(TerminationEvent e)
Called when server responses with "ok" or "error", (when the command
finishes).
|
void |
execute(ClientServices clientServices,
EventManager eventManager)
Executes this command.
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
This method returns how the tag command would looklike when typed on the
command line.
|
static File |
getEditBackupFile(File file)
Returns the file used for backup the specified file in the edit command.
|
String |
getOptString()
String returned by this method defines which options are available for
this command.
|
Watch |
getTemporaryWatch()
Returns the temporary watch.
|
boolean |
isCheckThatUnedited()
Returns whether to check for unedited files.
|
boolean |
isForceEvenIfEdited()
Returns whether the edit is forces even if the files are edited.
|
void |
resetCVSCommand()
Resets all switches in the command.
|
void |
setCheckThatUnedited(boolean checkThatUnedited)
Sets whether to check for unedited files.
|
boolean |
setCVSCommand(char opt,
String optArg)
Takes the arguments and sets the command.
|
void |
setForceEvenIfEdited(boolean forceEvenIfEdited)
Sets whether the edit is forces even if the files are edited.
|
void |
setTemporaryWatch(Watch temporaryWatch)
Sets the temporary watch.
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive
createBuilder, isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory
public static File getEditBackupFile(File file)
public void execute(ClientServices clientServices, EventManager eventManager) throws CommandException
execute
in class BasicCommand
client
- the client services object that provides any necessary
services to this command, including the ability to actually
process all the requests.CommandException
- if an error occurs executing the commandprotected void addRequestForFile(File file, Entry entry)
BasicCommand
addRequestForFile
in class BasicCommand
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class BuildableCommand
public String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, String optArg)
setCVSCommand
in class Command
public String getOptString()
getOptString
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public String getCVSArguments()
getCVSArguments
in class Command
public boolean isCheckThatUnedited()
public void setCheckThatUnedited(boolean checkThatUnedited)
public boolean isForceEvenIfEdited()
public void setForceEvenIfEdited(boolean forceEvenIfEdited)
public Watch getTemporaryWatch()
public void setTemporaryWatch(Watch temporaryWatch)
Copyright © 2016. All rights reserved.