コード例 #1
0
ファイル: CodeAnalysis.cs プロジェクト: yayanyang/monodevelop
        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);
        }
コード例 #2
0
ファイル: CodeAnalysis.cs プロジェクト: yayanyang/monodevelop
		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);
		}