I'd like to change at runtime the name of my eclipse RCP application, so to include the name of the project the user is working on.
This seems a pretty simple question, but I was only able to find a way to set the name statically (in the article "branding your application").
There is a simpler way to do it, after I tried to do it as suggested here, I got into problems getting a hold of the Application
or WorkbenchWindowAdvisor
. The solution was simply to get the shell of the workbench window and setText
:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().setText("My new title");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With