Embed presentation
Download as PDF, PPTX



This document discusses how to conditionally show, hide, enable, and disable commands in Eclipse menus and context menus. It explains that the activeWhen clause is used to show or hide commands, while the enabledWhen clause is used to grey out or enable commands. A command is enabled if at least one handler is active and enabled. It provides an example of using the enabledWhen clause in a plugin.xml extension to only enable a command when a specific part is active.

