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

org.netbeans.spi.editor.codegen
Interface CodeGenerator.Factory

Enclosing interface:
CodeGenerator

@MimeLocation(subfolderName="CodeGenerators")
public static interface CodeGenerator.Factory

Factory creating code generators.
The factory instances are looked up by the MimeLookup so they should be registered in an xml-layer in Editors/<mime-type>/CodeGenerators directory.

Since:
1.8

Method Summary
 List<? extends CodeGenerator> create(Lookup context)
          Creates code generators valid for the particular context.
 

Method Detail

create

List<? extends CodeGenerator> create(Lookup context)
Creates code generators valid for the particular context.

Parameters:
context - Contains an instance of JTextComponent by default. Additonal content could be added by the CodeGeneratorContextProvider registered for the mime type.
Returns:
the list of created code generators. An empty list should be returned if no generator could be created in the particular context.
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.