]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.team.ui/plugin.xml
Merge "General event listening interface for DB and purge events."
[simantics/platform.git] / bundles / org.simantics.team.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>\r<!--
3     Copyright (c) 2007, 2010 Association for Decentralized Information Management
4     in Industry THTH ry.
5     All rights reserved. This program and the accompanying materials
6     are made available under the terms of the Eclipse Public License v1.0
7     which accompanies this distribution, and is available at
8     http://www.eclipse.org/legal/epl-v10.html
9    
10     Contributors:
11         VTT Technical Research Centre of Finland - initial API and implementation
12  -->
13 <!--
14 TODO:
15
16 Difference and merge view.
17 - Support for partial staging.
18 - Support for full and partial update  of parent workbench.
19
20 Team view to support multiple teams.
21
22 Support for common protocols:
23 [t]ftp, http[s], ssh, git, svn, ua
24
25 Support for team events.
26
27 And lots more...
28 -->
29 <plugin>
30
31    <extension
32          point="org.eclipse.ui.views">
33       <category
34             id="org.simantics.team"
35             name="Team">
36       </category>
37       <!--
38       <view
39             allowMultiple="false"
40             category="org.simantics.team"
41             class="org.simantics.team.ui.SynchroniseView"
42             icon="icons/arrow_refresh.png"
43             id="org.simantics.team.synchroniseView"
44             name="Team">
45       </view>
46       <view
47             allowMultiple="false"
48             category="org.simantics.team"
49             class="org.simantics.team.ui.StagingView"
50             icon="icons/bin_empty.png"
51             id="org.simantics.team.stagingView"
52             name="Staging">
53       </view>
54       -->
55       <view
56             allowMultiple="false"
57             category="org.simantics.debug.ui"
58             class="org.simantics.team.ui.HistoryView"
59             icon="icons/bin.png"
60             id="org.simantics.team.historyView"
61             name="Graph History">
62       </view>
63       <view
64             allowMultiple="false"
65             category="org.simantics.debug.ui"
66             class="org.simantics.team.ui.UndoView"
67             icon="icons/arrow_left.png"
68             id="org.simantics.team.undoView"
69             name="Undo History">
70       </view>
71       <view
72             allowMultiple="false"
73             category="org.simantics.debug.ui"
74             class="org.simantics.team.ui.RedoView"
75             icon="icons/arrow_right.png"
76             id="org.simantics.team.redoView"
77             name="Redo History">
78       </view>
79    </extension>
80    <extension
81          point="org.eclipse.ui.perspectives">
82       <!--
83       <perspective
84             class="org.simantics.team.internal.TeamPerspective"
85             fixed="true"
86             icon="icons/arrow_refresh.png"
87             id="org.simantics.team.perspective"
88             name="Team">
89       </perspective>
90       -->
91    </extension>
92    <extension
93          point="org.eclipse.ui.perspectiveExtensions">
94       <!--
95       <perspectiveExtension
96             targetID="org.simantics.team.perspective">
97          <view
98                closeable="false"
99                id="org.simantics.team.synchroniseView"
100                minimized="false"
101                moveable="true"
102                ratio="0.35"
103                relationship="left"
104                relative="org.eclipse.ui.editorss"
105                showTitle="true"
106                standalone="true"
107                visible="true">
108          </view>
109          <perspectiveShortcut
110                id="org.simantics.user.perspective">
111          </perspectiveShortcut>
112       </perspectiveExtension>
113       -->
114    </extension>
115
116    <extension
117          point="org.eclipse.ui.commands">
118       <category
119             id="org.simantics.team.category"
120             name="TeamCategory">
121       </category>
122       <category
123             id="org.simantics.graph.category"
124             name="GraphCategory">
125       </category>
126       <command
127             categoryId="org.simantics.team.category"
128             description="Debug"
129             id="org.simantics.team.debug"
130             name="Debug">
131       </command>
132       <!--
133       <command
134             categoryId="org.simantics.team.category"
135             description="Edit Stage"
136             id="org.simantics.team.stageEdit"
137             name="Edit staging workbench">
138       </command>
139       <command
140             categoryId="org.simantics.team.category"
141             description="Initialize staging workbench"
142             id="org.simantics.team.stageInit"
143             name="Initialize staging workbench">
144       </command>
145       <command
146             categoryId="org.simantics.team.category"
147             description="Synchronise All Outgoing Changes"
148             id="org.simantics.team.synchroniseAll"
149             name="Synchronise All">
150       </command>
151       <command
152             categoryId="org.simantics.team.category"
153             description="Commit All Outgoing Changes"
154             id="org.simantics.team.commitAll"
155             name="Commit All">
156       </command>
157       <command
158             categoryId="org.simantics.team.category"
159             description="Exit"
160             id="org.simantics.team.stagingAll"
161             name="Exit">
162       </command>
163       <command
164             categoryId="org.simantics.team.category"
165             description="Push and Exit"
166             id="org.simantics.team.stagingOut"
167             name="Stage Out">
168       </command>
169       -->
170       <command
171             categoryId="org.simantics.graph.category"
172             description="Undo to selected revision."
173             id="org.simantics.team.undoToSelectedRevision"
174             name="Undo To Selected Revision">
175       </command>
176       <command
177             categoryId="org.simantics.graph.category"
178             description="Init undo list to selected revision."
179             id="org.simantics.team.initUndoListFromSelectedRevision"
180             name="Init Undo List From Selected Revision">
181       </command>
182       <command
183             categoryId="org.simantics.graph.category"
184             description="Dump to selected revision."
185             id="org.simantics.team.dumpToSelectedRevision"
186             name="Dump To Selected Revision">
187       </command>
188       <command
189             categoryId="org.simantics.graph.category"
190             description="Revert to selected revision."
191             id="org.simantics.team.revertToSelectedRevision"
192             name="Revert To Selected Revision">
193       </command>
194       <command
195             categoryId="org.simantics.graph.category"
196             description="Revert to selected revision. Stop on error."
197             id="org.simantics.team.revertToSelectedRevisionStopOnError"
198             name="Revert To Selected Revision. Stop on error.">
199       </command>
200    </extension>
201    <extension
202          point="org.eclipse.ui.handlers">
203       <handler
204             class="org.simantics.team.ui.handlers.DebugHandler"
205             commandId="org.simantics.team.debug">
206       </handler>
207       <!--
208       <handler
209             class="org.simantics.team.ui.handlers.StageEditHandler"
210             commandId="org.simantics.team.stageEdit">
211       </handler>
212       <handler
213             class="org.simantics.team.ui.handlers.StageInitHandler"
214             commandId="org.simantics.team.stageInit">
215       </handler>
216       <handler
217             class="org.simantics.team.ui.handlers.SynchroniseAllHandler"
218             commandId="org.simantics.team.synchroniseAll">
219       </handler>
220       <handler
221             class="org.simantics.team.ui.handlers.CommitAllHandler"
222             commandId="org.simantics.team.commitAll">
223       </handler>
224       <handler
225             class="org.simantics.team.ui.handlers.StagingAllHandler"
226             commandId="org.simantics.team.stagingAll">
227       </handler>
228       <handler
229             class="org.simantics.team.ui.handlers.StagingOutHandler"
230             commandId="org.simantics.team.stagingOut">
231       </handler>
232       -->
233       <handler
234             class="org.simantics.team.ui.handlers.UndoToSelectedRevisionHandler"
235             commandId="org.simantics.team.undoToSelectedRevision">
236       </handler>
237       <handler
238             class="org.simantics.team.ui.handlers.InitUndoListFromSelectedRevisionHandler"
239             commandId="org.simantics.team.initUndoListFromSelectedRevision">
240       </handler>
241       <handler
242             class="org.simantics.team.ui.handlers.DumpToSelectedRevisionHandler"
243             commandId="org.simantics.team.dumpToSelectedRevision">
244       </handler>
245       <handler
246             class="org.simantics.team.ui.handlers.RevertToSelectedRevisionHandler"
247             commandId="org.simantics.team.revertToSelectedRevision">
248       </handler>
249       <handler
250             class="org.simantics.team.ui.handlers.RevertToSelectedRevisionHandlerStopOnError"
251             commandId="org.simantics.team.revertToSelectedRevisionStopOnError">
252       </handler>
253    </extension>
254
255    <extension
256          point="org.eclipse.ui.menus">
257       <!--
258       <menuContribution
259             locationURI="popup:#TeamViewPopup">
260          <command
261                commandId="org.simantics.team.stageEdit"
262                disabledIcon="icons/bin_empty.png"
263                icon="icons/bin_empty.png"
264                label="Edit staging workbench"
265                style="push"
266                tooltip="Edit staging workbench">
267             <visibleWhen
268                   checkEnabled="false">
269             </visibleWhen>
270          </command>
271          <command
272                commandId="org.simantics.team.stageInit"
273                disabledIcon="icons/bin_closed.png"
274                icon="icons/bin_closed.png"
275                label="Initialize staging workbench"
276                style="push"
277                tooltip="Initialize staging workbench">
278             <visibleWhen
279                   checkEnabled="false">
280             </visibleWhen>
281          </command>
282          <command
283                commandId="org.simantics.team.synchroniseAll"
284                disabledIcon="platform:/plugin/com.famfamfam.silk/icons/door_out.png"
285                icon="platform:/plugin/com.famfamfam.silk/icons/door_out.png"
286                label="Update staging workbench"
287                style="push"
288                tooltip="Update staging workbench">
289             <visibleWhen
290                   checkEnabled="false">
291             </visibleWhen>
292          </command>
293       </menuContribution>
294       <menuContribution
295             locationURI="toolbar:org.simantics.team.synchroniseView">
296          <command
297                commandId="org.simantics.team.stageEdit"
298                disabledIcon="icons/bin_empty.png"
299                icon="icons/bin_empty.png"
300                label="Edit staging workbench"
301                style="push"
302                tooltip="Edit staging workbench">
303             <visibleWhen
304                   checkEnabled="false">
305             </visibleWhen>
306          </command>
307          <command
308                commandId="org.simantics.team.stageInit"
309                disabledIcon="icons/bin_closed.png"
310                icon="icons/bin_closed.png"
311                label="Initialize staging workbench"
312                style="push"
313                tooltip="Initialize staging workbench">
314             <visibleWhen
315                   checkEnabled="false">
316             </visibleWhen>
317          </command>
318          <command
319                commandId="org.simantics.team.synchroniseAll"
320                disabledIcon="platform:/plugin/com.famfamfam.silk/icons/door_out.png"
321                icon="platform:/plugin/com.famfamfam.silk/icons/door_out.png"
322                label="Update staging workbench"
323                style="push"
324                tooltip="Update staging workbench">
325             <visibleWhen
326                   checkEnabled="false">
327             </visibleWhen>
328          </command>
329       </menuContribution>
330       <menuContribution
331             locationURI="toolbar:org.simantics.team.stagingView">
332          <command
333                commandId="org.simantics.team.stagingAll"
334                disabledIcon="icons/bin.png"
335                icon="icons/bin.png"
336                label="Discarcd"
337                style="push"
338                tooltip="Discard">
339             <visibleWhen
340                   checkEnabled="false">
341             </visibleWhen>
342          </command>
343          <command
344                commandId="org.simantics.team.stagingOut"
345                disabledIcon="icons/door_in.png"
346                icon="icons/door_in.png"
347                label="Accept"
348                style="push"
349                tooltip="Accept">
350             <visibleWhen
351                   checkEnabled="false">
352             </visibleWhen>
353          </command>
354       </menuContribution>
355       -->
356       <menuContribution
357             locationURI="popup:#GraphHistoryPopup">
358          <command
359                commandId="org.simantics.team.undoToSelectedRevision"
360                icon="platform:/plugin/com.famfamfam.silk/icons/arrow_undo.png"
361                label="Undo To Selected Revision"
362                style="push"
363                tooltip="Undo to selected revision.">
364             <visibleWhen
365                 checkEnabled="false">
366                 <!--<with
367                     variable="selection">
368                   <and>
369                      <test
370                            args="org.simantics.modeling.ui.modelBrowser.model.Node"
371                            property="org.simantics.modeling.ui.nodeClass">
372                      </test>
373                   </and>
374                 </with>-->
375             </visibleWhen>
376          </command>
377          <command
378                commandId="org.simantics.team.initUndoListFromSelectedRevision"
379                icon="platform:/plugin/com.famfamfam.silk/icons/arrow_redo.png"
380                label="Init Undo List From Selected Revision"
381                style="push"
382                tooltip="Init undo list from selected revision.">
383          </command>
384          <command
385                commandId="org.simantics.team.dumpToSelectedRevision"
386                icon="platform:/plugin/com.famfamfam.silk/icons/bin.png"
387                label="Dump To Selected Revision"
388                style="push"
389                tooltip="Dump to selected revision.">
390          </command>
391          <command
392                commandId="org.simantics.team.revertToSelectedRevision"
393                icon="platform:/plugin/com.famfamfam.silk/icons/bin_closed.png"
394                label="Revert To Selected Revision"
395                style="push"
396                tooltip="Revert to selected revision.">
397          </command>
398          <command
399                commandId="org.simantics.team.revertToSelectedRevisionStopOnError"
400                icon="platform:/plugin/com.famfamfam.silk/icons/bin_empty.png"
401                label="Revert To Selected Revision. Stop On Error."
402                style="push"
403                tooltip="Revert to selected revision. Stop On Error.">
404          </command>
405       </menuContribution>
406
407    </extension>
408
409 </plugin>