OpenTools code samples

The samples/OpenToolsAPI/ directory contains several sample projects that demonstrate how to create OpenTools that extend JBuilder. The samples are listed here:

Actions - Demonstrates an action to display a simple greeting in a modal dialog.

CommandLine - Demonstrates how to register a JBuilder command-line option.

Designer - Examples for writing Designers in JBuilder.

LayoutAssistant - Sample Assistant for wiring a layout manager in the UI designer.

PropertyEditor - An example property editor that has special knowledge of the Design environment.

ImageViewer - An example non-text file node viewer with the Open Tools API.

Add Packages - Example of a wizard using a project pane popup Action to add file and package nodes with the Open Tools API.

Delphi - A sample TextFileNode viewer using custom syntax highlighting and generating structure pane content with the Open Tools API.

Find String - Example of a wizard using the MessageView with the Open Tools API.

Gallery - Example of an object gallery wizard using a PropertyGroup with the Open Tools API.

Simple - Example of a simple wizard built with the Open Tools API.

PackageTree - Builds a hierarchical tree based on the package of a .java node selected in the project.

CurlyBraceKeyBinding - Shows how to add a keybinding to complete curly braces.

DiffViewer - How to implement a viewer that shows differences between two files.

EditorStats - Adds a tools menu item and hooks it up to a dialog with editor statistics. This project is the basis of the Adding an editor statistics OpenTool to the Tools menu tutorial.

NodeDemo - Explains how to create a new file node type and a viewer to display the contents of that file type. It also shows you how to add menu items to popup (context) menus. This project is the basis of the Adding a file node type and a viewer tutorial.

LineCommentHandler - Show how to change a keybinding and make it talk to the editor.

PropertyEditor - Creates a property editor that has special knowledge of the Design environment.

DynamicClassLoader - This sample is a convenient IDE extension, that provides you with a mechanism to test your own Open Tools (in the developping phase), without having to restart JBuilder everytime.

ModifyCaret - How to change the shape of the caret.

ModifyKeyBinding - How to change keybindings in all the editor emulations.

UserBrief - An example that shows how to make a Brief emulation.

UserEmacs - An example that shows how to make an Emacs emulation.

UserCUA - An example that shows how to make an CUA emulation.

samplevcs - Demonstrates how to implement a VCS backend that integrates into the new VCS framework of JBuilder 4.

Also check the samples/OpenToolsAPI directory for the very latest additions to the OpenTools samples.