Add a Track toolbar icon for adding resources
[egit/qmx.git] / org.spearce.egit.ui / plugin.xml
blob611829a04b119e3da41edc355e4cca35cd786159
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/etool16/import_wiz.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/sharing.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.ResetAction"
44                id="org.spearce.egit.ui.internal.actions.ResetAction"
45                label="%ResetAction_label"
46                menubarPath="team.main/projectGroup"
47                tooltip="%ResetAction_tooltip">
48          </action>
49          <action
50                class="org.spearce.egit.ui.internal.actions.BranchAction"
51                id="org.spearce.egit.ui.internal.actions.BranchAction"
52                label="%BranchAction_label"
53                menubarPath="team.main/projectGroup"
54                tooltip="%BranchAction_tooltip"/>
55      </objectContribution>
56      <objectContribution
57             adaptable="true"
58             id="org.spearce.egit.ui.fileFolderContributions"
59             objectClass="org.eclipse.core.resources.IResource">
60          <filter name="projectPersistentProperty"
61                value="org.eclipse.team.core.repository=org.spearce.egit.core.GitProvider">
62          </filter>
63          <action
64                label="%UntrackAction_label"
65                class="org.spearce.egit.ui.internal.actions.Untrack"
66                tooltip="%UntrackAction_tooltip"
67                menubarPath="team.main/group1"
68                id="org.spearce.egit.ui.internal.actions.Untrack"/>   
69          <action
70                label="%TrackAction_label"
71                class="org.spearce.egit.ui.internal.actions.Track"
72                tooltip="%TrackAction_tooltip"
73                menubarPath="team.main/group1"
74                id="org.spearce.egit.ui.internal.actions.Track"/>
75          <action
76                label="%AssumeUnchangedAction_label"
77                class="org.spearce.egit.ui.internal.actions.AssumeUnchanged"
78                tooltip="%AssumeUnchangedAction_tooltip"
79                menubarPath="team.main/group1"
80                id="org.spearce.egit.ui.internal.actions.AssumeUnchanged"/>
81          <action
82                class="org.spearce.egit.ui.internal.actions.ShowResourceInHistoryAction"
83                id="org.spearce.egit.ui.internal.actions.ShowResourceInHistoryAction"
84                label="%ShowResourceInHistoryAction_label"
85                menubarPath="team.main/group1"
86                tooltip="%ShowResourceInHistoryAction_tooltip"/>
87          <action
88                class="org.spearce.egit.ui.internal.actions.Update"
89                id="org.spearce.egit.ui.internal.actions.Update"
90                label="%UpdateAction_label"
91                menubarPath="team.main/group1"
92                tooltip="%UpdateAction_tooltip"/>
93          <action
94                class="org.spearce.egit.ui.internal.actions.CommitAction"
95                id="org.spearce.egit.ui.internal.actions.CommitAction"
96                label="%CommitAction_label"
97                menubarPath="team.main/group1"
98                tooltip="%CommitAction_tooltip"/>
99           </objectContribution>
100    </extension>
102    <extension
103          point="org.eclipse.core.runtime.adapters">
104          <factory
105                adaptableType="org.spearce.egit.core.internal.storage.GitFileHistoryProvider"
106                class="org.spearce.egit.ui.internal.factories.GitAdapterFactory">
107             <adapter
108                   type="org.eclipse.team.ui.history.IHistoryPageSource">
109             </adapter>
110          </factory>
111          <factory
112                adaptableType="org.eclipse.core.internal.resources.Resource"
113                class="org.spearce.egit.ui.internal.factories.GitAdapterFactory">
114             <adapter
115                   type="org.eclipse.team.ui.history.IHistoryPageSource">
116             </adapter>
117          </factory>
118    </extension>
119    
120    <extension point="org.eclipse.ui.preferencePages">
121       <page name="%GitPreferences_name"
122             category="org.eclipse.team.ui.TeamPreferences"
123             class="org.spearce.egit.ui.internal.preferences.GitPreferenceRoot"
124             id="org.spearce.egit.ui.GitPreferences" />
126       <page name="%GitPreferences_HistoryPreferencePage_name"
127             category="org.eclipse.team.ui.TeamPreferences/org.spearce.egit.ui.GitPreferences"
128             class="org.spearce.egit.ui.internal.preferences.HistoryPreferencePage"
129             id="org.spearce.egit.ui.internal.preferences.HistoryPreferencePage" />
130       <page name="%GitPreferences_WindowCachePreferencePage_name"
131             category="org.eclipse.team.ui.TeamPreferences/org.spearce.egit.ui.GitPreferences"
132             class="org.spearce.egit.ui.internal.preferences.WindowCachePreferencePage"
133             id="org.spearce.egit.ui.internal.preferences.WindowCachePreferencePage" />
134    </extension>
136    <extension point="org.eclipse.ui.decorators">
137       <decorator
138             lightweight="true"
139             adaptable="true"
140             label="%Decorator_name"
141             class="org.spearce.egit.ui.internal.decorators.GitResourceDecorator"
142             state="true"
143             location="BOTTOM_RIGHT"
144             id="org.spearce.egit.ui.internal.decorators.GitResourceDecorator">
145             <enablement>
146               <objectClass name="org.eclipse.core.resources.IResource"/>
147             </enablement>
148          <description>
149             %Decorator_description
150          </description>
151       </decorator>
152    </extension>
154    <extension point="org.eclipse.ui.themes">
155       <themeElementCategory
156             id="org.spearce.egit.ui.GitTheme"
157             label="%Theme_label"/>
158       <fontDefinition
159             id="org.spearce.egit.ui.CommitGraphNormalFont"
160             categoryId="org.spearce.egit.ui.GitTheme"
161             label="%Theme_CommitGraphNormalFont_label"
162             defaultsTo="org.eclipse.jface.dialogfont">
163          <description>
164             %Theme_CommitGraphNormalFont_description
165          </description>
166       </fontDefinition>
167       <fontDefinition
168             id="org.spearce.egit.ui.CommitGraphHighlightFont"
169             categoryId="org.spearce.egit.ui.GitTheme"
170             label="%Theme_CommitGraphHighlightFont_label"
171             defaultsTo="org.eclipse.jface.dialogfont">
172          <description>
173             %Theme_CommitGraphHighlightFont_description
174          </description>
175       </fontDefinition>
176       <fontDefinition
177             id="org.spearce.egit.ui.CommitMessageFont"
178             categoryId="org.spearce.egit.ui.GitTheme"
179             label="%Theme_CommitMessageFont_label"
180             defaultsTo="org.eclipse.jface.textfont">
181          <description>
182             %Theme_CommitMessageFont_description
183          </description>
184       </fontDefinition>
185    </extension>
187 <!-- ********** QuickDiff text editor support ************** -->
188    <extension
189          point="org.eclipse.ui.workbench.texteditor.quickDiffReferenceProvider">
190       <referenceprovider
191             label="%GitRemoteQuickDiffProvider_label"
192             class="org.spearce.egit.ui.internal.decorators.GitQuickDiffProvider"
193             id="org.spearce.egit.ui.internal.decorators.GitQuickDiffProvider">
194       </referenceprovider>
195    </extension>
196    <extension
197          point="org.eclipse.ui.actionSets">
198       <actionSet
199             description="Common things to do with Git"
200             id="org.spearce.egit.ui.gitaction"
201             label="%GitActions_label"
202             visible="true"
203             >
204             <menu
205            id="org.spearce.egit.ui.gitmenu"
206            label="%GitMenu_label"
207            path="org.spearce.egit.ui.gitmenu"
208            >
209             </menu>
210                 <action
211                        class="org.spearce.egit.ui.internal.actions.BranchAction"
212                        disabledIcon="icons/toolbar/checkoutd.png"
213                        icon="icons/toolbar/checkoute.png"
214                        id="org.spearce.egit.ui.actionbranch"
215                        label="%BranchAction_label"
216                        style="push"
217                        menubarPath="org.spearce.egit.ui.gitmenu/repo"
218                        toolbarPath="org.spearce.egit.ui"
219                        tooltip="%BranchAction_tooltip">
220                 </action>
221                 <action
222                        class="org.spearce.egit.ui.internal.actions.CommitAction"
223                        disabledIcon="icons/toolbar/commitd.png"
224                        icon="icons/toolbar/commite.png"
225                        id="org.spearce.egit.ui.actioncommit"
226                        label="%CommitAction_label"
227                        style="push"
228                        menubarPath="org.spearce.egit.ui.gitmenu/repo"
229                        toolbarPath="org.spearce.egit.ui"
230                        tooltip="%CommitAction_tooltip">
231                 </action>
232                 <action
233                        class="org.spearce.egit.ui.internal.actions.ResetAction"
234                        disabledIcon="icons/toolbar/resetd.png"
235                        icon="icons/toolbar/resete.png"
236                        id="org.spearce.egit.ui.actionreset"
237                        label="%ResetAction_label"
238                        style="push"
239                        menubarPath="org.spearce.egit.ui.gitmenu/repo"
240                        toolbarPath="org.spearce.egit.ui"
241                        tooltip="%ResetAction_tooltip">
242                 </action>
243                 <action
244                        class="org.spearce.egit.ui.internal.actions.Track"
245                        disabledIcon="icons/toolbar/trackd.png"
246                        icon="icons/toolbar/tracke.png"
247                        id="org.spearce.egit.ui.trackaction"
248                        label="%TrackAction_label"
249                        menubarPath="org.spearce.egit.ui.gitmenu/repo"
250                        style="push"
251                        toolbarPath="org.spearce.egit.ui"
252                        tooltip="Start tracking the selected resources">
253                 </action>
254       </actionSet>
255    </extension>
256 </plugin>