Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] How to create a pulldown toolbar entry?

Am 30.08.2011 17:18, schrieb Stefan Wiese:
I get an exception this way.
..

With the follwing fragment and a declared HandledToolItem (as a hook) in the Application  where I want to contribute to a DropDownMenu is rendered but the SubMenuItems (declared in the fragment ) are not shown.

<application>
...
    <trimBars xmi:id="_tpUWk5sUEeCdkPkDwBSBlQ">
      <children xsi:type="menu:ToolBar" xmi:id="_tpUWlJsUEeCdkPkDwBSBlQ" elementId="toolbar:org.eclipse.ui.main.toolbar">
        <children xsi:type="menu:HandledToolItem" xmi:id="_tpUWlZsUEeCdkPkDwBSBlQ" elementId="de.wiese24.billingE4.maintoolbar.merchant" label="DropDownMenu" iconURI="platform:/plugin/de.wiese24.billingE4.app/icons/sample.gif" command="_tpUWhJsUEeCdkPkDwBSBlQ"/>
        <children xsi:type="menu:HandledToolItem" xmi:id="_tpUWlpsUEeCdkPkDwBSBlQ" toBeRendered="false" visible="false" iconURI="platform:/plugin/de.wiese24.billingE4.app/icons/save_edit.gif" command="_tpUWgZsUEeCdkPkDwBSBlQ"/>
      </children>
    </trimBars>
  </children>
...
</application>


<fragment>
...
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_zL40sNMbEeC5q_H-NgTNZA" featurename="menu" parentElementId="de.wiese24.billingE4.maintoolbar.merchant">
    <elements xsi:type="menu:Menu" xmi:id="_53E6UNMbEeC5q_H-NgTNZA" elementId="menu1" label="Menu1">
      <children xsi:type="menu:HandledMenuItem" xmi:id="_DQruANMcEeC5q_H-NgTNZA" elementId="SubMenu1" label="Sub2" iconURI="platform:/plugin/de.wiese24.billingE4/src/images/settings.gif" command="_beA6MMzFEeCh252H6UHSuA"/>
      <children xsi:type="menu:HandledMenuItem" xmi:id="__EgBcNMbEeC5q_H-NgTNZA" elementId="SubMenu2" label="Sub1" iconURI="platform:/plugin/de.wiese24.billingE4/src/images/show_log.gif" command="_JDgQ8NMLEeC5q_H-NgTNZA"/>
    </elements>
  </fragments>
...
</fragment>


Do you have any further hints?

Back to the top