Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Adding composite above menubar when using PlatformUI.createAndRunWorkbench(display, advisor)
Adding composite above menubar when using PlatformUI.createAndRunWorkbench(display, advisor) [message #1008829] Wed, 13 February 2013 23:30 Go to next message
Wishwas Mohan is currently offline Wishwas MohanFriend
Messages: 38
Registered: July 2009
Member
Hi,

I am working on a RAP application which was migrated from an RCP. So, I am using the PlatformUI.createAndRunWorkbench(display, advisor) method in my createUI method. I was wondering if there is anyway I could get a composite above the Menubar (Header / Banner) like in the RAP example (http://rap.eclipsesource.com/rapdemo/examples#input).

From the examples code, I see that this is just a composite created in the CreateUI.

I was wondering if there is anyway I could get something similar in my application without changing the call to PlatformUI.createAndRunWorkbench(display, advisor).

Appreciate any help !

Thanks.
Re: Adding composite above menubar when using PlatformUI.createAndRunWorkbench(display, advisor) [message #1008841 is a reply to message #1008829] Thu, 14 February 2013 00:16 Go to previous messageGo to next message
Wishwas Mohan is currently offline Wishwas MohanFriend
Messages: 38
Registered: July 2009
Member
While just setting a title on the configurer is definitely an option, this is just a string and cannot have images or links as in the Examples demo.
Re: Adding composite above menubar when using PlatformUI.createAndRunWorkbench(display, advisor) [message #1009191 is a reply to message #1008841] Thu, 14 February 2013 16:20 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1295
Registered: July 2009
Senior Member

The RAP Workbench provides a specific API for custom layouts and
styling. See this article in the RAP developer's guide. For an online
example of a workbench with a custom layout, see [2].

Regards,
Ralf

[1]
http://eclipse.org/rap/developers-guide/devguide.php?topic=look-and-feel.html&version=2.0
[2] http://rap.eclipsesource.com/workbenchdemo/business

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Adding composite above menubar when using PlatformUI.createAndRunWorkbench(display, advisor) [message #1009273 is a reply to message #1009191] Thu, 14 February 2013 20:00 Go to previous messageGo to next message
Wishwas Mohan is currently offline Wishwas MohanFriend
Messages: 38
Registered: July 2009
Member
Thanks, Ralf. This helps a lot. Is the source for this example checkedin in GIT ?
Re: Adding composite above menubar when using PlatformUI.createAndRunWorkbench(display, advisor) [message #1009526 is a reply to message #1009273] Fri, 15 February 2013 09:24 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1295
Registered: July 2009
Senior Member

On 02/14/2013 09:00 PM, Wishwas Mohan wrote:
> Thanks, Ralf. This helps a lot. Is the source for this example checkedin
> in GIT ?

Sure, it's in the examples folder in the rap repository [1].

The bundle org.eclipse.rap.design.example provides the "business"
example design, the demo itself is in org.eclipse.rap.demo.

[1] http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/examples

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Adding composite above menubar when using PlatformUI.createAndRunWorkbench(display, advisor) [message #1009911 is a reply to message #1009526] Sat, 16 February 2013 01:02 Go to previous message
Wishwas Mohan is currently offline Wishwas MohanFriend
Messages: 38
Registered: July 2009
Member
Thanks a lot, Ralf. I will play around with it and see how far I can get.
Previous Topic:NullPointerException in UISessionBuilder after launching Site in Browser
Next Topic:Forms with RAP/RWT 2.0
Goto Forum:
  


Current Time: Thu Dec 18 17:33:23 GMT 2014

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

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