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 22:39 Go to next message
John Lussmyer is currently offline John LussmyerFriend
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 09:03 Go to previous messageGo to next message
Libor Jelinek is currently offline Libor JelinekFriend
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] Mon, 14 May 2012 00:01 Go to previous message
John Lussmyer is currently offline John LussmyerFriend
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: Sun Dec 21 06:25:40 GMT 2014

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

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