Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-10-18 02:19:22 -0400
committerEike Stepper2008-10-18 02:19:22 -0400
commitec667c92e71f468340fc3f2be7f4eac3d49dd1ec (patch)
tree479aa16845f66d23732d15df6964bb268d77baa4
parent732069dacf61148255d3144fe751067fe916c21e (diff)
downloadcdo-ec667c92e71f468340fc3f2be7f4eac3d49dd1ec.tar.gz
cdo-ec667c92e71f468340fc3f2be7f4eac3d49dd1ec.tar.xz
cdo-ec667c92e71f468340fc3f2be7f4eac3d49dd1ec.zip
[249847] Store resources in a hierarchical structure
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249847
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java70
1 files changed, 35 insertions, 35 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java
index fa3f65cb5e..303a255a40 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOView.java
@@ -190,20 +190,51 @@ public interface CDOView extends CDOProtocolView, INotifier
public boolean hasResource(String path);
/**
+ * @see ResourceSet#getResource(URI, boolean)
* @since 2.0
*/
- public CDOResource getRootResource();
+ public CDOResource getResource(String path, boolean loadInDemand);
/**
* @see ResourceSet#getResource(URI, boolean)
+ */
+ public CDOResource getResource(String path);
+
+ /**
* @since 2.0
*/
- public CDOResource getResource(String path, boolean loadInDemand);
+ public CDOResource getRootResource();
/**
- * @see ResourceSet#getResource(URI, boolean)
+ * Returns a list of the resources in the given folder with a name equal to or starting with the value of the name
+ * parameter.
+ *
+ * @param folder
+ * The folder to search in, or <code>null</code> for top level resource nodes.
+ * @param name
+ * the name or prefix of the resource nodes to return.
+ * @param exactMatch
+ * <code>true</code> if the complete name of the resource must match, <code>false</code> if only a common
+ * prefix of the name must match.
+ * @since 2.0
*/
- public CDOResource getResource(String path);
+ public List<CDOResourceNode> queryResources(CDOResourceFolder folder, String name, boolean exactMatch);
+
+ /**
+ * Returns an iterator over the resources in the given folder with a name equal to or starting with the value of the
+ * name parameter. The underlying query will be executed asynchronously.
+ *
+ * @param folder
+ * The folder to search in, or <code>null</code> for top level resource nodes.
+ * @param name
+ * the name or prefix of the resource nodes to return.
+ * @param exactMatch
+ * <code>true</code> if the complete name of the resource must match, <code>false</code> if only a common
+ * prefix of the name must match.
+ * @since 2.0
+ */
+ public CloseableIterator<CDOResourceNode> queryResourcesAsync(CDOResourceFolder folder, String name,
+ boolean exactMatch);
/**
* Returns the object for the given CDOID.
@@ -245,35 +276,4 @@ public interface CDOView extends CDOProtocolView, INotifier
* @since 2.0
*/
public CDOQuery createQuery(String language, String queryString);
-
- /**
- * Returns a list of the resources in the given folder with a name equal to or starting with the value of the name
- * parameter.
- *
- * @param folder
- * The folder to search in, or <code>null</code> for root resource nodes.
- * @param name
- * the name or prefix of the resource nodes to return.
- * @param exactMatch
- * <code>true</code> if the complete name of the resource must match, <code>false</code> if only a common
- * prefix of the name must match.
- * @since 2.0
- */
- public List<CDOResourceNode> queryResources(CDOResourceFolder folder, String name, boolean exactMatch);
-
- /**
- * Returns an iterator over the resources in the given folder with a name equal to or starting with the value of the
- * name parameter. The underlying query will be executed asynchronously.
- *
- * @param folder
- * The folder to search in, or <code>null</code> for root resource nodes.
- * @param name
- * the name or prefix of the resource nodes to return.
- * @param exactMatch
- * <code>true</code> if the complete name of the resource must match, <code>false</code> if only a common
- * prefix of the name must match.
- * @since 2.0
- */
- public CloseableIterator<CDOResourceNode> queryResourcesAsync(CDOResourceFolder folder, String name,
- boolean exactMatch);
}

Back to the top