Customize code templates
- Last Updated: January 22, 2025
- 3 minute read
- OpenEdge
- Version 12.2
- Documentation
You can use the Customization Editor to add to the menu, file-creation wizards that use custom Java Emitter Templates (JET templates) and Editor templates.
You must have access to custom JET templates for creating ABL code to be able to add file-creation wizards that use these templates.You can also override the standard templates used by the options on that menu or the ABL Editor context (right-click) menu. After defining template customizations, you can use the Customization Editor to edit or remove them. You can also associate these templates to custom project types.
For information about creating JET templates, see:
Your template files must be in your Java class path. You can specify
template directories to be added to your class path in Customization Preferences.- Introduction to JET(Eclipse Corner Article)
- EMFT JET Developer Guide
Begin by opening the Customization Editor. In the OpenEdge Editor perspective, select .
-
Follow these steps to add a new JET template entry to the :
- In the Available Extension Points tree view, click New JET Templates.
- Click Add.
- Enter a name, and optionally an image file for an accompanying icon, to appear on the menu.
- In the Template file field, enter the name of the Java class file containing the compiled JET template.
- Save your changes.
-
Follow these steps to add a new Editor template entry to the menu:
- In the Available Extension Points tree view, click Editor Templates.
- Click New.
- Enter the appropriate values for the fields that appear in the New Template dialog. See Editor Templates options for detailed information about these fields.
- Save your changes.
- You can also edit, remove, import, and export Editor templates. See Editor Templates options for detailed information about these operations.
-
Follow these steps to specify a template for use in place of a standard
Progress Developer Studio for OpenEdge template:
- In the Available Extension Points tree view, click Template Overrides.
- Click Add.
- In the Template field, select the standard template that you want to override from the drop-down list.
- In the Template file field, enter the name of the Java class file containing the compiled JET template to be used instead.
- Save your changes.
-
After adding or overriding template definitions:
-
Save your changes by selecting or clicking
.
-
To make the changes take effect, click
(rightmost on the Customization Editor toolbar) to reset the OpenEdge
Editor perspective. Then, click Yes in the restart prompt that appears. Your changes do
not take effect until you restart Progress Developer Studio for
OpenEdge.
-
Save your changes by selecting or clicking