예제 #1
0
파일: Plug.cs 프로젝트: devjerome/3P
        /// <summary>
        /// Called when the current document is saved,
        /// no matter if the document is a Progress file or not
        /// </summary>
        public static void DoNppDocumentSaved()
        {
            // the user can open a .txt and save it as a .p
            DoNppDocumentSwitched();

            // update function prototypes
            if (IsCurrentFileProgress)
            {
                ProGenerateCode.UpdateFunctionPrototypesIfNeeded(true);
            }

            // if it's a conf file, import it
            ShareExportConf.TryToImportFile(CurrentFilePath);
        }
예제 #2
0
        /// <summary>
        /// Called when the current document is saved,
        /// no matter if the document is a Progress file or not
        /// </summary>
        public static void DoNppDocumentSaved()
        {
            // if it's a conf file, import it
            ShareExportConf.TryToImportFile(Npp.CurrentFileInfo.Path);

            if (!Npp.CurrentFileInfo.IsProgress)
            {
                return;
            }

            // Display parser errors if any
            if (Config.Instance.DisplayParserErrorsOnSave && Npp.CurrentFileInfo.IsCompilable)
            {
                ProCodeFormat.DisplayParserErrors(true);
            }

            // update function prototypes
            ProGenerateCode.Factory.UpdateFunctionPrototypesIfNeeded(true);
        }