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 7795283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:02:07+00:00 2026-06-01T23:02:07+00:00

In many documents like here it is described, that old extension points org.eclipse.ui.actionSets ,

  • 0

In many documents like here it is described, that old extension points org.eclipse.ui.actionSets, org.eclipse.ui.viewActions, org.eclipse.ui.editorActions, and org.eclipse.ui.popupMenus from Eclipse 3.2 were replaced by the new org.eclipse.ui.menus extension point in Eclipse 3.3.

So my simple question:
How do I use the new extension point org.eclipse.ui.menus to contribute to an editorAction toolbar (org.eclipse.ui.editorActions) ?

I tried stuff like the following in many different locationURI values but it never worked.

   <extension point="org.eclipse.ui.menus">
      <menuContribution locationURI="toolbar:my.editor.id">
         <command
               commandId="my.command.id"
               icon="icons/somicon.gif"
               label="Do my command"
               style="push">
         </command>
      </menuContribution>
   </extension>

My command never shows up and I dont get any feedback in the console. So what is the correct property for locationURI, to get my command in there??

The command works on other toolbars, it also works via the old extension point (with modifications of the command class).

Why I need the new extension piont?
Because it not only supports commands, but also controls, where you can contribute more than a simple button.

Final update

The solution below intended to replace the functionality from editorActions extension point. Due to the bug mentioned in the answers last comment, that replacement is not really useful.
Anyhow accepted…

  • 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-06-01T23:02:08+00:00Added an answer on June 1, 2026 at 11:02 pm

    I managed to contribute to the main toolbar in Eclipse using this locationURI:

    locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"
    

    So, for example, to contribute my command to the toolbar only when my editor is active:

    <extension
         point="org.eclipse.ui.menus">
      <menuContribution
          locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
         <toolbar
               id="mytoolbar.id"
               label="my toolbar">
            <command
                  commandId="command.id"
                  icon="icons/sample.gif"
                  id="mytoolbar.command.id"
                  label="Do my command"
                  style="push">
               <visibleWhen
                     checkEnabled="false">
                         <with
                             variable="activePartId">
                              <equals
                                 value="my.editor.id">
                              </equals>
                         </with>
              </visibleWhen>
            </command>
         </toolbar>
      </menuContribution>
    </extension>
    

    Where command.id is the id of my command.

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

Sidebar

Related Questions

I have many collections of documents in a mongo database that look like this:
So I have a User model that :has_many other models like Documents, Videos, Posts
I have many layers in the Documents that will be displayed on different user
I'm wondering how many images I can store in the iPhone documents directory so
OK, I need to scan many HTML / XHTML documents to see if a
Enter, Apache Maven : Like many things in the software world, Maven seems to
I would like to have a counter, that counts backwards, and is stopped if
I would like to use latexmk to compile my LaTeX documents in Emacs. Especially
I have a Git super project with many submodules. I'd like to be able
Here's the situation: I have a web-based ticket application, multiple users. One problem that

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.