Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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);
 }
Exemplo 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;
 }
Exemplo 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);
 }
Exemplo 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)
 {
 }