public RegistryInfo(Mono.Addins.Setup.Application app) { name = app.Name; description = app.Description; regPath = app.Registry.RegistryPath; appPath = app.StartupPath; testCommand = app.TestCommand; }
protected virtual void OnRegSelectorChanged(object sender, System.EventArgs e) { Mono.Addins.Setup.Application app = Mono.Addins.Setup.SetupService.GetExtensibleApplication(regSelector.ApplicationName); if (app == null) { return; } Hashtable names = new Hashtable(); foreach (Addin ad in app.Registry.GetAddinRoots()) { if (ad.Namespace.Length > 0) { names [ad.Namespace] = ad.Namespace; } } foreach (Addin ad in app.Registry.GetAddins()) { if (ad.Namespace.Length > 0) { names [ad.Namespace] = ad.Namespace; } } loading = true; try { string uk = null; ((Gtk.ListStore)comboNs.Model).Clear(); foreach (string s in names.Keys) { comboNs.AppendText(s); uk = s; } if (names.Count == 1 && !nsSet) { comboNs.Entry.Text = uk; } } finally { loading = false; } }