]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/plugin.xml
Enhancements to modelled tests
[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="org.eclipse.ui.edit.rename">
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="fullScreen">
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="panLeft">
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="org.eclipse.ui.edit.copy">
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.cut">
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.paste">
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.delete">
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="sendDown">
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="bringUp">
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="sendToBottom">
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="bringToTop">
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="zoomToSelection">
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="zoomToPage">
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="zoomOut">
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="zoomToFit">
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="zoomIn">
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="panDown">
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="panUp">
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="panRight">
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="rulerDisable">
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="rulerEnable">
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="rulerToggle">
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="snapDisable">
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="snapEnable">
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="snapToggle">
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="gridDisable">
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="gridEnable">
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="gridToggle">
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="cancel">
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="org.eclipse.ui.edit.selectAll">
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="invertSelection">
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="rotateElementCCW">
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="rotateElementCW">
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="rotateCCW">
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="rotateCW">
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="flipElementVertical">
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="flipElementHorizontal">
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="splitConnection">
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="scaleElement">
632          <activeWhen>
633             <reference definitionId="org.simantics.modeling.ui.diagram.active" />
634          </activeWhen>
635       </handler>
636       <handler
637             class="org.simantics.diagram.symbollibrary.ui.ActivateFilterHandler"
638             commandId="symbolLibrary.activateFilter">
639          <activeWhen>
640             <reference definitionId="org.simantics.diagram.symbolLibrary.active" />
641          </activeWhen>
642       </handler>
643    </extension>
644    
645    <extension
646          point="org.eclipse.ui.bindings">
647       <key
648             commandId="fullScreen"
649             contextId="org.simantics.modeling.ui.diagramming"
650             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
651             sequence="Alt+Enter">
652       </key>
653       <key
654             commandId="cancel"
655             sequence="Esc"
656             contextId="org.simantics.modeling.ui.diagramming"
657             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
658       </key>
659       <key
660             commandId="zoomToFit"
661             sequence="1"
662             contextId="org.simantics.modeling.ui.diagramming"
663             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
664       </key>
665       <key
666             commandId="zoomToSelection"
667             sequence="2"
668             contextId="org.simantics.modeling.ui.diagramming"
669             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
670       </key>
671       <key
672             commandId="zoomToPage"
673             sequence="3"
674             contextId="org.simantics.modeling.ui.diagramming"
675             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
676       </key>
677       <key
678             commandId="zoomIn"
679             sequence="Numpad_Add"
680             contextId="org.simantics.modeling.ui.diagramming"
681             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
682       </key>
683       <key
684             commandId="zoomOut"
685             sequence="Numpad_Subtract"
686             contextId="org.simantics.modeling.ui.diagramming"
687             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
688       </key>      
689       <key
690             commandId="zoomIn"
691             sequence="+"
692             contextId="org.simantics.modeling.ui.diagramming"
693             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
694       </key>
695       <key
696             commandId="zoomOut"
697             sequence="-"
698             contextId="org.simantics.modeling.ui.diagramming"
699             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
700       </key>      
701       <key
702             commandId="org.eclipse.ui.file.refresh"
703             sequence="F5"
704             contextId="org.simantics.modeling.ui.diagramming"
705             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
706       </key>      
707       <key
708             commandId="org.eclipse.ui.edit.selectAll"
709             sequence="Ctrl+A"
710             contextId="org.simantics.modeling.ui.diagramming"
711             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
712       </key>      
713       <key
714             commandId="invertSelection"
715             sequence="Ctrl+I"
716             contextId="org.simantics.modeling.ui.diagramming"
717             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
718       </key>      
719       <key
720             commandId="bringToTop"
721             sequence="Home"
722             contextId="org.simantics.modeling.ui.diagramming"
723             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
724       </key>      
725       <key
726             commandId="sendToBottom"
727             sequence="End"
728             contextId="org.simantics.modeling.ui.diagramming"
729             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
730       </key>      
731       <key
732             commandId="bringUp"
733             sequence="Page_Up"
734             contextId="org.simantics.modeling.ui.diagramming"
735             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
736       </key>      
737       <key
738             commandId="sendDown"
739             sequence="Page_Down"
740             contextId="org.simantics.modeling.ui.diagramming"
741             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
742       </key>      
743       <key
744             commandId="rotateElementCCW"
745             sequence=","
746             contextId="org.simantics.modeling.ui.diagramming"
747             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
748       </key>      
749       <key
750             commandId="rotateElementCW"
751             sequence="."
752             contextId="org.simantics.modeling.ui.diagramming"
753             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
754       </key>      
755       <key
756             commandId="gridToggle"
757             sequence="G"
758             contextId="org.simantics.modeling.ui.diagramming"
759             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
760       </key>      
761       <key
762             commandId="rulerToggle"
763             sequence="R"
764             contextId="org.simantics.modeling.ui.diagramming"
765             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
766       </key>      
767       <key
768             commandId="flipElementHorizontal"
769             sequence="H"
770             contextId="org.simantics.modeling.ui.diagramming"
771             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
772       </key>
773       <key
774             commandId="flipElementVertical"
775             sequence="V"
776             contextId="org.simantics.modeling.ui.diagramming"
777             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
778       </key>
779       <key
780             commandId="panLeft"
781             sequence="Arrow_Left"
782             contextId="org.simantics.modeling.ui.diagramming"
783             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
784       </key>            
785       <key
786             commandId="panRight"
787             sequence="Arrow_Right"
788             contextId="org.simantics.modeling.ui.diagramming"
789             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
790       </key>            
791       <key
792             commandId="panUp"
793             sequence="Arrow_Up"
794             contextId="org.simantics.modeling.ui.diagramming"
795             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
796       </key>            
797       <key
798             commandId="panDown"
799             sequence="Arrow_Down"
800             contextId="org.simantics.modeling.ui.diagramming"
801             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
802       </key>
803       <key
804             commandId="splitConnection"
805             sequence="S"
806             contextId="org.simantics.modeling.ui.diagramming"
807             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
808       </key>
809       <key
810             commandId="scaleElement"
811             sequence="Alt+S"
812             contextId="org.simantics.modeling.ui.diagramming"
813             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
814       </key>
815       <key
816             commandId="symbolLibrary.activateFilter"
817             contextId="org.simantics.diagram.symbolLibrary"
818             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
819             sequence="Ctrl+F">
820       </key>
821    </extension>
822    
823    <extension
824          point="org.eclipse.ui.contexts">
825       <context
826             description="Diagramming Editor Context"
827             id="org.simantics.modeling.ui.diagramming"
828             name="In Diagram Editor"
829             parentId="org.eclipse.ui.contexts.window">
830       </context>
831       <context
832             description="An inline editor within a diagram is active"
833             id="org.simantics.modeling.ui.diagramming.inlineEdit"
834             name="Inline Editor Active"
835             parentId="org.eclipse.ui.contexts.window">
836       </context>
837       <context
838             description="Symbol Library Context"
839             id="org.simantics.diagram.symbolLibrary"
840             name="In Symbol Library"
841             parentId="org.eclipse.ui.contexts.window">
842       </context>
843    </extension>
844    
845    <extension
846          point="org.eclipse.core.expressions.propertyTesters">
847       <propertyTester
848             class="org.simantics.diagram.flag.FlagPropertyTester"
849             id="org.simantics.diagram.flagPropertyTester"
850             namespace="org.simantics.diagram.flag"
851             properties="connected,locallyConnected,external,merged"
852             type="java.lang.Object">
853       </propertyTester>
854       <propertyTester
855             class="org.simantics.diagram.elements.ElementPropertyTester"
856             id="org.simantics.diagram.elementPropertyTester"
857             namespace="org.simantics.diagram.element"
858             properties="mapped"
859             type="java.lang.Object">
860       </propertyTester>
861       <propertyTester
862             class="org.simantics.diagram.ui.ToolPropertyTester"
863             id="org.simantics.diagram.toolPropertyTester"
864             namespace="org.simantics.diagram.tool"
865             properties="mode"
866             type="org.eclipse.ui.IEditorPart">
867       </propertyTester>
868    </extension>
869
870    <extension
871          point="org.simantics.scl.reflection.binding">
872       <namespace
873             path="http://www.simantics.org/Diagram-0.0/Functions">
874          <externalClass className="org.simantics.diagram.content.ElementContext"/>
875          <externalClass className="org.simantics.db.Resource"/>
876          <externalClass className="org.simantics.db.ReadGraph"/>
877          <externalClass className="org.simantics.db.layer0.variable.Variable"/>
878          <class
879                className="org.simantics.diagram.function.All">
880          </class>
881       </namespace>
882    </extension>
883    <extension
884          point="org.simantics.export.core.export">
885          
886       <content_type
887             icon="platform:/plugin/com.famfamfam.silk/companion/shape_3d.png"
888             id="componentType"
889             label="User Component"
890             plural="User Components"
891             model="false">
892       </content_type>
893       <content_type
894             contentTypeAction="org.simantics.diagram.export.DiagramContentTypeAction"
895             icon="platform:/plugin/org.simantics.diagram/icons/Generic_Diagram.png"
896             id="diagram"
897             label="Diagram"
898             model="false"
899             plural="Diagrams">
900       </content_type>
901       <content_type
902             icon="platform:/plugin/com.famfamfam.silk/icons/layout.png"
903             id="diagramTemplate"
904             label="Diagram Template"
905             plural="Diagram Templates"
906             model="false">
907       </content_type>
908       <content_type
909             icon="platform:/plugin/org.simantics.diagram/icons/Typical_Diagram.png"
910             id="typical"
911             label="Typical Template"
912             plural="Typical Templates"
913             model="false">
914       </content_type>
915
916       <discoverer
917             content_type_id="diagram"
918             discoverAction="org.simantics.diagram.export.DiscoverDiagrams">
919       </discoverer>
920
921           <exporter
922          content_type_id="diagram"
923          exportAction="org.simantics.diagram.export.ExportDiagramPdf"
924          exportPriority="5"
925          formatId="pdf">
926       </exporter>    
927          
928    </extension>
929
930 </plugin>