Exemple #1
0
        public static IPoderosaApplication CreatePoderosaApplication(string plugin_manifest, StructuredText preference, string[] args)
        {
            string home_directory   = Directory.GetCurrentDirectory();
            InternalPoderosaWorld w = new InternalPoderosaWorld(new PoderosaStartupContext(PluginManifest.CreateByText(plugin_manifest), home_directory, preference, args, null));

            return(w);
        }
Exemple #2
0
 public InternalPoderosaWorld(PoderosaStartupContext context) {
     _instance = this;
     _startupContext = context;
     _poderosaCulture = new PoderosaCulture();
     _poderosaLog = new PoderosaLog(this);
     _adapterManager = new AdapterManager();
     _stringResource = new StringResource("Poderosa.Plugin.strings", typeof(InternalPoderosaWorld).Assembly);
     _poderosaCulture.AddChangeListener(_stringResource);
     _pluginManager = new PluginManager(this);
     //ルート
     _rootExtension = _pluginManager.CreateExtensionPoint(ExtensionPoint.ROOT, typeof(IRootExtension), null);
 }
Exemple #3
0
 public InternalPoderosaWorld(PoderosaStartupContext context)
 {
     _instance        = this;
     _startupContext  = context;
     _poderosaCulture = new PoderosaCulture();
     _poderosaLog     = new PoderosaLog(this);
     _adapterManager  = new AdapterManager();
     _stringResource  = new StringResource("Poderosa.Plugin.strings", typeof(InternalPoderosaWorld).Assembly);
     _poderosaCulture.AddChangeListener(_stringResource);
     _pluginManager = new PluginManager(this);
     //ルート
     _rootExtension = _pluginManager.CreateExtensionPoint(ExtensionPoint.ROOT, typeof(IRootExtension), null);
 }
 public static IPoderosaApplication CreatePoderosaApplication(string plugin_manifest, StructuredText preference, string[] args) {
     string home_directory = Directory.GetCurrentDirectory();
     InternalPoderosaWorld w = new InternalPoderosaWorld(new PoderosaStartupContext(PluginManifest.CreateByText(plugin_manifest), home_directory, preference, args, null));
     return w;
 }
Exemple #5
0
 public PluginManager(InternalPoderosaWorld pw)
 {
     _world = pw;
     _idToExtensionPoint = new TypedHashtable<string, ExtensionPoint>();
 }
        public InternalPoderosaInstance()
        {
            _terminals=new Dictionary<int,InternalTerminalInstance>();

            string[] args = new string[0];
            _homeDirectory = Directory.GetCurrentDirectory();

            _internalPoderosaWorld = new InternalPoderosaWorld(new PoderosaStartupContext(PluginManifest.CreateByText(BuildPluginList()), _homeDirectory, _homeDirectory, args, null));
            if (_internalPoderosaWorld != null)
            {
                ((InternalPoderosaWorld)_internalPoderosaWorld).Start();
            }
        }