// Path: src/main/java/com/ccnode/codegenerator/enums/UrlManager.java
// public class UrlManager {
// 
//     private static String GENERATOR_URL = "http://www.codehelper.me/generator/";
//     private static String MAIN_PAGE = "https://github.com/zhengjunbase/codehelper.generator";
//     private static String POST_URL = "http://www.codehelper.me/generator/post";
//     private static String DONATE_CLICK_URL = "http://www.codehelper.me/generator" ;
// 
//     public static String getUrlSuffix (){
//         return "?id=" + SettingService.getUUID() + "&version=" + VersionManager.getCurrentVersion();
//     }
// 
//     public static String getMainPage() {
//         return MAIN_PAGE + getUrlSuffix();
//     }
// 
// 
// 
//     public static String getPostUrl() {
//         return POST_URL + getUrlSuffix();
//     }
// 
// 
//     public static String getDonateClickUrl() {
//         return DONATE_CLICK_URL + getUrlSuffix() + "#toc_4";
//     }
// 
// 
// }


import com.ccnode.codegenerator.enums.UrlManager;
import com.intellij.ide.browsers.BrowserLauncher;
import com.intellij.ide.browsers.WebBrowserManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
package com.ccnode.codegenerator.view;


/**
 * What always stop you is what you always believe.
 * <p>
 * Created by zhengjun.du on 2016/04/16 21:30
 */
public class ShowLearnMoreAction extends AnAction {

    public void actionPerformed(AnActionEvent event) {
// Path: src/main/java/com/ccnode/codegenerator/enums/UrlManager.java
// public class UrlManager {
// 
//     private static String GENERATOR_URL = "http://www.codehelper.me/generator/";
//     private static String MAIN_PAGE = "https://github.com/zhengjunbase/codehelper.generator";
//     private static String POST_URL = "http://www.codehelper.me/generator/post";
//     private static String DONATE_CLICK_URL = "http://www.codehelper.me/generator" ;
// 
//     public static String getUrlSuffix (){
//         return "?id=" + SettingService.getUUID() + "&version=" + VersionManager.getCurrentVersion();
//     }
// 
//     public static String getMainPage() {
//         return MAIN_PAGE + getUrlSuffix();
//     }
// 
// 
// 
//     public static String getPostUrl() {
//         return POST_URL + getUrlSuffix();
//     }
// 
// 
//     public static String getDonateClickUrl() {
//         return DONATE_CLICK_URL + getUrlSuffix() + "#toc_4";
//     }
// 
// 
// }


// Path: src/main/java/com/ccnode/codegenerator/view/ShowLearnMoreAction.java
import com.ccnode.codegenerator.enums.UrlManager;
import com.intellij.ide.browsers.BrowserLauncher;
import com.intellij.ide.browsers.WebBrowserManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;

package com.ccnode.codegenerator.view;


/**
 * What always stop you is what you always believe.
 * <p>
 * Created by zhengjun.du on 2016/04/16 21:30
 */
public class ShowLearnMoreAction extends AnAction {

    public void actionPerformed(AnActionEvent event) {
        BrowserLauncher.getInstance().browse(UrlManager.getMainPage() , WebBrowserManager.getInstance().getFirstActiveBrowser());