Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.jdeveloper.vcs.spi
Class VCSCheckOutNodeCmd

java.lang.Object
  extended by oracle.ide.controller.Command
      extended by oracle.jdeveloper.vcs.spi.VCSCheckOutNodeCmd


public class VCSCheckOutNodeCmd
extends Command

Default implementation for node check out command.

Since:
9.0.5

Field Summary

 

Fields inherited from class oracle.ide.controller.Command
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type

 

Constructor Summary
VCSCheckOutNodeCmd()
           
VCSCheckOutNodeCmd(int type)
           
VCSCheckOutNodeCmd(int type, java.lang.String name)
           

 

Method Summary
protected  boolean canCheckOutUI(java.net.URL url)
           
protected  boolean doCheckOut(java.net.URL url)
          Performs the check out operation on the given URL, updating the contextual Node state and version status.
 int doit()
          Executes the actions associated with a specific command.
protected  boolean isOperable(java.net.URL url)
           
 int undo()
          Called by the CommandProcessor to undo a command.
protected  boolean undoCheckOut(java.net.URL url)
           

 

Methods inherited from class oracle.ide.controller.Command
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getType, isGlobal, setContext, setData

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

VCSCheckOutNodeCmd

public VCSCheckOutNodeCmd()

VCSCheckOutNodeCmd

public VCSCheckOutNodeCmd(int type)

VCSCheckOutNodeCmd

public VCSCheckOutNodeCmd(int type,
                          java.lang.String name)

Method Detail

doit

public int doit()
         throws java.lang.Exception
Description copied from class: 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.
Specified by:
doit in class Command
Throws:
java.lang.Exception

undo

public int undo()
         throws java.lang.Exception
Description copied from class: Command
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.
Overrides:
undo in class Command
Throws:
java.lang.Exception

isOperable

protected boolean isOperable(java.net.URL url)

canCheckOutUI

protected boolean canCheckOutUI(java.net.URL url)

doCheckOut

protected boolean doCheckOut(java.net.URL url)
                      throws java.lang.Exception
Performs the check out operation on the given URL, updating the contextual Node state and version status. By default, this action will be effected through the VCSExtension.setReadWrite(URL[],VCSProgress) API method.
Parameters:
url - the URL to check out.
Returns:
true if the operation succeeded and the URL is no longer read-only.
Throws:
java.lang.Exception

undoCheckOut

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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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