Пример #1
0
        public void RefreshContent()
        {
            string file = Npp.GetCurrentFile();

            if (file.IsScriptFile() || file.IsPythonFile())
            {
                membersList.Visible = true;
                if (file != currentFile)
                {
                    currentFile = file;

                    watcher.Path   = Path.GetDirectoryName(currentFile);
                    watcher.Filter = Path.GetFileName(currentFile);
                }

                if (file.IsScriptFile())
                {
                    GenerateContent(Npp.GetTextBetween(0));
                }
                else if (file.IsPythonFile())
                {
                    GenerateContentPython(Npp.GetTextBetween(0));
                }
            }
            else
            {
                membersList.Visible = false;
            }
        }