/// <summary>
        /// Refresh the whole content.
        /// Called in case of asset modification to always be up to date.
        /// </summary>
        public void RefreshContent()
        {
            // Look for plugin path and set it
            _plugin_path = FindPluginPath();
            _save_name   = "";
            _path_holder = new AssetInfoHolder();
            // Retrieve existing PackageConfigurationSave assets
            _saves = new List <PackageConfigurationSave>(Resources.FindObjectsOfTypeAll <PackageConfigurationSave>());
            for (int i = _saves.Count - 1; i >= 0; --i)
            {
                if (_saves[i].name == "")
                {
                    _saves.RemoveAt(i);
                }
            }

            // Create the strings used in save selector (popup)
            _save_names = new List <string>();
            _save_names.Add("-- none --");
            foreach (PackageConfigurationSave pcs in _saves)
            {
                _save_names.Add(pcs.name);
            }
            SelectSaveByID(_selected_save_id);
        }
 public void SavePackageConfiguration(AssetInfoHolder asset_holder)
 {
     if (asset_holder != null)
     {
         List <AssetInfo> asset_list = asset_holder.GetAssetInfos();
         if (asset_list != null)
         {
             asset_path_list = new List <string>();
             foreach (AssetInfo asset in asset_list)
             {
                 if (asset.is_directory == false && asset.is_selected == true)
                 {
                     asset_path_list.Add(asset.path);
                 }
             }
         }
     }
 }