Mar*_* A. 4 java eclipse eclipse-plugin
我有一个带有自己图标的工具栏项,在plugin.xml文件中定义如下:
<action
class="MyActionClass"
id="MyActionID"
label="MyActionLabel"
menubarPath="MyActionMenuBarPath"
toolbarPath="MyActionToolBarPath"
icon="icon/myicon.png" <---- this one
...
</action>
Run Code Online (Sandbox Code Playgroud)
如何在需要时动态更改此设置?我的意思是从代码中改变它
请改用org.eclipse.ui.menus扩展点,并使用动态添加menuContribution.该班的动态应该继承和实施方法来创建一个按钮.ControlContributioncreateControl
| 归档时间: |
|
| 查看次数: |
2294 次 |
| 最近记录: |