public static String getNpmPath() {
   String nodePath =
       Activator.getDefault().getPreferenceStore().getString(PreferenceConstants.NODE_PATH);
   String npmPath = nodePath.substring(0, nodePath.lastIndexOf(File.separator) + 1);
   if (OSUtils.isWindows()) {
     return npmPath + Constants.NPM_CMD;
   } else {
     return npmPath + Constants.NPM;
   }
 }
  public static String getBundledPath(String path) {
    Bundle bundle = Activator.getDefault().getBundle();
    if (bundle == null) {
      LogUtil.info("getBundlePath(" + path + " bundle is null");
      return "";
    }
    try {
      URL location = FileLocator.toFileURL(bundle.getEntry("/"));
      File file = new File(location.getPath(), path);
      LogUtil.info("BundledPath: " + file.getAbsolutePath());

      return file.getAbsolutePath();
    } catch (Exception ex) {
      LogUtil.error(ex);
      return "";
    }
  }
 public static String getCompletionsJsonPath() {
   return Activator.getDefault()
       .getPreferenceStore()
       .getString(PreferenceConstants.COMPLETIONS_JSON_PATH);
 }
 public static String getExpressVersion() {
   return Activator.getDefault()
       .getPreferenceStore()
       .getString(PreferenceConstants.EXPRESS_VERSION);
 }
 public static String getExpressPath() {
   return Activator.getDefault().getPreferenceStore().getString(PreferenceConstants.EXPRESS_PATH);
 }
 public static String getNodePath() {
   return Activator.getDefault().getPreferenceStore().getString(PreferenceConstants.NODE_PATH);
 }