org.netbeans.modules.editor.lib2/1 1.8.0 2

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

Enclosing interface:
CodeGenerator

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.8.0 2

Built on October 14 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.