@@ -0,0 +1,1150 @@
+/**%0A * Created by z1 on 8/14/15.%0A */%0Apackage com.zafarella.intellij.plugin.randoop;%0A%0Aimport com.google.common.base.Charsets;%0Aimport com.google.common.base.Throwables;%0Aimport com.google.common.io.Resources;%0A%0Aimport java.io.IOException;%0Aimport java.net.URL;%0Aimport java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0A%0A%0Apublic class Version %7B%0A%0A    private static final String PLUGIN_VERSION;%0A%0A    static %7B%0A        try %7B%0A            URL url = Version.class.getClassLoader().getResource(%22META-INF/plugin.xml%22);%0A            PLUGIN_VERSION = parseVersionFromFile(url);%0A        %7D catch (Exception e) %7B%0A            throw Throwables.propagate(e);%0A        %7D%0A    %7D%0A%0A    private static String parseVersionFromFile(URL url) throws IOException %7B%0A        String text = Resources.toString(url, Charsets.UTF_8);%0A%0A        Pattern versionTagPattern = Pattern.compile(%22.*?%3Cversion%3E(.+?)%3C/version%3E%22);%0A        Matcher matcher = versionTagPattern.matcher(text);%0A        if (matcher.find()) %7B%0A            return matcher.group(1);%0A        %7D else %7B%0A            return %22%3Cunknown%3E%22;%0A        %7D%0A    %7D%0A%0A    public static String get() %7B%0A        return PLUGIN_VERSION;%0A    %7D%0A%0A%0A%7D%0A

add version provider