public class ChildCreationExtenderManager extends DelegatingResourceLocator
list of child creation extenders
for a particular package.
The list is automatically populated based on registered extensions
for the package.
The manager also acts as resource locator that loads resources from either the primary resource locator or one of the extenders.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.edit.provider.ChildCreationExtenderManager.ChildCreationExtenderList |
childCreationExtenders
The list of child creation extenders.
|
protected java.lang.String |
namespace
A key in the
child creation extender registry
which will typically be the namespace of the package being extended. |
protected ResourceLocator |
primaryResourceLocator
The primary resource locator.
|
baseURL, images, resourceBundle, shouldTranslate, strings, untranslatedResourceBundle, untranslatedStrings
Constructor and Description |
---|
ChildCreationExtenderManager(ResourceLocator primaryResourceLocator,
java.lang.String namespace)
Creates an instance for the given primary resource locator to manage the extensions for the given namespace.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IChildCreationExtender> |
getChildCreationExtenders()
Returns a modifiable list of the child creation extenders.
|
protected ResourceLocator[] |
getDelegateResourceLocators()
Returns the delegate resource locators.
|
java.util.List<?> |
getNewChildDescriptors(java.lang.Object object,
EditingDomain editingDomain)
Returns the list of new child descriptors accumulated from each of the child creation extenders.
|
protected ResourceLocator |
getPrimaryResourceLocator()
Returns the primary resource locator.
|
delegatedGetImage, delegatedGetString, doGetImage, doGetString, extensionFor, getBaseURL, getImage, getString, getString, getString, getString, setShouldTranslate, shouldTranslate
protected ResourceLocator primaryResourceLocator
protected java.lang.String namespace
child creation extender registry
which will typically be the namespace of the package being extended.protected org.eclipse.emf.edit.provider.ChildCreationExtenderManager.ChildCreationExtenderList childCreationExtenders
public ChildCreationExtenderManager(ResourceLocator primaryResourceLocator, java.lang.String namespace)
primaryResourceLocator
- the resource locator for finding basic resources.namespace
- a key in the child creation extender registry
which will typically be the namespace of the package whose extensions are being managed.protected ResourceLocator[] getDelegateResourceLocators()
DelegatingResourceLocator
getDelegateResourceLocators
in class DelegatingResourceLocator
protected ResourceLocator getPrimaryResourceLocator()
DelegatingResourceLocator
getPrimaryResourceLocator
in class DelegatingResourceLocator
public java.util.List<IChildCreationExtender> getChildCreationExtenders()
public java.util.List<?> getNewChildDescriptors(java.lang.Object object, EditingDomain editingDomain)
object
- the owner object of the descriptors.editingDomain
- the domain for the descriptors.