|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.vcs.util.VCSModelUtils
public final class VCSModelUtils
Utility class for node model operations.
Method Summary | |
---|---|
static java.net.URL[] |
convertNodesToURLs(java.util.Collection<? extends Locatable> locatables) Converts the given locatables into their associated URLs. |
static java.net.URL[] |
convertNodesToURLs(Locatable[] locatables) Converts the given locatables into their associated URLs. |
static Node[] |
findCachedNodes(URLFilter filter) Finds nodes cached in the IDE whose files satisfy the given URL filter. |
static Project[] |
findCachedProjects() Gets all open Project type nodes cached in the NodeFactory . |
static Project[] |
findCachedProjects(boolean openWorkspaces) Deprecated. replaced by findCachedProjects() . Workspaces no longer need to be opened in order to discover their children. |
static Workspace[] |
findCachedWorkspaces() Gets all open Workspace type nodes cached in the NodeFactory . |
static Locatable[] |
findOrCreateNodes(java.net.URL[] urls) Finds or creates locatables for the given URLs, using the node cache. |
static void |
fireProjectStructuresChanged() Deprecated. replaced with VCSCommand.fireFileStructureChanged(java.net.URL[]) and VCSFileEventSender.fireFileStructureChanged(java.net.URL[]) . |
static void |
fireProjectStructuresChanged(java.net.URL[] projectContentsUrls) Deprecated. replaced with VCSCommand.fireFileStructureChanged(java.net.URL[]) and VCSFileEventSender.fireFileStructureChanged(java.net.URL[]) . |
static void |
fireVetoableCanRemoveChildren(java.lang.Object[] elements) Fores a vetoable UpdateMessage.CAN_REMOVE_CHILD message on all projects which contain the given elements. |
static Node[] |
getCachedBaseURLNodes(java.net.URL[] baseUrls) Gets all cached nodes with URLs underneath the given base URLs. |
static Node[] |
getCachedDirectoryNodes(java.net.URL[] directoryUrls) Gets all cached nodes with URLs in the given directories. |
static Node[] |
getDirtyNodes(Node[] nodes) Gets the nodes from the given selection which are dirty. |
static java.net.URL |
getLocatableURL(java.lang.Object node) Gets the given node's URL, if the node is a locatable. |
static Locatable[] |
getValidLocatables(java.lang.Object[] nodes, URLFilter filter) Gets the valid locatables from the given node selection. |
static boolean |
isElementSaveUpdate(java.lang.Object observed, UpdateMessage change) Asks whether the given update message indicates that the observed node has been saved. |
static java.lang.String[] |
listBinaryExtensions() Deprecated. replaced by VCSFileSystemUtils.listBinaryExtensions() . |
static java.net.URL[] |
listProjectURLs(Project project, VCSCancellable cancellable) Lists all content URLs belonging to the given project, if open. |
static java.net.URL[] |
listProjectURLs(Project project, VCSCancellable cancellable, boolean includeDirectories) Lists all content URLs belonging to the given project, if open. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Locatable[] findOrCreateNodes(java.net.URL[] urls)
urls
- the array of URLs for the nodes to find or create.public static final java.net.URL[] convertNodesToURLs(Locatable[] locatables)
locatables
- the array of locatables to convert.public static final java.net.URL[] convertNodesToURLs(java.util.Collection<? extends Locatable> locatables)
locatables
- the collection of locatables to convert.public static final boolean isElementSaveUpdate(java.lang.Object observed, UpdateMessage change)
observed
- the observed subject.change
- the update message.public static final Locatable[] getValidLocatables(java.lang.Object[] nodes, URLFilter filter)
nodes
- the original node selection.filter
- a filter that accepts valid locatable URLs. (null-capable)public static final java.net.URL getLocatableURL(java.lang.Object node)
(node instanceof Locatable ? ((Locatable)node).getURL() : null)
.node
- the node.public static final Node[] findCachedNodes(URLFilter filter)
filter
- a filter that accepts URLs for cached nodes. (null-capable)public static final Node[] getDirtyNodes(Node[] nodes)
nodes
- an array of nodes.public static final Node[] getCachedDirectoryNodes(java.net.URL[] directoryUrls)
directoryUrls
- the array of directories for returned cached nodes.public static final Node[] getCachedBaseURLNodes(java.net.URL[] baseUrls)
baseUrls
- the array of base URLs for returned cached nodes.
@Deprecated
public static final java.lang.String[] listBinaryExtensions()
VCSFileSystemUtils.listBinaryExtensions()
.public static final Workspace[] findCachedWorkspaces()
Workspace
type nodes cached in the NodeFactory
.public static final Project[] findCachedProjects()
Project
type nodes cached in the NodeFactory
.
@Deprecated
public static final Project[] findCachedProjects(boolean openWorkspaces)
findCachedProjects()
. Workspaces no longer need to be opened in order to discover their children.Project
type nodes cached in the NodeFactory
.openWorkspaces
- a decision on whether workspaces should be opened. If true
and the calling thread is not the AWT event dispatcher, please be aware that there may be risk of deadlock while this method is blocking.
@Deprecated
public static final void fireProjectStructuresChanged()
VCSCommand.fireFileStructureChanged(java.net.URL[])
and VCSFileEventSender.fireFileStructureChanged(java.net.URL[])
.UpdateMessage.STRUCTURE_CHANGED
message on all projects.
@Deprecated
public static final void fireProjectStructuresChanged(java.net.URL[] projectContentsUrls)
VCSCommand.fireFileStructureChanged(java.net.URL[])
and VCSFileEventSender.fireFileStructureChanged(java.net.URL[])
.UpdateMessage.STRUCTURE_CHANGED
message on all projects whose content sets may include any of the given URLs.projectContentsUrls
- the URLs which have been affected by an operation.public static final void fireVetoableCanRemoveChildren(java.lang.Object[] elements) throws ChangeVetoException
UpdateMessage.CAN_REMOVE_CHILD
message on all projects which contain the given elements.elements
- the URLs which will be affected by a remove operation.ChangeVetoException
- if the removal was vetoed.public static final java.net.URL[] listProjectURLs(Project project, VCSCancellable cancellable) throws java.lang.InterruptedException
project
- the project.cancellable
- an object representing the cancellable state. (null-capable)java.lang.InterruptedException
- if the process was interrupted.public static final java.net.URL[] listProjectURLs(Project project, VCSCancellable cancellable, boolean includeDirectories) throws java.lang.InterruptedException
project
- the project.cancellable
- an object representing the cancellable state. (null-capable)includeDirectories
- a decision on whether to return directory URLs in addition to regular file URLs.java.lang.InterruptedException
- if the process was interrupted.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |