[英]Adding a structured tagged value through c# add-in in enterprise architect
I have a Add-in in C#, and I am running Enterprise Architect through it. 我有一个C#加载项,并且正在通过它运行Enterprise Architect。 And now I have an access to "system output window" in Enterprise Architect, which can be displayed/docked over EA's GUI.
现在,我可以访问Enterprise Architect中的“系统输出窗口”,可以通过EA的GUI进行显示/停靠。 And now I need to get access to "Properties window" by which I can create a new(my own custom tab)like Property dialogue window inside that window.
现在,我需要访问“属性窗口”,通过它我可以在该窗口内创建一个新的(我自己的自定义标签),如“属性”对话框。
The Subject is to have a "structured Tagged Values" created from Add-in. 主题将具有从加载项创建的“结构化标记值”。 And those tagged values have to come inside a "CUSTOMIZED NEW TAB" in the Properties window of an element.
并且这些标记的值必须位于元素的“属性”窗口中的“自定义新标签”中。 For that we need to get the control over the "properties window" in Enterprise Architect from Add-in.
为此,我们需要从外接程序中获得对Enterprise Architect中“属性窗口”的控制。
Plz suggest us the way on how to create a "NEW TAB" inside a properties window of an element. Plz建议我们如何在元素的属性窗口内创建“ NEW TAB”。
Enterprise Architect does not (yet) have any possibility to extend any existing popup windows with extra tabs. Enterprise Architect(尚未)没有任何可能扩展带有额外选项卡的现有弹出窗口。 (This is also not possible using MDG technologies. Some MDG technologies extend EA, but these are incorporated in the application and not loaded through a separate XML file.)
(使用MDG技术也是不可能的。某些MDG技术扩展了EA,但这些技术已合并到应用程序中,并且未通过单独的XML文件加载。)
The API does offer you an option to create new controls in the form of; 该API确实为您提供了创建以下形式的新控件的选项:
Repository.AddTab
Repository.AddTab
Repository.AddWindow
Repository.AddWindow
You could show your desired content of an API element in such a control. 您可以在此类控件中显示API元素的所需内容。 Or you could, using WPF or Windows Forms, create and show a custom popup window.
或者,您可以使用WPF或Windows窗体创建并显示一个自定义弹出窗口。 You could even make that popup window modal as to block any further access (like the properties window does).
您甚至可以将该弹出窗口设置为模态,以阻止任何进一步的访问(就像属性窗口一样)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.