Project Notes
Project: Open Tools: Delphi
Author: JBuilder Team
Company: borland.com
Description: Examples of Open Tools API
- Registering a new TextFileNode.
- Registering a TextEditorKit.
- Demonstrating an Editor syntax analyzer.
- Rendering Structure Pane content.
Notes:
Demonstrates how to add a new editable file type using the Open Tools API.
- Update JBuilder's classpath to include the output path for this project.
If you change the output path, be sure to move/rename the classes.opentools file as well.
- Launch JBuilder.
- Select a .pas node in a project for editing.
Source File Descriptions:
- PasFileNode.java
This class registers the .pas file extension. It defines where to find
the TextEditorKit class that understands its syntax and the class which
can produce the Structure Pane content.
- PasEditorKit.java
This class registers the Pascal-specific TextEditorKit which defines where
to find the text scanner that understands that syntax.
- PasScanner.java
This class provides the Pascal-specific text scanner. It identifies
the various code elements that make up a Pascal program so that color
coding maybe done. This is a simplified version which just identifies
keywords and comment blocks.
- PasStructure.java
This class provides the Pascal-specific text scanner. It identifies
the various code elements that make up a Pascal program so that color
coding maybe done. This is a simplified version which just identifies
keywords and comment blocks.