1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
\r<!--
3 Copyright (c) 2007, 2010 Association for Decentralized Information Management
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
11 VTT Technical Research Centre of Finland - initial API and implementation
17 point="org.eclipse.ui.views">
19 id="org.simantics.diagram.views"
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"
29 A paged view for showing rasterized previews of grouped symbols contributed by editors.
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"
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
50 category="org.simantics.diagram.views"
51 class="org.simantics.diagram.layer.LayersView"
52 icon="icons/layers.png"
53 id="org.simantics.diagram.layers"
56 A view for editing diagram layers.
63 point="org.eclipse.ui.menus">
65 locationURI="toolbar:org.simantics.diagram.symbollibrary">
67 commandId="org.simantics.diagram.symbollibrary.collapseAll"
68 icon="icons/collapseall.gif"
71 tooltip="Collapse All">
77 commandId="org.simantics.diagram.symbollibrary.expandAll"
78 icon="icons/expandall.gif"
90 point="org.eclipse.ui.commands">
92 id="org.simantics.diagram.category"
96 categoryId="org.simantics.diagram.category"
97 id="org.simantics.diagram.symbollibrary.expandAll"
101 categoryId="org.simantics.diagram.category"
102 id="org.simantics.diagram.symbollibrary.collapseAll"
106 categoryId="org.simantics.diagram.category"
107 description="Switch to full screen mode"
114 description="Disable Ruler"
115 categoryId="org.simantics.diagram.category">
120 description="Enable Ruler"
121 categoryId="org.simantics.diagram.category">
126 description="Toggle ruler"
127 categoryId="org.simantics.diagram.category">
132 description="Disable snap"
133 categoryId="org.simantics.diagram.category">
138 description="Enable snap"
139 categoryId="org.simantics.diagram.category">
144 description="Toggle snap"
145 categoryId="org.simantics.diagram.category">
150 description="disable grid"
151 categoryId="org.simantics.diagram.category">
156 description="Enable grid"
157 categoryId="org.simantics.diagram.category">
162 description="Grid toggle"
163 categoryId="org.simantics.diagram.category">
168 description="Send down"
169 categoryId="org.simantics.diagram.category">
174 description="Bring up"
175 categoryId="org.simantics.diagram.category">
179 name="Send to bottom"
180 description="Send to bottom"
181 categoryId="org.simantics.diagram.category">
186 description="Bring element to top"
187 categoryId="org.simantics.diagram.category">
192 description="Cancel current action"
193 categoryId="org.simantics.diagram.category">
197 name="Invert Selection"
198 description="Invert current selection"
199 categoryId="org.simantics.diagram.category">
203 name="Rotate counter clock-wise"
204 description="Rotate counter clock-wise"
205 categoryId="org.simantics.diagram.category">
209 name="Rotate Clock-wise"
210 description="Rotate Clock-wise"
211 categoryId="org.simantics.diagram.category">
214 id="flipElementVertical"
215 name="Flip Element Vertical"
216 description="Flip Element Vertical"
217 categoryId="org.simantics.diagram.category">
220 id="flipElementHorizontal"
221 name="Flip Element Horizontal"
222 description="Flip Element Horizontal"
223 categoryId="org.simantics.diagram.category">
226 id="rotateElementCCW"
227 name="Rotate Element Counter Clock-wise"
228 description="Rotate Element Counter Clock-wise"
229 categoryId="org.simantics.diagram.category">
233 name="Rotate Element Clock-wise"
234 description="Rotate Element clock-wise"
235 categoryId="org.simantics.diagram.category">
239 name="Zoom to selection"
240 description="Zoom to selection"
241 categoryId="org.simantics.diagram.category">
246 description="Zoom to fit"
247 categoryId="org.simantics.diagram.category">
252 description="Zoom to page"
253 categoryId="org.simantics.diagram.category">
258 description="Zoom Out"
259 categoryId="org.simantics.diagram.category">
264 description="Zoom In"
265 categoryId="org.simantics.diagram.category">
270 description="Pan Down"
271 categoryId="org.simantics.diagram.category">
277 categoryId="org.simantics.diagram.category">
282 description="Pan Right"
283 categoryId="org.simantics.diagram.category">
288 description="Pan Left"
289 categoryId="org.simantics.diagram.category">
293 name="Split Connection"
294 description="Split Selected Connection with Branch Point"
295 categoryId="org.simantics.diagram.category">
300 description="Enter Element Scaling Mode"
301 categoryId="org.simantics.diagram.category">
304 categoryId="org.simantics.diagram.category"
305 id="symbolLibrary.activateFilter"
306 name="Activate Symbol Library Filter">
310 <extension point="org.eclipse.core.expressions.definitions">
311 <definition id="org.simantics.modeling.ui.diagram.active">
313 <with variable="activeContexts">
314 <iterate operator="and" ifEmpty="true">
316 <equals value="org.simantics.modeling.ui.diagramming.inlineEdit"/>
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"/>
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"/>
338 point="org.eclipse.ui.handlers">
340 commandId="org.simantics.diagram.symbollibrary.expandAll"
341 class="org.simantics.diagram.handler.ExpandAll">
344 variable="activePartId">
346 value="org.simantics.diagram.symbollibrary">
352 commandId="org.simantics.diagram.symbollibrary.collapseAll"
353 class="org.simantics.diagram.handler.CollapseAll">
356 variable="activePartId">
358 value="org.simantics.diagram.symbollibrary">
364 class="org.simantics.diagram.handler.CanvasCommandDelegate"
365 commandId="org.eclipse.ui.edit.rename">
367 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
371 class="org.simantics.diagram.handler.CanvasCommandDelegate"
372 commandId="fullScreen">
374 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
378 class="org.simantics.diagram.handler.CanvasCommandDelegate"
381 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
385 class="org.simantics.diagram.handler.CanvasCommandDelegate"
386 commandId="org.eclipse.ui.edit.copy">
388 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
392 class="org.simantics.diagram.handler.CanvasCommandDelegate"
393 commandId="org.eclipse.ui.edit.cut">
395 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
399 class="org.simantics.diagram.handler.CanvasCommandDelegate"
400 commandId="org.eclipse.ui.edit.paste">
402 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
406 class="org.simantics.diagram.handler.CanvasCommandDelegate"
407 commandId="org.eclipse.ui.edit.delete">
409 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
413 class="org.simantics.diagram.handler.CanvasCommandDelegate"
414 commandId="sendDown">
416 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
420 class="org.simantics.diagram.handler.CanvasCommandDelegate"
423 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
427 class="org.simantics.diagram.handler.CanvasCommandDelegate"
428 commandId="sendToBottom">
430 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
434 class="org.simantics.diagram.handler.CanvasCommandDelegate"
435 commandId="bringToTop">
437 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
441 class="org.simantics.diagram.handler.CanvasCommandDelegate"
442 commandId="zoomToSelection">
444 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
448 class="org.simantics.diagram.handler.CanvasCommandDelegate"
449 commandId="zoomToPage">
451 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
455 class="org.simantics.diagram.handler.CanvasCommandDelegate"
458 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
462 class="org.simantics.diagram.handler.CanvasCommandDelegate"
463 commandId="zoomToFit">
465 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
469 class="org.simantics.diagram.handler.CanvasCommandDelegate"
472 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
476 class="org.simantics.diagram.handler.CanvasCommandDelegate"
479 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
483 class="org.simantics.diagram.handler.CanvasCommandDelegate"
486 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
490 class="org.simantics.diagram.handler.CanvasCommandDelegate"
491 commandId="panRight">
493 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
497 class="org.simantics.diagram.handler.CanvasCommandDelegate"
498 commandId="rulerDisable">
500 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
504 class="org.simantics.diagram.handler.CanvasCommandDelegate"
505 commandId="rulerEnable">
507 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
511 class="org.simantics.diagram.handler.CanvasCommandDelegate"
512 commandId="rulerToggle">
514 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
518 class="org.simantics.diagram.handler.CanvasCommandDelegate"
519 commandId="snapDisable">
521 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
525 class="org.simantics.diagram.handler.CanvasCommandDelegate"
526 commandId="snapEnable">
528 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
532 class="org.simantics.diagram.handler.CanvasCommandDelegate"
533 commandId="snapToggle">
535 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
539 class="org.simantics.diagram.handler.CanvasCommandDelegate"
540 commandId="gridDisable">
542 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
546 class="org.simantics.diagram.handler.CanvasCommandDelegate"
547 commandId="gridEnable">
549 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
553 class="org.simantics.diagram.handler.CanvasCommandDelegate"
554 commandId="gridToggle">
556 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
560 class="org.simantics.diagram.handler.CanvasCommandDelegate"
563 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
567 class="org.simantics.diagram.handler.CanvasCommandDelegate"
568 commandId="org.eclipse.ui.edit.selectAll">
570 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
574 class="org.simantics.diagram.handler.CanvasCommandDelegate"
575 commandId="invertSelection">
577 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
581 class="org.simantics.diagram.handler.CanvasCommandDelegate"
582 commandId="rotateElementCCW">
584 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
588 class="org.simantics.diagram.handler.CanvasCommandDelegate"
589 commandId="rotateElementCW">
591 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
595 class="org.simantics.diagram.handler.CanvasCommandDelegate"
596 commandId="rotateCCW">
598 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
602 class="org.simantics.diagram.handler.CanvasCommandDelegate"
603 commandId="rotateCW">
605 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
609 class="org.simantics.diagram.handler.CanvasCommandDelegate"
610 commandId="flipElementVertical">
612 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
616 class="org.simantics.diagram.handler.CanvasCommandDelegate"
617 commandId="flipElementHorizontal">
619 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
623 class="org.simantics.diagram.handler.CanvasCommandDelegate"
624 commandId="splitConnection">
626 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
630 class="org.simantics.diagram.handler.CanvasCommandDelegate"
631 commandId="scaleElement">
633 <reference definitionId="org.simantics.modeling.ui.diagram.active" />
637 class="org.simantics.diagram.symbollibrary.ui.ActivateFilterHandler"
638 commandId="symbolLibrary.activateFilter">
640 <reference definitionId="org.simantics.diagram.symbolLibrary.active" />
646 point="org.eclipse.ui.bindings">
648 commandId="fullScreen"
649 contextId="org.simantics.modeling.ui.diagramming"
650 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
651 sequence="Alt+Enter">
656 contextId="org.simantics.modeling.ui.diagramming"
657 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
660 commandId="zoomToFit"
662 contextId="org.simantics.modeling.ui.diagramming"
663 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
666 commandId="zoomToSelection"
668 contextId="org.simantics.modeling.ui.diagramming"
669 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
672 commandId="zoomToPage"
674 contextId="org.simantics.modeling.ui.diagramming"
675 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
679 sequence="Numpad_Add"
680 contextId="org.simantics.modeling.ui.diagramming"
681 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
685 sequence="Numpad_Subtract"
686 contextId="org.simantics.modeling.ui.diagramming"
687 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
692 contextId="org.simantics.modeling.ui.diagramming"
693 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
698 contextId="org.simantics.modeling.ui.diagramming"
699 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
702 commandId="org.eclipse.ui.file.refresh"
704 contextId="org.simantics.modeling.ui.diagramming"
705 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
708 commandId="org.eclipse.ui.edit.selectAll"
710 contextId="org.simantics.modeling.ui.diagramming"
711 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
714 commandId="invertSelection"
716 contextId="org.simantics.modeling.ui.diagramming"
717 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
720 commandId="bringToTop"
722 contextId="org.simantics.modeling.ui.diagramming"
723 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
726 commandId="sendToBottom"
728 contextId="org.simantics.modeling.ui.diagramming"
729 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
734 contextId="org.simantics.modeling.ui.diagramming"
735 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
740 contextId="org.simantics.modeling.ui.diagramming"
741 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
744 commandId="rotateElementCCW"
746 contextId="org.simantics.modeling.ui.diagramming"
747 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
750 commandId="rotateElementCW"
752 contextId="org.simantics.modeling.ui.diagramming"
753 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
756 commandId="gridToggle"
758 contextId="org.simantics.modeling.ui.diagramming"
759 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
762 commandId="rulerToggle"
764 contextId="org.simantics.modeling.ui.diagramming"
765 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
768 commandId="flipElementHorizontal"
770 contextId="org.simantics.modeling.ui.diagramming"
771 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
774 commandId="flipElementVertical"
776 contextId="org.simantics.modeling.ui.diagramming"
777 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
781 sequence="Arrow_Left"
782 contextId="org.simantics.modeling.ui.diagramming"
783 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
787 sequence="Arrow_Right"
788 contextId="org.simantics.modeling.ui.diagramming"
789 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
794 contextId="org.simantics.modeling.ui.diagramming"
795 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
799 sequence="Arrow_Down"
800 contextId="org.simantics.modeling.ui.diagramming"
801 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
804 commandId="splitConnection"
806 contextId="org.simantics.modeling.ui.diagramming"
807 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
810 commandId="scaleElement"
812 contextId="org.simantics.modeling.ui.diagramming"
813 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
816 commandId="symbolLibrary.activateFilter"
817 contextId="org.simantics.diagram.symbolLibrary"
818 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
824 point="org.eclipse.ui.contexts">
826 description="Diagramming Editor Context"
827 id="org.simantics.modeling.ui.diagramming"
828 name="In Diagram Editor"
829 parentId="org.eclipse.ui.contexts.window">
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">
838 description="Symbol Library Context"
839 id="org.simantics.diagram.symbolLibrary"
840 name="In Symbol Library"
841 parentId="org.eclipse.ui.contexts.window">
846 point="org.eclipse.core.expressions.propertyTesters">
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">
855 class="org.simantics.diagram.elements.ElementPropertyTester"
856 id="org.simantics.diagram.elementPropertyTester"
857 namespace="org.simantics.diagram.element"
859 type="java.lang.Object">
862 class="org.simantics.diagram.ui.ToolPropertyTester"
863 id="org.simantics.diagram.toolPropertyTester"
864 namespace="org.simantics.diagram.tool"
866 type="org.eclipse.ui.IEditorPart">
871 point="org.simantics.scl.reflection.binding">
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"/>
879 className="org.simantics.diagram.function.All">
884 point="org.simantics.export.core.export">
887 icon="platform:/plugin/com.famfamfam.silk/companion/shape_3d.png"
889 label="User Component"
890 plural="User Components"
894 contentTypeAction="org.simantics.diagram.export.DiagramContentTypeAction"
895 icon="platform:/plugin/org.simantics.diagram/icons/Generic_Diagram.png"
902 icon="platform:/plugin/com.famfamfam.silk/icons/layout.png"
904 label="Diagram Template"
905 plural="Diagram Templates"
909 icon="platform:/plugin/org.simantics.diagram/icons/Typical_Diagram.png"
911 label="Typical Template"
912 plural="Typical Templates"
917 content_type_id="diagram"
918 discoverAction="org.simantics.diagram.export.DiscoverDiagrams">
922 content_type_id="diagram"
923 exportAction="org.simantics.diagram.export.ExportDiagramPdf"