public interface CreateFromTemplateAttributes
Lookup
and allows anyone provide additional parameters to each CreateFromTemplateHandler
s
when a template is instantiating.
Implementations are called in the order of appearance in Lookup. The positions less than 0 are reserved for the platform. Implementations called later can see and override values defined by earlier CreateFromTemplateAttributes.
Read more in the howto document.
This interface supersedes CreateFromTemplateAttributesProvider
in openide.loaders
module.
Modifier and Type | Method and Description |
---|---|
Map<String,?> |
attributesFor(CreateDescriptor desc)
Called when a template is about to be instantiated to provide additional
values to the
CreateFromTemplateHandler that will handle the
template instantiation. |
Map<String,?> attributesFor(CreateDescriptor desc)
CreateFromTemplateHandler
that will handle the
template instantiation.
If the returned Map defines the same value as some CreateFromTemplateAttributes
registered
earlier, the Map's value takes precedence. Parameters supplied by the FileBuilder
cannot be
overriden.
desc
- the creation request