org.eclipse.emf.mwe.ui.workflow.util
Class ProjectIncludingResourceLoader
java.lang.Object
org.eclipse.emf.mwe.core.resources.AbstractResourceLoader
org.eclipse.emf.mwe.core.resources.ResourceLoaderDefaultImpl
org.eclipse.emf.mwe.ui.workflow.util.ProjectIncludingResourceLoader
- All Implemented Interfaces:
- ResourceLoader
public class ProjectIncludingResourceLoader
- extends ResourceLoaderDefaultImpl
This ResourceLoader is capable of loading resources from a specific Java project within the workspace.
Typical use is when invoking a workflow from within a plugin.
FIXME: Refactor this class to repect the EMFPlugin
Method Summary |
java.lang.ClassLoader |
createClassLoader(org.eclipse.core.resources.IProject project)
Builds a classloader for a Java project from the workspace. |
protected java.net.URL |
loadFromContextClassLoader(java.lang.String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectIncludingResourceLoader
public ProjectIncludingResourceLoader(org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
createClassLoader
public java.lang.ClassLoader createClassLoader(org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
- Builds a classloader for a Java project from the workspace.
- Parameters:
project
- An Eclipse project
- Throws:
org.eclipse.core.runtime.CoreException
loadFromContextClassLoader
protected java.net.URL loadFromContextClassLoader(java.lang.String path)
- Overrides:
loadFromContextClassLoader
in class AbstractResourceLoader