org.netbeans.modules.editor.lib2/1 1.43.1 10

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

Nested Class Summary
static interface CodeGeneratorContextProvider.Task
          Represents the task passed to the runTaskWithinContext(org.openide.util.Lookup,Task) method.
 
Method Summary
 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.
 

Method Detail

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 context
task - the task to be run
Since:
1.8

org.netbeans.modules.editor.lib2/1 1.43.1 10

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.