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
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClassLoader
(org.eclipse.core.resources.IProject project) Builds a classloader for a Java project from the workspace.protected URL
Methods inherited from class org.eclipse.emf.mwe.core.resources.ResourceLoaderDefaultImpl
getResource, getResourceAsStream, loadClass, tryLoadClass
Methods inherited from class org.eclipse.emf.mwe.core.resources.AbstractResourceLoader
internalLoadClass
-
Constructor Details
-
ProjectIncludingResourceLoader
public ProjectIncludingResourceLoader(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
-
Method Details
-
createClassLoader
public 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
- Overrides:
loadFromContextClassLoader
in classAbstractResourceLoader
-