Get Product Version

public static String getProductVersion() {
        final IProduct product = Platform.getProduct();
        final Bundle bundle = product.getDefiningBundle();
        final Version v = bundle.getVersion();
        return v.toString();
    }