示例#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);
        }
示例#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);
 }
示例#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);
 }
示例#4
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;
 }
示例#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();
            }
        }