Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added IResourceCache so that ResourceCache could be used as a service

  • Loading branch information...
commit 31bde47e66819e47d4a9dbb54bf907c4aa42e9ba 1 parent 721243b
@BryanHunt authored
View
26 bundles/org.eclipselabs.mongo.emf.ext/src/org/eclipselabs/mongo/emf/ext/IResourceCache.java
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Bryan Hunt.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Bryan Hunt - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipselabs.mongo.emf.ext;
+
+import org.eclipse.emf.ecore.resource.ResourceSet;
+
+/**
+ * The ResourceSet from this service is not thread safe. This service
+ * is intended to be used on the UI thread.
+ *
+ * @author bhunt
+ *
+ */
+public interface IResourceCache
+{
+ public ResourceSet getResourceSet();
+}
View
5 bundles/org.eclipselabs.mongo.emf.ext/src/org/eclipselabs/mongo/emf/ext/ResourceCache.java
@@ -17,9 +17,10 @@
* @author bhunt
*
*/
-public abstract class ResourceCache
+public class ResourceCache implements IResourceCache
{
- protected ResourceSet getResourceSet()
+ @Override
+ public ResourceSet getResourceSet()
{
if (resourceSet == null)
{
Please sign in to comment.
Something went wrong with that request. Please try again.