Skip to main content



      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 08:00 Go to next message
Eclipse UserFriend
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 00:43 Go to previous messageGo to next message
Eclipse UserFriend
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 01:14 Go to previous message
Eclipse UserFriend
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:How to localize and theme the context menu of an editor tab
Goto Forum:
  


Current Time: Sat Nov 08 18:21:46 EST 2025

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

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

Back to the top