Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ToolBarManager alignment(ToolBarManager alignment when wrapping across multiple lines)
ToolBarManager alignment [message #1697865] Tue, 09 June 2015 08:03
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
We are struggling with the alignment of toolbar managers when the tool bar wraps across multiple lines. When the toolbar fits on one line everything is aligned to the left. However when the toolbar does not fit on one line and wraps across several lines the first toolbar manager on every line is aligned to the left and grabs all excessive space making the following ones on the same line right aligned. See the attached file for an illustration.

We have our own action bar advisor and the code roughly look like this:
  @Override
  protected void fillCoolBar(ICoolBarManager coolBar) {


    IToolBarManager partnerBar = new ToolBarManager();
    partnerBar.add(new GroupMarker("group11"));
    partnerBar.add(new GroupMarker("group12"));
    coolBar.add(new ToolBarContributionItem(partnerBar, "com.acme.toolbar1"));
    

    IToolBarManager partnerBar = new ToolBarManager();
    partnerBar.add(new GroupMarker("group21"));
    partnerBar.add(new GroupMarker("group22"));
    coolBar.add(new ToolBarContributionItem(partnerBar, "com.acme.toolbar2"));

    // ...
  }


The actions are contributed with action sets.

index.php/fa/22118/0/

[Updated on: Tue, 09 June 2015 08:04]

Report message to a moderator

Previous Topic:Launching RCP with JNLP problem
Next Topic:MultiPageEditor - Close option for Pages
Goto Forum:
  


Current Time: Thu Mar 28 23:56:57 GMT 2024

Powered by FUDForum. Page generated in 0.02751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top