Skip to main content


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 06:30 Go to next message
Harsha P is currently offline Harsha PFriend
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 06:31]

Report message to a moderator

Re: Eclipse Application Toolbar (Coolbar) Problem. [message #1140186 is a reply to message #1110648] Wed, 16 October 2013 07:28 Go to previous messageGo to next message
Chandrayya Kumarswamimath is currently offline Chandrayya KumarswamimathFriend
Messages: 26
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 15:59 Go to previous messageGo to next message
Robert K. is currently offline Robert K.Friend
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 06:55 Go to previous message
Harsha P is currently offline Harsha PFriend
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: Fri Apr 19 15:04:07 GMT 2024

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

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

Back to the top