Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Eclipse Application Toolbar (Coolbar) Problem.(Eclipse Application Toolbar (Coolbar) Problem.)
Eclipse Application Toolbar (Coolbar) Problem. [message #1110648] Tue, 17 September 2013 02:30 Go to next message
Harsha P is currently offline Harsha P
Messages: 4
Registered: September 2013
Junior Member
I have written a eclipse application, rcp application and now i am trying to add all actions(coolbar icons) present in eclipse to my application but however the coolbar has alignment problem !! i have attached the image of the problem.
Yes i have setShowCoolBar(true);
I Used code like this:

public fillCoolBar(ICoolBarManager coolbar){
    IToolBarManager fileToolbar1 = new ToolBarManager();
    fileToolbar1.add(new Separator(IWorkbenchActionConstants.NEW_GROUP));
    fileToolbar1.add(saveAction);
    coolbar.add(fileToobar1);
    coolbar.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}


Above saveAction is obtained from:
ActionFactory.SAVE.create(window)


I have also registered these actions as:
register(saveAction)
in the makeActions(IWorkbenchWindow) function.
Also the icons are not movable!
I am using eclipse rcp juno SR2.
Any help is appreciated.
Thanks in advance

[Updated on: Tue, 17 September 2013 02:31]

Report message to a moderator

Re: Eclipse Application Toolbar (Coolbar) Problem. [message #1140186 is a reply to message #1110648] Wed, 16 October 2013 03:28 Go to previous messageGo to next message
Chandrayya Kumarswamimath is currently offline Chandrayya Kumarswamimath
Messages: 19
Registered: August 2010
Location: Bangalore
Junior Member
Try coolbar.setLockLayout(true);Action/icons inside coolbar are not movable/draggable. I am not getting what do you need exactly.
Re: Eclipse Application Toolbar (Coolbar) Problem. [message #1175225 is a reply to message #1140186] Thu, 07 November 2013 10:59 Go to previous messageGo to next message
Robert K. is currently offline Robert K.
Messages: 14
Registered: July 2009
Junior Member
I am having similar problem. In difference to Harsha I create my toolbar items via plugin.xml.

Note that adding "?after=additions" to the locationURI does not make a difference.

<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar">
	<toolbar id="MyPlugin.toolbars.myToolbar">
		<command> ...</command>
		<command> ...</command>
		<command> ...</command>
	</toolbar>
</menuContribution>


When I start my application and clear the applications workspace the toolbar-items appear correctly on the left side:

http://i43.tinypic.com/nd1pqx.png

When I close the app, and re-start it without clearing the workspace the toolbar-items are right-aligned:

http://i42.tinypic.com/2mxob41.png

Is there any chance to get my toolbar-items always appear on the left side?
Re: Eclipse Application Toolbar (Coolbar) Problem. [message #1176164 is a reply to message #1175225] Fri, 08 November 2013 01:55 Go to previous message
Harsha P is currently offline Harsha P
Messages: 4
Registered: September 2013
Junior Member
I fixed this problem by having the css file in my project. You can google regarding adding css in appliucation
Previous Topic:Eclipse 4 RCP book available in its second edition
Next Topic:different ApplicationWorkbenchWindowAdvisor for new window
Goto Forum:
  


Current Time: Wed Apr 16 12:03:09 EDT 2014

Powered by FUDForum. Page generated in 0.13076 seconds