简体   繁体   English

将菜单项添加到VS2008 DSL中的上下文菜单

[英]Adding a Menu item to the context Menu in a VS2008 DSL

I'm currently trying to create a Bi-directional DSL for the company I'm working for and want to add a context menu to the diagram to provide a mechanism for the user to request a code import. 我目前正在尝试为我正在工作的公司创建双向DSL,并希望向图中添加上下文菜单,以为用户提供请求代码导入的机制。 I know that in VS2005 the Commands.ctc file is used to achieve this and 2008 appears to be using Commands.ctc. 我知道在VS2005中,Commands.ctc文件用于实现此目的,而2008年似乎正在使用Commands.ctc。 However its not very easy trying to find out how this works. 但是,尝试找出其工作原理并非易事。

我终于找到了一个非常好的博客,确切解释了如何执行此操作,希望其他人也能对此有所帮助: Sebastian Talamoni的博客

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

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