/*******************************************************************************
 * Copyright (c) 2015 IBH SYSTEMS GmbH.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBH SYSTEMS GmbH - initial API and implementation
 *******************************************************************************/
package org.eclipse.packagedrone;

import org.osgi.framework.FrameworkUtil;
import org.osgi.framework.Version;

public final class VersionInformation
{
    public static final String VERSION;

    public static final String VERSION_UNQUALIFIED;

    public static final String USER_AGENT;

    private VersionInformation ()
    {
    }

    static
    {
        final Version version = FrameworkUtil.getBundle ( VersionInformation.class ).getVersion ();
        VERSION = version.toString ();
        VERSION_UNQUALIFIED = new Version ( version.getMajor (), version.getMinor (), version.getMicro () ).toString ();

        USER_AGENT = String.format ( "PackageDrone/%s (+http://packagedrone.org)", VersionInformation.VERSION_UNQUALIFIED );
    }
}

@@ -679,97 +679,918 @@
     
-public static final String VERSION;%0A%0A    public static final String VERSION_UNQUALIFIED;%0A
+/**%0A     * The product version as string%0A     */%0A    public static final String VERSION;%0A%0A    /**%0A     * The product version as unqualified string%0A     * %3Cp%3E%0A     * This is the same version string as %7B@link #VERSION%7D but without the build%0A     * qualifier (4th component).%0A     * %3C/p%3E%0A     */%0A    public static final String VERSION_UNQUALIFIED;%0A%0A    /**%0A     * The name of the product.%0A     * %3Cp%3E%0A     * This is %22Eclipse Package Drone%22.%0A     * %3C/p%3E%0A     */%0A    public static final String PRODUCT = %22Eclipse Package Drone%22;%0A%0A    /**%0A     * The product name in combination with the version%0A     * %3Cp%3E%0A     * This is %7B@code PRODUCT + %22 %22 + VERSION%7D%0A     * %3C/p%3E%0A     */%0A    public static final String VERSIONED_PRODUCT;%0A%0A    /**%0A     * A string which can be used as HTTP user agent%0A     * %3Cp%3E%0A     * It contains the product name in a suitable format, the URL and the%0A     * unqualified version.%0A     * %3C/p%3E%0A     */
 %0A   
@@ -1955,16 +1955,70 @@
 ng ();%0A%0A
+        VERSIONED_PRODUCT = PRODUCT + %22 %22 + VERSION;%0A%0A
         

add a versioned product name and some explanations