T
- Type of the instances created from this descriptor.public class PluginClassDescriptor<T> extends Object
instantiable
.
No test of the validity
of the wrapped
IConfigurationElement
is performed. As such you should always extend this class while listening to
the IExtensionRegistry
and react properly the removal of the wrapped
IConfigurationElement
.
Note: this is based on org.eclipse.emf.ecore.plugin.RegistryReader.PluginClassDescriptor
Modifier and Type | Field and Description |
---|---|
protected String |
attributeName
The name of the attribute that holds the class full name to be instantiated.
|
protected org.eclipse.core.runtime.IConfigurationElement |
element
The element from which create an instance.
|
Constructor and Description |
---|
PluginClassDescriptor(org.eclipse.core.runtime.IConfigurationElement element,
String attributeName)
Creates a new descriptor for given element keeping the class name to be instantiated in an attribute
named
attributeName . |
protected org.eclipse.core.runtime.IConfigurationElement element
protected String attributeName
public PluginClassDescriptor(org.eclipse.core.runtime.IConfigurationElement element, String attributeName)
attributeName
.element
- The element from which create an instance.attributeName
- The name of the attribute that holds the class full name to be instantiated.protected T createInstance()
RuntimeException
- wraps a CoreException if an instance of the executable extension could not be created for
any reason.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.