Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
		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);
		}