Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a3150ae53226e7a358070b7147fd387002db54d1 (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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
	Copyright (c) 2007-2013, 2015, 2016 Eike Stepper (Berlin, Germany) and others.
	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:
	  Eike Stepper - initial API and implementation
	  Christian W. Damus (CEA LIST) - bug 420528
-->

<plugin>

  <extension-point id="editorOpeners" name="Editor Openers" schema="schema/editorOpeners.exsd"/>

   <extension
        point="org.eclipse.net4j.util.elementProcessors">
     <elementProcessor class="org.eclipse.emf.cdo.ui.CDOInteractiveExceptionHandler"/>
	 </extension>

   <extension
         point="org.eclipse.net4j.util.factories">
      <factory
            class="org.eclipse.emf.cdo.internal.ui.transfer.RepositoryUIProvider$Factory"
            productGroup="org.eclipse.emf.cdo.transfer.ui.providers"
            type="repository"/>
   </extension>

   <extension
         point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.eclipse.emf.cdo.internal.ui.SupportPropertyTester"
            id="org.eclipse.emf.cdo.ui.Support"
            namespace="org.eclipse.emf.cdo.ui.support"
            properties="history,compare"
            type="java.lang.Object">
      </propertyTester>
   </extension>

   <extension
         point="org.eclipse.ui.dropActions">
      <action
            class="org.eclipse.emf.cdo.internal.ui.transfer.RepositoryPluginDropAdapter"
            id="org.eclipse.emf.cdo.ui.RepositoryPluginDropAdapter">
      </action>
   </extension>

   <extension
         point="org.eclipse.ui.views">
      <category
            id="org.eclipse.emf.cdo"
            name="%category.name.0">
      </category>
      <view
            category="org.eclipse.emf.cdo"
            class="org.eclipse.emf.cdo.internal.ui.views.CDOSessionsView"
            icon="platform:/plugin/org.eclipse.emf.cdo.ui.shared/icons/full/view16/cdo_sessions.gif"
            id="org.eclipse.emf.cdo.ui.CDOSessionsView"
            name="%view.name.0">
      </view>
      <view
            category="org.eclipse.emf.cdo"
            class="org.eclipse.emf.cdo.internal.ui.views.CDOWatchListView"
            icon="platform:/plugin/org.eclipse.emf.cdo.ui.shared/icons/full/view16/watch_list.gif"
            id="org.eclipse.emf.cdo.ui.CDOWatchListView"
            name="%view.name.1">
      </view>
      <view
            category="org.eclipse.emf.cdo"
            class="org.eclipse.emf.cdo.internal.ui.views.CDORemoteSessionsView"
            icon="platform:/plugin/org.eclipse.emf.cdo.ui.shared/icons/full/view16/cdo_remote_sessions.gif"
            id="org.eclipse.emf.cdo.ui.CDORemoteSessionsView"
            name="%view.name.2">
      </view>
      <view
            category="org.eclipse.emf.cdo"
            class="org.eclipse.emf.cdo.internal.ui.views.CDOTimeMachineView"
            icon="platform:/plugin/org.eclipse.emf.cdo.ui.shared/icons/full/view16/cdo_time_machine.gif"
            id="org.eclipse.emf.cdo.ui.CDOTimeMachineView"
            name="%view.name.3">
      </view>
   </extension>

  <extension point = "org.eclipse.ui.editors">
    <editor
        id = "org.eclipse.emf.cdo.ui.CDOEditor"
        name = "%editor.name.0"
        icon = "platform:/plugin/org.eclipse.emf.cdo.ui.shared/icons/full/obj16/cdo_editor.gif"
        extensions = "*"
        class = "org.eclipse.emf.cdo.internal.ui.editor.CDOEditor"
        contributorClass="org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor" >
    </editor>
  </extension>

  <extension
        point="org.eclipse.ui.importWizards">
     <category
           id="org.eclipse.emf.cdo.category"
           name="CDO">
     </category>
  </extension>

  <extension
        point="org.eclipse.ui.newWizards">
     <category
           id="org.eclipse.emf.cdo.category"
           name="CDO">
     </category>
  </extension>

  <extension
        point="org.eclipse.ui.preferencePages">
     <page
           class="org.eclipse.emf.cdo.internal.ui.preferences.CDOPreferencePage"
           id="org.eclipse.emf.cdo.ui.CDOPreferencePage"
           name="%page.name.0">
     </page>
     <page
           category="org.eclipse.emf.cdo.ui.CDOPreferencePage"
           class="org.eclipse.emf.cdo.internal.ui.preferences.CDOUIPreferencePage"
           id="org.eclipse.emf.cdo.ui.CDOUIPreferencePage"
           name="%page.name.1">
     </page>
  </extension>

  <extension
        point="org.eclipse.ui.decorators">
     <decorator
           adaptable="true"
           class="org.eclipse.emf.cdo.ui.CDOLabelDecorator"
           icon="icons/full/obj16/CDOModelFile.gif"
           id="org.eclipse.emf.cdo.ui.CDOLabelDecorator"
           label="%_UI_CDOLabelDecorator_label"
           lightweight="false"
           state="true">
        <enablement>
           <or>
              <objectClass
                    name="org.eclipse.emf.ecore.EObject">
              </objectClass>
              <objectClass
                    name="org.eclipse.emf.cdo.CDOElement">
              </objectClass>
           </or>
        </enablement>
        <description>
           %_UI_CDOLabelDecorator_description
        </description>
     </decorator>
     <!--
     <decorator
           icon="icons/full/ovr16/error.gif"
           id="org.eclipse.emf.cdo.ui.CDOSessionLabelDecorator"
           label="CDOSession Offline Label Decorator"
           lightweight="true"
           location="BOTTOM_LEFT"
           state="true">
        <enablement>
           <and>
              <objectClass name="org.eclipse.emf.cdo.session.CDOSession"/>
  						<test property="org.eclipse.emf.cdo.session.repositoryState" value="OFFLINE"/>
           </and>
        </enablement>
     </decorator>
     -->
  </extension>

  <extension
        point="org.eclipse.core.runtime.adapters">
     <factory
           adaptableType="org.eclipse.emf.cdo.session.CDOSession"
           class="org.eclipse.emf.cdo.internal.ui.CDOPropertyAdapterFactory">
        <adapter type="org.eclipse.ui.views.properties.IPropertySourceProvider"/>
        <adapter type="org.eclipse.ui.IActionFilter"/>
     </factory>
     <factory
           adaptableType="org.eclipse.emf.cdo.view.CDOView"
           class="org.eclipse.emf.cdo.internal.ui.CDOPropertyAdapterFactory">
        <adapter type="org.eclipse.ui.views.properties.IPropertySourceProvider"/>
        <adapter type="org.eclipse.ui.IActionFilter"/>
     </factory>
     <factory
           adaptableType="org.eclipse.emf.ecore.EObject"
           class="org.eclipse.emf.cdo.internal.ui.CDOPropertyAdapterFactory">
        <adapter type="org.eclipse.ui.views.properties.IPropertySourceProvider"/>
        <adapter type="org.eclipse.ui.IActionFilter"/>
     </factory>
     <factory
           adaptableType="org.eclipse.emf.cdo.CDOElement"
           class="org.eclipse.emf.cdo.internal.ui.CDOPropertyAdapterFactory">
        <adapter type="org.eclipse.ui.views.properties.IPropertySourceProvider"/>
        <adapter type="org.eclipse.ui.IActionFilter"/>
     </factory>
  </extension>

	<!--
   <extension
         id="org.eclipse.core.filesystem.cdo.workspace"
         point="org.eclipse.core.filesystem.filesystems">
      <filesystem scheme="cdo.lob">
         <run class="org.eclipse.emf.cdo.internal.ui.CDOLobEditorInput$LobFileSystem"/>
      </filesystem>
   </extension>
	-->

   <extension
         point="org.eclipse.ui.editors.documentProviders">
      <provider
            class="org.eclipse.emf.cdo.internal.ui.CDOLobStorage"
            inputTypes="org.eclipse.emf.cdo.internal.ui.CDOLobEditorInput"
            id="org.eclipse.emf.cdo.ui.CDOLobStorage">
      </provider>
   </extension>

   <!--extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            adaptable="true"
            id="org.eclipse.emf.cdo.ui.CDOResourceNodeContributionsWritableContainer"
            objectClass="org.eclipse.emf.cdo.eresource.CDOResourceNode">
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.RemoveResourceActionDelegate"
               icon="icons/full/elcl16/delete_edit.gif"
               id="org.eclipse.emf.cdo.ui.RemoveResource"
               label="%action.label.2"
               tooltip="%action.tooltip.1">
         </action>
	       <enablement>
              <and>
                 <test property="org.eclipse.emf.cdo.object.permissionContainer" value="WRITE"/>
                 <test property="org.eclipse.emf.cdo.object.viewHistorical" value="false"/>
              </and>
	       </enablement>
      </objectContribution>
      <objectContribution
            adaptable="true"
            id="org.eclipse.emf.cdo.ui.CDOResourceNodeContributionsWritable"
            objectClass="org.eclipse.emf.cdo.eresource.CDOResourceNode">
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.RenameResourceActionDelegate"
               id="org.eclipse.emf.cdo.ui.RenameResource"
               label="%action.label.13"
               tooltip="%action.tooltip.11">
         </action>
	       <enablement>
              <and>
                 <test property="org.eclipse.emf.cdo.object.permission" value="WRITE"/>
                 <test property="org.eclipse.emf.cdo.object.viewHistorical" value="false"/>
              </and>
	       </enablement>
      </objectContribution>
      <objectContribution
            adaptable="true"
            id="org.eclipse.emf.cdo.ui.CDOResourceFolderContributionsWritable"
            objectClass="org.eclipse.emf.cdo.eresource.CDOResourceFolder">
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.NewBinaryResourceActionDelegate"
               icon="icons/full/elcl16/NewCDOBinaryResource.gif"
               id="org.eclipse.emf.cdo.ui.NewBinaryResource"
               label="%action.label.16"
               tooltip="%action.tooltip.13">
         </action>
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.NewTextResourceActionDelegate"
               icon="icons/full/elcl16/NewCDOTextResource.gif"
               id="org.eclipse.emf.cdo.ui.NewTextResource"
               label="%action.label.15"
               tooltip="%action.tooltip.12">
         </action>
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.NewResourceActionDelegate"
               icon="icons/full/elcl16/NewCDOResource.gif"
               id="org.eclipse.emf.cdo.ui.NewResource"
               label="%action.label.3"
               tooltip="%action.tooltip.2">
         </action>
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.NewResourceFolderActionDelegate"
               icon="icons/full/elcl16/NewCDOResourceFolder.gif"
               id="org.eclipse.emf.cdo.ui.NewResourceFolder"
               label="%action.label.4"
               tooltip="%action.tooltip.3">
         </action>
	       <enablement>
              <and>
                 <test property="org.eclipse.emf.cdo.object.permission" value="WRITE"/>
                 <test property="org.eclipse.emf.cdo.object.viewHistorical" value="false"/>
              </and>
	       </enablement>
      </objectContribution>
      <objectContribution
            adaptable="false"
            id="org.eclipse.emf.cdo.ui.CDOResourceActionContributionReadable"
            objectClass="org.eclipse.emf.cdo.eresource.CDOResource">
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.ExportResourceActionDelegate"
               icon="icons/full/elcl16/export_wiz.gif"
               id="org.eclipse.emf.cdo.ui.ExportResource"
               label="%action.label.10"
               tooltip="%action.tooltip.14">
         </action>
	       <enablement>
	        		<test property="org.eclipse.emf.cdo.object.readable" value="true"/>
	       </enablement>
      </objectContribution>
   </extension-->

    <extension point="org.eclipse.ui.popupMenus">
      <objectContribution
            adaptable="true"
            id="org.eclipse.emf.cdo.ui.contribution1"
            objectClass="org.eclipse.emf.cdo.common.commit.CDOCommitInfo">
         <action
               class="org.eclipse.emf.cdo.internal.ui.actions.delegates.CreateBranchActionDelegate"
               enablesFor="1"
               icon="icons/full/obj16/branch.gif"
               id="org.eclipse.emf.cdo.ui.CreateBranchAction"
               label="Create Branch..."
               menubarPath="branching"
               style="push">
         </action>
      </objectContribution>
   </extension>

  <extension point="org.eclipse.ui.commands">
      <command
            id="org.eclipse.emf.cdo.ui.CreateBranch"
            name="Create Branch"
            defaultHandler="org.eclipse.emf.cdo.internal.ui.handlers.CreateBranchHandler"/>
      <command
            id="org.eclipse.emf.cdo.ui.LockObject"
            name="Lock Object"
            defaultHandler="org.eclipse.emf.cdo.internal.ui.handlers.LockingHandler$LockObject"/>
      <command
            id="org.eclipse.emf.cdo.ui.LockTree"
            name="Lock Tree"
            defaultHandler="org.eclipse.emf.cdo.internal.ui.handlers.LockingHandler$LockTree"/>
      <command
            id="org.eclipse.emf.cdo.ui.UnlockObject"
            name="Unlock Object"
            defaultHandler="org.eclipse.emf.cdo.internal.ui.handlers.LockingHandler$UnlockObject"/>
      <command
            id="org.eclipse.emf.cdo.ui.UnlockTree"
            name="Unlock Tree"
            defaultHandler="org.eclipse.emf.cdo.internal.ui.handlers.LockingHandler$UnlockTree"/>
  </extension>

  <extension point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any?after=group.new.branch">
         <command
               commandId="org.eclipse.emf.cdo.ui.CreateBranch"
               icon="icons/full/obj16/branch.gif"
               label="New Branch..."
               style="push"
               tooltip="Add a new branch">
            <visibleWhen checkEnabled="false">
               <with variable="activeMenuSelection">
                  <and>
                    <count value="1"/>
                    <iterate>
                      <adapt type="org.eclipse.emf.cdo.common.branch.CDOBranchCreationContext"/>
                    </iterate>
                  </and>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
         <command
               commandId="org.eclipse.emf.cdo.ui.LockObject"
               icon="icons/full/elcl16/lock.gif"
               label="Lock Object"
               style="push"
               tooltip="Acquire write locks for the selected objects">
            <visibleWhen checkEnabled="false">
               <with variable="activeMenuSelection">
                  <iterate ifEmpty="false">
                    <and>
                      <adapt type="org.eclipse.emf.ecore.EObject"/>
                      <test property="org.eclipse.emf.cdo.object.transactional" value="true"/>
                      <test property="org.eclipse.emf.cdo.object.writeLocked" value="false"/>
                      <test property="org.eclipse.emf.cdo.object.writeLockedByOthers" value="false"/>
                    </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.emf.cdo.ui.LockTree"
               icon="icons/full/elcl16/lock.gif"
               label="Lock Tree"
               style="push"
               tooltip="Acquire write locks for the selected objects and their children">
            <visibleWhen checkEnabled="false">
               <with variable="activeMenuSelection">
                  <iterate ifEmpty="false">
                    <and>
                      <instanceof value="org.eclipse.emf.ecore.EObject"/>
                      <test property="org.eclipse.emf.cdo.object.transactional" value="true"/>
                      <test property="org.eclipse.emf.cdo.object.writeLocked" value="false"/>
                      <test property="org.eclipse.emf.cdo.object.writeLockedByOthers" value="false"/>
                      <test property="org.eclipse.emf.cdo.object.children" value="true"/>
                    </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.emf.cdo.ui.UnlockObject"
               icon="icons/full/elcl16/unlock.gif"
               label="Unlock Object"
               style="push"
               tooltip="Release write locks for the selected objects">
            <visibleWhen checkEnabled="false">
               <with variable="activeMenuSelection">
                  <iterate ifEmpty="false">
                    <and>
                      <adapt type="org.eclipse.emf.ecore.EObject"/>
                      <test property="org.eclipse.emf.cdo.object.writeLocked" value="true"/>
                    </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.emf.cdo.ui.UnlockTree"
               icon="icons/full/elcl16/unlock.gif"
               label="Unlock Tree"
               style="push"
               tooltip="Release write locks for the selected objects and their children">
            <visibleWhen checkEnabled="false">
               <with variable="activeMenuSelection">
                  <iterate ifEmpty="false">
                    <and>
                      <instanceof value="org.eclipse.emf.ecore.EObject"/>
                      <test property="org.eclipse.emf.cdo.object.writeLocked" value="true"/>
                      <test property="org.eclipse.emf.cdo.object.children" value="true"/>
                    </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
  </extension>

</plugin>

Back to the top