Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Toolbar item's not visible in addition menu (>>) of toolbar
Toolbar item's not visible in addition menu (>>) of toolbar [message #557153] Sun, 05 September 2010 13:22
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Hi, I've got a problem with toolbar. My OS is Linux with eclipse 3.6.
In eclipse IDE when you reduce toolbar area (change window size) you can see addition menu (>>) which contains element's of toolbar. When I try to change toolbar size in my app I don't see any items in toolbar.

Steps to recreate:

1. Create hello world example and add toolbar. For example add it manual:

ApplicationActionBarAdvisor
@Override
	  protected void fillCoolBar(ICoolBarManager coolBar) {
	    final ToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.LEFT);
	    coolBar.add(new ToolBarContributionItem(toolbar, "main"));
	    toolbar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	  }
	  
ApplicationWorkbenchWindowAdvisor

	public void preWindowOpen() {
              ...
	  configurer.setShowCoolBar(true);
	 ...
	 }


2. In plugin.xml add extension point menu and add commands to toolbar

 <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="toolbar:main?after=additions">
		<command
               commandId="org.eclipse.ui.perspectives.showPerspective"
               style="push">
         </command>
		 <command
               commandId="org.eclipse.ui.perspectives.showPerspective"
               style="push">
         </command>
		 <command
               commandId="org.eclipse.ui.perspectives.showPerspective"
               style="push">
         </command>
	   </menuContribution>
  </extension>


3. Now if you launch app and reduce size of main window then you can see addition menu (>>) of toolbar wich is empty.
Previous Topic:selectionChanged listener not getting called when View is minimized
Next Topic:global variable can access by all Views and Editors
Goto Forum:
  


Current Time: Sat Dec 20 09:45:32 GMT 2014

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

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