How to order actions in menus in Eclipse RCP

Posted by Marcos Scriven on Stack Overflow See other posts from Stack Overflow or by Marcos Scriven
Published on 2010-02-12T15:59:22Z Indexed on 2010/04/18 9:53 UTC
Read the original article Hit count: 293

Filed under:

If I add action within an extension point thus:

    <action
           class="com.mycompany.MyAction"
           id="mycompany.myaction.MyAction"
           menubarPath="actions"
    />

How can I control its ordering programatically? It looks like they are simply ordered alphabetically according to their ID. I don't want to have to give them names such as '001-z', '002-a', just to get 'z' to appear before 'a'. It would also be a nightmare re-ordering them later.

© Stack Overflow or respective owner

Related posts about eclipse-rcp