|
|||||||||||
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
A class that provides common functionality for many of the CVS command that send similar sequences of requests.
Field Summary | |
protected Builder |
builder
An implementation of Builder interface that constructs a FileContainerInfo object from the server's output.. |
Fields inherited from class org.netbeans.lib.cvsclient.command.Command |
localDirectory |
Constructor Summary | |
BuildableCommand()
|
Method Summary | |
void |
commandTerminated(TerminationEvent e)
Called when server responses with "ok" or "error", (when the command finishes). |
Builder |
createBuilder(EventManager eventManager)
Method that is called while the command is being executed. |
void |
execute(ClientServices client,
EventManager eventManager)
Execute a command. |
protected boolean |
isBuilderSet()
Returns whether the builder is set. |
void |
messageSent(MessageEvent e)
Called when the server wants to send a message to be displayed to the user. |
void |
setBuilder(Builder builder)
Used for setting user-defined builder. |
Methods inherited from class org.netbeans.lib.cvsclient.command.Command |
clone, fileAdded, fileInfoGenerated, fileRemoved, fileUpdated, getCVSArguments, getCVSCommand, getGlobalOptions, getLocalDirectory, getLocalPath, getOptString, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, resetCVSCommand, setCVSCommand, setLocalDirectory |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Builder builder
Constructor Detail |
public BuildableCommand()
Method Detail |
public void execute(ClientServices client, EventManager eventManager) throws CommandException, AuthenticationException
update,
statusetc.)
execute
in class Command
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 Builder createBuilder(EventManager eventManager)
public void messageSent(MessageEvent e)
Command
messageSent
in interface CVSListener
messageSent
in class Command
e
- the eventprotected boolean isBuilderSet()
public void setBuilder(Builder builder)
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class Command
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |