Cleanup ui plugin.xml, refer to interface IResource, not Resource
[egit/qmx.git] / org.spearce.egit.ui / plugin.xml
blob0b18f15673e9395990c5d280d63d5ae42ccbf1fe
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin>
4    <extension point="org.eclipse.core.runtime.preferences">
5       <initializer class="org.spearce.egit.ui.PluginPreferenceInitializer"/>
6    </extension>
8    <extension point="org.eclipse.ui.importWizards">
9       <category name="%Git_clone_category"
10             id="org.spearce.egit.ui.internal.clone.gitclonecategory"/>
11       <wizard name="%Git_clone_wizard"
12             icon="icons/obj16/import_obj.gif"
13             class="org.spearce.egit.ui.internal.clone.GitCloneWizard"
14             id="org.spearce.egit.ui.internal.clone.GitCloneWizard"
15             category="org.spearce.egit.ui.internal.clone.gitclonecategory">
16             <description>%Git_clone_description</description>
17       </wizard>
18    </extension>
20    <extension point="org.eclipse.team.ui.configurationWizards">
21       <wizard name="%SharingWizard_name"
22             icon="icons/etool16/newconnect_wiz.gif"
23             class="org.spearce.egit.ui.internal.sharing.SharingWizard"
24             id="org.spearce.egit.ui.internal.sharing.SharingWizard">
25       </wizard>
26    </extension>
28    <extension point="org.eclipse.ui.popupMenus">
29       <objectContribution id="org.spearce.egit.ui.projectContributions"
30             objectClass="org.eclipse.core.resources.IProject"
31             adaptable="true">
32          <filter name="projectPersistentProperty"
33                value="org.eclipse.team.core.repository=org.spearce.egit.core.GitProvider">
34          </filter>
35          <action
36                label="%DisconnectAction_label"
37                tooltip="%DisconnectAction_tooltip"
38                class="org.spearce.egit.ui.internal.actions.Disconnect"
39                menubarPath="team.main/projectGroup"
40                id="org.spearce.egit.ui.internal.actions.Disconnect">
41          </action>
42          <action
43                class="org.spearce.egit.ui.internal.actions.FetchAction"
44                id="org.spearce.egit.ui.internal.actions.FetchAction"
45                label="%FetchAction_label"
46                menubarPath="team.main/projectGroup"
47                tooltip="%FetchAction_tooltip"/>
48          <action
49                class="org.spearce.egit.ui.internal.actions.PushAction"
50                id="org.spearce.egit.ui.internal.actions.PushAction"
51                label="%PushAction_label"
52                menubarPath="team.main/projectGroup"
53                tooltip="%PushAction_tooltip"/>
54          <action
55                class="org.spearce.egit.ui.internal.actions.ResetAction"
56                id="org.spearce.egit.ui.internal.actions.ResetAction"
57                label="%ResetAction_label"
58                menubarPath="team.main/projectGroup"
59                tooltip="%ResetAction_tooltip">
60          </action>
61          <action
62                class="org.spearce.egit.ui.internal.actions.BranchAction"
63                id="org.spearce.egit.ui.internal.actions.BranchAction"
64                label="%BranchAction_label"
65                menubarPath="team.main/projectGroup"
66                tooltip="%BranchAction_tooltip"/>
67      </objectContribution>
68      <objectContribution
69             adaptable="true"
70             id="org.spearce.egit.ui.fileFolderContributions"
71             objectClass="org.eclipse.core.resources.IResource">
72          <filter name="projectPersistentProperty"
73                value="org.eclipse.team.core.repository=org.spearce.egit.core.GitProvider">
74          </filter>
75          <action
76                label="%UntrackAction_label"
77                class="org.spearce.egit.ui.internal.actions.Untrack"
78                tooltip="%UntrackAction_tooltip"
79                menubarPath="team.main/group1"
80                id="org.spearce.egit.ui.internal.actions.Untrack"/>   
81          <action
82                label="%TrackAction_label"
83                class="org.spearce.egit.ui.internal.actions.Track"
84                tooltip="%TrackAction_tooltip"
85                menubarPath="team.main/group1"
86                id="org.spearce.egit.ui.internal.actions.Track"/>
87          <action
88                label="%AssumeUnchangedAction_label"
89                class="org.spearce.egit.ui.internal.actions.AssumeUnchanged"
90                tooltip="%AssumeUnchangedAction_tooltip"
91                menubarPath="team.main/group1"
92                id="org.spearce.egit.ui.internal.actions.AssumeUnchanged"/>
93          <action
94                class="org.spearce.egit.ui.internal.actions.ShowResourceInHistoryAction"
95                id="org.spearce.egit.ui.internal.actions.ShowResourceInHistoryAction"
96                label="%ShowResourceInHistoryAction_label"
97                menubarPath="team.main/group1"
98                tooltip="%ShowResourceInHistoryAction_tooltip"/>
99          <action
100                class="org.spearce.egit.ui.internal.actions.Update"
101                id="org.spearce.egit.ui.internal.actions.Update"
102                label="%UpdateAction_label"
103                menubarPath="team.main/group1"
104                tooltip="%UpdateAction_tooltip"/>
105          <action
106                class="org.spearce.egit.ui.internal.actions.CommitAction"
107                id="org.spearce.egit.ui.internal.actions.CommitAction"
108                label="%CommitAction_label"
109                menubarPath="team.main/group1"
110                tooltip="%CommitAction_tooltip"/>
111           </objectContribution>
112           <objectContribution
113          id="org.spearce.egit.ui.resetto"
114          objectClass="org.spearce.jgit.revwalk.RevCommit">
115          <action
116                class="org.spearce.egit.ui.internal.actions.SoftResetToRevisionAction"
117                id="org.spearce.egit.ui.softresettorevision"
118                label="Soft Reset"
119                menubarPath="additions"
120                enablesFor="1"
121                tooltip="Resets HEAD but not working directory nor index">
122          </action>
123          <action
124                class="org.spearce.egit.ui.internal.actions.MixedResetToRevisionAction"
125                id="org.spearce.egit.ui.mixedresettorevision"
126                label="Mixed Reset"
127                menubarPath="additions"
128                enablesFor="1"
129                tooltip="Resets HEAD and index, but not working directory">
130          </action>
131          <action
132                class="org.spearce.egit.ui.internal.actions.HardResetToRevisionAction"
133                id="org.spearce.egit.ui.hardresettorevision"
134                label="Hard Reset"
135                menubarPath="additions"
136                enablesFor="1"
137                tooltip="Resets HEAD and index, and working directory (changed in tracked files will be lost)">
138          </action>
139          <action
140                class="org.spearce.egit.ui.internal.actions.SetQuickdiffBaselineAction"
141                enablesFor="1"
142                id="org.spearce.egit.ui.setquickdiffbaseline"
143                label="Set as quickdiff baseline"
144                menubarPath="additions">
145          </action>
146          <action
147                class="org.spearce.egit.ui.internal.actions.ResetQuickdiffBaselineAction"
148                enablesFor="*"
149                id="org.spearce.egit.ui.resetquickdiffbaseline"
150                label="Reset quickdiff baseline to HEAD"
151                menubarPath="additions">
152          </action>
153          <action
154                class="org.spearce.egit.ui.internal.actions.ResetQuickdiffBaselineHeadParentAction"
155                enablesFor="*"
156                id="org.spearce.egit.ui.resetquickdiffheadparentbaseline"
157                label="Reset quickdiff baseline to first parent of HEAD"
158                menubarPath="additions">
159          </action>
160           </objectContribution>
161    </extension>
163    <extension
164          point="org.eclipse.core.runtime.adapters">
165          <factory
166                adaptableType="org.spearce.egit.core.internal.storage.GitFileHistoryProvider"
167                class="org.spearce.egit.ui.internal.factories.GitAdapterFactory">
168             <adapter
169                   type="org.eclipse.team.ui.history.IHistoryPageSource">
170             </adapter>
171          </factory>
172          <factory
173                adaptableType="org.eclipse.core.resources.IResource"
174                class="org.spearce.egit.ui.internal.factories.GitAdapterFactory">
175             <adapter
176                   type="org.eclipse.team.ui.history.IHistoryPageSource">
177             </adapter>
178          </factory>
179    </extension>
180    
181    <extension point="org.eclipse.ui.preferencePages">
182       <page name="%GitPreferences_name"
183             category="org.eclipse.team.ui.TeamPreferences"
184             class="org.spearce.egit.ui.internal.preferences.GitPreferenceRoot"
185             id="org.spearce.egit.ui.GitPreferences" />
187       <page name="%GitPreferences_HistoryPreferencePage_name"
188             category="org.eclipse.team.ui.TeamPreferences/org.spearce.egit.ui.GitPreferences"
189             class="org.spearce.egit.ui.internal.preferences.HistoryPreferencePage"
190             id="org.spearce.egit.ui.internal.preferences.HistoryPreferencePage" />
191       <page name="%GitPreferences_WindowCachePreferencePage_name"
192             category="org.eclipse.team.ui.TeamPreferences/org.spearce.egit.ui.GitPreferences"
193             class="org.spearce.egit.ui.internal.preferences.WindowCachePreferencePage"
194             id="org.spearce.egit.ui.internal.preferences.WindowCachePreferencePage" />
195    </extension>
197    <extension point="org.eclipse.ui.propertyPages">
198       <page
199             objectClass="org.eclipse.core.resources.IProject"
200             adaptable="true"
201             name="%Git"
202             class="org.spearce.egit.ui.internal.preferences.GitProjectPropertyPage"
203             id="org.spearce.egit.ui.preferences.GitProjectPropertyPage">
204          <filter
205                name="projectPersistentProperty"
206                value="org.eclipse.team.core.repository=org.spearce.egit.core.GitProvider">
207          </filter>
208       </page>
209    </extension>
210    <extension point="org.eclipse.ui.decorators">
211       <decorator
212             lightweight="true"
213             adaptable="true"
214             label="%Decorator_name"
215             class="org.spearce.egit.ui.internal.decorators.GitResourceDecorator"
216             state="true"
217             location="BOTTOM_RIGHT"
218             id="org.spearce.egit.ui.internal.decorators.GitResourceDecorator">
219             <enablement>
220               <objectClass name="org.eclipse.core.resources.IResource"/>
221             </enablement>
222          <description>
223             %Decorator_description
224          </description>
225       </decorator>
226    </extension>
228    <extension point="org.eclipse.ui.themes">
229       <themeElementCategory
230             id="org.spearce.egit.ui.GitTheme"
231             label="%Theme_label"/>
232       <fontDefinition
233             id="org.spearce.egit.ui.CommitGraphNormalFont"
234             categoryId="org.spearce.egit.ui.GitTheme"
235             label="%Theme_CommitGraphNormalFont_label"
236             defaultsTo="org.eclipse.jface.dialogfont">
237          <description>
238             %Theme_CommitGraphNormalFont_description
239          </description>
240       </fontDefinition>
241       <fontDefinition
242             id="org.spearce.egit.ui.CommitGraphHighlightFont"
243             categoryId="org.spearce.egit.ui.GitTheme"
244             label="%Theme_CommitGraphHighlightFont_label"
245             defaultsTo="org.eclipse.jface.dialogfont">
246          <description>
247             %Theme_CommitGraphHighlightFont_description
248          </description>
249       </fontDefinition>
250       <fontDefinition
251             id="org.spearce.egit.ui.CommitMessageFont"
252             categoryId="org.spearce.egit.ui.GitTheme"
253             label="%Theme_CommitMessageFont_label"
254             defaultsTo="org.eclipse.jface.textfont">
255          <description>
256             %Theme_CommitMessageFont_description
257          </description>
258       </fontDefinition>
259    </extension>
261 <!-- ********** QuickDiff text editor support ************** -->
262    <extension
263          point="org.eclipse.ui.workbench.texteditor.quickDiffReferenceProvider">
264       <referenceprovider
265             label="%GitRemoteQuickDiffProvider_label"
266             class="org.spearce.egit.ui.internal.decorators.GitQuickDiffProvider"
267             id="org.spearce.egit.ui.internal.decorators.GitQuickDiffProvider">
268       </referenceprovider>
269    </extension>
270    <extension
271          point="org.eclipse.ui.actionSets">
272       <actionSet
273             description="Common things to do with Git"
274             id="org.spearce.egit.ui.gitaction"
275             label="%GitActions_label"
276             visible="false"
277             >
278             <menu
279            id="org.spearce.egit.ui.gitmenu"
280            label="%GitMenu_label"
281            path="additions"
282            >
283         <separator
284               name="repositoryGroup">
285         </separator>
286             </menu>
287                 <action
288         class="org.spearce.egit.ui.internal.actions.FetchAction"
289         disabledIcon="icons/toolbar/fetchd.png"
290         icon="icons/toolbar/fetche.png"
291         id="org.spearce.egit.ui.actionfetch"
292         label="%FetchAction_label"
293         menubarPath="org.spearce.egit.ui.gitmenu/repo"
294         style="push"
295         toolbarPath="org.spearce.egit.ui"
296         tooltip="%FetchAction_tooltip">
297                 </action>
298                 <action
299         class="org.spearce.egit.ui.internal.actions.PushAction"
300         disabledIcon="icons/toolbar/pushd.png"
301         icon="icons/toolbar/pushe.png"
302         id="org.spearce.egit.ui.actionpush"
303         label="%PushAction_label"
304         menubarPath="org.spearce.egit.ui.gitmenu/repo"
305         style="push"
306         toolbarPath="org.spearce.egit.ui"
307         tooltip="%PushAction_tooltip">
308                 </action>
309                 <action
310                        class="org.spearce.egit.ui.internal.actions.BranchAction"
311                        disabledIcon="icons/toolbar/checkoutd.png"
312                        icon="icons/toolbar/checkoute.png"
313                        id="org.spearce.egit.ui.actionbranch"
314                        label="%BranchAction_label"
315                        style="push"
316                        menubarPath="org.spearce.egit.ui.gitmenu/repositoryGroup"
317                        toolbarPath="Normal/additions"
318                        tooltip="%BranchAction_tooltip">
319                 </action>
320                 <action
321                        class="org.spearce.egit.ui.internal.actions.CommitAction"
322                        disabledIcon="icons/toolbar/commitd.png"
323                        icon="icons/toolbar/commite.png"
324                        id="org.spearce.egit.ui.actioncommit"
325                        label="%CommitAction_label"
326                        style="push"
327                        menubarPath="org.spearce.egit.ui.gitmenu/repositoryGroup"
328                        toolbarPath="Normal/additions"
329                        tooltip="%CommitAction_tooltip">
330                 </action>
331                 <action
332                        class="org.spearce.egit.ui.internal.actions.ResetAction"
333                        disabledIcon="icons/toolbar/resetd.png"
334                        icon="icons/toolbar/resete.png"
335                        id="org.spearce.egit.ui.actionreset"
336                        label="%ResetAction_label"
337                        style="push"
338                        menubarPath="org.spearce.egit.ui.gitmenu/repositoryGroup"
339                        toolbarPath="Normal/additions"
340                        tooltip="%ResetAction_tooltip">
341                 </action>
342                 <action
343                        class="org.spearce.egit.ui.internal.actions.Track"
344                        disabledIcon="icons/toolbar/trackd.png"
345                        icon="icons/toolbar/tracke.png"
346                        id="org.spearce.egit.ui.trackaction"
347                        label="%TrackAction_label"
348                        style="push"
349                        menubarPath="org.spearce.egit.ui.gitmenu/repositoryGroup"
350                        toolbarPath="Normal/additions"
351                        tooltip="Start tracking the selected resources">
352                 </action>
353       </actionSet>
354    </extension>
355 </plugin>