org.openxma.dsl.common.jdt
Class JdtResourceLoader
java.lang.Object
org.openxma.dsl.common.jdt.JdtResourceLoader
- All Implemented Interfaces:
- org.eclipse.emf.mwe.core.resources.ResourceLoader
public class JdtResourceLoader
- extends java.lang.Object
- implements org.eclipse.emf.mwe.core.resources.ResourceLoader
|
Constructor Summary |
JdtResourceLoader(org.eclipse.core.resources.IProject project,
java.lang.ClassLoader parent,
org.eclipse.emf.mwe.core.resources.ResourceLoader parentResourceLoader)
|
|
Method Summary |
java.net.URL |
getResource(java.lang.String uri)
|
java.io.InputStream |
getResourceAsStream(java.lang.String uri)
|
java.lang.Class<?> |
loadClass(java.lang.String clazzName)
|
protected org.eclipse.core.runtime.IPath |
pathForProject(org.eclipse.jdt.core.IJavaProject project)
Get the path for a project
This works also for projects which are imported to a workspace without copying them into the workspace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdtResourceLoader
public JdtResourceLoader(org.eclipse.core.resources.IProject project,
java.lang.ClassLoader parent,
org.eclipse.emf.mwe.core.resources.ResourceLoader parentResourceLoader)
- Parameters:
project - the project to load classpath entries fromparent - the parent ClassLoader for delegation firstparent - the parent ResourceLoader for delegation first
getResource
public java.net.URL getResource(java.lang.String uri)
- Specified by:
getResource in interface org.eclipse.emf.mwe.core.resources.ResourceLoader
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String uri)
- Specified by:
getResourceAsStream in interface org.eclipse.emf.mwe.core.resources.ResourceLoader
loadClass
public java.lang.Class<?> loadClass(java.lang.String clazzName)
- Specified by:
loadClass in interface org.eclipse.emf.mwe.core.resources.ResourceLoader
pathForProject
protected org.eclipse.core.runtime.IPath pathForProject(org.eclipse.jdt.core.IJavaProject project)
- Get the path for a project
This works also for projects which are imported to a workspace without copying them into the workspace.
- Parameters:
project - The project for which the path should be determined.
- Returns:
- The path of the project
Copyright © 2012. All Rights Reserved.