Extension SDK 10.1.2

oracle.ide.vcs
Class VCSFacade

java.lang.Object
  extended byoracle.ide.vcs.VCSFacade

public final class VCSFacade
extends java.lang.Object

Class providing a facade interface to the version control sub-system.

Since:
9.0.5

Method Summary
static boolean doAdd(Context context)
          Adds files represented by the context to the version control sub-system.
static boolean doCheckOut(Context context)
          Prepares a check out on files represented by the context.
static boolean doRemove(Context context)
          Removes files represented by the context from the version control sub-system.
static java.util.Map getStatus(Context context)
          Gets version control statuses for the given context.
static VCS getVCS()
          Gets the environment's active version control system.
static boolean isVersioned(java.net.URL url)
          Asks whether the given URL is currently under version control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVCS

public static final VCS getVCS()
Gets the environment's active version control system.

Returns:
a version system object. (null-capable)

isVersioned

public static final boolean isVersioned(java.net.URL url)
Asks whether the given URL is currently under version control.

Returns:
a verdict on whether the URL is versioned.
See Also:
VCS.getStatus(java.net.URL[])

doAdd

public static final boolean doAdd(Context context)
Adds files represented by the context to the version control sub-system.

Parameters:
context - the context for the command.
Returns:
a verdict on whether the command was successful.

doCheckOut

public static final boolean doCheckOut(Context context)
Prepares a check out on files represented by the context.

Parameters:
context - the context for the command.
Returns:
a verdict on whether the command was successful.

doRemove

public static final boolean doRemove(Context context)
Removes files represented by the context from the version control sub-system.

Parameters:
context - the context for the command.
Returns:
a verdict on whether the command was successful.

getStatus

public static final java.util.Map getStatus(Context context)
                                     throws java.lang.Exception
Gets version control statuses for the given context. This method may be called concurrently from different threads.

Returns:
a map of resulting file statuses against nodes.
Throws:
java.lang.Exception - if a critical exception occurred.

Extension SDK

 

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