Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the PythonPlugin class
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="engine"></param>
 /// <param name="watcher"></param>
 internal PythonPlugin(string filename, ScriptEngine engine, FSWatcher watcher)
 {
     // Store filename
     Filename = filename;
     PythonEngine = engine;
     this.watcher = watcher;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the JavaScriptPlugin class
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="engine"></param>
 /// <param name="watcher"></param>
 internal JavaScriptPlugin(string filename, Engine engine, FSWatcher watcher)
 {
     // Store filename
     Filename = filename;
     JavaScriptEngine = engine;
     this.watcher = watcher;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the PythonPlugin class
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="engine"></param>
 /// <param name="watcher"></param>
 internal PythonPlugin(string filename, ScriptEngine engine, FSWatcher watcher)
 {
     // Store filename
     Filename = filename;
     Name = Core.Utility.GetFileNameWithoutExtension(Filename);
     PythonEngine = engine;
     this.watcher = watcher;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the LuaPlugin class
 /// </summary>
 /// <param name="filename"></param>
 internal LuaPlugin(string filename, LuaExtension luaExt, FSWatcher watcher)
 {
     // Store filename
     Filename = filename;
     this.luaExt = luaExt;
     LuaEnvironment = luaExt.LuaEnvironment;
     this.watcher = watcher;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the LuaPlugin class
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="luaExt"></param>
 /// <param name="watcher"></param>
 internal LuaPlugin(string filename, LuaExtension luaExt, FSWatcher watcher)
 {
     // Store filename
     Filename = filename;
     Name = Core.Utility.GetFileNameWithoutExtension(Filename);
     this.luaExt = luaExt;
     LuaEnvironment = luaExt.LuaEnvironment;
     this.watcher = watcher;
 }
Esempio n. 6
0
 /// <summary>
 /// Loads plugin watchers used by this extension
 /// </summary>
 /// <param name="pluginDirectory"></param>
 public override void LoadPluginWatchers(string pluginDirectory)
 {
     // Register the watchers
     var watcher = new FSWatcher(pluginDirectory, "*.js");
     Manager.RegisterPluginChangeWatcher(watcher);
     loader.Watcher = watcher;
     watcher = new FSWatcher(pluginDirectory, "*.coffee");
     Manager.RegisterPluginChangeWatcher(watcher);
     coffeeLoader.Watcher = watcher;
 }
Esempio n. 7
0
 /// <summary>
 /// Loads plugin watchers used by this extension
 /// </summary>
 /// <param name="PluginDirectory"></param>
 public override void LoadPluginWatchers(string PluginDirectory)
 {
     // Register the watcher
     Watcher = new FSWatcher(PluginDirectory, "*.cs");
     Manager.RegisterPluginChangeWatcher(Watcher);
 }
Esempio n. 8
0
 /// <summary>
 /// Loads plugin watchers used by this extension
 /// </summary>
 /// <param name="plugindir"></param>
 public override void LoadPluginWatchers(string plugindir)
 {
     // Register the watcher
     watcher = new FSWatcher(plugindir, "*.lua");
     Manager.RegisterPluginChangeWatcher(watcher);
     loader.Watcher = watcher;
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the CoffeeScriptPlugin class
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="engine"></param>
 /// <param name="watcher"></param>
 internal CoffeeScriptPlugin(string filename, Engine engine, FSWatcher watcher) : base(filename, engine, watcher)
 {
     Name = Core.Utility.GetFileNameWithoutExtension(Filename);
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the CoffeeScriptPlugin class
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="engine"></param>
 /// <param name="watcher"></param>
 internal CoffeeScriptPlugin(string filename, Engine engine, FSWatcher watcher)
     : base(filename, engine, watcher)
 {
 }