Image Chapter 6. Actions

Actions, like everything else in Eclipse, are defined through various extension points so that new actions can be easily added at various points throughout the Eclipse framework. Actions appear in several different places throughout the Eclipse IDE, including the menu bar, toolbars, and context menus. Filters control when an action is visible and enabled for selection by a user.

This chapter covers all this with examples that show how to use actions and action sets in the example Favorites plug-in.

6.1 IAction versus IActionDelegate

An Eclipse action is composed of several parts, including the XML declaration of the action in ...

Get Eclipse: Building Commercial-Quality Plug-ins, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.