]> git.uio.no Git - ifi-stolz-refaktor.git/blob - software/no.uio.ifi.refaktor/plugin.xml
cleaning up, changing packages, adding javadoc
[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             id="no.uio.ifi.refaktor.commands.extractAndMoveMethod"
13             name="Extract and move method">
14       </command>
15       <command
16             id="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
17             name="Project Wide Search Based Extract And Move Method Change">
18       </command>
19       <command
20             id="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger"
21             name="Search Based Extract And Move Method Change">
22       </command>
23       <command
24             id="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger"
25             name="Compilation Unit Wide Search Based Extract And Move Method Change">
26       </command>
27       <command
28             id="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger"
29             name="Package Wide Search Based Extract And Move Method Change">
30       </command>
31       <command
32             id="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithAssertsChanger"
33             name="Extract Local Variable With Asserts">
34       </command>
35       <command
36                 id="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
37                 name="Extract Local Variable With Asserts">
38           </command>
39    </extension>
40    <extension
41          point="org.eclipse.ui.handlers">
42       <handler
43             commandId="no.uio.ifi.refaktor.commands.testRefactoring"
44             class="no.uio.ifi.refaktor.handlers.TestRefactoringHandler">
45       </handler>
46       <handler
47                 commandId="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
48                 class="no.uio.ifi.refaktor.handlers.ExtractLocalVariableWithAssertsHandler">
49               <enabledWhen>
50                     <with
51                           variable="selection">
52                        <instanceof
53                              value="org.eclipse.jface.text.TextSelection">
54                        </instanceof>
55                     </with>
56                  </enabledWhen>
57           </handler>
58       <handler
59             class="no.uio.ifi.refaktor.handlers.ExtractAndMoveMethodHandler"
60             commandId="no.uio.ifi.refaktor.commands.extractAndMoveMethod">
61       </handler>
62       <handler
63             class="no.uio.ifi.refaktor.handlers.TreeSelectionInfoHandler"
64             commandId="no.uio.ifi.refaktor.commands.treeSelectionInfo">
65       </handler>
66       <handler
67             class="no.uio.ifi.refaktor.handlers.SearchBasedExtractAndMoveMethodAnalysisHandler"
68             commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodAnalysis">
69       </handler>
70       <handler
71             class="no.uio.ifi.refaktor.handlers.TypeWideSearchBasedExtractAndMoveMethodAnalysisHandler"
72             commandId="no.uio.ifi.refaktor.commands.typeWideSearchBasedExtractAndMoveMethodAnalysis">
73       </handler>
74       <handler
75             class="no.uio.ifi.refaktor.handlers.CompilationUnitWideSearchBasedExtractAndMoveMethodAnalysisHandler"
76             commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodAnalysis">
77       </handler>
78       <handler
79             class="no.uio.ifi.refaktor.handlers.PackageWideSearchBasedExtractAndMoveMethodAnalysisHandler"
80             commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodAnalysis">
81       </handler>
82       <handler
83             class="no.uio.ifi.refaktor.handlers.ProjectWideSearchBasedExtractAndMoveMethodAnalysisHandler"
84             commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis">
85       </handler>
86       <handler
87             class="no.uio.ifi.refaktor.handlers.PackageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysisHandler"
88             commandId="no.uio.ifi.refaktor.commands.packageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysis">
89       </handler>
90       <handler
91             class="no.uio.ifi.refaktor.handlers.ProjectWideSearchBasedExtractAndMoveMethodChangerHandler"
92             commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger">
93       </handler>
94       <handler
95             class="no.uio.ifi.refaktor.handlers.entrypoints.SearchBasedExtractAndMoveMethodChangerHandler"
96             commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger">
97       </handler>
98       <handler
99             class="no.uio.ifi.refaktor.handlers.CompilationUnitWideSearchBasedExtractAndMoveMethodChangerHandler"
100             commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger">
101       </handler>
102       <handler
103             class="no.uio.ifi.refaktor.handlers.PackageWideSearchBasedExtractAndMoveMethodChangerHandler"
104             commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger">
105       </handler>
106       <handler
107             class="no.uio.ifi.refaktor.handlers.entrypoints.SearchBasedExtractLocalVariableWithAssertsHandler"
108             commandId="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithAssertsChanger">
109       </handler>
110       <handler
111             class="no.uio.ifi.refaktor.handlers.entrypoints.SearchBasedExtractLocalVariableWithoutAssertsHandler"
112             commandId="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithoutAssertsChanger">
113       </handler>
114    </extension>
115    <extension
116          point="org.eclipse.ui.menus">
117       <menuContribution
118             locationURI="menu:org.eclipse.ui.main.menu?after=additions">
119          <menu
120                label="Refaktor"
121                mnemonic="M"
122                id="no.uio.ifi.refaktor.menus.refaktor">
123             <command
124                   commandId="no.uio.ifi.refaktor.commands.testRefactoring"
125                   mnemonic="S"
126                   id="no.uio.ifi.refaktor.menus.testRefactoring">
127             </command>
128          </menu>
129       </menuContribution>
130       <menuContribution
131             allPopups="true"
132             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
133          <menu
134                id="no.uio.ifi.refaktor.menus.refaktorSelectionPopup"
135                label="IFI Refaktor Selection"
136                mnemonic="M">
137             <command
138                   commandId="no.uio.ifi.refaktor.commands.textSelectionInformation"
139                   id="no.uio.ifi.refaktor.menus.textSelectionInformation"
140                   mnemonic="S">
141             </command>
142             <visibleWhen
143                   checkEnabled="false">
144                <with
145                      variable="selection">
146                   <instanceof
147                         value="org.eclipse.jface.text.TextSelection">
148                   </instanceof>
149                </with>
150             </visibleWhen>
151             <command
152                   commandId="no.uio.ifi.refaktor.commands.testPropertyExtractor"
153                   label="Test Property Extractor"
154                   style="push">
155             </command>
156             <command
157                   commandId="no.uio.ifi.refaktor.commands.extractAndMoveMethod"
158                   label="Extract and Move Method"
159                   style="push">
160             </command>
161             <command
162                     commandId="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
163                     label="Extract Local Variable"
164                     style="push">
165                 </command>
166          </menu>
167          <menu
168                id="no.uio.ifi.refaktor.menus.refaktorTreeSelectionPopup"
169                label="IFI Refaktor Tree Selection"
170                mnemonic="M">
171             <visibleWhen
172                   checkEnabled="false">
173                <with
174                      variable="selection">
175                   <instanceof
176                         value="org.eclipse.jface.viewers.ITreeSelection">
177                   </instanceof>
178                </with>
179             </visibleWhen>
180             <command
181                   commandId="no.uio.ifi.refaktor.commands.treeSelectionInfo"
182                   label="Tree Selection Info"
183                   style="push">
184             </command>
185             <command
186                   commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
187                   label="Project Wide Search Based Extract And Move Method Changer"
188                   style="push">
189                <visibleWhen
190                      checkEnabled="false">
191                   <with
192                         variable="selection">
193                      <test
194                            forcePluginActivation="true"
195                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
196                            value="org.eclipse.core.resources.IProject">
197                      </test>
198                   </with>
199                </visibleWhen>
200             </command>
201             <command
202                   commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger"
203                   label="Search Based Extract And Move Method Change"
204                   style="push">
205                <visibleWhen
206                      checkEnabled="false">
207                   <with
208                         variable="selection">
209                      <test
210                            forcePluginActivation="true"
211                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
212                            value="org.eclipse.jdt.core.IMethod">
213                      </test>
214                   </with>
215                </visibleWhen>
216             </command>
217             <command
218                   commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger"
219                   label="Compilation Unit Wide Search Based Extract And Move Method Changer"
220                   style="push">
221                <visibleWhen
222                      checkEnabled="false">
223                   <with
224                         variable="selection">
225                      <test
226                            forcePluginActivation="true"
227                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
228                            value="org.eclipse.jdt.core.ICompilationUnit">
229                      </test>
230                   </with>
231                </visibleWhen>
232             </command>
233             <command
234                   commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
235                   label="Project Wide Search Based Extract And Move Method Changer"
236                   style="push">
237                <visibleWhen
238                      checkEnabled="false">
239                   <with
240                         variable="selection">
241                      <test
242                            forcePluginActivation="true"
243                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
244                            value="org.eclipse.jdt.core.IJavaProject">
245                      </test>
246                   </with>
247                </visibleWhen>
248             </command>
249             <command
250                   commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger"
251                   label="Package Wide Search Based Extract And Move Method Changer"
252                   style="push">
253                <visibleWhen
254                      checkEnabled="false">
255                   <with
256                         variable="selection">
257                      <test
258                            forcePluginActivation="true"
259                            property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
260                            value="org.eclipse.jdt.core.IPackageFragment">
261                      </test>
262                   </with>
263                </visibleWhen>
264             </command>
265             <command
266                 commandId="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithAssertsChanger"
267                 label="Search Based Extract Local Variable With Asserts">
268                 style="push">
269             </command>
270          </menu>
271       </menuContribution>
272    </extension>
273    <extension
274          point="org.eclipse.ui.popupMenus">
275       <objectContribution
276             id="no.uio.ifi.refaktor.contribution1"
277             objectClass="org.eclipse.jdt.core.IMethod">
278          <menu
279                id="no.uio.ifi.refaktor.menu1"
280                label="IFI Refaktor"
281                path="additions">
282             <separator
283                   name="group1">
284             </separator>
285             <separator
286                   name="group2">
287             </separator>
288          </menu>
289          <action
290                class="no.uio.ifi.refaktor.popup.actions.CyclomaticComplexityAction"
291                enablesFor="1"
292                id="no.uio.ifi.refaktor.cyclomaticComplexityAction"
293                label="Compute Cyclomatic Complexity"
294                menubarPath="no.uio.ifi.refaktor.menu1/group2">
295          </action>
296       </objectContribution>
297    </extension>
298    <extension
299          point="org.eclipse.ui.views">
300       <category
301             id="no.uio.ifi.refaktor.views"
302             name="Refaktor Views">
303       </category>
304       <view
305             category="no.uio.ifi.refaktor.views"
306             class="no.uio.ifi.refaktor.views.PrefixView"
307             icon="icons/sample.gif"
308             id="no.uio.ifi.refaktor.views.PrefixView"
309             name="Prefix View">
310       </view>
311    </extension>
312    <extension
313          point="org.eclipse.ui.perspectiveExtensions">
314       <perspectiveExtension
315             targetID="org.eclipse.jdt.ui.JavaPerspective">
316          <view
317                id="no.uio.ifi.refaktor.views.PrefixView"
318                ratio="0.5"
319                relationship="bottom"
320                relative="org.eclipse.ui.views.ProblemView"
321                visible="true">
322          </view>
323       </perspectiveExtension>
324    </extension>
325    <extension
326          point="org.eclipse.core.expressions.propertyTesters">
327       <propertyTester
328             class="no.uio.ifi.refaktor.propertyTesters.TreeSelectionPropertyTester"
329             id="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester"
330             namespace="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester"
331             properties="elementType"
332             type="org.eclipse.jface.viewers.ITreeSelection">
333       </propertyTester>
334    </extension>
335    <extension
336          point="org.eclipse.ui.bindings">
337       <key
338             commandId="no.uio.ifi.refaktor.commands.textSelectionInformation"
339             contextId="org.eclipse.ui.contexts.window"
340             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
341             sequence="M1+R M1+S">
342       </key>
343    </extension>
344
345 </plugin>