Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.generic.editor/src/org/eclipse/emf/editor/oaw/WorkspaceResourceManager.java')
-rw-r--r--examples/org.eclipse.emf.generic.editor/src/org/eclipse/emf/editor/oaw/WorkspaceResourceManager.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/examples/org.eclipse.emf.generic.editor/src/org/eclipse/emf/editor/oaw/WorkspaceResourceManager.java b/examples/org.eclipse.emf.generic.editor/src/org/eclipse/emf/editor/oaw/WorkspaceResourceManager.java
new file mode 100644
index 00000000..d41c88f0
--- /dev/null
+++ b/examples/org.eclipse.emf.generic.editor/src/org/eclipse/emf/editor/oaw/WorkspaceResourceManager.java
@@ -0,0 +1,56 @@
+///**
+// * <copyright>
+// *
+// * Copyright (c) 2008 itemis AG and others.
+// * 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:
+// * itemis AG - Initial API and implementation
+// *
+// * </copyright>
+// *
+// */
+//package org.eclipse.emf.editor.oaw;
+//
+//import org.eclipse.core.resources.IProject;
+//import org.eclipse.core.resources.IResource;
+//import org.eclipse.xtend.expression.Resource;
+//import org.eclipse.xtend.expression.ResourceManager;
+//import org.eclipse.xtend.expression.ResourceParser;
+//
+//
+///**
+// * @author Dennis Huebner
+// *
+// */
+//public class WorkspaceResourceManager implements ResourceManager {
+//
+// private IProject project;
+//
+// public WorkspaceResourceManager(IProject p) {
+// this.project = p;
+// }
+//
+// /* (non-Javadoc)
+// * @see org.eclipse.xtend.expression.ResourceManager#loadResource(java.lang.String, java.lang.String)
+// */
+// public Resource loadResource(String fullyQualifiedName, String extension) {
+// IResource oawResource = project.findOawResource(fullyQualifiedName,
+// extension);
+// if (oawResource != null)
+// return oawResource.getOawResource();
+// return null;
+// }
+//
+// public void registerParser(String template_extension, ResourceParser parser) {
+// // not needed
+// }
+//
+// public void setFileEncoding(String fileEncoding) {
+// // not needed
+// }
+//
+//}

Back to the top