Extension SDK 9.0.5

oracle.jdeveloper.vcs.spi
Class VCSCheckOutDocumentCmd

java.lang.Object
  extended byoracle.ide.addin.AbstractCommand
      extended byoracle.jdeveloper.vcs.spi.VCSCheckOutDocumentCmd
All Implemented Interfaces:
Command

public class VCSCheckOutDocumentCmd
extends AbstractCommand

Default implementation for document check out command.

Since:
9.0.5

Field Summary
 
Fields inherited from class oracle.ide.addin.AbstractCommand
cmdId, context, name, type
 
Fields inherited from interface oracle.ide.addin.Command
CANCEL, EXECUTING, NO_CHANGE, NO_UNDO, NORMAL, OK
 
Constructor Summary
VCSCheckOutDocumentCmd()
           
VCSCheckOutDocumentCmd(int type)
           
VCSCheckOutDocumentCmd(int type, java.lang.String name)
           
 
Method Summary
protected  boolean doCheckOut(java.net.URL url)
           
 int doit()
          Executes the actions associated with a specific command.
 int undo()
          Called by the CommandProcessor to undo a command.
protected  boolean undoCheckOut(java.net.URL url)
           
 
Methods inherited from class oracle.ide.addin.AbstractCommand
getAffectedDocuments, getContext, getData, getId, getName, getType, setContext, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCSCheckOutDocumentCmd

public VCSCheckOutDocumentCmd()

VCSCheckOutDocumentCmd

public VCSCheckOutDocumentCmd(int type)

VCSCheckOutDocumentCmd

public VCSCheckOutDocumentCmd(int type,
                              java.lang.String name)
Method Detail

doit

public int doit()
         throws java.lang.Exception
Description copied from interface: Command
Executes the actions associated with a specific command. When a command executes successfully, implementations should return OK, otherwise, return CANCEL or any other non-zero value.

Throws:
java.lang.Exception

undo

public int undo()
         throws java.lang.Exception
Description copied from class: AbstractCommand
Called by the CommandProcessor to undo a command. Does nothing in this implemenation. Commands that can be undone should provide the behavior here to undo whatever actions were carried out when the doit method was called When a command executes successfully, implementations should return OK, otherwise, return CANCEL or any other non-zero value.

Specified by:
undo in interface Command
Overrides:
undo in class AbstractCommand
Throws:
java.lang.Exception

doCheckOut

protected boolean doCheckOut(java.net.URL url)
                      throws java.lang.Exception
Throws:
java.lang.Exception

undoCheckOut

protected boolean undoCheckOut(java.net.URL url)
                        throws java.lang.Exception
Throws:
java.lang.Exception

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.