Eclipse开普勒RCP CoolBar Actions CSS [英] Eclipse Kepler RCP CoolBar Actions CSS

查看:120
本文介绍了Eclipse开普勒RCP CoolBar Actions CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题的屏幕截图类似,我的RCP应用程序包含在凉爽的行动之间烦人的空间。我的猜测是,这是因为我在 plugin.xml 中使用不推荐的扩展(即 viewActions / strike> actionSet s)。

Similar to this question's screenshot, my RCP App has those annoying spaces between actions on the coolbar. My guess is that it's because I'm using deprecated extensions in the plugin.xml (i.e. viewActions actionSets).

现在,我不想开始更改所有这些操作实现遵守新的规则(主要是因为这些行为有很多)。

For now, I don't want to begin changing all those action implementations to comply with the new rules (mostly because there are A LOT of those actions).

问题:我可以以某种方式将CSS样式应用于 CoolBar ,以便额外的空格被抓住了吗?

Question: Can I somehow apply CSS styling to that CoolBar so that extra spaces are grabbed by the actions?

到目前为止的路


  1. 没有e4 STUFF! 此问题不符合我的要求。

  2. 我的其他(类似)问题。随意填写这个人的答案。

  3. RAP CSS - 这是否也适用于RCP?

  1. NO e4 STUFF! This question does not satisfy mine.
  2. My other (similar) question. Feel free to complete that guy's answer.
  3. RAP CSS - does this apply to RCP as well?


推荐答案

查看正确对齐工具栏条目的调试插件,它首先定义了如下工具栏:

Looking at the debug plugin which does align the toolbar entries correctly it first defines a toolbar like this:

<extension 
     point="org.eclipse.ui.menus">
  <menuContribution
         locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
      <toolbar
            id="org.eclipse.debug.ui.main.toolbar"
            label="%DebugActionSet.label">
         <separator
               name="breakpointGroup"
               visible="true">
         </separator>
         <separator
               name="threadGroup"
               visible="true">
         </separator>
         <separator
               name="stepGroup">
         </separator>
         <separator
               name="stepIntoGroup">
         </separator>
         <separator
               name="stepOverGroup">
         </separator>
         <separator
               name="stepReturnGroup">
         </separator>
         <separator
               name="emptyStepGroup">
         </separator>
         <separator
               name="renderGroup"
               visible="true">
         </separator>
      </toolbar>
   </menuContribution>

然后在 actionSet 中引用定义的工具栏:

and then in the actionSet references the defined toolbar:

      <action
           toolbarPath="org.eclipse.debug.ui.main.toolbar/breakpointGroup"
           ... other stuff ...
           id="org.eclipse.debug.ui.actions.SkipAllBreakpoints">
     </action>

这篇关于Eclipse开普勒RCP CoolBar Actions CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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