public class AnnotateCommand extends BasicCommand
| Modifier and Type | Field and Description |
|---|---|
protected EventManager |
eventManager
The event manager to use
|
clientServices, files, requestsbuilderlocalDirectory| Constructor and Description |
|---|
AnnotateCommand()
Construct a new diff command
|
| Modifier and Type | Method and Description |
|---|---|
void |
commandTerminated(TerminationEvent e)
called when server responses with "ok" or "error", (when the command
finishes)
|
Builder |
createBuilder(EventManager eventMan)
Create a builder for this command.
|
void |
execute(ClientServices client,
EventManager em)
Execute a command
|
String |
getAnnotateByDate()
Getter for property annotateByDate.
|
String |
getAnnotateByRevision()
Getter for property annotateByRevision.
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
This method returns how the command would looklike when typed on the
command line.
|
String |
getOptString()
String returned by this method defines which options are available for
this particular command
|
boolean |
isUseHeadIfNotFound()
Getter for property useHeadIfNotFound.
|
void |
resetCVSCommand()
resets all switches in the command.
|
void |
setAnnotateByDate(String annotateByDate)
Setter for property annotateByDate.
|
void |
setAnnotateByRevision(String annotateByRevision)
Setter for property annotateByRevision.
|
boolean |
setCVSCommand(char opt,
String optArg)
takes the arguments and sets the command.
|
void |
setUseHeadIfNotFound(boolean useHeadIfNotFound)
Setter for property useHeadIfNotFound.
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursiveisBuilderSet, messageSent, messageSent, setBuilderclone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectoryprotected EventManager eventManager
public Builder createBuilder(EventManager eventMan)
createBuilder in class BuildableCommandeventMan - the event manager used to receive events.public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
execute in class BasicCommandclient - 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 commandAuthenticationExceptionpublic void commandTerminated(TerminationEvent e)
commandTerminated in interface CVSListenercommandTerminated in class BuildableCommandpublic boolean isUseHeadIfNotFound()
public void setUseHeadIfNotFound(boolean useHeadIfNotFound)
useHeadIfNotFound - New value of property useHeadIfNotFound.public String getAnnotateByDate()
public void setAnnotateByDate(String annotateByDate)
annotateByDate - New value of property annotateByDate.public String getAnnotateByRevision()
public void setAnnotateByRevision(String annotateByRevision)
annotateByRevision - New value of property annotateByRevision.public String getCVSCommand()
getCVSCommand in class Commandpublic boolean setCVSCommand(char opt,
String optArg)
setCVSCommand in class Commandpublic String getOptString()
getOptString in class Commandpublic void resetCVSCommand()
resetCVSCommand in class Commandpublic String getCVSArguments()
getCVSArguments in class CommandCopyright © 2013. All rights reserved.