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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:01:48+00:00 2026-05-24T00:01:48+00:00

I cannot find anywhere how to add a button to the top-right corner of

  • 0

I cannot find anywhere how to add a button to the top-right corner of the Eclipse form, same as on the screenshot provided.

eclispe-rcp form with a button

The button seems to be a part of the form title area, is it part of the form functionality or its just another composite which looks like a form title? Any source code examples (even drafts) highly appreciated.

Edit:

I have managed to add buttons to the section but still not to the form itself, I have used an example found here:

http://svn.regilo.org/repository/regilo/trunk/org.regilo.menu/src/org/regilo/menu/editor/page/MenuPageMaster.java

private void createSectionToolbar(Section section, FormToolkit toolkit) {
    ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
    ToolBar toolbar = toolBarManager.createControl(section);
    final Cursor handCursor = new Cursor(Display.getCurrent(),
            SWT.CURSOR_HAND);
    toolbar.setCursor(handCursor);
    // Cursor needs to be explicitly disposed
    toolbar.addDisposeListener(new DisposeListener() {
        public void widgetDisposed(DisposeEvent e) {
            if ((handCursor != null) && (handCursor.isDisposed() == false)) {
                handCursor.dispose();
            }
        }
    });

    // save
    CommandContributionItemParameter saveContributionParameter = new CommandContributionItemParameter(
            editor.getSite(), null,
            "it.wellnet.easysitebox.menu.commands.saveMenu",
            CommandContributionItem.STYLE_PUSH);
    saveContributionParameter.icon = RegiloCoreImages.getInstance().DESC_UPDATE;

    CommandContributionItem saveMenu = new CommandContributionItem(
            saveContributionParameter);

    toolBarManager.add(saveMenu);

    toolBarManager.update(true);

    section.setTextClient(toolbar);
}

Still no luck with the form itself though.

  • 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-24T00:01:49+00:00Added an answer on May 24, 2026 at 12:01 am

    You can get the toolbarmanager like this:

    IManagedForm mform = formPage.getManagedForm();
    IToolBarManager toolbar = mform.getForm().getToolBarManager();
    

    Now you should be able to add items to the toolbar using the toolbar manager APIs as per usual.

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

Sidebar

Related Questions

I cannot find this in the documentation anywhere. Does anyone know if this is
This seems to be a common problem but I cannot find a solution. I
It seems that Microsoft wants Silverlight to take off, yet I cannot find an
This may be a really stupid question, but I cannot find anything anywhere as
I cannot find comparison of these parsing technique. Which one is most commonly used?
I get this message: Cannot find the X.509 certificate using the following search criteria:
I have stfw but I cannot find a simple / standalone way to create
I have a few things that I cannot find a good way to perform
I have just started using silverlight 2 beta and cannot find how to or
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.