Repair Eclipse Workbench UI :)


Sometime (after a Eclipse crash) I have this annoying multiple Mylyn Task-Selection-Control in the Trimbar…

eclipse_trimbar_multiple_mylyn.png

To repair this You have to open the worspace file

  1. open „\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi“
  2. search for „previous.gif“
  3. and remove the duplicates
    <trimBars xmi:id="_cfqbyil5EeeuIsR_tocjyg" elementId="org.eclipse.ui.trim.status" side="Bottom">
      <children xsi:type="menu:ToolBar" xmi:id="_cfqbyyl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim.container">
        <tags>Draggable</tags>
        <children xsi:type="menu:HandledToolItem" xmi:id="_cfqbzCl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim" iconURI="platform:/plugin/org.eclipse.mylyn.tasks.ui/icons/etool16/navigate-previous.gif" command="_cfuteCl5EeeuIsR_tocjyg">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfqbzSl5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
<menu xmi:id="_cfqbzil5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim"/>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_cfqbzyl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim.control" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.menus.CompatibilityWorkbenchWindowControlContribution">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim.control"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfqb0Cl5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
        </children>
        <children xsi:type="menu:HandledToolItem" xmi:id="_cfqb0Sl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim" iconURI="platform:/plugin/org.eclipse.mylyn.tasks.ui/icons/etool16/navigate-previous.gif" command="_cfuteCl5EeeuIsR_tocjyg">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfqb0il5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
<menu xmi:id="_cfqb0yl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim"/>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_cfqb1Cl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim.control" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.menus.CompatibilityWorkbenchWindowControlContribution">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim.control"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfqb1Sl5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
        </children>
        <children xsi:type="menu:HandledToolItem" xmi:id="_cfrBUCl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim" iconURI="platform:/plugin/org.eclipse.mylyn.tasks.ui/icons/etool16/navigate-previous.gif" command="_cfuteCl5EeeuIsR_tocjyg">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfrBUSl5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
<menu xmi:id="_cfrBUil5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim"/>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_cfrBUyl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim.control" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.menus.CompatibilityWorkbenchWindowControlContribution">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim.control"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfrBVCl5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
        </children>
        <children xsi:type="menu:HandledToolItem" xmi:id="_cfrBVSl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim" iconURI="platform:/plugin/org.eclipse.mylyn.tasks.ui/icons/etool16/navigate-previous.gif" command="_cfuteCl5EeeuIsR_tocjyg">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfrBVil5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
<menu xmi:id="_cfrBVyl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim"/>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_cfrBWCl5EeeuIsR_tocjyg" elementId="org.eclipse.mylyn.tasks.ui.trim.control" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.menus.CompatibilityWorkbenchWindowControlContribution">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim.control"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_cfrBWSl5EeeuIsR_tocjyg" coreExpressionId="programmatic.value"/>
        </children>
      </children>

to

 <trimBars xmi:id="_tqssyyLJEeezVYOpc1Z9Mg" elementId="org.eclipse.ui.trim.status" side="Bottom">
      <children xsi:type="menu:ToolBar" xmi:id="_tqsszCLJEeezVYOpc1Z9Mg" elementId="org.eclipse.mylyn.tasks.ui.trim.container">
        <tags>Draggable</tags>
        <children xsi:type="menu:HandledToolItem" xmi:id="_tqss1yLJEeezVYOpc1Z9Mg" elementId="org.eclipse.mylyn.tasks.ui.trim" iconURI="platform:/plugin/org.eclipse.mylyn.tasks.ui/icons/etool16/navigate-previous.gif" command="_tq16ByLJEeezVYOpc1Z9Mg">
          <persistedState key="IIdentifier" value="org.eclipse.mylyn.tasks.ui/org.eclipse.mylyn.tasks.ui.trim"/>
          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_tqss2CLJEeezVYOpc1Z9Mg" coreExpressionId="programmatic.value"/>
          <menu xmi:id="_tqss2SLJEeezVYOpc1Z9Mg" elementId="org.eclipse.mylyn.tasks.ui.trim"/>
        </children> 
      </children>
Advertisements