0

I am migrating an existing plugin to the Eclipse E4 API.

We have defined some custom commands with default handlers, and I am trying to migrate these commands to E4, but I have not seen how to define a default handler for a command in E4.

Has this functionality been removed or where can I find it?

Anthon
  • 69,918
  • 32
  • 186
  • 246
woelfle
  • 557
  • 1
  • 7
  • 23

1 Answers1

0

Any Handler you define in the top level 'Handlers' list in the Application.e4xmi is effectively the default handler for the command.

Eclipse will choose the most specific handler for a command. So can also define Handlers for particular model element (such as parts or windows) and these will be use in preferences when that element is current.

greg-449
  • 109,219
  • 232
  • 102
  • 145