Skip to main content


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
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 105
Registered: December 2010
Senior 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
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 105
Registered: December 2010
Senior Member
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: Tue Mar 19 09:39:35 GMT 2024

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

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

Back to the top