/// <summary>
        /// 에디터 갱신
        /// </summary>
        private void RefreshEditor()
        {
            string _filePath = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName();

            excelLoaderPath = _filePath.Remove(0, _filePath.IndexOf("Assets")).Replace("\\", "/").Replace("ExcelLoader_Editor.cs", "");

            scriptGenerator = new ScriptGenerator();

            multiListViewState             = new TreeViewState();
            multiListView                  = new ExcelFileTreeView(multiListViewState, settingData, ref listSearchedFiles, null);
            multiListViewState.selectedIDs = listMultiSelects;

            singleListViewState = new TreeViewState();
            singleListView      = new ExcelFileTreeView(singleListViewState, settingData, ref listSearchedFiles, OnClickSingleSelectExcelList);
            singleListView.SetSelection(new List <int>()
            {
                excelSelectID
            });

            sheetListViewState = new TreeViewState();
            sheetListView      = new ExcelSheetTreeView(sheetListViewState, settingData, ref listExcelSheets, OnClickSheetList);

            searchField = new SearchField();
            if (currentLoadType == eExcelLoaderType.SingleSelect)
            {
                sheetListView.SetSelection(new List <int>()
                {
                    sheetSelectID
                });
                OnClickSingleSelectExcelList(excelSelectID, lastSelectExcelName);
                OnClickSheetList(sheetSelectID, lastSelectSheetName);
            }
        }
        private void Awake()
        {
            instance = this;
            string _filePath = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName();

            excelLoaderPath = _filePath.Remove(0, _filePath.IndexOf("Assets")).Replace("\\", "/").Replace("ExcelLoader_Editor.cs", "");
            Init();
        }
 public static void ShowErrorMessage(string message, bool includeStackTrace)
 {
     string stackTrace = null;
     if (includeStackTrace)
     {
         //generate stack trace
         stackTrace = new StackTrace().ToString();
         //remove top frame from the trace (which is a call to ShowErrorMessage)
         stackTrace = stackTrace.Remove(0, stackTrace.IndexOf(Environment.NewLine, StringComparison.Ordinal) + 1);
     }
     ShowMessageBox(message, MessageBoxImage.Error, stackTrace);
 }