Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Toolbar item's not visible in addition menu (>>) of toolbar
Toolbar item's not visible in addition menu (>>) of toolbar [message #555830] Sun, 29 August 2010 10:10 Go to next message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Steps to recreate:
1. Create 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.
Re: Toolbar item's not visible in addition menu (>>) of toolbar [message #556279 is a reply to message #555830] Tue, 31 August 2010 14:46 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Andrew,

if your code works in RCP, but not in RAP, it looks like a bug. Please
file a bugzilla with a snippet to reproduce it.

Thanks, Ivan

On 08/29/2010 1:10 PM, Andrew wrote:
> Steps to recreate:
> 1. Create 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.
Re: Toolbar item's not visible in addition menu (>>) of toolbar [message #556372 is a reply to message #556279] Wed, 01 September 2010 04:44 Go to previous message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Hi Ivan, thx for your reply.
I try to do it in RCP and it doesn't work too. Strange but in eclipse IDE if I reduce toolbar size then it's not empty.
Previous Topic:Is it mandatory to call dispose method on a widget
Next Topic:DateCellEditor
Goto Forum:
  


Current Time: Fri Apr 19 03:45:10 GMT 2024

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

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

Back to the top