org.netbeans.spi.editor.codegen
Interface CodeGeneratorContextProvider
@MimeLocation(subfolderName="CodeGeneratorContextProviders")
public interface CodeGeneratorContextProvider
Serves for adding an additonal content to the context which is passed
as a parameter to the CodeGenerator.Factory.create(org.openide.util.Lookup)
method.
Instances of this interface are looked up by the
MimeLookup
so they should be
registered in an xml-layer in
Editors/<mime-type>/CodeGeneratorContextProviders directory.
- Since:
- 1.8
runTaskWithinContext
void runTaskWithinContext(Lookup context,
CodeGeneratorContextProvider.Task task)
- Adds an additional content to the original context and runs the given task
with the new context as a parameter.
- Parameters:
context
- the original contexttask
- the task to be run- Since:
- 1.8