Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT.RIGHT in trim contributions toolbar
SWT.RIGHT in trim contributions toolbar [message #1696395] Tue, 26 May 2015 09:45 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
Hello,

In my application I have a toolbar (toolbar:org.eclipse.ui.trim.command2) where I contribute actions declaratively.

Since RAP 3.0 RC1 and SWT.RIGHT support, text is displayed below the icon instead of next the icon as before.

Do you know if there is a way to set SWT.RIGHT style to declarative toolbars in workbench, or something else I could do, to restore previous behavior ?

Cheers,
Arnaud

[Updated on: Tue, 26 May 2015 11:13]

Report message to a moderator

Re: SWT.RIGHT in trim contributions toolbar [message #1696431 is a reply to message #1696395] Tue, 26 May 2015 12:56 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
I managed to restore previous behavior, but I am not sure it is really clean:

I have overriden org.eclipse.ui.application.WorkbenchWindowAdvisor.createWindowContents(Shell)
	@Override
	public void createWindowContents(Shell shell) {
		super.createWindowContents(shell);
		WorkbenchWindow wdw = (WorkbenchWindow) getWindowConfigurer().getWindow();
		ITrimManager trimManager = wdw.getTrimManager();
		IWindowTrim wtrim =  new SwtRightToolBarTrimProxy("myid", wdw);
		wtrim.dock(SWT.TOP);
		trimManager.addTrim(SWT.TOP,wtrim);
	}


Do you see a better way ?

[Updated on: Tue, 26 May 2015 12:58]

Report message to a moderator

Previous Topic:[ANN] RAP 3.0 RC1 available
Next Topic:Patch RAP script from entrypoint
Goto Forum:
  


Current Time: Thu Sep 19 09:29:21 GMT 2024

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

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

Back to the top