void OnAddinLoaded(object sender, Mono.Addins.AddinEventArgs args) { Logger.Debug("AddinManager.OnAddinLoaded: {0}", args.AddinId); Mono.Addins.Addin addin = Mono.Addins.AddinManager.Registry.GetAddin(args.AddinId); Logger.Debug("\t Name: {0}", addin.Name); Logger.Debug("\tDescription: {0}", addin.Description.Description); Logger.Debug("\t Namespace: {0}", addin.Namespace); Logger.Debug("\t Enabled: {0}", addin.Enabled); Logger.Debug("\t File: {0}", addin.AddinFile); }
public Gtk.Widget CreateAddinPreferenceWidget(Mono.Addins.Addin addin) { AddinPreferenceFactory factory = GetAddinPrefFactory(addin); if (factory == null) { return(null); } return(factory.CreatePreferenceWidget()); }
public bool IsAddinConfigurable(Mono.Addins.Addin addin) { object o = GetAddinPrefFactory(addin); if (o == null) { return(false); } return(true); }
AddinPreferenceFactory GetAddinPrefFactory(Mono.Addins.Addin addin) { Mono.Addins.ExtensionNode node = Mono.Addins.AddinManager.GetExtensionNode("/Tomboy/AddinPreferences"); if (node != null) { Mono.Addins.ExtensionNodeList child_nodes = node.ChildNodes; if (child_nodes != null) { foreach (Mono.Addins.ExtensionNode child_node in child_nodes) { if (addin.Id.StartsWith(child_node.Addin.Id)) { AddinPreferenceFactory factory = ((Mono.Addins.TypeExtensionNode)child_node).GetInstance() as AddinPreferenceFactory; return(factory); } } } } return(null); }