public class VCSCommandUtils
extends java.lang.Object
Utility class for version control client commands.
| Modifier and Type | Method and Description | 
|---|---|
| static void | closeMissingNodes(Node[] nodes)Deprecated. 
 | 
| static java.util.Collection<Locatable> | getCandidateSelection(Locatable[] locatables,
                     oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache)Gets the locatable selection whose files are candidates to be added. | 
| static java.util.Collection<Node> | getDirtyNodesFrom(URLFilter filter,
                 Locatable[] locatables)Get all the dirty nodes of the locatables. | 
| static java.util.Collection<Locatable> | getFilteredSelection(Locatable[] locatables,
                    oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache,
                    VCSStatus[] statuses)Gets the locatable selection, filtered for the given file statuses. | 
| static java.util.Collection<Locatable> | getFilteredSelection(Locatable[] locatables,
                    oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache,
                    VCSStatusFilter filter)Gets the locatable selection, filtered for the given file statuses. | 
| static java.util.Collection<Locatable> | getVersionedSelection(Locatable[] locatables,
                     oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache)Gets the locatable selection whose files are versioned. | 
| static void | removeNonEditableNodes(java.util.Collection<?> nodes)Removes all non-editable nodes from the given collection. | 
| static boolean | saveDirtyNodes(Locatable[] locatables)Saves all of the given locatables which are dirty. | 
| static boolean | saveDirtyNodes(Locatable[] locatables,
              boolean silent,
              java.lang.String helpTopicId)Deprecated. 
 replaced with #saveDirtyNodes(Locatable[]), which
     handles a 'Skip this Message Next Time' preference. | 
| static boolean | saveDirtyNodesSilently(Locatable[] locatables)Saves all of the given locatables which are dirty, without displaying a dialog. | 
public static final java.util.Collection<Locatable> getFilteredSelection(Locatable[] locatables, oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache, VCSStatus[] statuses) throws java.lang.Exception
locatables - the locatable selection.cache - the status cache to use.statuses - the statuses to accept.java.lang.Exception - if a critical exception occurred.public static final java.util.Collection<Locatable> getFilteredSelection(Locatable[] locatables, oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache, VCSStatusFilter filter) throws java.lang.Exception
locatables - the locatable selection.cache - the status cache to use.filter - the filter to control VCSStatus acceptance.java.lang.Exception - if a critical exception occurred.public static final java.util.Collection<Locatable> getVersionedSelection(Locatable[] locatables, oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache) throws java.lang.Exception
locatables - the locatable selection.cache - the status cache to use.java.lang.Exception - if a critical exception occurred.public static final java.util.Collection<Locatable> getCandidateSelection(Locatable[] locatables, oracle.jdeveloper.vcs.cache.StatusCacheBridge<VCSStatus> cache) throws java.lang.Exception
locatables - the locatable selection.cache - the status cache to use.java.lang.Exception - if a critical exception occurred.public static final boolean saveDirtyNodes(Locatable[] locatables) throws java.lang.Exception
locatables - the locatables which should be saved if dirty.false if the
     user cancelled or an exception occurred.java.lang.Exceptionpublic static final java.util.Collection<Node> getDirtyNodesFrom(URLFilter filter, Locatable[] locatables)
filter - URL Filter to apply to the searchlocatables - the locatables of the directoriespublic static final boolean saveDirtyNodesSilently(Locatable[] locatables) throws java.lang.Exception
locatables - the locatables which should be saved if dirty.java.lang.Exception@Deprecated public static final boolean saveDirtyNodes(Locatable[] locatables, boolean silent, java.lang.String helpTopicId) throws java.lang.Exception
locatables - the locatables which should be saved if dirty.silent - a decision on whether this method should operate silently.helpTopicId - the help topic ID for the dialog. (null-capable)false if the
     user cancelled or an exception occurred.java.lang.Exception@Deprecated public static final void closeMissingNodes(Node[] nodes)
VCSCommand.fireSomeFilesDeleted(java.net.URL[])
     and VCSFileEventSender.fireFilesDeleted(java.net.URL[]).nodes - the array of nodes to check.public static final void removeNonEditableNodes(java.util.Collection<?> nodes)
ElementAttributes.NON_EDITABLE 
 set.nodes - the collection of nodes to filter.