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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:56:39+00:00 2026-06-08T21:56:39+00:00

I added a JFace action to the workbench coolbar of an RCP application using

  • 0

I added a JFace action to the workbench coolbar of an RCP application using a subclass of the ActionBarAdvisor. For some reason the corresponding menu is drawn with what I guess is an extra line. It is causing the whole coolbar including the list of open perspectives to be way too tall:

enter image description here

Anyone know how to make it single-lined? I tried adding SWT.SINGLE style to the Action constructor, but that didn’t help. Any help would be appreciated. Thanks.

ActionBarAdvisor.fillCoolBar() implementation:

protected void fillCoolBar(final ICoolBarManager coolBar) {

    final IToolBarManager toolbar = new ToolBarManager(coolBar.getStyle());
    coolBar.add(new ToolBarContributionItem(toolbar, "main"));

    toolbar.add(new Pulldown());
}

Action implementation:

public class Pulldown extends Action {

    public Pulldown() {
        super("Saved Layouts");
        setMenuCreator(menuCreator);
    }

    ...
}
  • 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-08T21:56:40+00:00Added an answer on June 8, 2026 at 9:56 pm

    It’s not direct the answer of your problem, but I would declare the button as menu extension with dropdown/radio style. Thus you don’t have to change the code of the coolbar.Here is a tutorial about toolbar menu contributions.

    <extension
              point="org.eclipse.ui.menus">
           <menuContribution
                 allPopups="false"
                 locationURI="toolbar:de.example.com">
              <command
                    commandId="de.abas.erp.wb.base.marker.commands.PullDownCommand"
                    icon="icons/16x16/layouts.png"
                    label="Saved Layouts"
                    style="pulldown">
              </command>
           </menuContribution>
        </extension>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working though a book SWT/JFace IN ACTION by Manning Press. When I added
I'm trying yo use JFreeChart in RCP application with a simple view. I added
I added a configuration variable in application.rb such as module Www class Application <
I added the Video type to our Facebook Open Graph application so we could
I'm trying to dynamically show/hide (or create/dispose) a SWT Menu (via JFace MenuManager) at
I added <script type=text/javasript src=<?=base_url()?>js/jquery-1.7.2.min.js></script> in application/views/templatess/header.php and to post data to Controller using
I added a new new application and am trying to use Open Graph to
Edit: added some error checking code and found error '1282' is being thrown when
ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen
I added a custom install action to my installer to add one of my

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.