Creating a Code Generator
See Also
A code generator
is an item added to the popup that appears in an editor when
Alt-Insert is pressed. By default, for example, when you
press Alt-Insert in a Java class, a constructor can be generated.
To create a new code generator:
- Right-click a module project and choose New > Other. In the
New File wizard, choose Code Generator under the Module
Development category.
- In the Code Generator page, set the following:
- Class Name. Specifies the
name of the new code generator.
- MimeType. Specifies a unique
Multipurpose Internet Mail Extension (MIME)
type that enables the code generator
to be registered in the layer.xml file.
- Generate Code Generator
Context Provider. Specifies that a
class should be created, and registered in
the layer.xml file, for adding
new objects to the code generator's lookup.
- Click Finish.
- See Also
- About NetBeans Platform and Module Development
- About the NetBeans Platform
Legal Notices