public class ProjectClassLoader extends URLClassLoader
ClassLoader
to load classes from a
IProject
.Modifier and Type | Field and Description |
---|---|
static ClassLoader |
DEFAULT_CLASS_LOADER
Default
ClassLoader . |
Modifier and Type | Method and Description |
---|---|
static ProjectClassLoader |
create(org.eclipse.ui.IEditorPart editorPart)
Convenience method to create the
ProjectClassLoader from the
input IEditorPart . |
static ProjectClassLoader |
create(org.eclipse.core.resources.IProject project)
Convenience method to create the
ProjectClassLoader from an
IProject . |
static ProjectClassLoader |
create(org.eclipse.core.resources.IProject project,
ClassLoader parentClassLoader)
Initiates from the
IProject with the parent ClassLoader . |
static ProjectClassLoader |
create(String[] classpath,
ClassLoader parentClassLoader)
Initiates from the specified class path.
|
protected static URL |
createUrl(String path)
Creates the
URL from the path. |
static ConfigurationItem |
findConfigurationItem(org.eclipse.ui.IEditorPart editorPart,
String path)
Convenience method to find a
ConfigurationItem on the class path
of the project of the input IEditorPart . |
ConfigurationItem |
findConfigurationItem(String path)
Finds the
ConfigurationItem . |
ConfigurationContext |
getConfigurationContext()
Obtains the
ConfigurationContext . |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public static final ClassLoader DEFAULT_CLASS_LOADER
ClassLoader
.public static ConfigurationItem findConfigurationItem(org.eclipse.ui.IEditorPart editorPart, String path)
ConfigurationItem
on the class path
of the project of the input IEditorPart
.editorPart
- IEditorPart
.path
- Path to ConfigurationItem
.ConfigurationItem
or null
if not found.public static ProjectClassLoader create(org.eclipse.ui.IEditorPart editorPart)
ProjectClassLoader
from the
input IEditorPart
.editorPart
- IEditorPart
.ProjectClassLoader
.public static ProjectClassLoader create(org.eclipse.core.resources.IProject project)
ProjectClassLoader
from an
IProject
.project
- IProject
.ProjectClassLoader
.public static ProjectClassLoader create(org.eclipse.core.resources.IProject project, ClassLoader parentClassLoader)
IProject
with the parent ClassLoader
.project
- IProject
.parentClassLoader
- Parent ClassLoader
.ProjectClassLoader
.public static ProjectClassLoader create(String[] classpath, ClassLoader parentClassLoader)
classpath
- Class path.parentClassLoader
- Parent ClassLoader
.ProjectClassLoader
.public ConfigurationContext getConfigurationContext()
ConfigurationContext
.ConfigurationContext
.public ConfigurationItem findConfigurationItem(String path)
ConfigurationItem
.path
- Path of the ConfigurationItem
.ConfigurationItem
or null
if not found.Copyright © 2005–2016. All rights reserved.