Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
John Lussmyer is currently offline John Lussmyer
Messages: 96
Registered: December 2010
Member
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
Libor Jelinek is currently offline Libor Jelinek
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

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
John Lussmyer is currently offline John Lussmyer
Messages: 96
Registered: December 2010
Member
Thanks, that works great!
Previous Topic:Command not defined
Next Topic:RCP export for mac os
Goto Forum:
  


Current Time: Tue Jul 29 13:07:42 EDT 2014

Powered by FUDForum. Page generated in 0.18765 seconds