internal static void DoPlugStart() { if (OnPlugReady != null) { OnPlugReady(); } // subscribe to static events ProEnvironment.OnEnvironmentChange += FileExplorer.RebuildFileList; ProEnvironment.OnEnvironmentChange += DataBase.UpdateDatabaseInfo; DataBase.OnDatabaseInfoUpdated += AutoComplete.RefreshStaticItems; ParserHandler.OnParseStarted += () => { CodeExplorer.Refreshing = true; }; ParserHandler.OnParseEnded += AutoComplete.RefreshDynamicItems; ParserHandler.OnParseEnded += CodeExplorer.UpdateCodeExplorer; AutoComplete.OnUpdatedStaticItems += Parser.UpdateKnownStaticItems; Keywords.Import(); Snippets.Init(); FileTag.Import(); // initialize the list of objects of the autocompletion form AutoComplete.RefreshStaticItems(); // Simulates a OnDocumentSwitched when we start this dll IsCurrentFileProgress = Abl.IsCurrentProgressFile; // to correctly init isPreviousProgress DoNppBufferActivated(true); // triggers OnEnvironmentChange via ProEnvironment.Current.ReComputeProPath(); // Make sure to give the focus to scintilla on startup WinApi.SetForegroundWindow(Npp.HandleNpp); }