gpt4 book ai didi

eclipse-rcp - 在 Eclipse RCP 中,是否可以同时显示工具栏项的图标和标签?

转载 作者:行者123 更新时间:2023-12-02 21:35:15 25 4
gpt4 key购买 nike

如果iconlabel都在plugin.xml中定义,那么只有icon会会显示,但如果删除了 icon 属性,则仅显示 label

是否可以同时显示?

图标:

<toolbar id="my.toolbar">
<command commandId="my.Command"
icon="import.gif" id="commandID"
label="Import Config" style="push">
</command>
</toolbar>

标签:

<toolbar id="my.toolbar">
<command commandId="my.Command"
label="Import Config" style="push">
</command>
</toolbar>

最佳答案

请使用mode选项和FORCE_TEXT值:

mode - For actions appearing in a toolbar, FORCE_TEXT will show text even if there is an icon. See ActionContribuitonItem.

http://help.eclipse.org/helios/nftopic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_viewActions.html

关于eclipse-rcp - 在 Eclipse RCP 中,是否可以同时显示工具栏项的图标和标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21574936/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com