static CodeAnalysis() { AddinManager.AddExtensionNodeHandler("/MonoDevelop/Refactoring/Inspectors", delegate(object sender, ExtensionNodeEventArgs args) { InspectorAddinNode node = (InspectorAddinNode)args.ExtensionNode; if (node.MimeType != "text/x-csharp") { return; } switch (args.Change) { case ExtensionChange.Add: inspectorNodes.Add(node); ((CSharpInspector)node.Inspector).Attach(node, visitor); break; } }); NamingInspector inspector = new NamingInspector(); inspector.Attach(null, visitor); }
static CodeAnalysis () { AddinManager.AddExtensionNodeHandler ("/MonoDevelop/Refactoring/Inspectors", delegate(object sender, ExtensionNodeEventArgs args) { InspectorAddinNode node = (InspectorAddinNode)args.ExtensionNode; if (node.MimeType != "text/x-csharp") return; switch (args.Change) { case ExtensionChange.Add: inspectorNodes.Add (node); ((CSharpInspector)node.Inspector).Attach (node, visitor); break; } }); NamingInspector inspector = new NamingInspector (); inspector.Attach (null, visitor); }