The Java Developer's Guide to EclipseThe Java Developer's Guide to Eclipse

These example plug-ins are discussed in Chapter 21, Action Contributions: The Integration Fast Track. See also project com.ibm.jdg2e.actions.ide that contains examples that are dependent on the Eclipse IDE. It is helpful to have these projects installed and available in your Eclipse workspace when you read this chapter. To study these examples you will need to examine both the Java code and the plug-in manifest file.

Running the Example

To run the example, install the project com.ibm.jdg2e.actions in your workspace launch the run-time instance of Eclipse (Run > Run As > Eclipse Application).

There are two actions available. Below are the instructions for running each one.

  1. HelloAction
    This simple "Hello, World" action illustrates how to assign a key binding to an action. The action appears on the toolbar and the menu bar; the key sequence Shift+F11 is assigned to this action.

    'Hello, World' action assigned to key binding

  2. ShowPerspectives
    This action appears as a workbench toolbar pulldown action and displays all available perspectives in a convenient pulldown.

    Show all perspectives action pulldown

Roadmap of the Example

See Chapter 21 which discusses these examples in detail.

The table below lists the example classes, class descriptions, and links to the Javadoc.

Class (all) Description
HelloAction Displays a simple message dialog.
ShowPerspectivesAction Shows all available perspectives in a pulldown menu.

© Copyright International Business Machines Corporation, 2003, 2004, 2006. All Rights Reserved.
Code or samples provided herein are provided without warranty of any kind.