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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:11:06+00:00 2026-05-16T23:11:06+00:00

The Eclipse RCP command framework is intended to replace the action framework as the

  • 0

The Eclipse RCP command framework is intended to replace the action framework as the mechanism for allowing plugins to contribute UI commands to the workbench. As well as defining new commands, plugins may provide handlers for default RCP commands such as “org.eclipse.ui.file.save” (full list of default commands here: http://svn2.assembla.com/svn/eclipsecommands/trunk/EclipseCommands/contents/article.html).

Using default commands brings the advantages of standard key bindings and icons, and in some cases the ability to use the built-in Eclipse actions.

For example the default editor save command can be added to the File menu with the following snippet in plugin.xml:

<extension point="org.eclipse.ui.menus">
  <menuContribution locationURI="menu:file">
    <command commandId="org.eclipse.ui.file.save"
             style="push">
    </command>
  </menuContribution>
</extension>

A handler can then be defined for this command by adding a handler definition in the handlers extension point in plugin.xml. If, however, the editors being contributed implement IEditorPart, it should be possible to simply use the built-in Eclipse save action (which takes care of tracking the active editor and dirty property updates) instead of defining a new handler.
What further steps are necessary to use the built-in save action?

  • 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-16T23:11:06+00:00Added an answer on May 16, 2026 at 11:11 pm

    It is necessary to call ActionBarAdvisor.register() to make the save action available. For example:

    public class MyActionBarAdvisor extends ActionBarAdvisor {
      public MyActionBarAdvisor(IActionBarConfigurer configurer) {
        super(configurer);
      }
      protected void makeActions(final IWorkbenchWindow window) {
        register(ActionFactory.SAVE.create(window));
      }
    }
    

    Given the addition to plugin.xml in the question, the built-in save handler will now be invoked for any active editor.

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

Sidebar

Related Questions

how do I configure an Eclipse RCP command style menu to match the different
My eclipse rcp application depends on a set of eclipse plugins, after I add
I have an eclipse rcp application. And I have a command when this command
I'm developing an Eclipse RCP application consisting of several plugins. One of those plugins
I've got a command line version of an Eclipse RCP GUI application that can
I've learned that actions in Eclipse-RCP should not be used and instead commands should
Can I use Eclipse RCP framework with google's window builder pro for desktop application
What are differences between Actions and Commands in the context of Eclipse RCP? I
I have an Eclipse RCP plugin that requires a DLL. What is the recommended
I am using the Eclipse RCP trayitem, which is described in Vogellas tutorials .

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.