如何在Eclipse RCP工具栏上添加分隔符? [英] How do I add a spacer to an Eclipse RCP toolbar?

查看:100
本文介绍了如何在Eclipse RCP工具栏上添加分隔符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Eclipse工具栏上的两个按钮之间添加一个空格。这两个按钮均在plugin.xml中为插件定义。我已尝试按照以下XML代码段指定分隔符,但未显示任何内容。

I would like to add a gap between two buttons on an Eclipse toolbar. Both these buttons are defined in the plugin.xml for the plugin. I have tried specifying a separator, as per the following XML snippet, but nothing shows up.

<menuContribution locationURI="toolbar:com.bogus.viewId.MyView">
    <command
          commandId="com.bogus.filters.menu"
          icon="icons/filter.gif"
          label="Filter Menu"
          style="pulldown"
          tooltip="Filter Menu" />
 </menuContribution>
 <menuContribution locationURI="toolbar:com.bogus.viewId.MyView">
     <separator name="com.bogus.separator1" />
 </menuContribution>
 <menuContribution locationURI="toolbar:com.bogus.viewId.MyView">
    <command
          commandId="com.bogus.commands.dangerous"
          icon="icons/bomb.png"
          label="BOOM!"
          tooltip="BOOM!" />
 </menuContribution>

另外,有人知道我在哪里可以找到plugin.xml的一个不错的架构定义。文件?这是迄今为止我能找到的最好的,但它很差。

As a side note, does anyone know where I can find a decent schema definition for the plugin.xml file? This is the best I could find so far, but its poor.

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse。 platform.doc.isv / reference / misc / plugin_manifest.html

推荐答案

因此,分隔符元素可以

<separator name="com.bogus.separator1" visible="true" />

我是通过随机谷歌搜索发现的。仍然找不到用于plugin.xml的合适的架构定义。

I found this out by random googling. Still couldn't find a decent schema definition for the plugin.xml.

这篇关于如何在Eclipse RCP工具栏上添加分隔符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆