![]() | The Java Developer's Guide to Eclipse |
This example plug-in is discussed in Chapter 21, Action Contributions: The Integration Fast Track.
Also see project com.ibm.jdg2e.actions
that contains examples that are not 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.
To run this example, install the project com.ibm.jdg2e.actions.ide in your workspace and launch the run-time instance of Eclipse (Run > Run As > Eclipse Application).
There are three actions available. Depending on the specific action, they
may appear in the Workbench menu bar or toolbar, a view's menu or toolbar,
or as a context menu (pop-up menu) in a view or editor. Here are the instructions
for running each action.



) or in the context menu of the active text editor when text is selected (see figures below).
It is enabled when you select text.
The context menu label is: JDG2E: Word Count.

The table below lists the action classes, class descriptions, and links to the Javadoc.
| Class (all) | Description |
CloseUnmodifiedViewAction |
Navigator view action to close unmodified editors. |
CloseUnmodifiedWorkbenchAction |
Workbench menu action to close unmodified editors. |
ShowModifiedAction |
Show only modified files in the Navigator view. |
TextEditorWordCountAction |
Text editor action. |
© Copyright International Business Machines Corporation, 2003, 2004. All Rights Reserved.
Code or samples provided herein are provided without warranty of any kind.