Skip to content
Browse files

Added IResourceCache so that ResourceCache could be used as a service

  • Loading branch information...
1 parent 721243b commit 31bde47e66819e47d4a9dbb54bf907c4aa42e9ba @BryanHunt committed
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)
{

0 comments on commit 31bde47

Please sign in to comment.
Something went wrong with that request. Please try again.