简体   繁体   English

Eclipse E4中的默认命令处理程序

[英]Default command handler in Eclipse E4

I am migrating an existing plugin to the Eclipse E4 API. 我正在将现有插件迁移到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. 我们已经定义了一些带有默认处理程序的自定义命令,并且我试图将这些命令迁移到E4,但是我还没有看到如何为E4中的命令定义默认处理程序。

Has this functionality been removed or where can I find it? 此功能是否已删除或在哪里可以找到?

Any Handler you define in the top level 'Handlers' list in the Application.e4xmi is effectively the default handler for the command. 您在Application.e4xmi的顶级“处理程序”列表中定义的任何处理程序实际上都是该命令的默认处理程序。

Eclipse will choose the most specific handler for a command. Eclipse将为命令选择最特定的处理程序。 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. 因此,还可以为特定模型元素(例如,零件或窗口)定义处理程序,并且当该元素为当前元素时,将优先使用这些处理程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM