VS 2013扩展:从项目管理类 [英] VS 2013 Extending: managing class from an item
问题描述
我想做的事情有点复杂,但是我花了数小时试图找到正确的文档,关于我需要运气才能实现的接口:
我需要VS编写一些javascript代码并将其插入到某个文件夹中,从以下位置开始:
What I'm trying to do it's, i think, kinda complex, but i've spent hours trying to find the right documentation, about the interfaces I need to achieve this with no luck:
I need VS write some javascript code and insert it in a certain folder, starting from:
- 对已经创建的项目中的文件执行右键单击操作.
- 它会打开一个窗口,该窗口获取有关我右键单击该文件中该类的功能的信息.此外,它应该具有一个下拉菜单,其中所有类的名称都位于特定文件夹下.
- 如果我从此dd中选择一项,然后按确定"按钮,IDE应该使用此选定类的属性以及右键单击文件中的功能作为信息来编写一些代码,以创建javascript文件 并将其保存到项目的某个文件夹中.
- Right click action, on a file from an already created project.
- A window it's open that gets information about the functions from that class in that file that i've right clicked. Besides, it should have a dropdown, with all the names of classes that reside under a certain folder.
- If I select an item from this dd and press the "ok" button, the IDE should write some code, using the properties of this selected class, and the functions from the right-clicked file, as information, to create the javascript file and save it into the project on a certain folder of it.
我已经完成了该过程的某些部分:
I've achieved some parts of this process:
- 我知道如何使用初始化功能在上下文菜单中创建选项.
- 部分地,我知道如何在项目中创建新文件.
- 我知道如何创建窗口工具以及我想要实现的几乎所有界面(进行下拉菜单以及类似的东西).
但是关键的部分是管理已经创建的类,并按照我需要的方式从它们中收集信息.
But the critical part is managing the already created classes and gather info from them in the manner I need.
推荐答案
您好,Oliver ,
Hi Oliver,
>>管理已创建的类并从中收集信息
>>managing the already created classes and gather info from them
您可以从获取类信息. CodeClass2 接口.
You could get class information from CodeClass2 inferface.
最好的问候,
王丽
Best Regards,
Li Wang
这篇关于VS 2013扩展:从项目管理类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!