Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How do I get the Bundle-Version for my app?
How do I get the Bundle-Version for my app? [message #871379] Sat, 12 May 2012 18:39 Go to next message
Eclipse UserFriend
I'd like to be able to display my App version number in a couple of places.
How can I retrieve the Bundle-Version that I set in the manifest?
Re: How do I get the Bundle-Version for my app? [message #871399 is a reply to message #871379] Sun, 13 May 2012 05:03 Go to previous messageGo to next message
Eclipse UserFriend
In your bundle activator using getBundle.getVersion().

public void start(BundleContext bundleContext) throws Exception {
Version version = bundleContext.getBundle().getVersion();
System.out.println(version.toString());
..
}

Good Sunday Morning from Prague!
Libor

On 05/13/2012 12:39 AM, Missing name Mising name wrote:
> I'd like to be able to display my App version number in a couple of places.
> How can I retrieve the Bundle-Version that I set in the manifest?
>
Re: How do I get the Bundle-Version for my app? [message #871466 is a reply to message #871399] Sun, 13 May 2012 20:01 Go to previous message
Eclipse UserFriend
Thanks, that works great!
Previous Topic:Command not defined
Next Topic:how to catch all the unhandled exceptions within a RCP before it(thread) dies?
Goto Forum:
  


Current Time: Wed Jul 23 08:13:46 EDT 2025

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

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

Back to the top