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