Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a5f1948d5e77006d64793997050014caa9ebb997 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?><!--
    Copyright (c) 2010, 2017 Red Hat, Inc.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html

    Contributors:
        Alexander Kurtakov (Red Hat) - initial API and implementation
 -->
<plugin>

    <extension-point id="parserContribution"
        name="%extension-point.name"
        schema="schema/parserContribution.exsd"/>
    <extension-point id="formatterContribution" name="%extension-point.name.0" schema="schema/formatterContribution.exsd"/>
    <extension-point id="editorContribution" name="%extension-point.name.1" schema="schema/editorContribution.exsd"/>

    <extension
          point="org.eclipse.ui.contexts">
       <context
             name="%editor.name"
             id="org.eclipse.linuxtools.changelog.core.changelogEditorScope"
             parentId="org.eclipse.ui.textEditorScope">
       </context>
    </extension>

    <extension
          point="org.eclipse.ui.commands">

        <category
            name="%category.name"
            description="%category.description"
            id="org.eclipse.linuxtools.changelog">
        </category>

        <command
        categoryId="org.eclipse.linuxtools.changelog"
        description="%insertCLEntryDesc"
        id="org.eclipse.linuxtools.changelog.core.actions.KeyActionCommand"
        name="%insertCLEntry">
        </command>
  <command
        categoryId="org.eclipse.linuxtools.changelog"
        description="%command.description"
        id="org.eclipse.linuxtools.changelog.core.preparechangelog"
        name="%command.name"/>
  <command
        categoryId="org.eclipse.linuxtools.changelog"
        description="%command.description.0"
        id="org.eclipse.linuxtools.changelog.core.prepareCommit"
        name="%command.name.0"/>
  <command
        categoryId="org.eclipse.linuxtools.changelog"
        description="%command.description.1"
        id="org.eclipse.linuxtools.changelog.core.formatChangeLog"
        name="%command.name.1"/>
  <command
        categoryId="org.eclipse.linuxtools.changelog"
        description="%command.description.2"
        id="org.eclipse.linuxtools.changelog.core.preparechangelog2"
        name="%command.name.2">
  </command>
    </extension>

    <extension point = "org.eclipse.ui.preferencePages">
        <page
            id="org.eclipse.linuxtools.changelog.core.Page1"
            class="org.eclipse.linuxtools.internal.changelog.core.ChangeLogPreferencesPage"
            name="%prefTitle">
           </page>
    </extension>


    <extension
        point="org.eclipse.linuxtools.changelog.core.formatterContribution">
        <formatter
              inFile="false"
              class="org.eclipse.linuxtools.internal.changelog.core.formatters.GNUFormat"
              id="org.eclipse.linuxtools.changelog.GNUFormat"
              name="%gnuFormatter">
              <fileName name="ChangeLog" />
        </formatter>
    </extension>
    <extension
         point="org.eclipse.core.contenttype.contentTypes">
      <content-type
            base-type="org.eclipse.core.runtime.text"
            file-names="ChangeLog"
            id="org.eclipse.linuxtools.changelog.editor.content-type"
            name="%content-type.name"
            priority="high">
      </content-type>
    </extension>
    <extension
          id="org.eclipse.linuxtools.changelog.core.editor"
          point="org.eclipse.ui.editors">
       <editor
             class="org.eclipse.linuxtools.internal.changelog.core.editors.ChangeLogEditor"
             contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
             default="true"
             filenames="ChangeLog"
             icon="icons/file_obj.gif"
             id="org.eclipse.linuxtools.changelog.editor"
             name="%editor.name">
         <contentTypeBinding
               contentTypeId="org.eclipse.linuxtools.changelog.editor.content-type">
         </contentTypeBinding>
       </editor>
    </extension>
    <extension
         point="org.eclipse.ui.genericeditor.presentationReconcilers">
      <presentationReconciler
            class="org.eclipse.linuxtools.internal.changelog.core.editors.GNUPresentationReconciler"
            contentType="org.eclipse.linuxtools.changelog.editor.content-type">
      </presentationReconciler>
    </extension>
    <extension
          point="org.eclipse.linuxtools.changelog.core.editorContribution">
       <editor
             class="org.eclipse.linuxtools.internal.changelog.core.editors.GNUEditorConfiguration"
             id="org.eclipse.linuxtools.changelog.core.gnueditor"
             name="%gnuEditorConfig"/>
    </extension>
    <extension
          point="org.eclipse.ui.navigator.viewer">
       <viewerActionBinding viewerId="org.eclipse.team.cvs.ui.workspaceSynchronization">
          <includes>
             <actionExtension pattern="org.eclipse.linuxtools.changelog.core.ui.ChangeLogActioniProvider"/>
          </includes>
       </viewerActionBinding>
    </extension>
    <extension
          point="org.eclipse.ui.navigator.navigatorContent">
       <actionProvider
             class="org.eclipse.linuxtools.internal.changelog.core.ui.ChangeLogActionProvider"
             id="org.eclipse.linuxtools.changelog.core.ui.ChangeLogActioniProvider">
          <enablement>
             <adapt type="org.eclipse.core.resources.mapping.ResourceMapping"/>
          </enablement>
       </actionProvider>
    </extension>
    <extension
          point="org.eclipse.ui.bindings">
       <key
             commandId="org.eclipse.linuxtools.changelog.core.actions.KeyActionCommand"
             contextId="org.eclipse.ui.textEditorScope"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="Ctrl+Alt+C"/>
       <key
             commandId="org.eclipse.linuxtools.changelog.core.actions.KeyActionCommand"
             contextId="org.eclipse.compare.compareEditorScope"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="Ctrl+Alt+C"/>
       <scheme
             id="org.eclipse.linuxtools.changelog.keyscheme.default"
             name="%scheme.name"/>
       <key
             commandId="org.eclipse.linuxtools.changelog.core.preparechangelog"
             contextId="org.eclipse.ui.contexts.window"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="Ctrl+Alt+P"/>
       <key
             commandId="org.eclipse.linuxtools.changelog.core.preparechangelog2"
             contextId="org.eclipse.ui.textEditorScope"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="Ctrl+Alt+P" />
       <key
             commandId="org.eclipse.linuxtools.changelog.core.preparechangelog2"
             contextId="org.eclipse.compare.compareEditorScope"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="Ctrl+Alt+P"/>
       <key
             commandId="org.eclipse.linuxtools.changelog.core.prepareCommit"
             contextId="org.eclipse.ui.textEditorScope"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="Ctrl+Alt+V"/>
       <key
             commandId="org.eclipse.linuxtools.changelog.core.formatChangeLog"
             contextId="org.eclipse.linuxtools.changelog.core.changelogEditorScope"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
             sequence="ESC Ctrl+F"/>
    </extension>
    <extension
          point="org.eclipse.ui.handlers">
       <handler
             class="org.eclipse.linuxtools.internal.changelog.core.actions.PrepareChangelogKeyHandler"
             commandId="org.eclipse.linuxtools.changelog.core.preparechangelog"/>
       <handler
             class="org.eclipse.linuxtools.internal.changelog.core.actions.PrepareChangelogKeyHandler"
             commandId="org.eclipse.linuxtools.changelog.core.preparechangelog2"/>
       <handler
             class="org.eclipse.linuxtools.internal.changelog.core.actions.InsertChangeLogKeyHandler"
             commandId="org.eclipse.linuxtools.changelog.core.actions.KeyActionCommand">
         <enabledWhen>
            <not>
                <count value="0" />
            </not>
         </enabledWhen>
         <activeWhen>
            <with variable="activePart">
                <instanceof value="org.eclipse.ui.IEditorPart" />
            </with>
         </activeWhen>
       </handler>
       <handler
             class="org.eclipse.linuxtools.internal.changelog.core.actions.PrepareCommitHandler"
             commandId="org.eclipse.linuxtools.changelog.core.prepareCommit"/>
       <handler
             class="org.eclipse.linuxtools.internal.changelog.core.actions.FormatChangeLogAction"
             commandId="org.eclipse.linuxtools.changelog.core.formatChangeLog"/>
    </extension>
    <extension
          id="org.eclipse.linuxtools.changelog.documentSetup"
          point="org.eclipse.core.filebuffers.documentSetup">
       <participant
             class="org.eclipse.linuxtools.internal.changelog.core.editors.ChangeLogDocumentSetupParticipant"
             fileNames="ChangeLog">
       </participant>
    </extension>
    <extension point="org.eclipse.core.runtime.preferences">
        <initializer
            class="org.eclipse.linuxtools.internal.changelog.core.ChangelogPreferenceInitializer" />
    </extension>
    <extension
  		point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors">
  		<hyperlinkDetector
   			id="org.eclipse.linuxtools.changelog.GNUHyperlinkDetector"
    		targetId="org.eclipse.ui.DefaultTextEditor"
    		class="org.eclipse.linuxtools.internal.changelog.core.editors.GNUHyperlinkDetector"
    		name="%hyperlinkDetector.name">
  		</hyperlinkDetector>
	</extension>
<extension point="org.eclipse.ui.menus">
  <menuContribution locationURI="popup:#TextEditorContext?endof=group.edit">
        <command commandId="org.eclipse.linuxtools.changelog.core.formatChangeLog">
            <visibleWhen
               checkEnabled="false">
               <and>
                       <with variable="activeEditorId">
                     <equals value="org.eclipse.linuxtools.changelog.core.editor6"/>
                       </with>
                   </and>
            </visibleWhen>
        </command>
  </menuContribution>
  <menuContribution
        locationURI="menu:edit">
     <command
           commandId="org.eclipse.linuxtools.changelog.core.actions.KeyActionCommand"
           style="push"
           tooltip="%clEntry">
     </command>
  </menuContribution>
  <menuContribution
        locationURI="menu:project">
     <command
           commandId="org.eclipse.linuxtools.changelog.core.preparechangelog"
           style="push"
           tooltip="%prepChangeLog.tooltip">
        <visibleWhen
           checkEnabled="false">
              <with variable="selection">
                 <iterate operator="and" ifEmpty="false">
                    <or>
                       <adapt
                             type="java.lang.Object">
                       </adapt>
                           <adapt type="org.eclipse.core.resources.IResource">
                              <test
                                       property="org.eclipse.core.resources.projectNature"
                                       value="org.eclipse.cdt.core.cnature"/>
                       </adapt>
                       <adapt type="org.eclipse.core.resources.IResource">
                          <test
                                property="org.eclipse.core.resources.projectNature"
                                value="org.eclipse.jdt.core.javanature"/>
                       </adapt>
                    </or>
                    <or>
                           <adapt type="org.eclipse.core.resources.IResource">
                        <test
                           args="org.eclipse.team.core.repository"
                           property="org.eclipse.core.resources.projectPersistentProperty"
                           value="org.eclipse.team.svn.core.svnnature"/>
                        </adapt>
                           <adapt type="org.eclipse.core.resources.IResource">
                          <test
                              args="org.eclipse.team.core.repository"
                           property="org.eclipse.core.resources.projectPersistentProperty"
                           value="org.eclipse.team.cvs.core.cvsnature"/>
                        </adapt>
                           <adapt type="org.eclipse.core.resources.IResource">
                          <test
                           args="org.eclipse.team.core.repository"
                           property="org.eclipse.core.resources.projectPersistentProperty"
                           value="org.tigris.subversion.subclipse.core.svnnature"/>
                        </adapt>
                           <adapt type="org.eclipse.core.resources.IResource">
                          <test
                           args="org.eclipse.team.core.repository"
                           property="org.eclipse.core.resources.projectPersistentProperty"
                           value="org.eclipse.egit.core.GitProvider"/>
                        </adapt>
                       </or>
               </iterate>
               </with>
            </visibleWhen>
     </command>
  </menuContribution>
</extension>
 <extension
         point="org.eclipse.ui.themes">
      <themeElementCategory
            id="org.eclipse.linuxtools.changelog.editor.presentation"
            label="Changelog files editor">
      </themeElementCategory>
      <colorDefinition
            categoryId="org.eclipse.linuxtools.changelog.editor.presentation"
            id="org.eclipse.linuxtools.changelog.editor.color.file_name"
            label="File name"
            value="128,0,0">
      </colorDefinition>
      <colorDefinition
            categoryId="org.eclipse.linuxtools.changelog.editor.presentation"
            id="org.eclipse.linuxtools.changelog.editor.color.func_name"
            label="Function name"
            value="0,128,0">
      </colorDefinition>
      <colorDefinition
            categoryId="org.eclipse.linuxtools.changelog.editor.presentation"
            id="org.eclipse.linuxtools.changelog.editor.color.text"
            label="Text"
            value="0,0,0">
      </colorDefinition>
      <colorDefinition
            categoryId="org.eclipse.linuxtools.changelog.editor.presentation"
            id="org.eclipse.linuxtools.changelog.editor.color.email"
            label="Email"
            value="0,0,128">
      </colorDefinition>
   </extension>

</plugin>

Back to the top