Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7055265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:43:39+00:00 2026-05-28T03:43:39+00:00

At the moment I have two menus in my RCP application: File and Help.

  • 0

At the moment I have two menus in my RCP application:
File and Help.

The File menu is created via a command:

<extension point="org.eclipse.ui.menus">
  <menuContribution allPopups="false" 
                    locationURI="menu:org.eclipse.ui.main.menu">
     <menu
           id="fileMenu"
           label="File"
           mnemonic="F"
           tooltip="Main Menu">
        <command
              commandId="myPlugin.bundle.menuCommands.Exit"
              label="Exit"
              mnemonic="E"
              style="push"
              tooltip="Exits MyPlugin">
        </command>
     </menu>
  </menuContribution>
  </extension>

<extension point="org.eclipse.ui.commands">
  <command defaultHandler="myPlugin.bundle.commands.exit.ExitHandler"
        id="myPlugin.bundle.menuCommands.Exit"
        name="Exit">
  </command>
</extension>

The Help menu (with only the About menu item) is created via the respective action in ApplicationActionBarAdvisor:

protected void makeActions(IWorkbenchWindow window) {
    aboutAction = ActionFactory.ABOUT.create(window);
    register(aboutAction);
}

protected void fillMenuBar(IMenuManager menuBar) {
    MenuManager helpMenu = new MenuManager("&Help", "helpMenu");
    helpMenu.add(aboutAction);
    menuBar.add(helpMenu);
}

Now, the Help menu comes before the File menu in the menu bar. This is obviously not how it’s supposed to be. How can I change the order of the menus?

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:43:40+00:00Added an answer on May 28, 2026 at 3:43 am

    Ah, solved this by simply adding a MenuManager in the ApplicationActionBarAdvisor for the File menu:

    MenuManager helpMenu = new MenuManager("&Help", "helpMenu");
    MenuManager fileMenu = new MenuManager("&File", "fileMenu");
    ...
    menuBar.add(fileMenu);
    menuBar.add(helpMenu);
    

    Can I hear you go "d’uh!"? Cos that’s what I did ;).

    UPDATE:

    Is this really how it should be done though? That’d mean that for every new menu I create in the Extension Wizard, I’ll have to add a new line to ApplicationActionBarAdvisor…

    Perhaps you could share your thoughts on this, or whether it’s just an avoidable hack.

    Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that has two localization options at the moment through .resx
I have two questions. 1: At the moment I have two model classes that
At the moment I have two tables, products and options . Products contains id
I have two nested loop in XSL like this, at this moment I use
So, I have two types at the moment: const unsigned char* unencrypted_data_char; string unencrypted_data;
I am making two sites at the moment and have come up to a
I have a C# application which runs as a context menu in the system
At the moment I have two (maybe more) unordered lists which are sortable with
At the moment I have two versions of my App: normal and plus When
I have the following two routes defined in my MVC app.;- At the moment

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.