]> git.uio.no Git - ifi-stolz-refaktor.git/blob - software/no.uio.ifi.refaktor/plugin.xml
added changer; extract local refactoring now works at a minimum
[ifi-stolz-refaktor.git] / software / no.uio.ifi.refaktor / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4
5    <extension
6          point="org.eclipse.ui.commands">
7       <category
8             name="Refaktor"
9             id="no.uio.ifi.refaktor.commands.category">
10       </category>
11       <command
12             name="Test Refactoring"
13             categoryId="no.uio.ifi.refaktor.commands.category"
14             id="no.uio.ifi.refaktor.commands.testRefactoring">
15       </command>
16       <command
17             id="no.uio.ifi.refaktor.commands.textSelectionInformation"
18             name="Text Selection Information">
19       </command>
20       <command
21             id="no.uio.ifi.refaktor.commands.testPropertyExtractor"
22             name="Test Property Extractor">
23       </command>
24       <command
25             id="no.uio.ifi.refaktor.commands.extractAndMoveMethod"
26             name="Extract and move method">
27       </command>
28       <command
29             id="no.uio.ifi.refaktor.commands.treeSelectionInfo"
30             name="Tree Selection Info">
31       </command>
32       <command
33             id="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodAnalysis"
34             name="Search Based Extract And Move Method Analysis">
35       </command>
36       <command
37             id="no.uio.ifi.refaktor.commands.typeWideSearchBasedExtractAndMoveMethodAnalysis"
38             name="Type Wide Search Based Extract And Move Method Analysis">
39       </command>
40       <command
41             id="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodAnalysis"
42             name="Compilation Unit Wide Search Based Extract And Move Method Analysis">
43       </command>
44       <command
45             id="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodAnalysis"
46             name="Package Wide Search Based Extract And Move Method Analysis">
47       </command>
48       <command
49             id="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis"
50             name="Project Wide Search Based Extract And Move Method Analysis">
51       </command>
52       <command
53             id="no.uio.ifi.refaktor.commands.packageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysis"
54             name="Package Fragment Root Wide Search Based Extract And Move Method Analysis">
55       </command>
56       <command
57             id="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
58             name="Project Wide Search Based Extract And Move Method Change">
59       </command>
60       <command
61             id="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger"
62             name="Search Based Extract And Move Method Change">
63       </command>
64       <command
65             id="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger"
66             name="Compilation Unit Wide Search Based Extract And Move Method Change">
67       </command>
68       <command
69             id="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger"
70             name="Package Wide Search Based Extract And Move Method Change">
71       </command>
72       <command
73                 id="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
74                 name="Extract Local Variable">
75           </command>
76    </extension>
77    <extension
78          point="org.eclipse.ui.handlers">
79       <handler
80             commandId="no.uio.ifi.refaktor.commands.testRefactoring"
81             class="no.uio.ifi.refaktor.handlers.TestRefactoringHandler">
82       </handler>
83       <handler
84                 commandId="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
85                 class="no.uio.ifi.refaktor.handlers.ExtractLocalVariableWithAssertsHandler">
86               <enabledWhen>
87                     <with
88                           variable="selection">
89                        <instanceof
90                              value="org.eclipse.jface.text.TextSelection">
91                        </instanceof>
92                     </with>
93                  </enabledWhen>
94           </handler>
95       <handler
96             class="no.uio.ifi.refaktor.handlers.TextSelectionInformationHandler"
97             commandId="no.uio.ifi.refaktor.commands.textSelectionInformation">
98          <enabledWhen>
99             <with
100                   variable="selection">
101                <instanceof
102                      value="org.eclipse.jface.text.TextSelection">
103                </instanceof>
104             </with>
105          </enabledWhen>
106       </handler>
107       <handler
108             class="no.uio.ifi.refaktor.handlers.TestPropertyExtractorHandler"
109             commandId="no.uio.ifi.refaktor.commands.testPropertyExtractor">
110       </handler>
111       <handler
112             class="no.uio.ifi.refaktor.handlers.ExtractAndMoveMethodHandler"
113             commandId="no.uio.ifi.refaktor.commands.extractAndMoveMethod">
114       </handler>
115       <handler
116             class="no.uio.ifi.refaktor.handlers.TreeSelectionInfoHandler"
117             commandId="no.uio.ifi.refaktor.commands.treeSelectionInfo">
118       </handler>
119       <handler
120             class="no.uio.ifi.refaktor.handlers.SearchBasedExtractAndMoveMethodAnalysisHandler"
121             commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodAnalysis">
122       </handler>
123       <handler
124             class="no.uio.ifi.refaktor.handlers.TypeWideSearchBasedExtractAndMoveMethodAnalysisHandler"
125             commandId="no.uio.ifi.refaktor.commands.typeWideSearchBasedExtractAndMoveMethodAnalysis">
126       </handler>
127       <handler
128             class="no.uio.ifi.refaktor.handlers.CompilationUnitWideSearchBasedExtractAndMoveMethodAnalysisHandler"
129             commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodAnalysis">
130       </handler>
131       <handler
132             class="no.uio.ifi.refaktor.handlers.PackageWideSearchBasedExtractAndMoveMethodAnalysisHandler"
133             commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodAnalysis">
134       </handler>
135       <handler
136             class="no.uio.ifi.refaktor.handlers.ProjectWideSearchBasedExtractAndMoveMethodAnalysisHandler"
137             commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis">
138       </handler>
139       <handler
140             class="no.uio.ifi.refaktor.handlers.PackageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysisHandler"
141             commandId="no.uio.ifi.refaktor.commands.packageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysis">
142       </handler>
143       <handler
144             class="no.uio.ifi.refaktor.handlers.ProjectWideSearchBasedExtractAndMoveMethodChangerHandler"
145             commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger">
146       </handler>
147       <handler
148             class="no.uio.ifi.refaktor.handlers.SearchBasedExtractAndMoveMethodChangerHandler"
149             commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger">
150       </handler>
151       <handler
152             class="no.uio.ifi.refaktor.handlers.CompilationUnitWideSearchBasedExtractAndMoveMethodChangerHandler"
153             commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger">
154       </handler>
155       <handler
156             class="no.uio.ifi.refaktor.handlers.PackageWideSearchBasedExtractAndMoveMethodChangerHandler"
157             commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger">
158       </handler>
159    </extension>
160    <extension
161          point="org.eclipse.ui.menus">
162       <menuContribution
163             locationURI="menu:org.eclipse.ui.main.menu?after=additions">
164          <menu
165                label="Refaktor"
166                mnemonic="M"
167                id="no.uio.ifi.refaktor.menus.refaktor">
168             <command
169                   commandId="no.uio.ifi.refaktor.commands.testRefactoring"
170                   mnemonic="S"
171                   id="no.uio.ifi.refaktor.menus.testRefactoring">
172             </command>
173          </menu>
174       </menuContribution>
175       <menuContribution
176             allPopups="true"
177             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
178          <menu
179                id="no.uio.ifi.refaktor.menus.refaktorSelectionPopup"
180                label="IFI Refaktor Selection"
181                mnemonic="M">
182             <command
183                   commandId="no.uio.ifi.refaktor.commands.textSelectionInformation"
184                   id="no.uio.ifi.refaktor.menus.textSelectionInformation"
185                   mnemonic="S">
186             </command>
187             <visibleWhen
188                   checkEnabled="false">
189                <with
190                      variable="selection">
191                   <instanceof
192                         value="org.eclipse.jface.text.TextSelection">
193                   </instanceof>
194                </with>
195             </visibleWhen>
196             <command
197                   commandId="no.uio.ifi.refaktor.commands.testPropertyExtractor"
198                   label="Test Property Extractor"
199                   style="push">
200             </command>
201             <command
202                   commandId="no.uio.ifi.refaktor.commands.extractAndMoveMethod"
203                   label="Extract and Move Method"
204                   style="push">
205             </command>
206             <command
207                     commandId="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
208                     label="Extract Local Variable"
209                     style="push">
210                 </command>
211          </menu>
212          <menu
213                id="no.uio.ifi.refaktor.menus.refaktorTreeSelectionPopup"
214                label="IFI Refaktor Tree Selection"
215                mnemonic="M">
216             <visibleWhen
217                   checkEnabled="false">
218                <with
219                      variable="selection">
220                   <instanceof
221                         value="org.eclipse.jface.viewers.ITreeSelection">
222                   </instanceof>
223                </with>
224             </visibleWhen>
225             <command
226                   commandId="no.uio.ifi.refaktor.commands.treeSelectionInfo"
227                   label="Tree Selection Info"
228                   style="push">
229             </command>
230             <command
231                   commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodAnalysis"
232                   label="Search Based Extract And Move Method Analysis"
233                   style="push">
234                <visibleWhen
235                      checkEnabled="false">
236                   <with
237                         variable="selection">
238                      <test
239                            forcePluginActivation="true"
240                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
241                            value="org.eclipse.jdt.core.IMethod">
242                      </test>
243                   </with>
244                </visibleWhen>
245             </command>
246             <command
247                   commandId="no.uio.ifi.refaktor.commands.typeWideSearchBasedExtractAndMoveMethodAnalysis"
248                   label="Type Wide Search Based Extract And Move Method Analysis"
249                   style="push">
250                <visibleWhen
251                      checkEnabled="false">
252                   <with
253                         variable="selection">
254                      <test
255                            forcePluginActivation="true"
256                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
257                            value="org.eclipse.jdt.core.IType">
258                      </test>
259                   </with>
260                </visibleWhen>
261             </command>
262             <command
263                   commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodAnalysis"
264                   label="Compilation Unit Wide Search Based Extract And Move Method Analysis"
265                   style="push">
266                <visibleWhen
267                      checkEnabled="false">
268                   <with
269                         variable="selection">
270                      <test
271                            forcePluginActivation="true"
272                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
273                            value="org.eclipse.jdt.core.ICompilationUnit">
274                      </test>
275                   </with>
276                </visibleWhen>
277             </command>
278             <command
279                   commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodAnalysis"
280                   label="Package Wide Search Based Extract And Move Method Analysis"
281                   style="push">
282                <visibleWhen
283                      checkEnabled="false">
284                   <with
285                         variable="selection">
286                      <test
287                            forcePluginActivation="true"
288                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
289                            value="org.eclipse.jdt.core.IPackageFragment">
290                      </test>
291                   </with>
292                </visibleWhen>
293             </command>
294             <command
295                   commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis"
296                   label="Project Wide Search Based Extract And Move Method Analysis"
297                   style="push">
298                <visibleWhen
299                      checkEnabled="false">
300                   <with
301                         variable="selection">
302                      <test
303                            forcePluginActivation="true"
304                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
305                            value="org.eclipse.core.resources.IProject">
306                      </test>
307                   </with>
308                </visibleWhen>
309             </command>
310             <command
311                   commandId="no.uio.ifi.refaktor.commands.packageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysis"
312                   label="Package Fragment Root Wide Search Based Extract And Move Method Analysis"
313                   style="push">
314                <visibleWhen
315                      checkEnabled="false">
316                   <with
317                         variable="selection">
318                      <test
319                            forcePluginActivation="true"
320                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
321                            value="org.eclipse.jdt.core.IPackageFragmentRoot">
322                      </test>
323                   </with>
324                </visibleWhen>
325             </command>
326             <command
327                   commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
328                   label="Project Wide Search Based Extract And Move Method Changer"
329                   style="push">
330                <visibleWhen
331                      checkEnabled="false">
332                   <with
333                         variable="selection">
334                      <test
335                            forcePluginActivation="true"
336                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
337                            value="org.eclipse.core.resources.IProject">
338                      </test>
339                   </with>
340                </visibleWhen>
341             </command>
342             <command
343                   commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger"
344                   label="Search Based Extract And Move Method Change"
345                   style="push">
346                <visibleWhen
347                      checkEnabled="false">
348                   <with
349                         variable="selection">
350                      <test
351                            forcePluginActivation="true"
352                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
353                            value="org.eclipse.jdt.core.IMethod">
354                      </test>
355                   </with>
356                </visibleWhen>
357             </command>
358             <command
359                   commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger"
360                   label="Compilation Unit Wide Search Based Extract And Move Method Changer"
361                   style="push">
362                <visibleWhen
363                      checkEnabled="false">
364                   <with
365                         variable="selection">
366                      <test
367                            forcePluginActivation="true"
368                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
369                            value="org.eclipse.jdt.core.ICompilationUnit">
370                      </test>
371                   </with>
372                </visibleWhen>
373             </command>
374             <command
375                   commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis"
376                   label="Project Wide Search Based Extract And Move Method Analysis"
377                   style="push">
378                <visibleWhen
379                      checkEnabled="false">
380                   <with
381                         variable="selection">
382                      <test
383                            forcePluginActivation="true"
384                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
385                            value="org.eclipse.jdt.core.IJavaProject">
386                      </test>
387                   </with>
388                </visibleWhen>
389             </command>
390             <command
391                   commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
392                   label="Project Wide Search Based Extract And Move Method Changer"
393                   style="push">
394                <visibleWhen
395                      checkEnabled="false">
396                   <with
397                         variable="selection">
398                      <test
399                            forcePluginActivation="true"
400                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
401                            value="org.eclipse.jdt.core.IJavaProject">
402                      </test>
403                   </with>
404                </visibleWhen>
405             </command>
406             <command
407                   commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger"
408                   label="Package Wide Search Based Extract And Move Method Changer"
409                   style="push">
410                <visibleWhen
411                      checkEnabled="false">
412                   <with
413                         variable="selection">
414                      <test
415                            forcePluginActivation="true"
416                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
417                            value="org.eclipse.jdt.core.IPackageFragment">
418                      </test>
419                   </with>
420                </visibleWhen>
421             </command>
422          </menu>
423       </menuContribution>
424    </extension>
425    <extension
426          point="org.eclipse.ui.popupMenus">
427       <objectContribution
428             id="no.uio.ifi.refaktor.contribution1"
429             objectClass="org.eclipse.jdt.core.IMethod">
430          <menu
431                id="no.uio.ifi.refaktor.menu1"
432                label="IFI Refaktor"
433                path="additions">
434             <separator
435                   name="group1">
436             </separator>
437             <separator
438                   name="group2">
439             </separator>
440          </menu>
441          <action
442                class="no.uio.ifi.refaktor.popup.actions.CyclomaticComplexityAction"
443                enablesFor="1"
444                id="no.uio.ifi.refaktor.cyclomaticComplexityAction"
445                label="Compute Cyclomatic Complexity"
446                menubarPath="no.uio.ifi.refaktor.menu1/group2">
447          </action>
448       </objectContribution>
449    </extension>
450    <extension
451          point="org.eclipse.ui.views">
452       <category
453             id="no.uio.ifi.refaktor.views"
454             name="Refaktor Views">
455       </category>
456       <view
457             category="no.uio.ifi.refaktor.views"
458             class="no.uio.ifi.refaktor.views.PrefixView"
459             icon="icons/sample.gif"
460             id="no.uio.ifi.refaktor.views.PrefixView"
461             name="Prefix View">
462       </view>
463    </extension>
464    <extension
465          point="org.eclipse.ui.perspectiveExtensions">
466       <perspectiveExtension
467             targetID="org.eclipse.jdt.ui.JavaPerspective">
468          <view
469                id="no.uio.ifi.refaktor.views.PrefixView"
470                ratio="0.5"
471                relationship="bottom"
472                relative="org.eclipse.ui.views.ProblemView"
473                visible="true">
474          </view>
475       </perspectiveExtension>
476    </extension>
477    <extension
478          point="org.eclipse.core.expressions.propertyTesters">
479       <propertyTester
480             class="no.uio.ifi.refaktor.propertyTesters.TreeSelectionPropertyTester"
481             id="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester"
482             namespace="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester"
483             properties="elementType"
484             type="org.eclipse.jface.viewers.ITreeSelection">
485       </propertyTester>
486    </extension>
487    <extension
488          point="org.eclipse.ui.bindings">
489       <key
490             commandId="no.uio.ifi.refaktor.commands.textSelectionInformation"
491             contextId="org.eclipse.ui.contexts.window"
492             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
493             sequence="M1+R M1+S">
494       </key>
495    </extension>
496
497 </plugin>