简体   繁体   中英

Is it possible to arrange ordering/sequence of handledmenuitem in frangment.e4xmi

I have eclise rcp applications, I have added menu items using handledmenuitem in frangment.e4xmi. But I want to arrange those in some sequence. for example在此处输入图片说明

This is the menu items, but these are placed in order help - log - dg -apdu - validation but I want those into the order of log - validation - help - dg -apdu. How can I achieve this ? please note that some menu items are from different projects (I mean I have 3 different fragment.e4xmi for these menu items).

In your main Application.e4xmi add Separator items to the menu and give them unique ids, you can turn off 'to be rendered' if you don't want the separator shown. Arrange them in the order you want the menu items to show.

For example: 示例菜单

Then in your fragment.e4xmi use a Menu Contribution to add to the menu and specify a Position for the menu item, something like:

after=separator-id

For example: 示例菜单贡献

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM