Example #1
0
 private static void setInfo(NppData notepadPlusData)
 {
     _plugin          = GetPluginInstance();
     _plugin._nppData = notepadPlusData;
     _plugin.OnInit?.Invoke();
     _plugin.CreateMenuItems();
 }
 static void setInfo(NppData notepadPlusData)
 {
     try
     {
         PluginBase.nppData = notepadPlusData;
         Main.CommandMenuInit();
     }
     catch (Exception exception)
     {
         MessageBox.Show($"{exception.Message}\r\n{exception.StackTrace}{(exception.InnerException == null ? string.Empty : $"\r\nInner Exception :\r\n{exception.InnerException.Message}\r\n{exception.InnerException.StackTrace}")}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #3
0
        public void setInfo(NppData notepadPlusData)
        {
            try
            {
                PluginBase.nppData = notepadPlusData;
                Bootstrapper.Init();
            }
            catch
            {
                var dir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Notepad++\plugins\logs\CSScriptNpp");

                MessageBox.Show("Cannot load the plugin.\nThe error information has been logged into '" + dir + "' directory", "CS-Script");
                throw;
            }
        }
Example #4
0
        static void setInfo(NppData notepadPlusData)
        {
            //System.Diagnostics.Debug.Assert(false);
            try
            {
                Bootstrapper.Init();

                Plugin.NppData = notepadPlusData;

                InitPlugin();
            }
            catch
            {
                var dir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Notepad++\plugins\logs\CSScriptNpp");

                MessageBox.Show("Cannot load the plugin.\nThe error information has been logged into '" + dir + "' directory", "CS-Script");
                throw;
            }
        }
 static void setInfo(NppData notepadPlusData)
 {
     PluginBase.nppData = notepadPlusData;
     Main.CommandMenuInit();
 }
Example #6
0
 static void setInfo(NppData notepadPlusData)
 {
     PluginProxy.setInfo(notepadPlusData);
 }
Example #7
0
 static void setInfo(NppData notepadPlusData)
 {
     Plugin.NppData = notepadPlusData;
     Bootstrapper.Init();
 }
 static void setInfo(NppData notepadPlusData)
 {
     PluginBase.nppData = notepadPlusData;
     CodeStatsPackage.CommandMenuInit();
 }
Example #9
0
 static void setInfo(NppData notepadPlusData)
 {
     GitPlugin.Instance.nppData = notepadPlusData;
     OnSetInfo();
 }
Example #10
0
 private static void setInfo(NppData notepadPlusData)
 {
     NppData = notepadPlusData;
     Plug.DoPlugLoad();
 }
Example #11
0
 public void __setInfo(NppData notpadPlusData)
 {
     nppData = notpadPlusData;
     CommandMenuInit();
 }
Example #12
0
 public void setInfo(NppData notepadPlusData)
 {
     this.nppData = notepadPlusData;
     this.InitPlugin();
 }
 static void setInfo(NppData notepadPlusData)
 {
     PluginBase.nppData = notepadPlusData;
     Main.CommandMenuInit();
 }
 static void setInfo(NppData notepadPlusData)
 {
     PluginBase.NppData = notepadPlusData;
     WakaTime.CommandMenuInit();
 }
Example #15
0
 /// <summary>
 /// Sets the information.
 /// </summary>
 /// <param name="notepadPlusData">The notepad plus data.</param>
 public static void setInfo(NppData notepadPlusData)
 {
     plugin.setInfo(notepadPlusData);
 }
 static void setInfo(NppData notepadPlusData)
 {
     PluginBase.nppData = notepadPlusData;
     NppPluginReceiver.CommandMenuInit();
 }