|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.command.Command
org.netbeans.lib.cvsclient.command.BuildableCommand
org.netbeans.lib.cvsclient.command.add.AddCommand
public class AddCommand
Adds a file or directory.
Field Summary |
---|
Fields inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
builder |
Fields inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
localDirectory |
Constructor Summary | |
---|---|
AddCommand()
Constructor. |
Method Summary | |
---|---|
protected void |
addRequests(java.io.File file)
Add requests for a particular file or directory to be added. |
protected void |
addRequestsForFile(java.io.File file)
Add requests for a particular file. |
Builder |
createBuilder(EventManager eventManager)
Method that is called while the command is being executed. |
void |
execute(ClientServices client,
EventManager em)
Execute a command. |
java.lang.String |
getCVSArguments()
Returns the arguments of the command in the command-line style. |
java.lang.String |
getCVSCommand()
This method returns how the command would look like when typed on the command line. |
java.io.File |
getFileEndingWith(java.lang.String ending)
|
java.io.File[] |
getFiles()
Get the files and/or directories specified for this command to operate on. |
KeywordSubstitutionOptions |
getKeywordSubst()
Getter for property keywordSubst. |
java.lang.String |
getMessage()
Getter for property message. |
java.lang.String |
getOptString()
Returns a string indicating the available options. |
void |
messageSent(MessageEvent e)
Listens for output of the command. |
void |
resetCVSCommand()
resets all switches in the command. |
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
Takes the arguments and sets the command. |
void |
setFiles(java.io.File[] files)
Set the files and/or directories on which to execute the command. |
void |
setKeywordSubst(KeywordSubstitutionOptions keywordSubst)
Setter for property keywordSubst. |
void |
setMessage(java.lang.String message)
Setter for property message. |
Methods inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
commandTerminated, isBuilderSet, messageSent, setBuilder |
Methods inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddCommand()
Method Detail |
---|
public void setFiles(java.io.File[] files)
public java.io.File[] getFiles()
public java.io.File getFileEndingWith(java.lang.String ending)
ending
- - the ending part of the file's pathname.. path separator is cvs's default '/'public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- New value of property message.public KeywordSubstitutionOptions getKeywordSubst()
public void setKeywordSubst(KeywordSubstitutionOptions keywordSubst)
keywordSubst
- New value of property keywordSubst.protected void addRequests(java.io.File file) throws java.io.IOException, CommandException
java.io.IOException
CommandException
protected void addRequestsForFile(java.io.File file) throws java.io.IOException, CommandException
java.io.IOException
CommandException
public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
execute
in class BuildableCommand
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 command
AuthenticationException
public java.lang.String getCVSCommand()
getCVSCommand
in class Command
public Builder createBuilder(EventManager eventManager)
createBuilder
in class BuildableCommand
public boolean setCVSCommand(char opt, java.lang.String optArg)
setCVSCommand
in class Command
public java.lang.String getOptString()
getOptString
in class Command
public void messageSent(MessageEvent e)
messageSent
in interface CVSListener
messageSent
in class BuildableCommand
e
- the eventpublic void resetCVSCommand()
resetCVSCommand
in class Command
public java.lang.String getCVSArguments()
getCVSArguments
in class Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |