Exemple #1
0
 public PreferenceFolderArray(PlugInHost master, PreferenceFolder parent, string id, int index, PreferenceFolder template)
     : base(parent, id, index)
 {
     _master   = master;
     _folders  = new ArrayList();
     _template = template;
 }
Exemple #2
0
        public void InitializeExtension()
        {
            IStartupContextSupplier s = (IStartupContextSupplier)_poderosaWorld.GetAdapter(typeof(IStartupContextSupplier));

            int index = 0;

            foreach (IPreferenceSupplier supplier in _extensionPoint.GetExtensions())
            {
                PlugInHost ph = new PlugInHost(this, supplier, s.Preferences, index++);
                ph.Build(); //Note 遅延読み込みをしてもいいかも
                _idToHosts[ph.PreferenceSupplier.PreferenceID] = ph;
            }
        }
Exemple #3
0
 public PreferenceFolder(PlugInHost master, PreferenceFolder parent, string id, int index) : base(parent, id, index)
 {
     _children = new ArrayList();
     _master   = master;
 }
Exemple #4
0
        public IPreferenceFolder FindPreferenceFolder(string id)
        {
            PlugInHost ph = _idToHosts[id];

            return(ph == null? null : ph.RootFolder);
        }