Commands in Eclipse: some advanced patterns

Session Type: 
Standard [35 minutes]

The Command Framework has much more flexibility for providing plugin developers with appropriate behaviour depending on when they want it. Menu Contributions allow commands to be placed in menus and toolbars, source providers enhance the application state available to the command framework Evaluation Service, and services help scope the interactions between the client code and the workbench.

In this talk we will cover:

  • How to contribute new variables to make new application state available
  • Patterns for similar behaviour to legacy action extensions using core expressions and activeWhen, enabledWhen, and visibleWhen
  • How to provide toggle or radio button behaviour with commands
  • How to provide a dynamic dropdown menu with commands in toolbars

Schedule info


Eclipse Platform/Eclipse 4
Experience level: