private void SaveSettingsValues()
        {
            if (!CheckAllSettingsValues())
            {
                return;
            }
            JumpCsvConfig jCsvConfig = null;

            if (!JumpCsvEditorHelper.ContainsJumpCsvAssetsFiles())  // if not found settings asset, create assets
            {
                jCsvConfig = JumpCsvConfig.CreateAsset();
            }
            else   // update value
            {
                jCsvConfig = JumpCsvConfig.GetAsset();
            }
            jCsvConfig.mCsvSpreadSheetFileDirectory = JumpCsvEditorHelper.MakeRelativePath(Application.dataPath, CsvSpreadSheetFileDirectory);
            jCsvConfig.mCsvSourceCodeFileDirectory  = JumpCsvEditorHelper.MakeRelativePath(Application.dataPath, CsvSourceCodeFileDirectory);
            jCsvConfig.mCsvBinDataDirectory         = JumpCsvEditorHelper.MakeRelativePath(Application.dataPath, CsvBinDataDirectory);
            jCsvConfig.mCsvDataClassPostfixName     = CsvDataClassPostfixName;
            jCsvConfig.mCsvDataClassPrefixName      = CsvDataClassPrefixName;
            jCsvConfig.mCsvDataStructPostfixName    = CsvDataStructPostfixName;
            jCsvConfig.mCsvDataStructPrefixName     = CsvDataStructPrefixName;
            jCsvConfig.mExcludeCsvFiles             = new List <string>(ExcludeCsvFiles.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
            jCsvConfig.mCsvExtensionNames           = new List <string>(CsvExtensionNames.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
            EditorUtility.SetDirty(jCsvConfig);
            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
            AssetDatabase.ImportAsset("Assets/" + JumpCsvConfig.JumpCsvConfigAssetFile, ImportAssetOptions.ForceSynchronousImport);
            JumpCsvConfig.UpdateValue();
        }
 public void OnEnable()
 {
     JumpCsvConfig.UpdateValue();
 }