blob: 80dfdf8a69dcebf0c217034545d1b52a84e9454f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
<ExtensionModel>
<!-- Extension Points -->
<ExtensionPoint path = "/MonoDevelop/Refactoring/Refactorings" name = "Refactorings">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/CodeGenerators" name = "Code Generators">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/ASTProvider" name = "ASTProviders">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/CodeDiagnosticProvider" name = "Code Diagnostic Provider">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/FindReferencesProvider">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/JumpToDeclarationHandler" defaultInsertAfter = "MidStep">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionNodeSet id="MonoDevelop.AnalysisCore.Rules">
<ExtensionNode name="Category" type="MonoDevelop.Ide.Codons.CategoryNode">
<ExtensionNodeSet id="MonoDevelop.AnalysisCore.Rules" />
</ExtensionNode>
<ExtensionNode name="Rule" type="MonoDevelop.AnalysisCore.Extensions.NamedAnalysisRuleAddinNode" />
<ExtensionNode name="Adaptor" type="MonoDevelop.AnalysisCore.Extensions.AdaptorAnalysisRuleAddinNode" />
</ExtensionNodeSet>
<ExtensionPoint path = "/MonoDevelop/AnalysisCore/Rules" name = "Analysis Rules">
<Description>Analysis rules.</Description>
<ExtensionNodeSet id="MonoDevelop.AnalysisCore.Rules" />
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/AnalysisCore/Types" name = "Analysis rule input/output types">
<Description>Analysis rule input/output types.</Description>
<ExtensionNode name="Type" type="MonoDevelop.AnalysisCore.Extensions.AnalysisTypeExtensionNode" />
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/AnalysisCore/FixHandlers" name = "Fix handlers">
<Description>Fix handlers. Classes must implement IAnalysisFixHandler.</Description>
<ExtensionNode name="Handler" type="MonoDevelop.AnalysisCore.Extensions.FixHandlerExtensionNode" />
</ExtensionPoint>
<!-- Extensions -->
<!--
<Extension path = "/MonoDevelop/Ide/Pads">
<Pad id="MonoDevelop.Refactoring.CodeIssuePad" _label="Code Issues" class="MonoDevelop.CodeIssues.CodeIssuePad" defaultPlacement = "Bottom"/>
</Extension> -->
<!-- Text editor integration -->
<Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
<Class class = "MonoDevelop.AnalysisCore.Gui.ResultsEditorExtension" />
</Extension>
<Extension path = "/MonoDevelop/SourceEditor2/TooltipProviders">
<Class id="AnalysisResults" class="MonoDevelop.AnalysisCore.Gui.ResultTooltipProvider" insertafter="Debug" />
</Extension>
<!-- RefactoryCommands -->
<Extension path = "/MonoDevelop/Ide/Commands">
<Category _name = "Code Navigation" id = "CodeNavigation">
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.FindReferences"
_label = "_Find References"
shortcut = "Shift|F12"
macShortcut = "Shift|Meta|R"/>
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.FindAllReferences"
_label = "_Find References of All Overloads" />
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.FindDerivedClasses"
_label = "Find _Derived Symbols" />
</Category>
<Category _name = "Refactoring" id = "Refactoring">
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.QuickFix"
_label = "Quick Fix..."
shortcut = "Alt|Return"
macShortcut = "Alt|Return" />
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.ImportSymbol"
_label = "Import Symbol..."
shortcut = "Control|Alt|space"
macShortcut = "Control|Alt|space" />
<Command id = "MonoDevelop.AnalysisCore.AnalysisCommands.ExportRules"
defaultHandler = "MonoDevelop.AnalysisCore.ExportRulesHandler"
_label = "Export C# Code Rules to a File"
_description = "Generates an HTML file that contains a list of all code rules"
/>
</Category>
</Extension>
<Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
<Class class = "MonoDevelop.CodeActions.CodeActionEditorExtension" />
</Extension>
<Extension path = "/MonoDevelop/Ide/MainMenu/Edit">
<CommandItem id = "MonoDevelop.CodeGeneration.CodeGenerationCommands.ShowCodeGenerationWindow"
insertafter="MonoDevelop.Ide.Commands.TextEditorCommands.ShowCodeTemplateWindow" />
</Extension>
<!-- Quick fix commands -->
<Extension path = "/MonoDevelop/Ide/Commands/Refactoring">
<Command id = "MonoDevelop.AnalysisCore.AnalysisCommands.ShowFixes"
defaultHandler="MonoDevelop.AnalysisCore.ShowFixesHandler"
_label = "Show Fixes"
_description="Shows a list of fixes for problems at the current location"
macShortcut="Control|."
shortcut = "Control|." />
</Extension>
<!-- Options panels -->
<Extension path = "/MonoDevelop/Ide/GlobalOptionsDialog/TextEditor">
<Section id="Analysis" _label="Source Analysis" fill="true" class="MonoDevelop.AnalysisCore.Gui.AnalysisOptionsPanel" icon="md-prefs-code-analysis" >
<Section id="C#" _label="C#" icon="md-prefs-source">
<Panel id="CodeIssuePanel" _label="Code Rules" fill="true" class="MonoDevelop.CodeIssues.CodeIssuePanel" grouping="Tab" icon="md-prefs-code-rules" />
<Panel id="CodeActions" _label="Code Actions" fill="true" class="MonoDevelop.CodeActions.CodeActionPanel" grouping="Tab" icon="md-prefs-code-actions" />
</Section>
</Section>
</Extension>
<!-- Extensions to the addin points defined by this addin -->
<Extension path = "/MonoDevelop/AnalysisCore/Types">
<Type name="AnalysisDocument" class="MonoDevelop.AnalysisCore.Gui.AnalysisDocument" />
<Type name="CompilationUnit" class="MonoDevelop.Projects.Dom.ICompilationUnit" />
</Extension>
<Extension path = "/MonoDevelop/AnalysisCore/Rules">
<Adaptor func="MonoDevelop.AnalysisCore.Rules.Adapters.GetCompilationUnit"
input="AnalysisDocument" output="CompilationUnit" />
<Category _name="Design Guidelines" id="Design">
<!-- <Rule _name="Naming Conventions" input="CompilationUnit"
func="MonoDevelop.AnalysisCore.Rules.NamingConventions.ClassNaming" />-->
</Category>
</Extension>
<Extension path = "/MonoDevelop/AnalysisCore/FixHandlers">
<Handler fixName="RenameMember" class = "MonoDevelop.AnalysisCore.Fixes.RenameMemberHandler" />
<Handler fixName="Generic" class = "MonoDevelop.AnalysisCore.Fixes.GenericFixHandler" />
</Extension>
<Extension path="/MonoDevelop/Core/StockIcons">
<StockIcon stockid="md-prefs-code-actions" resource="prefs-code-actions-16.png" size="Menu" />
<StockIcon stockid="md-prefs-code-rules" resource="prefs-code-rules-16.png" size="Menu" />
<StockIcon stockid="md-prefs-code-analysis" resource="prefs-code-analysis-16.png" size="Menu" />
</Extension>
<Extension path = "/MonoDevelop/Refactoring/JumpToDeclarationHandler">
<Class id="MidStep" class="MonoDevelop.Refactoring.DummyJumpToDeclarationHandler" />
</Extension>
</ExtensionModel>
|