Skip navigation links
oracle.jdeveloper.vcs.spi
Class VCSCheckOutNodeCmd
java.lang.Object
oracle.ide.controller.Command
oracle.jdeveloper.vcs.spi.VCSCheckOutNodeCmd
-
public class VCSCheckOutNodeCmd
- extends Command
Default implementation for node check out command.
- Since:
- 9.0.5
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VCSCheckOutNodeCmd
public VCSCheckOutNodeCmd()
VCSCheckOutNodeCmd
public VCSCheckOutNodeCmd(int type)
VCSCheckOutNodeCmd
public VCSCheckOutNodeCmd(int type,
java.lang.String name)
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
Copyright © 1997, 2015, Oracle. All rights reserved.