title: RCP Customize Perspective bar
body: <p>I have to customize the perspective bar in an RCP application. In the extensions tab I have this hierarchy:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;extension point="org.eclipse.ui.menus"&gt;
     &lt;menuContribution locationURI="toolbar:org.eclipse.ui.trim.command1"&gt;
        &lt;toolbar id="thevendor.horizontalBar1"&gt;
           &lt;control
              class="thevendor.MyButton"
              id="thevendor.MyButton"&gt;
           &lt;/control&gt;
           &lt;control
              class="thevendor.AnotherContribution"
              id="thevendor.AnotherContribution"&gt;
           &lt;/control&gt;
        &lt;/toolbar&gt;
     &lt;/menuContribution&gt;
  &lt;/extension&gt;
  </code></pre>
  
  <p>the problem is that RCP display the toolbar with <code>MyButton</code>, <code>AnotherContribution</code> and a perspective menu that I don't want. I try to set <code>IWorkbenchWindowConfigurer.setShowPerspectiveBar</code> to <code>false</code>, <em>but the whole toolbar disappears</em>.
  How to hide only this perspective menu, showing only <code>MyButton</code> and <code>AnotherContribution</code>?</p>