]> git.uio.no Git - ifi-stolz-refaktor.git/blob - software/no.uio.ifi.refaktor/plugin.xml
Quick and dirty (but working) view which shows LongestPrefix from
[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             categoryId="no.uio.ifi.refaktor.commands.category"
18             id="no.uio.ifi.refaktor.commands.saferRefactoring"
19             name="Safer Refactoring">
20       </command>
21       <command
22             id="no.uio.ifi.refaktor.commands.textSelectionInformation"
23             name="Text Selection Information">
24       </command>
25       <command
26             id="no.uio.ifi.refaktor.commands.testPropertyExtractor"
27             name="Test Property Extractor">
28       </command>
29       <command
30             id="no.uio.ifi.refaktor.commands.extractAndMoveMethod"
31             name="Extract and move method">
32       </command>
33    </extension>
34    <extension
35          point="org.eclipse.ui.handlers">
36       <handler
37             commandId="no.uio.ifi.refaktor.commands.testRefactoring"
38             class="no.uio.ifi.refaktor.handlers.TestRefactoringHandler">
39       </handler>
40       <handler
41             class="no.uio.ifi.refaktor.handlers.SaferRefactoringHandler"
42             commandId="no.uio.ifi.refaktor.commands.saferRefactoring">
43       </handler>
44       <handler
45             class="no.uio.ifi.refaktor.handlers.TextSelectionInformationHandler"
46             commandId="no.uio.ifi.refaktor.commands.textSelectionInformation">
47          <enabledWhen>
48             <with
49                   variable="selection">
50                <instanceof
51                      value="org.eclipse.jface.text.TextSelection">
52                </instanceof>
53             </with>
54          </enabledWhen>
55       </handler>
56       <handler
57             class="no.uio.ifi.refaktor.handlers.TestPropertyExtractorHandler"
58             commandId="no.uio.ifi.refaktor.commands.testPropertyExtractor">
59       </handler>
60       <handler
61             class="no.uio.ifi.refaktor.handlers.ExtractAndMoveMethodHandler"
62             commandId="no.uio.ifi.refaktor.commands.extractAndMoveMethod">
63       </handler>
64    </extension>
65    <extension
66          point="org.eclipse.ui.menus">
67       <menuContribution
68             locationURI="menu:org.eclipse.ui.main.menu?after=additions">
69          <menu
70                label="Refaktor"
71                mnemonic="M"
72                id="no.uio.ifi.refaktor.menus.refaktor">
73             <command
74                   commandId="no.uio.ifi.refaktor.commands.testRefactoring"
75                   mnemonic="S"
76                   id="no.uio.ifi.refaktor.menus.testRefactoring">
77             </command>
78             <command
79                   commandId="no.uio.ifi.refaktor.commands.saferRefactoring"
80                   id="no.uio.ifi.refaktor.menus.saferRefactoring"
81                   mnemonic="S">
82             </command>
83          </menu>
84       </menuContribution>
85       <menuContribution
86             allPopups="true"
87             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
88          <menu
89                id="no.uio.ifi.refaktor.menus.refaktorSelectionPopup"
90                label="IFI Refaktor Selection"
91                mnemonic="M">
92             <command
93                   commandId="no.uio.ifi.refaktor.commands.textSelectionInformation"
94                   id="no.uio.ifi.refaktor.menus.textSelectionInformation"
95                   mnemonic="S">
96             </command>
97             <visibleWhen
98                   checkEnabled="false">
99                <with
100                      variable="selection">
101                   <instanceof
102                         value="org.eclipse.jface.text.TextSelection">
103                   </instanceof>
104                </with>
105             </visibleWhen>
106             <command
107                   commandId="no.uio.ifi.refaktor.commands.testPropertyExtractor"
108                   label="Test Property Extractor"
109                   style="push">
110             </command>
111             <command
112                   commandId="no.uio.ifi.refaktor.commands.extractAndMoveMethod"
113                   label="Extract and Move Method"
114                   style="push">
115             </command>
116          </menu>
117       </menuContribution>
118    </extension>
119    <extension
120          point="org.eclipse.ui.popupMenus">
121       <objectContribution
122             id="no.uio.ifi.refaktor.contribution1"
123             objectClass="org.eclipse.jdt.core.IMethod">
124          <menu
125                id="no.uio.ifi.refaktor.menu1"
126                label="IFI Refaktor"
127                path="additions">
128             <separator
129                   name="group1">
130             </separator>
131             <separator
132                   name="group2">
133             </separator>
134          </menu>
135          <action
136                class="no.uio.ifi.refaktor.popup.actions.SaferAction"
137                enablesFor="1"
138                id="no.uio.ifi.refaktor.saferAction"
139                label="Safer Refactoring"
140                menubarPath="no.uio.ifi.refaktor.menu1/group1">
141          </action>
142          <action
143                class="no.uio.ifi.refaktor.popup.actions.CyclomaticComplexityAction"
144                enablesFor="1"
145                id="no.uio.ifi.refaktor.cyclomaticComplexityAction"
146                label="Compute Cyclomatic Complexity"
147                menubarPath="no.uio.ifi.refaktor.menu1/group2">
148          </action>
149       </objectContribution>
150    </extension>
151    <extension
152          point="org.eclipse.ui.views">
153       <category
154             id="no.uio.ifi.refaktor.views"
155             name="Refaktor Views">
156       </category>
157       <view
158             category="no.uio.ifi.refaktor.views"
159             class="no.uio.ifi.refaktor.views.PrefixView"
160             icon="icons/sample.gif"
161             id="no.uio.ifi.refaktor.views.PrefixView"
162             name="Prefix View">
163       </view>
164    </extension>
165    <extension
166          point="org.eclipse.ui.perspectiveExtensions">
167       <perspectiveExtension
168             targetID="org.eclipse.jdt.ui.JavaPerspective">
169          <view
170                id="no.uio.ifi.refaktor.views.PrefixView"
171                ratio="0.5"
172                relationship="bottom"
173                relative="org.eclipse.ui.views.ProblemView"
174                visible="true">
175          </view>
176       </perspectiveExtension>
177    </extension>
178
179 </plugin>