Project Notes
Project: Open Tools: Find
Author: JBuilder Team
Company: borland.com
Description: Examples of Open Tools API
- Adds an "Add Packages" Wizard to the Project Pane popup menu.
- Recurses through a given root directory to add a PackageNode to the project
for each subdirectory found.
- For all files in the given root directory, adds a FileNode to the project
for each.
- Updates the project source path with the given root directory.
Notes:
The AddPackagesWizard demonstrates how to add an Action to the Project Pane
popup menu. It also shows how to browse for a directory, add files
and nodes to a project, and how to update the project source path.
To run this wizard:
- 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 .java node in a project.
- Select File | New...
- Select "Add Packages..." from the Wizard menu.
Source File Descriptions:
- AddPackages.java
Contains the OpenTools interface which registers the
"Add Packages" wizard.
- AddPackagesWizard.java
Defines the "Add Packages" wizard at the highest level.
It sets the dialog pages to be displayed and ultimately generates
the completed application as defined by user input.
- AddPackagesWizardPage1.java
Contains the wizard page which allows the user to specify
or browse to find the root directory for a source path.