在ADTF 2中,我们可以使用NSSUBPROP实现这一点。我正在ADTF3中寻找类似的功能。
发布于 2018-10-24 07:31:15
这仍然是可能的,但您必须在主要版本的两个概念之间有所区别。在ADTF 3.x中,配置是从运行时封装的,这意味着ADTF配置编辑器将不加载.adtfplugins,它将加载.plugindescriptions,这可以从插件本身生成,并与自定义信息合并。对于运行时,只需要设置属性的类型和值。对于CE,可以有组合框,这必须在.plugindescription中手动完成,并在必要时与生成的一个合并。有一个例子缺少(即将到来),但要这样做,请看这里:
<property_set_description>
<property_descriptions>
<property_description>
<name>operation</name>
<type>tInt</type>
<value>0</value>
<list>
<property_list_enumeration>
<name>Add</name>
<value>0</value>
</property_list_enumeration>
<property_list_enumeration>
<name>Subtract</name>
<value>1</value>
</property_list_enumeration>
<property_list_enumeration>
<name>Multiply</name>
<value>2</value>
</property_list_enumeration>
<property_list_enumeration>
<name>Divide</name>
<value>3</value>
</property_list_enumeration>
</list>
<list_extendable>false</list_extendable>
</property_description>
...请看一下样式表-> plugindescription.html
在即将发布的版本中,还将提供UI支持(插件描述编辑器)。
https://stackoverflow.com/questions/52829773
复制相似问题