Project Notes
Project: Open Tools: Gallery
Author: JBuilder Team
Company: borland.com
Description: Examples of Open Tools API
- Adds a Wizard to the Object Gallery
- Uses a PropertyGroup to save/fetch property values
- Uses a PropertyPage to edit PropertyGroup values
Notes:
The HelloWorldWizard demonstrates how to add an item to the JBuilder gallery.
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 "Hello World Class" from the Gallery
Source File Descriptions:
- HelloWorld.java
This class contains the OpenTools interface which registers the
HelloWorld wizard. A reference to this class must be placed in
the jar manifest when deploying.
- HelloWorldWizard.java
Defines the "Hello World" wizard at the highest level.
It orders the dialog pages to be displayed and ultimately generates
the completed application as defined by user input.
- HelloWorldWizardStylePage.java
Contains the wizard page which allows the user to define
the user interface style of the Hello World application to be generated.
- HelloWorldWizardTextPage.java
Contains the wizard page which allows the user to define
the message which the Hello World application will display.
- HelloWorldWizardPropertyGroup.java
Provides the needed OpenTools interface required to register the
PropertyGroup which retains settings used by the "Hello World" wizard.
It also contains a separate UI that may be used to edit these
settings based on context.
- HelloWorldWizardPropertyPage.java
The property page that modifies the "Hello World" parameters being
saved in user.properties.