Option to copy diagram selection to clipboard as SVG graphics
[simantics/platform.git] / bundles / org.simantics.diagram / 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 <plugin>
15
16    <extension
17          point="org.eclipse.ui.views">
18       <category
19             id="org.simantics.diagram.views"
20             name="Diagramming">
21       </category>
22       <view
23             category="org.simantics.diagram.views"
24             class="org.simantics.diagram.symbollibrary.ui.SymbolPageView"
25             icon="platform:/plugin/com.famfamfam.silk/icons/brick_add.png"
26             id="org.simantics.diagram.symbollibrary"
27             name="Symbols">
28          <description>
29             A paged view for showing rasterized previews of grouped symbols contributed by editors.
30          </description>
31       </view>
32       <!--
33       <view
34             category="org.simantics.diagram.views"
35             class="org.simantics.diagram.symbollibrary.ui.SymbolLibraryView"
36             icon="icons/images.png"
37             id="org.simantics.diagram.symbollibrary.managed"
38             name="Symbols">
39          <description>
40             A view for showing rasterized previews of all available symbols.
41             This is similar to org.simantics.diagram.symbollibrary but is meant
42             for viewing a set of symbols contributed through the active project's
43             org.simantics.diagram.symbollibrary.ISymbolManager instead of a paged
44             editor-specific view.
45          </description>
46       </view>
47       -->
48       <!--
49       <view
50             category="org.simantics.diagram.views"
51             class="org.simantics.diagram.layer.LayersView"
52             icon="icons/layers.png"
53             id="org.simantics.diagram.layers"
54             name="Roles">
55          <description>
56             A view for editing diagram layers.
57          </description>
58       </view>
59       -->
60    </extension>
61
62  <extension
63          point="org.eclipse.ui.menus">
64       <menuContribution
65             locationURI="toolbar:org.simantics.diagram.symbollibrary">
66          <command
67                commandId="org.simantics.diagram.symbollibrary.collapseAll"
68                icon="icons/collapseall.gif"
69                label="Collapse All"
70                style="push"
71                tooltip="Collapse All">
72              <visibleWhen
73                    checkEnabled="true">
74              </visibleWhen>
75          </command>
76          <command
77                commandId="org.simantics.diagram.symbollibrary.expandAll"
78                icon="icons/expandall.gif"
79                label="Expand All"
80                style="push"
81                tooltip="Expand All">
82              <visibleWhen
83                    checkEnabled="true">
84              </visibleWhen>
85          </command>
86       </menuContribution>
87    </extension>
88    
89    <extension
90          point="org.eclipse.ui.commands">
91       <category
92             id="org.simantics.diagram.category"
93             name="Diagramming">
94       </category>
95       <command
96             categoryId="org.simantics.diagram.category"
97             id="org.simantics.diagram.symbollibrary.expandAll"
98             name="expandAll">
99       </command>
100       <command
101             categoryId="org.simantics.diagram.category"
102             id="org.simantics.diagram.symbollibrary.collapseAll"
103             name="collapseAll">
104       </command>
105       <command
106             categoryId="org.simantics.diagram.category"
107             description="Switch to full screen mode"
108             id="fullScreen"
109             name="Full Screen">
110       </command>
111       <command
112             id="rulerDisable"
113             name="Disable Ruler"
114             description="Disable Ruler"
115             categoryId="org.simantics.diagram.category">
116       </command>
117       <command
118             id="rulerEnable"
119             name="Enable Ruler"
120             description="Enable Ruler"
121             categoryId="org.simantics.diagram.category">
122       </command>
123       <command
124             id="rulerToggle"
125             name="Toggle ruler"
126             description="Toggle ruler"
127             categoryId="org.simantics.diagram.category">
128       </command>
129       <command
130             id="snapDisable"
131             name="Disable snap"
132             description="Disable snap"
133             categoryId="org.simantics.diagram.category">
134       </command>
135       <command
136             id="snapEnable"
137             name="Enable snape"
138             description="Enable snap"
139             categoryId="org.simantics.diagram.category">
140       </command>
141       <command
142             id="snapToggle"
143             name="Toggle snap"
144             description="Toggle snap"
145             categoryId="org.simantics.diagram.category">
146       </command>
147       <command
148             id="gridDisable"
149             name="Disable grid"
150             description="disable grid"
151             categoryId="org.simantics.diagram.category">
152       </command>
153       <command
154             id="gridEnable"
155             name="Enable grid"
156             description="Enable grid"
157             categoryId="org.simantics.diagram.category">
158       </command>
159       <command
160             id="gridToggle"
161             name="Toggle Grid"
162             description="Grid toggle"
163             categoryId="org.simantics.diagram.category">
164       </command>
165       <command
166             id="sendDown"
167             name="Send down"
168             description="Send down"
169             categoryId="org.simantics.diagram.category">
170       </command>
171       <command
172             id="bringUp"
173             name="Bring up"
174             description="Bring up"
175             categoryId="org.simantics.diagram.category">
176       </command>
177       <command
178             id="sendToBottom"
179             name="Send to bottom"
180             description="Send to bottom"
181             categoryId="org.simantics.diagram.category">
182       </command>
183       <command
184             id="bringToTop"
185             name="Bring to top"
186             description="Bring element to top"
187             categoryId="org.simantics.diagram.category">
188       </command>
189       <command
190             id="cancel"
191             name="Cancel"
192             description="Cancel current action"
193             categoryId="org.simantics.diagram.category">
194       </command>
195       <command
196             id="invertSelection"
197             name="Invert Selection"
198             description="Invert current selection"
199             categoryId="org.simantics.diagram.category">
200       </command>
201       <command
202             id="rotateCCW"
203             name="Rotate counter clock-wise"
204             description="Rotate counter clock-wise"
205             categoryId="org.simantics.diagram.category">
206       </command>
207       <command
208             id="rotateCW"
209             name="Rotate Clock-wise"
210             description="Rotate Clock-wise"
211             categoryId="org.simantics.diagram.category">
212       </command>
213       <command
214             id="flipElementVertical"
215             name="Flip Element Vertical"
216             description="Flip Element Vertical"
217             categoryId="org.simantics.diagram.category">
218       </command>
219       <command
220             id="flipElementHorizontal"
221             name="Flip Element Horizontal"
222             description="Flip Element Horizontal"
223             categoryId="org.simantics.diagram.category">
224       </command>
225       <command
226             id="rotateElementCCW"
227             name="Rotate Element Counter Clock-wise"
228             description="Rotate Element Counter Clock-wise"
229             categoryId="org.simantics.diagram.category">
230       </command>
231       <command
232             id="rotateElementCW"
233             name="Rotate Element Clock-wise"
234             description="Rotate Element clock-wise"
235             categoryId="org.simantics.diagram.category">
236       </command>
237       <command
238             id="zoomToSelection"
239             name="Zoom to selection"
240             description="Zoom to selection"
241             categoryId="org.simantics.diagram.category">
242       </command>
243       <command
244             id="zoomToFit"
245             name="Zoom to fit"
246             description="Zoom to fit"
247             categoryId="org.simantics.diagram.category">
248       </command>
249       <command
250             id="zoomToPage"
251             name="Zoom to page"
252             description="Zoom to page"
253             categoryId="org.simantics.diagram.category">
254       </command>
255       <command
256             id="zoomOut"
257             name="Zoom Out"
258             description="Zoom Out"
259             categoryId="org.simantics.diagram.category">
260       </command>
261       <command
262             id="zoomIn"
263             name="Zoom In"
264             description="Zoom In"
265             categoryId="org.simantics.diagram.category">
266       </command>
267       <command
268             id="panDown"
269             name="Pan Down"
270             description="Pan Down"
271             categoryId="org.simantics.diagram.category">
272       </command>
273       <command
274             id="panUp"
275             name="Pan Up"
276             description="Pan Up"
277             categoryId="org.simantics.diagram.category">
278       </command>
279       <command
280             id="panRight"
281             name="Pan Right"
282             description="Pan Right"
283             categoryId="org.simantics.diagram.category">
284       </command>      
285       <command
286             id="panLeft"
287             name="Pan Left"
288             description="Pan Left"
289             categoryId="org.simantics.diagram.category">
290       </command>
291       <command
292             id="splitConnection"
293             name="Split Connection"
294             description="Split Selected Connection with Branch Point"
295             categoryId="org.simantics.diagram.category">
296       </command>
297       <command
298             id="scaleElement"
299             name="Scale Element"
300             description="Enter Element Scaling Mode"
301             categoryId="org.simantics.diagram.category">
302       </command>
303       <command
304             categoryId="org.simantics.diagram.category"
305             id="symbolLibrary.activateFilter"
306             name="Activate Symbol Library Filter">
307       </command>
308    </extension>
309
310    <extension point="org.eclipse.core.expressions.definitions">
311       <definition id="org.simantics.modeling.ui.diagram.active">
312          <and>
313             <with variable="activeContexts">
314                <iterate operator="and" ifEmpty="true">
315                   <not>
316                      <equals value="org.simantics.modeling.ui.diagramming.inlineEdit"/>
317                   </not>
318                </iterate>
319             </with>
320             <!-- This works better than the UI context iteration above,
321             since UI contexts will currently disappear the moment a toolbar
322             item is pressed since focus is lost at that moment. -->
323             <with variable="activePart">
324                 <adapt type="org.simantics.g2d.canvas.ICanvasContext"/>
325             </with>
326          </and>
327       </definition>
328       <definition id="org.simantics.diagram.symbolLibrary.active">
329          <with variable="activeContexts">
330             <iterate operator="or" ifEmpty="false">
331                <equals value="org.simantics.diagram.symbolLibrary"/>
332             </iterate>
333          </with>
334       </definition>
335    </extension>
336
337    <extension
338          point="org.eclipse.ui.handlers">
339      <handler
340             commandId="org.simantics.diagram.symbollibrary.expandAll"
341             class="org.simantics.diagram.handler.ExpandAll">
342          <activeWhen>
343             <with
344                   variable="activePartId">
345                <equals
346                      value="org.simantics.diagram.symbollibrary">
347                </equals>
348             </with>
349          </activeWhen>
350       </handler>
351      <handler
352             commandId="org.simantics.diagram.symbollibrary.collapseAll"
353             class="org.simantics.diagram.handler.CollapseAll">
354          <activeWhen>
355             <with
356                   variable="activePartId">
357                <equals
358                      value="org.simantics.diagram.symbollibrary">
359                </equals>
360             </with>
361          </activeWhen>
362       </handler>
363       <handler
364             class="org.simantics.diagram.handler.CanvasCommandDelegate"
365             commandId="copyAsSVG">
366          <activeWhen>
367             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
368          </activeWhen>
369       </handler>
370       <handler
371             class="org.simantics.diagram.handler.CanvasCommandDelegate"
372             commandId="org.eclipse.ui.edit.rename">
373          <activeWhen>
374             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
375          </activeWhen>
376       </handler>
377       <handler
378             class="org.simantics.diagram.handler.CanvasCommandDelegate"
379             commandId="fullScreen">
380          <activeWhen>
381             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
382          </activeWhen>
383       </handler>
384       <handler
385             class="org.simantics.diagram.handler.CanvasCommandDelegate"
386             commandId="panLeft">
387          <activeWhen>
388             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
389          </activeWhen>
390       </handler>
391       <handler
392             class="org.simantics.diagram.handler.CanvasCommandDelegate"
393             commandId="org.eclipse.ui.edit.copy">
394          <activeWhen>
395             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
396          </activeWhen>
397       </handler>
398       <handler
399             class="org.simantics.diagram.handler.CanvasCommandDelegate"
400             commandId="org.eclipse.ui.edit.cut">
401          <activeWhen>
402             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
403          </activeWhen>
404       </handler>
405       <handler
406             class="org.simantics.diagram.handler.CanvasCommandDelegate"
407             commandId="org.eclipse.ui.edit.paste">
408          <activeWhen>
409             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
410          </activeWhen>
411       </handler>
412       <handler
413             class="org.simantics.diagram.handler.CanvasCommandDelegate"
414             commandId="org.eclipse.ui.edit.delete">
415          <activeWhen>
416             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
417          </activeWhen>
418       </handler>
419       <handler
420             class="org.simantics.diagram.handler.CanvasCommandDelegate"
421             commandId="sendDown">
422          <activeWhen>
423             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
424          </activeWhen>
425       </handler>
426       <handler
427             class="org.simantics.diagram.handler.CanvasCommandDelegate"
428             commandId="bringUp">
429          <activeWhen>
430             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
431          </activeWhen>
432       </handler>
433       <handler
434             class="org.simantics.diagram.handler.CanvasCommandDelegate"
435             commandId="sendToBottom">
436          <activeWhen>
437             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
438          </activeWhen>
439       </handler>
440       <handler
441             class="org.simantics.diagram.handler.CanvasCommandDelegate"
442             commandId="bringToTop">
443          <activeWhen>
444             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
445          </activeWhen>
446       </handler>
447       <handler
448             class="org.simantics.diagram.handler.CanvasCommandDelegate"
449             commandId="zoomToSelection">
450          <activeWhen>
451             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
452          </activeWhen>
453       </handler>
454       <handler
455             class="org.simantics.diagram.handler.CanvasCommandDelegate"
456             commandId="zoomToPage">
457          <activeWhen>
458             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
459          </activeWhen>
460       </handler>
461       <handler
462             class="org.simantics.diagram.handler.CanvasCommandDelegate"
463             commandId="zoomOut">
464          <activeWhen>
465             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
466          </activeWhen>
467       </handler>
468       <handler
469             class="org.simantics.diagram.handler.CanvasCommandDelegate"
470             commandId="zoomToFit">
471          <activeWhen>
472             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
473          </activeWhen>
474       </handler>
475       <handler
476             class="org.simantics.diagram.handler.CanvasCommandDelegate"
477             commandId="zoomIn">
478          <activeWhen>
479             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
480          </activeWhen>
481       </handler>
482       <handler
483             class="org.simantics.diagram.handler.CanvasCommandDelegate"
484             commandId="panDown">
485          <activeWhen>
486             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
487          </activeWhen>
488       </handler>
489       <handler
490             class="org.simantics.diagram.handler.CanvasCommandDelegate"
491             commandId="panUp">
492          <activeWhen>
493             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
494          </activeWhen>
495       </handler>
496       <handler
497             class="org.simantics.diagram.handler.CanvasCommandDelegate"
498             commandId="panRight">
499          <activeWhen>
500             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
501          </activeWhen>
502       </handler>
503       <handler
504             class="org.simantics.diagram.handler.CanvasCommandDelegate"
505             commandId="rulerDisable">
506          <activeWhen>
507             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
508          </activeWhen>
509       </handler>
510       <handler
511             class="org.simantics.diagram.handler.CanvasCommandDelegate"
512             commandId="rulerEnable">
513          <activeWhen>
514             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
515          </activeWhen>
516       </handler>
517       <handler
518             class="org.simantics.diagram.handler.CanvasCommandDelegate"
519             commandId="rulerToggle">
520          <activeWhen>
521             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
522          </activeWhen>
523       </handler>
524       <handler
525             class="org.simantics.diagram.handler.CanvasCommandDelegate"
526             commandId="snapDisable">
527          <activeWhen>
528             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
529          </activeWhen>
530       </handler>
531       <handler
532             class="org.simantics.diagram.handler.CanvasCommandDelegate"
533             commandId="snapEnable">
534          <activeWhen>
535             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
536          </activeWhen>
537       </handler>
538       <handler
539             class="org.simantics.diagram.handler.CanvasCommandDelegate"
540             commandId="snapToggle">
541          <activeWhen>
542             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
543          </activeWhen>
544       </handler>
545       <handler
546             class="org.simantics.diagram.handler.CanvasCommandDelegate"
547             commandId="gridDisable">
548          <activeWhen>
549             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
550          </activeWhen>
551       </handler>
552       <handler
553             class="org.simantics.diagram.handler.CanvasCommandDelegate"
554             commandId="gridEnable">
555          <activeWhen>
556             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
557          </activeWhen>
558       </handler>
559       <handler
560             class="org.simantics.diagram.handler.CanvasCommandDelegate"
561             commandId="gridToggle">
562          <activeWhen>
563             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
564          </activeWhen>
565       </handler>
566       <handler
567             class="org.simantics.diagram.handler.CanvasCommandDelegate"
568             commandId="cancel">
569          <activeWhen>
570             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
571          </activeWhen>
572       </handler>
573       <handler
574             class="org.simantics.diagram.handler.CanvasCommandDelegate"
575             commandId="org.eclipse.ui.edit.selectAll">
576          <activeWhen>
577             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
578          </activeWhen>
579       </handler>
580       <handler
581             class="org.simantics.diagram.handler.CanvasCommandDelegate"
582             commandId="invertSelection">
583          <activeWhen>
584             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
585          </activeWhen>
586       </handler>
587       <handler
588             class="org.simantics.diagram.handler.CanvasCommandDelegate"
589             commandId="rotateElementCCW">
590          <activeWhen>
591             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
592          </activeWhen>
593       </handler>
594       <handler
595             class="org.simantics.diagram.handler.CanvasCommandDelegate"
596             commandId="rotateElementCW">
597          <activeWhen>
598             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
599          </activeWhen>
600       </handler>
601       <handler
602             class="org.simantics.diagram.handler.CanvasCommandDelegate"
603             commandId="rotateCCW">
604          <activeWhen>
605             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
606          </activeWhen>
607       </handler>
608       <handler
609             class="org.simantics.diagram.handler.CanvasCommandDelegate"
610             commandId="rotateCW">
611          <activeWhen>
612             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
613          </activeWhen>
614       </handler>
615       <handler
616             class="org.simantics.diagram.handler.CanvasCommandDelegate"
617             commandId="flipElementVertical">
618          <activeWhen>
619             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
620          </activeWhen>
621       </handler>
622       <handler
623             class="org.simantics.diagram.handler.CanvasCommandDelegate"
624             commandId="flipElementHorizontal">
625          <activeWhen>
626             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
627          </activeWhen>
628       </handler>
629       <handler
630             class="org.simantics.diagram.handler.CanvasCommandDelegate"
631             commandId="splitConnection">
632          <activeWhen>
633             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
634          </activeWhen>
635       </handler>
636       <handler
637             class="org.simantics.diagram.handler.CanvasCommandDelegate"
638             commandId="scaleElement">
639          <activeWhen>
640             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
641          </activeWhen>
642       </handler>
643       <handler
644             class="org.simantics.diagram.symbollibrary.ui.ActivateFilterHandler"
645             commandId="symbolLibrary.activateFilter">
646          <activeWhen>
647             <reference definitionId="org.simantics.diagram.symbolLibrary.active" />
648          </activeWhen>
649       </handler>
650    </extension>
651    
652    <extension
653          point="org.eclipse.ui.bindings">
654       <key
655             commandId="fullScreen"
656             contextId="org.simantics.modeling.ui.diagramming"
657             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
658             sequence="Alt+Enter">
659       </key>
660       <key
661             commandId="cancel"
662             sequence="Esc"
663             contextId="org.simantics.modeling.ui.diagramming"
664             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
665       </key>
666       <key
667             commandId="zoomToFit"
668             sequence="1"
669             contextId="org.simantics.modeling.ui.diagramming"
670             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
671       </key>
672       <key
673             commandId="zoomToSelection"
674             sequence="2"
675             contextId="org.simantics.modeling.ui.diagramming"
676             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
677       </key>
678       <key
679             commandId="zoomToPage"
680             sequence="3"
681             contextId="org.simantics.modeling.ui.diagramming"
682             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
683       </key>
684       <key
685             commandId="zoomIn"
686             sequence="Numpad_Add"
687             contextId="org.simantics.modeling.ui.diagramming"
688             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
689       </key>
690       <key
691             commandId="zoomOut"
692             sequence="Numpad_Subtract"
693             contextId="org.simantics.modeling.ui.diagramming"
694             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
695       </key>      
696       <key
697             commandId="zoomIn"
698             sequence="+"
699             contextId="org.simantics.modeling.ui.diagramming"
700             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
701       </key>
702       <key
703             commandId="zoomOut"
704             sequence="-"
705             contextId="org.simantics.modeling.ui.diagramming"
706             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
707       </key>      
708       <key
709             commandId="org.eclipse.ui.file.refresh"
710             sequence="F5"
711             contextId="org.simantics.modeling.ui.diagramming"
712             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
713       </key>      
714       <key
715             commandId="org.eclipse.ui.edit.selectAll"
716             sequence="Ctrl+A"
717             contextId="org.simantics.modeling.ui.diagramming"
718             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
719       </key>      
720       <key
721             commandId="invertSelection"
722             sequence="Ctrl+I"
723             contextId="org.simantics.modeling.ui.diagramming"
724             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
725       </key>      
726       <key
727             commandId="bringToTop"
728             sequence="Home"
729             contextId="org.simantics.modeling.ui.diagramming"
730             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
731       </key>      
732       <key
733             commandId="sendToBottom"
734             sequence="End"
735             contextId="org.simantics.modeling.ui.diagramming"
736             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
737       </key>      
738       <key
739             commandId="bringUp"
740             sequence="Page_Up"
741             contextId="org.simantics.modeling.ui.diagramming"
742             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
743       </key>      
744       <key
745             commandId="sendDown"
746             sequence="Page_Down"
747             contextId="org.simantics.modeling.ui.diagramming"
748             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
749       </key>      
750       <key
751             commandId="rotateElementCCW"
752             sequence=","
753             contextId="org.simantics.modeling.ui.diagramming"
754             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
755       </key>      
756       <key
757             commandId="rotateElementCW"
758             sequence="."
759             contextId="org.simantics.modeling.ui.diagramming"
760             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
761       </key>      
762       <key
763             commandId="gridToggle"
764             sequence="G"
765             contextId="org.simantics.modeling.ui.diagramming"
766             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
767       </key>      
768       <key
769             commandId="rulerToggle"
770             sequence="R"
771             contextId="org.simantics.modeling.ui.diagramming"
772             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
773       </key>      
774       <key
775             commandId="flipElementHorizontal"
776             sequence="H"
777             contextId="org.simantics.modeling.ui.diagramming"
778             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
779       </key>
780       <key
781             commandId="flipElementVertical"
782             sequence="V"
783             contextId="org.simantics.modeling.ui.diagramming"
784             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
785       </key>
786       <key
787             commandId="panLeft"
788             sequence="Arrow_Left"
789             contextId="org.simantics.modeling.ui.diagramming"
790             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
791       </key>            
792       <key
793             commandId="panRight"
794             sequence="Arrow_Right"
795             contextId="org.simantics.modeling.ui.diagramming"
796             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
797       </key>            
798       <key
799             commandId="panUp"
800             sequence="Arrow_Up"
801             contextId="org.simantics.modeling.ui.diagramming"
802             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
803       </key>            
804       <key
805             commandId="panDown"
806             sequence="Arrow_Down"
807             contextId="org.simantics.modeling.ui.diagramming"
808             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
809       </key>
810       <key
811             commandId="splitConnection"
812             sequence="S"
813             contextId="org.simantics.modeling.ui.diagramming"
814             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
815       </key>
816       <key
817             commandId="scaleElement"
818             sequence="Alt+S"
819             contextId="org.simantics.modeling.ui.diagramming"
820             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
821       </key>
822       <key
823             commandId="symbolLibrary.activateFilter"
824             contextId="org.simantics.diagram.symbolLibrary"
825             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
826             sequence="Ctrl+F">
827       </key>
828    </extension>
829    
830    <extension
831          point="org.eclipse.ui.contexts">
832       <context
833             description="Diagramming Editor Context"
834             id="org.simantics.modeling.ui.diagramming"
835             name="In Diagram Editor"
836             parentId="org.eclipse.ui.contexts.window">
837       </context>
838       <context
839             description="An inline editor within a diagram is active"
840             id="org.simantics.modeling.ui.diagramming.inlineEdit"
841             name="Inline Editor Active"
842             parentId="org.eclipse.ui.contexts.window">
843       </context>
844       <context
845             description="Symbol Library Context"
846             id="org.simantics.diagram.symbolLibrary"
847             name="In Symbol Library"
848             parentId="org.eclipse.ui.contexts.window">
849       </context>
850    </extension>
851    
852    <extension
853          point="org.eclipse.core.expressions.propertyTesters">
854       <propertyTester
855             class="org.simantics.diagram.flag.FlagPropertyTester"
856             id="org.simantics.diagram.flagPropertyTester"
857             namespace="org.simantics.diagram.flag"
858             properties="connected,locallyConnected,external,merged"
859             type="java.lang.Object">
860       </propertyTester>
861       <propertyTester
862             class="org.simantics.diagram.elements.ElementPropertyTester"
863             id="org.simantics.diagram.elementPropertyTester"
864             namespace="org.simantics.diagram.element"
865             properties="mapped"
866             type="java.lang.Object">
867       </propertyTester>
868       <propertyTester
869             class="org.simantics.diagram.ui.ToolPropertyTester"
870             id="org.simantics.diagram.toolPropertyTester"
871             namespace="org.simantics.diagram.tool"
872             properties="mode"
873             type="org.eclipse.ui.IEditorPart">
874       </propertyTester>
875    </extension>
876
877    <extension
878          point="org.simantics.scl.reflection.binding">
879       <namespace
880             path="http://www.simantics.org/Diagram-0.0/Functions">
881          <externalClass className="org.simantics.diagram.content.ElementContext"/>
882          <externalClass className="org.simantics.db.Resource"/>
883          <externalClass className="org.simantics.db.ReadGraph"/>
884          <externalClass className="org.simantics.db.layer0.variable.Variable"/>
885          <class
886                className="org.simantics.diagram.function.All">
887          </class>
888       </namespace>
889    </extension>
890    <extension
891          point="org.simantics.export.core.export">
892          
893       <content_type
894             icon="platform:/plugin/com.famfamfam.silk/companion/shape_3d.png"
895             id="componentType"
896             label="User Component"
897             plural="User Components"
898             model="false">
899       </content_type>
900       <content_type
901             contentTypeAction="org.simantics.diagram.export.DiagramContentTypeAction"
902             icon="platform:/plugin/org.simantics.diagram/icons/Generic_Diagram.png"
903             id="diagram"
904             label="Diagram"
905             model="false"
906             plural="Diagrams">
907       </content_type>
908       <content_type
909             icon="platform:/plugin/com.famfamfam.silk/icons/layout.png"
910             id="diagramTemplate"
911             label="Diagram Template"
912             plural="Diagram Templates"
913             model="false">
914       </content_type>
915       <content_type
916             icon="platform:/plugin/org.simantics.diagram/icons/Typical_Diagram.png"
917             id="typical"
918             label="Typical Template"
919             plural="Typical Templates"
920             model="false">
921       </content_type>
922
923       <discoverer
924             content_type_id="diagram"
925             discoverAction="org.simantics.diagram.export.DiscoverDiagrams">
926       </discoverer>
927
928           <exporter
929          content_type_id="diagram"
930          exportAction="org.simantics.diagram.export.ExportDiagramPdf"
931          exportPriority="5"
932          formatId="pdf">
933       </exporter>    
934          
935    </extension>
936
937 </plugin>