Here you can find the source of getBundleVersion(Manifest manifest)
public static String getBundleVersion(Manifest manifest)
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.util.jar.Attributes; import java.util.jar.Manifest; public class Main { public static String getBundleVersion(Manifest manifest) { if (manifest == null) { return null; }/* w w w. java2 s . co m*/ Attributes mainAttributes = manifest.getMainAttributes(); if (mainAttributes == null) { return null; } return mainAttributes.getValue("Bundle-Version"); //$NON-NLS-1$ } }