Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » how to get product name in applications's title bar?(how to get product name in applications's title bar?)
how to get product name in applications's title bar? [message #1759184] Fri, 07 April 2017 12:00 Go to next message
Julia Kurde is currently offline Julia KurdeFriend
Messages: 79
Registered: November 2011
Location: Berlin, Germany
Member
Hi,

is it possible to get the product name in the applications's title bar programmatically? The product version would also help.

I tried to call
* Display.getAppName()
* Platform.getProduct()

in the ApplicationWorkbenchWindowAdvisor to set the title. But both return null.

Product name and version are defined in the warproduct file.
What else needs to be done?

Thanks,
Julia

PS:
In the input form for this forum I have black font on black background... a bit inconvenient... just a hint!
Re: how to get product name in applications's title bar? [message #1759189 is a reply to message #1759184] Fri, 07 April 2017 04:43 Go to previous messageGo to next message
David Marina is currently offline David MarinaFriend
Messages: 3
Registered: March 2017
Location: Darmstadt
Junior Member
Hi Julia,

If I understood your problem, you can use the "org.eclipse.rap.ui.branding" extension point to set the application title and request it later programatically.

The following code can be used to modify the browser's tab title:

JavaScriptExecutor executor = RWT.getClient().getService(JavaScriptExecutor.class);
executor.execute("document.title = \"" + text + "\";");

Regards,
David
Re: how to get product name in applications's title bar? [message #1759265 is a reply to message #1759184] Sun, 09 April 2017 05:14 Go to previous message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 117
Registered: February 2013
Senior Member
https://eclipse.org/rap/developers-guide/devguide.php?topic=application-configuration.html&version=2.0
Previous Topic:How to remove padding value from perspective's page layout
Next Topic:E4/RAP Compatibility Layer Workbench
Goto Forum:
  


Current Time: Thu Aug 16 20:10:22 GMT 2018

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

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

Back to the top