|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.karma.core.vc.cvsimpl.CVSResponseAdapter
Adapts a response from CVS to Karma specific messages. This class listens to CVS responses as per the Netbeans API.
Success messages are sent to the CommandResponse
instance (which can optionally be registered with this
instance). Errors are thrown as CVSRuntimeExceptions
Constructor Summary | |
CVSResponseAdapter()
|
|
CVSResponseAdapter(CommandResponse response)
This class can use a CommandResponseListener to send cvs events to. |
Method Summary | |
void |
commandTerminated(org.netbeans.lib.cvsclient.event.TerminationEvent event)
Copied from the Netbeans API documentation : Called when server responses with "ok" or "error", (when the command finishes) |
void |
fileAdded(org.netbeans.lib.cvsclient.event.FileAddedEvent event)
Copied from the Netbeans API documentation : Called when a file has been added. |
void |
fileInfoGenerated(org.netbeans.lib.cvsclient.event.FileInfoEvent event)
Copied from the Netbeans API documentation : Called when file information has been received. |
void |
fileRemoved(org.netbeans.lib.cvsclient.event.FileRemovedEvent event)
Copied from the Netbeans API documentation : Called when a file is removed. |
void |
fileUpdated(org.netbeans.lib.cvsclient.event.FileUpdatedEvent event)
Copied from the Netbeans API documentation : Called when a file has been updated. |
java.lang.Object[] |
getArguments(java.lang.String args)
|
org.netbeans.lib.cvsclient.command.log.LogInformation |
getLogInformation()
Gets the log that is the result of the cvs log command. |
void |
messageSent(org.netbeans.lib.cvsclient.event.MessageEvent event)
Copied from the Netbeans API documentation : Called when the server wants to send a message to be displayed to the user. |
void |
moduleExpanded(org.netbeans.lib.cvsclient.event.ModuleExpansionEvent event)
Copied from the Netbeans API documentation : Fire a module expansion event. |
void |
setArguments(java.util.Map arguments)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CVSResponseAdapter()
public CVSResponseAdapter(CommandResponse response)
CommandResponseListener
to send cvs events to. For example, user interfaces can
register a listener to receive events from underlying code, thus creating interactivity.
response
- Method Detail |
public void setArguments(java.util.Map arguments)
public java.lang.Object[] getArguments(java.lang.String args)
public void fileRemoved(org.netbeans.lib.cvsclient.event.FileRemovedEvent event)
Copied from the Netbeans API documentation : Called when a file is removed.
fileRemoved
in interface org.netbeans.lib.cvsclient.event.CVSListener
event
- The event from CVS.public void moduleExpanded(org.netbeans.lib.cvsclient.event.ModuleExpansionEvent event)
Copied from the Netbeans API documentation : Fire a module expansion event. This is called when the servers has responded to an expand-modules request.
Copied from the Netbeans API documentation : This event is really intended only for the use in the Checkout command. During a checkout command, the client must ask the server to expand modules to determine whether there are aliases defined for a particular module. The client must then use the expansion to determine if a local directory exists and if so, send appropriate Modified requests etc.
moduleExpanded
in interface org.netbeans.lib.cvsclient.event.CVSListener
event
- The event from CVS.public void fileAdded(org.netbeans.lib.cvsclient.event.FileAddedEvent event)
Copied from the Netbeans API documentation : Called when a file has been added.
fileAdded
in interface org.netbeans.lib.cvsclient.event.CVSListener
event
- The event from CVS.public void fileInfoGenerated(org.netbeans.lib.cvsclient.event.FileInfoEvent event)
Copied from the Netbeans API documentation : Called when file information has been received.
This method constructs the LogInformation
object that contains the log for a specific file as
a result of the cvs log
command.
fileInfoGenerated
in interface org.netbeans.lib.cvsclient.event.CVSListener
event
- The event from CVS.public org.netbeans.lib.cvsclient.command.log.LogInformation getLogInformation()
cvs log
command.
LogInformation
that can be queried by classes for all information on a (set of) file(s).public void commandTerminated(org.netbeans.lib.cvsclient.event.TerminationEvent event)
Copied from the Netbeans API documentation : Called when server responses with "ok" or "error", (when the command finishes)
commandTerminated
in interface org.netbeans.lib.cvsclient.event.CVSListener
event
- The event from CVS.public void fileUpdated(org.netbeans.lib.cvsclient.event.FileUpdatedEvent event)
Copied from the Netbeans API documentation : Called when a file has been updated.
fileUpdated
in interface org.netbeans.lib.cvsclient.event.CVSListener
event
- The event from CVS.public void messageSent(org.netbeans.lib.cvsclient.event.MessageEvent event)
Copied from the Netbeans API documentation : Called when the server wants to send a message to be displayed to the user. This method is called whenever
messageSent
in interface org.netbeans.lib.cvsclient.event.CVSListener
event
- The event from CVS.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |