]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/plugin.xml
Spreadsheet changes
[simantics/platform.git] / bundles / org.simantics.modeling.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <plugin>
3
4    <extension
5          point="org.eclipse.core.expressions.propertyTesters">
6       <propertyTester
7             properties="nodeClass,deletable,modifiable,refreshable"
8             namespace="org.simantics.modeling.ui"
9             type="org.eclipse.jface.viewers.IStructuredSelection"
10             class="org.simantics.browsing.ui.swt.NodePropertyTester"
11             id="org.simantics.browsing.ui.nodePropertyTester">
12       </propertyTester>
13       <propertyTester
14             properties="partOf"
15             namespace="org.simantics.modeling.componentType"
16             type="java.lang.Object"
17             class="org.simantics.modeling.ui.property.ComponentTypePropertyTester"
18             id="org.simantics.modeling.componentTypePropertyTester">
19       </propertyTester>
20       <propertyTester
21             properties="hasActiveModelsOfType"
22             namespace="org.simantics.modeling.model"
23             type="java.lang.Object"
24             class="org.simantics.modeling.ui.property.ModelPropertyTester"
25             id="org.simantics.modeling.modelPropertyTester">
26       </propertyTester>
27       <propertyTester
28             properties="isMasterEditor,isInstanceEditor"
29             namespace="org.simantics.modeling.typical"
30             type="org.eclipse.ui.IEditorPart"
31             class="org.simantics.modeling.ui.property.TypicalPropertyTester"
32             id="org.simantics.modeling.typicalPropertyTester">
33       </propertyTester>
34    </extension>
35    <extension
36          point="org.eclipse.ui.perspectives">
37    </extension>
38    <extension
39          point="org.eclipse.ui.perspectiveExtensions">
40    </extension>
41    <extension
42          point="org.eclipse.ui.views">
43       <view
44             allowMultiple="false"
45             category="org.simantics.scl.ui.category"
46             class="org.simantics.modeling.ui.scl.expressions.SCLExpressionView"
47             id="org.simantics.modeling.ui.scl.expressionsView"
48             name="Used SCL Expressions"
49             restorable="true">
50       </view>
51       <view
52             name="Diagram Tools"
53             icon="platform:/plugin/com.famfamfam.silk/icons/wrench.png"
54             category="org.simantics.diagram.views"
55             class="org.simantics.modeling.ui.diagramEditor.tools.DiagramToolViewPart"
56             restorable="true"
57             id="org.simantics.modeling.ui.diagramtool">
58       </view>
59       <view
60             allowMultiple="true"
61             name="Change Information"
62             icon="platform:/plugin/com.famfamfam.silk/icons/report.png"
63             category="org.simantics.modeling.category"
64             class="org.simantics.modeling.ui.view.ChangeInformationView"
65             id="org.simantics.modeling.changeInformation">
66       </view>
67    </extension>
68    <extension
69          point="org.eclipse.ui.editors">
70       <editor
71             name="Diagram Editor"
72             icon="icons/shape_square.png"
73             class="org.simantics.modeling.ui.diagramEditor.DiagramEditor:viewer=org.simantics.modeling.ui.diagramEditor.DiagramViewer"
74             contributorClass="org.simantics.modeling.ui.diagramEditor.DiagramViewerActionContributor"
75             matchingStrategy="org.simantics.ui.workbench.editor.input.ResourceEditorInputMatchingStrategy"
76             id="org.simantics.modeling.ui.diagramEditor">
77       </editor>
78       <editor
79             name="Diagram Editor (plain)"
80             icon="icons/shape_square.png"
81             class="org.simantics.modeling.ui.diagramEditor.DiagramEditor:viewer=org.simantics.modeling.ui.diagramEditor.PlainDiagramViewer"
82             contributorClass="org.simantics.modeling.ui.diagramEditor.DiagramViewerActionContributor"
83             matchingStrategy="org.simantics.ui.workbench.editor.input.ResourceEditorInputMatchingStrategy"
84             id="org.simantics.modeling.ui.plainDiagramEditor">
85       </editor>
86       <editor
87             name="Symbol Editor"
88             icon="icons/photo.png"
89             class="org.simantics.modeling.ui.diagramEditor.DiagramEditor:viewer=org.simantics.modeling.ui.symbolEditor.SymbolViewer"
90             matchingStrategy="org.simantics.ui.workbench.editor.input.ResourceEditorInputMatchingStrategy"
91             id="org.simantics.modeling.ui.symbolEditor">
92       </editor>
93       <editor
94             default="false"
95             name="User Component Editor"
96             icon="icons/box.png"
97             class="org.simantics.modeling.ui.componentTypeEditor.ComponentTypeEditor"
98             id="org.simantics.modeling.ui.componentTypeEditor">
99       </editor>
100       <editor
101             default="false"
102             name="Ontology Definition File Editor"
103             icon="icons/box.png"
104             class="org.simantics.modeling.ui.componentTypeEditor.PGraphEditor"
105             id="org.simantics.modeling.ui.pgraphEditor">
106       </editor>
107       <editor
108             default="false"
109             name="SCL Query Editor"
110             icon="icons/box.png"
111             class="org.simantics.modeling.ui.componentTypeEditor.SCLQueryEditor"
112             id="org.simantics.modeling.ui.sclQueryEditor">
113       </editor>
114       <editor
115             default="false"
116             name="Procedural User Component Code Editor"
117             icon="icons/book_open.png"
118             class="org.simantics.modeling.ui.componentTypeEditor.ProceduralComponentTypeCodeEditor"
119             id="org.simantics.modeling.ui.proceduralComponentTypeCodeEditor">
120       </editor>
121       <editor
122             class="org.simantics.modeling.ui.componentTypeEditor.SymbolCodeEditor"
123             default="false"
124             icon="icons/book_open.png"
125             id="org.simantics.modeling.ui.symbolCodeEditor"
126             name="Symbol Code Editor">
127       </editor>
128       <editor
129             class="org.simantics.modeling.ui.componentTypeEditor.SymbolDropHandlerEditor"
130             default="false"
131             icon="icons/book_open.png"
132             id="org.simantics.modeling.ui.symbolDropHandlerEditor"
133             name="Symbol Drop Handler Code Editor">
134       </editor>
135       <editor
136             default="false"
137             name="Procedural User Component Instance Viewer"
138             icon="icons/shape_3d_gray.png"
139             class="org.simantics.modeling.ui.componentTypeEditor.ProceduralComponentInstanceViewer"
140             id="org.simantics.modeling.ui.proceduralComponentInstanceViewer">
141       </editor>
142       <editor
143             default="true"
144             name="User Component Script Editor"
145             icon="icons/book_open.png"
146             class="org.simantics.modeling.ui.componentTypeEditor.ComponentTypeScriptEditor"
147             id="org.simantics.modeling.ui.componentTypeScriptEditor">
148       </editor>
149       <editor
150             class="org.simantics.modeling.ui.scl.scriptEditor.SCLScriptEditor"
151             default="false"
152             icon="platform:/plugin/com.famfamfam.silk/icons/script_go.png"
153             id="org.simantics.modeling.ui.scl.scriptEditor"
154             name="SCL Script Editor">
155       </editor>
156    </extension>
157    <extension
158          point="org.eclipse.ui.elementFactories">
159       <factory
160             class="org.simantics.modeling.ui.scl.scriptEditor.SCLScriptEditorInputFactory"
161             id="org.simantics.modeling.ui.scl.scriptEditor.inputFactory">
162       </factory>
163    </extension>
164    <extension
165          point="org.eclipse.core.expressions.definitions">
166       <definition
167             id="org.simantics.modeling.ui.diagram.editorActive">
168          <with
169                variable="activeEditor">
170             <instanceof
171                   value="org.simantics.modeling.ui.diagramEditor.DiagramEditor">
172             </instanceof>
173          </with>
174       </definition>
175       <definition
176             id="org.simantics.modeling.ui.inSCLModuleEditor">
177          <with
178                variable="activePartId">
179             <equals
180                   value="org.simantics.modeling.ui.sclModuleEditor2">
181             </equals>
182          </with>
183       </definition>
184       <definition
185             id="org.simantics.modeling.ui.inPGraphEditor">
186          <with variable="activePartId">
187             <equals
188                   value="org.simantics.modeling.ui.pgraphEditor">
189             </equals>
190          </with>
191       </definition>
192       <definition
193             id="org.simantics.modeling.ui.inSCLQueryEditor">
194          <with
195                variable="activePartId">
196             <equals
197                   value="org.simantics.modeling.ui.sclQueryEditor">
198             </equals>
199          </with>
200       </definition>
201       <definition
202             id="org.simantics.modeling.ui.inSCLScriptEditor">
203          <with
204                variable="activePartId">
205             <equals
206                   value="org.simantics.modeling.ui.scl.scriptEditor">
207             </equals>
208          </with>
209       </definition>
210    </extension>
211    <extension
212          point="org.eclipse.ui.commands">
213       <category
214             name="Modeling Commands"
215             id="org.simantics.modeling.ui.category">
216       </category>
217       <category
218             name="Data Category"
219             id="org.simantics.data.category">
220       </category>
221       <command
222             name="Pin Selection"
223             categoryId="org.simantics.modeling.ui.category"
224             id="org.simantics.modeling.ui.pinSelection">
225       </command>
226       <command
227             name="Create Issue"
228             categoryId="org.simantics.modeling.ui.category"
229             id="org.simantics.modeling.ui.createIssue">
230       </command>
231       <command
232             name="Help"
233             categoryId="org.simantics.modeling.ui.category"
234             id="org.simantics.modeling.ui.contextualHelp">
235       </command>
236       <command
237             name="Toggle Flag External State"
238             categoryId="org.simantics.modeling.ui.category"
239             id="org.simantics.modeling.ui.toggleExternalFlag">
240       </command>
241       <command
242             name="Duplicate View and Pin Selection"
243             categoryId="org.simantics.modeling.ui.category"
244             id="org.simantics.modeling.ui.duplicatePinnedView">
245       </command>
246       <command
247             name="Open"
248             categoryId="org.simantics.modeling.ui.category"
249             id="org.simantics.modeling.ui.open">
250       </command>
251       <!--<command
252             name="Import image from SVG file"
253             categoryId="org.simantics.modeling.ui.category"
254             id="org.simantics.modeling.ui.importSVG">
255       </command>-->
256       <command
257             name="Create Rectangle"
258             categoryId="org.simantics.modeling.ui.category"
259             id="org.simantics.modeling.ui.createRectangle">
260       </command>
261       <command
262             name="Create Ellipse"
263             categoryId="org.simantics.modeling.ui.category"
264             id="org.simantics.modeling.ui.createEllipse">
265       </command>
266       <command
267             name="Create Path"
268             categoryId="org.simantics.modeling.ui.category"
269             id="org.simantics.modeling.ui.createPath">
270       </command>
271       <command
272             name="Create Text"
273             categoryId="org.simantics.modeling.ui.category"
274             id="org.simantics.modeling.ui.createText">
275       </command>
276       <command
277             name="New Experiment"
278             categoryId="org.simantics.modeling.ui.category"
279             id="org.simantics.modeling.ui.newExperiment">
280       </command>
281       <command
282             name="New State"
283             categoryId="org.simantics.modeling.ui.category"
284             id="org.simantics.modeling.ui.newState">
285       </command>
286       <command
287             name="New Spreadsheet"
288             categoryId="org.simantics.modeling.ui.category"
289             id="org.simantics.modeling.ui.newSpreadsheet">
290       </command>
291       <command
292             name="New Chart"
293             categoryId="org.simantics.modeling.ui.category"
294             id="org.simantics.modeling.ui.newChart">
295       </command>
296       <command
297             name="New Chart Group"
298             categoryId="org.simantics.modeling.ui.category"
299             id="org.simantics.modeling.ui.newChartGroup">
300       </command>
301       <command
302             name="New Subscription"
303             categoryId="org.simantics.modeling.ui.category"
304             id="org.simantics.modeling.ui.newSubscription">
305       </command>
306       <command
307             name="Restore Default Value"
308             categoryId="org.simantics.modeling.ui.category"
309             id="org.simantics.modeling.ui.properties.restoreDefaultValue">
310       </command>
311       <command
312             name="Activate Filter"
313             categoryId="org.simantics.modeling.ui.category"
314             id="org.simantics.modeling.ui.activateFilter">
315       </command>
316       <command
317             name="Expand Selection"
318             description="Expand current selection to neighboring connections and nodes"
319             categoryId="org.simantics.modeling.ui.category"
320             id="expandSelection">
321       </command>
322       <!--<command
323             name="Edit Style"
324             categoryId="org.simantics.modeling.ui.category"
325             id="org.simantics.modeling.ui.editStyle">
326       </command>
327       <command
328             name="Page Settings"
329             categoryId="org.simantics.modeling.ui.category"
330             id="org.simantics.modeling.ui.pagesettings">
331       </command>-->
332       <command
333             name="Align Vertical"
334             categoryId="org.simantics.modeling.ui.category"
335             id="org.simantics.modeling.ui.alignvert">
336       </command>
337       <command
338             name="Align Horizontal"
339             categoryId="org.simantics.modeling.ui.category"
340             id="org.simantics.modeling.ui.alignhoriz">
341       </command>
342       <command
343             defaultHandler="org.simantics.modeling.ui.actions.ValidateMappingHandler"
344             name="Validate Mapping"
345             id="org.simantics.modeling.ui.validateMapping">
346       </command>
347       <command
348             name="Alignment"
349             categoryId="org.simantics.modeling.ui.category"
350             id="org.simantics.modeling.ui.align">
351       </command>
352       <command
353             name="New User Component"
354             categoryId="org.simantics.modeling.ui.category"
355             id="org.simantics.modeling.ui.newComponentType">
356       </command>
357       <command
358             name="Create Terminal"
359             categoryId="org.simantics.modeling.ui.category"
360             id="org.simantics.modeling.ui.createConnectionPoint">
361       </command>
362       <command
363             name="Merge flags"
364             categoryId="org.simantics.diagram.category"
365             id="mergeFlags">
366       </command>
367       <command
368             name="Merge related flags"
369             categoryId="org.simantics.diagram.category"
370             id="mergeRelatedFlags">
371       </command>
372       <command
373             name="Expand flags"
374             categoryId="org.simantics.diagram.category"
375             id="expandFlags">
376       </command>
377       <command
378             name="Disconnect Flags"
379             description="Disconnects those flags from the current selection that are connected to counterparts."
380             categoryId="org.simantics.diagram.category"
381             id="org.simantics.modeling.ui.disconnectFlag">
382       </command>
383       <command
384             name="Synchronize All Master Templates in Active Model with All Instances"
385             categoryId="org.simantics.modeling.ui.category"
386             id="org.simantics.modeling.typical.sync.activeModel">
387       </command>
388       <command
389             name="Synchronize Current Typical Master Template with All Instances in Active Model"
390             categoryId="org.simantics.modeling.ui.category"
391             id="org.simantics.modeling.typical.sync.currentTemplate">
392       </command>
393       <command
394             name="Synchronize Current Typical Instance with Template"
395             categoryId="org.simantics.modeling.ui.category"
396             id="org.simantics.modeling.typical.sync.currentInstance">
397       </command>
398       <command
399             name="Toggle Real-time Typical Synchronization"
400             categoryId="org.simantics.modeling.ui.category"
401             id="org.simantics.modeling.typical.sync.toggleRealtime">
402       </command>
403       <command
404             name="Run SCL Script"
405             categoryId="org.simantics.modeling.ui.category"
406             id="org.simantics.modeling.ui.scl.scriptEditor.run">
407       </command>
408    </extension>
409    <extension
410          point="org.eclipse.core.expressions.definitions">
411       <definition
412             id="org.simantics.modeling.browser.selection.deletable">
413          <and>
414             <with
415                   variable="activeContexts">
416                <iterate
417                      ifEmpty="false"
418                      operator="or">
419                   <equals
420                         value="org.simantics.modeling.ui.modelBrowser">
421                   </equals>
422                </iterate>
423             </with>
424             <with
425                   variable="selection">
426                <and>
427                   <test
428                         property="org.simantics.modeling.ui.deletable">
429                   </test>
430                </and>
431             </with>
432          </and>
433       </definition>
434       <definition
435             id="org.simantics.modeling.browser.selection.modifiable">
436          <and>
437             <with
438                   variable="activeContexts">
439                <iterate
440                      ifEmpty="false"
441                      operator="or">
442                   <equals
443                         value="org.simantics.modeling.ui.modelBrowser">
444                   </equals>
445                </iterate>
446             </with>
447             <with
448                   variable="selection">
449                <test
450                      property="org.simantics.modeling.ui.modifiable">
451                </test>
452             </with>
453          </and>
454       </definition>
455       <definition
456             id="org.simantics.modeling.browser.selection.refreshable">
457          <and>
458             <with
459                   variable="activeContexts">
460                <iterate
461                      ifEmpty="false"
462                      operator="or">
463                   <equals
464                         value="org.simantics.modeling.ui.modelBrowser">
465                   </equals>
466                </iterate>
467             </with>
468             <with
469                   variable="selection">
470                <test
471                      property="org.simantics.modeling.ui.refreshable">
472                </test>
473             </with>
474          </and>
475       </definition>
476       <definition
477             id="org.simantics.modeling.ui.modelBrowser.active">
478          <with
479                variable="activeContexts">
480             <and>
481                <iterate
482                      ifEmpty="false"
483                      operator="or">
484                   <equals
485                         value="org.simantics.modeling.ui.modelBrowser">
486                   </equals>
487                </iterate>
488                <iterate
489                      ifEmpty="false"
490                      operator="and">
491                   <not>
492                      <equals
493                            value="org.simantics.browsing.ui.inlineEditing">
494                      </equals>
495                   </not>
496                </iterate>
497             </and>
498          </with>
499       </definition>
500    </extension>
501    <extension
502          point="org.eclipse.ui.handlers">
503       <handler
504             commandId="org.eclipse.ui.edit.cut"
505             class="org.simantics.modeling.ui.modelBrowser.handlers.StandardCutHandler">
506          <activeWhen>
507             <reference
508                   definitionId="org.simantics.modeling.ui.modelBrowser.active">
509             </reference>
510          </activeWhen>
511       </handler>
512       <handler
513             commandId="org.eclipse.ui.edit.copy"
514             class="org.simantics.modeling.ui.modelBrowser.handlers.StandardCopyHandler">
515          <activeWhen>
516             <reference
517                   definitionId="org.simantics.modeling.ui.modelBrowser.active">
518             </reference>
519          </activeWhen>
520       </handler>
521       <handler
522             commandId="org.eclipse.ui.edit.paste"
523             class="org.simantics.modeling.ui.modelBrowser.handlers.StandardPasteHandler">
524          <activeWhen>
525             <reference
526                   definitionId="org.simantics.modeling.ui.modelBrowser.active">
527             </reference>
528          </activeWhen>
529       </handler>
530       <handler
531             commandId="org.simantics.modeling.ui.createIssue"
532             class="org.simantics.modeling.ui.modelBrowser.handlers.CreateIssue">
533          <enabledWhen>
534             <with
535                   variable="selection">
536                <and>
537                   <test
538                         args="http://www.simantics.org/Diagram-0.0/Element"
539                         property="org.simantics.graph.resourceType">
540                   </test>
541                   <test
542                         value="true"
543                         property="org.simantics.diagram.element.mapped">
544                   </test>
545                </and>
546             </with>
547          </enabledWhen>
548       </handler>
549       <handler
550             commandId="org.simantics.modeling.ui.contextualHelp"
551             class="org.simantics.modeling.ui.modelBrowser.handlers.ContextualHelp">
552          <activeWhen>
553             <with
554                   variable="selection">
555                <and>
556                   <test
557                         args="http://www.simantics.org/Diagram-0.0/Element"
558                         property="org.simantics.graph.resourceType">
559                   </test>
560                </and>
561             </with>
562          </activeWhen>
563       </handler>
564       <handler
565             commandId="org.simantics.modeling.ui.toggleExternalFlag"
566             class="org.simantics.modeling.ui.modelBrowser.handlers.ToggleExternalFlag">
567          <enabledWhen>
568             <with
569                   variable="selection">
570                <and>
571                   <test
572                         args="http://www.simantics.org/Diagram-0.0/Flag"
573                         property="org.simantics.graph.resourceType">
574                   </test>
575                   <test
576                         value="false"
577                         property="org.simantics.diagram.flag.connected">
578                   </test>
579                </and>
580             </with>
581          </enabledWhen>
582       </handler>
583       <handler
584             commandId="org.simantics.modeling.ui.newSubscription"
585             class="org.simantics.modeling.ui.modelBrowser.handlers.NewSubscriptionHandler">
586       </handler>
587       <handler
588             commandId="org.simantics.modeling.ui.pinSelection"
589             class="org.simantics.modeling.ui.actions.PinSelectionHandler">
590          <enabledWhen>
591             <test
592                   args="org.simantics.modeling.ui,property.pinmode"
593                   property="org.simantics.preference"
594                   value="Pin">
595             </test>
596          </enabledWhen>
597       </handler>
598       <handler
599             commandId="org.simantics.modeling.ui.duplicatePinnedView"
600             class="org.simantics.modeling.ui.actions.DuplicatePinnedViewHandler">
601       </handler>
602       <!--<handler
603             commandId="org.simantics.modeling.ui.importSVG"
604             class="org.simantics.modeling.ui.actions.ImportSVG">
605       </handler>-->
606       <handler
607             commandId="org.simantics.modeling.ui.createRectangle"
608             class="org.simantics.modeling.ui.actions.CreateRectangle">
609       </handler>
610       <handler
611             commandId="org.simantics.modeling.ui.createEllipse"
612             class="org.simantics.modeling.ui.actions.CreateEllipse">
613       </handler>
614       <handler
615             commandId="org.simantics.modeling.ui.createPath"
616             class="org.simantics.modeling.ui.actions.CreatePath">
617       </handler>
618       <handler
619             commandId="org.simantics.modeling.ui.createText"
620             class="org.simantics.modeling.ui.actions.CreateText">
621       </handler>
622       <handler
623             commandId="org.simantics.modeling.ui.newSpreadsheet"
624             class="org.simantics.modeling.ui.modelBrowser.handlers.NewSpreadsheetHandler">
625       </handler>
626       <handler
627             commandId="org.simantics.modeling.ui.properties.restoreDefaultValue"
628             class="org.simantics.modeling.ui.property.RestoreDefaultValueHandler">
629       </handler>
630       <handler
631             commandId="org.eclipse.ui.file.refresh"
632             class="org.simantics.modeling.ui.modelBrowser.handlers.RefreshNodeHandler">
633          <activeWhen>
634             <reference
635                   definitionId="org.simantics.modeling.browser.selection.refreshable">
636             </reference>
637          </activeWhen>
638       </handler>
639       <handler
640             commandId="org.simantics.modeling.ui.activateFilter"
641             class="org.simantics.modeling.ui.modelBrowser.handlers.ActivateFilterHandler">
642          <activeWhen>
643             <with
644                   variable="activeContexts">
645                <iterate
646                      operator="or">
647                   <or>
648                      <equals
649                            value="org.simantics.modeling.ui.modelBrowser">
650                      </equals>
651                      <equals
652                            value="org.simantics.modeling.ui.properties">
653                      </equals>
654                   </or>
655                </iterate>
656             </with>
657          </activeWhen>
658       </handler>
659       <handler
660             commandId="expandSelection"
661             class="org.simantics.diagram.handler.CanvasCommandDelegate">
662          <activeWhen>
663             <reference
664                   definitionId="org.simantics.modeling.ui.diagram.active">
665             </reference>
666          </activeWhen>
667       </handler>
668       <handler
669             commandId="org.eclipse.ui.edit.delete"
670             class="org.simantics.modeling.ui.modelBrowser.handlers.DeleteNodeHandler">
671          <activeWhen>
672             <reference
673                   definitionId="org.simantics.modeling.browser.selection.deletable">
674             </reference>
675          </activeWhen>
676       </handler>
677       <handler
678             commandId="org.eclipse.ui.edit.rename"
679             class="org.simantics.modeling.ui.modelBrowser.handlers.RenameNodeHandler">
680          <activeWhen>
681             <reference
682                   definitionId="org.simantics.modeling.browser.selection.modifiable">
683             </reference>
684          </activeWhen>
685       </handler>
686       <!--<handler
687             commandId="org.simantics.modeling.ui.editStyle"
688             class="org.simantics.modeling.ui.actions.EditStyleHandler">
689          <enabledWhen>
690             <and>
691                <with
692                      variable="selection">
693                   <iterate
694                         ifEmpty="false"
695                         operator="and">
696                      <test
697                            args="http://www.simantics.org/Diagram-0.0/StyleProvider"
698                            property="org.simantics.graph.resourceType">
699                      </test>
700                   </iterate>
701                </with>
702             </and>
703          </enabledWhen>
704       </handler>
705       <handler
706             commandId="org.simantics.modeling.ui.pagesettings"
707             class="org.simantics.modeling.ui.actions.PageSettingsHandler">
708          <enabledWhen>
709             <with
710                   variable="activePart">
711                <and>
712                   <instanceof
713                         value="org.simantics.modeling.ui.diagramEditor.DiagramEditor">
714                   </instanceof>
715                </and>
716             </with>
717          </enabledWhen>
718       </handler>-->
719       <handler
720             commandId="org.simantics.modeling.ui.alignvert"
721             class="org.simantics.modeling.ui.diagramEditor.handlers.AlignVerticalHandler">
722          <enabledWhen>
723             <with
724                   variable="activePart">
725                <and>
726                   <instanceof
727                         value="org.simantics.modeling.ui.diagramEditor.DiagramEditor">
728                   </instanceof>
729                </and>
730             </with>
731          </enabledWhen>
732       </handler>
733       <handler
734             commandId="org.simantics.modeling.ui.alignhoriz"
735             class="org.simantics.modeling.ui.diagramEditor.handlers.AlignHorizontalHandler">
736          <enabledWhen>
737             <with
738                   variable="activePart">
739                <and>
740                   <instanceof
741                         value="org.simantics.modeling.ui.diagramEditor.DiagramEditor">
742                   </instanceof>
743                </and>
744             </with>
745          </enabledWhen>
746       </handler>
747       <handler
748             commandId="org.eclipse.ui.edit.undo"
749             class="org.simantics.ui.workbench.handler.SessionUndoHandler">
750          <activeWhen>
751             <with
752                   variable="activeContexts">
753             <and>
754                <test
755                      property="org.simantics.ui.tester.canUndo">
756                </test>
757                <iterate
758                      ifEmpty="false"
759                      operator="and">
760                   <not>
761                      <equals
762                            value="org.simantics.modeling.ui.diagramming.inlineEdit">
763                      </equals>
764                   </not>
765                </iterate>
766             </and>
767             </with>
768          </activeWhen>
769       </handler>
770       <handler
771             commandId="org.eclipse.ui.edit.redo"
772             class="org.simantics.ui.workbench.handler.SessionRedoHandler">
773          <activeWhen>
774             <with
775                   variable="activeContexts">
776             <and>
777                <test
778                      property="org.simantics.ui.tester.canRedo">
779                </test>
780                <iterate
781                      ifEmpty="false"
782                      operator="and">
783                   <not>
784                      <equals
785                            value="org.simantics.modeling.ui.diagramming.inlineEdit">
786                      </equals>
787                   </not>
788                </iterate>
789             </and>
790             </with>
791          </activeWhen>
792       </handler>
793       <handler
794             commandId="org.eclipse.ui.edit.undo"
795             class="org.simantics.modeling.ui.componentTypeEditor.SCLEditorBaseUndoHandler">
796          <activeWhen>
797             <reference
798                   definitionId="org.simantics.modeling.ui.inSCLModuleEditor">
799             </reference>
800          </activeWhen>
801       </handler>
802       <handler
803             class="org.simantics.modeling.ui.componentTypeEditor.PGraphUndoHandler"
804             commandId="org.eclipse.ui.edit.undo">
805          <activeWhen>
806             <reference
807                   definitionId="org.simantics.modeling.ui.inPGraphEditor">
808             </reference>
809          </activeWhen>
810       </handler>
811       <handler
812             commandId="org.eclipse.ui.edit.redo"
813             class="org.simantics.modeling.ui.componentTypeEditor.SCLEditorBaseUndoHandler">
814          <activeWhen>
815             <reference
816                   definitionId="org.simantics.modeling.ui.inSCLModuleEditor">
817             </reference>
818          </activeWhen>
819       </handler>
820       <handler
821             class="org.simantics.modeling.ui.componentTypeEditor.PGraphUndoHandler"
822             commandId="org.eclipse.ui.edit.redo">
823          <activeWhen>
824             <reference
825                   definitionId="org.simantics.modeling.ui.inPGraphEditor">
826             </reference>
827          </activeWhen>
828       </handler>
829       <handler
830             commandId="org.eclipse.ui.edit.undo"
831             class="org.simantics.modeling.ui.componentTypeEditor.SCLEditorBaseUndoHandler">
832          <activeWhen>
833             <reference
834                   definitionId="org.simantics.modeling.ui.inSCLQueryEditor">
835             </reference>
836          </activeWhen>
837       </handler>
838       <handler
839             commandId="org.eclipse.ui.edit.redo"
840             class="org.simantics.modeling.ui.componentTypeEditor.SCLEditorBaseUndoHandler">
841          <activeWhen>
842             <reference
843                   definitionId="org.simantics.modeling.ui.inSCLQueryEditor">
844             </reference>
845          </activeWhen>
846       </handler>
847       <handler
848             commandId="org.simantics.modeling.ui.align"
849             class="org.simantics.modeling.ui.diagramEditor.handlers.AlignHandler">
850          <enabledWhen>
851             <with
852                   variable="activePart">
853                <and>
854                   <instanceof
855                         value="org.simantics.modeling.ui.diagramEditor.DiagramEditor">
856                   </instanceof>
857                </and>
858             </with>
859          </enabledWhen>
860       </handler>
861       <handler
862             commandId="org.simantics.modeling.ui.createConnectionPoint"
863             class="org.simantics.modeling.ui.modelBrowser.handlers.CreateConnectionPoint">
864          <enabledWhen>
865             <with
866                   variable="selection">
867                <iterate
868                      ifEmpty="false"
869                      operator="and">
870                   <and>
871                      <test
872                            args="http://www.simantics.org/Diagram-0.0/Flag"
873                            property="org.simantics.graph.resourceType">
874                      </test>
875                      <test
876                            property="org.simantics.diagram.flag.connected"
877                            value="false">
878                      </test>
879                      <test
880                            property="org.simantics.modeling.componentType.partOf"
881                            value="true">
882                      </test>
883                   </and>
884                </iterate>
885             </with>
886          </enabledWhen>
887       </handler>
888       <handler
889             commandId="mergeFlags"
890             class="org.simantics.modeling.ui.actions.MergeFlagsHandler">
891          <enabledWhen>
892             <with
893                   variable="selection">
894                <iterate
895                      ifEmpty="false"
896                      operator="and">
897                   <and>
898                      <test
899                            args="http://www.simantics.org/Diagram-0.0/Flag"
900                            property="org.simantics.graph.resourceType">
901                      </test>
902                      <test
903                            property="org.simantics.diagram.flag.connected"
904                            value="true">
905                      </test>
906                   </and>
907                </iterate>
908                <count
909                      value="(1-">
910                </count>
911             </with>
912          </enabledWhen>
913       </handler>
914       <handler
915             commandId="mergeRelatedFlags"
916             class="org.simantics.modeling.ui.actions.MergeRelatedFlagsHandler">
917          <activeWhen>
918             <with
919                   variable="selection">
920                <iterate
921                      ifEmpty="false"
922                      operator="and">
923                   <and>
924                      <test
925                            args="http://www.simantics.org/Diagram-0.0/Flag"
926                            property="org.simantics.graph.resourceType">
927                      </test>
928                      <test
929                            property="org.simantics.diagram.flag.connected"
930                            value="true">
931                      </test>
932                   </and>
933                </iterate>
934             </with>
935          </activeWhen>
936       </handler>
937       <handler
938             commandId="expandFlags"
939             class="org.simantics.modeling.ui.actions.ExpandFlagsHandler">
940          <activeWhen>
941             <with
942                   variable="selection">
943                <iterate
944                      ifEmpty="false"
945                      operator="and">
946                   <and>
947                      <test
948                            args="http://www.simantics.org/Diagram-0.0/Flag"
949                            property="org.simantics.graph.resourceType">
950                      </test>
951                      <test
952                            property="org.simantics.diagram.flag.connected"
953                            value="true">
954                      </test>
955                      <test
956                            property="org.simantics.diagram.flag.merged"
957                            value="true">
958                      </test>
959                   </and>
960                </iterate>
961             </with>
962          </activeWhen>
963       </handler>
964       <handler
965             commandId="org.simantics.modeling.ui.disconnectFlag"
966             class="org.simantics.modeling.ui.diagramEditor.handlers.DisconnectFlagHandler">
967          <enabledWhen>
968             <with
969                   variable="selection">
970                <iterate
971                      ifEmpty="false"
972                      operator="and">
973                   <and>
974                      <test
975                            args="http://www.simantics.org/Diagram-0.0/Flag"
976                            property="org.simantics.graph.resourceType">
977                      </test>
978                      <test
979                            args="true"
980                            property="org.simantics.diagram.flag.connected">
981                      </test>
982                   </and>
983                </iterate>
984             </with>
985          </enabledWhen>
986       </handler>
987       <handler
988             commandId="org.simantics.modeling.typical.sync.currentTemplate"
989             class="org.simantics.modeling.ui.typicals.SyncCurrentTypicalTemplateToInstances">
990          <activeWhen>
991             <with
992                   variable="activeEditor">
993                <test
994                      property="org.simantics.modeling.typical.isMasterEditor">
995                </test>
996             </with>
997          </activeWhen>
998       </handler>
999       <handler
1000             commandId="org.simantics.modeling.typical.sync.currentInstance"
1001             class="org.simantics.modeling.ui.typicals.SyncCurrentTypicalInstanceWithTemplate">
1002          <activeWhen>
1003             <with
1004                   variable="activeEditor">
1005                <test
1006                      property="org.simantics.modeling.typical.isInstanceEditor">
1007                </test>
1008             </with>
1009          </activeWhen>
1010       </handler>
1011       <handler
1012             commandId="org.simantics.modeling.typical.sync.toggleRealtime"
1013             class="org.simantics.modeling.ui.typicals.ToggleTypicalRealtimeSync">
1014       </handler>
1015       <handler
1016             commandId="org.simantics.modeling.ui.scl.scriptEditor.run"
1017             class="org.simantics.modeling.ui.scl.scriptEditor.RunSCLScriptHandler">
1018          <enabledWhen>
1019             <reference
1020                   definitionId="org.simantics.modeling.ui.inSCLScriptEditor">
1021             </reference>
1022          </enabledWhen>
1023       </handler>
1024    </extension>
1025    <extension
1026          point="org.eclipse.ui.bindings">
1027       <key
1028             commandId="org.simantics.modeling.ui.activateFilter"
1029             contextId="org.simantics.modeling.ui.modelBrowser"
1030             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
1031             sequence="M1+F">
1032       </key>
1033       <key
1034             commandId="org.simantics.modeling.ui.activateFilter"
1035             contextId="org.simantics.modeling.ui.properties"
1036             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
1037             sequence="M1+F">
1038       </key>
1039       <key
1040             commandId="expandSelection"
1041             contextId="org.simantics.modeling.ui.diagramming"
1042             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
1043             sequence="E">
1044       </key>
1045       <key
1046             commandId="mergeFlags"
1047             contextId="org.simantics.modeling.ui.diagramming"
1048             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
1049             sequence="M">
1050       </key>
1051       <key
1052             commandId="mergeRelatedFlags"
1053             contextId="org.simantics.modeling.ui.diagramming"
1054             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
1055             sequence="M1+M2+M">
1056       </key>
1057       <key
1058             commandId="org.simantics.modeling.ui.contextualHelp"
1059             contextId="org.simantics.modeling.ui.diagramming"
1060             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
1061             sequence="F1">
1062       </key>
1063       <key
1064             commandId="org.simantics.modeling.ui.scl.scriptEditor.run"
1065             contextId="org.simantics.modeling.ui.scl.scriptEditor.context"
1066             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
1067             sequence="Ctrl+R">
1068       </key>
1069    </extension>
1070    <extension
1071          point="org.eclipse.ui.menus">
1072       <menuContribution
1073             locationURI="menu:sFile?after=new.ext">
1074          <menu
1075                label="New"
1076                id="#FileNewMenu">
1077             <dynamic
1078                   class="org.simantics.modeling.ui.actions.ModelingProjectOperationsContribution"
1079                   id="org.simantics.modeling.ui.actions">
1080             </dynamic>
1081          </menu>
1082       </menuContribution>
1083       <menuContribution
1084             locationURI="popup:#GraphExplorerPopup?after=wbStart">
1085          <separator
1086                name="new.begin"
1087                visible="false">
1088          </separator>
1089          <separator
1090                name="new.ext"
1091                visible="false">
1092          </separator>
1093          <separator
1094                name="new.end"
1095                visible="true">
1096          </separator>
1097          <separator
1098                name="open.begin"
1099                visible="false">
1100          </separator>
1101          <dynamic
1102                class="org.simantics.ui.contribution.OpenWithMenuContribution"
1103                id="openWith">
1104          </dynamic>
1105          <separator
1106                name="open.ext"
1107                visible="false">
1108          </separator>
1109          <separator
1110                name="open.end"
1111                visible="true">
1112          </separator>
1113          <separator
1114                name="edit.begin"
1115                visible="false">
1116          </separator>
1117          <command
1118                commandId="org.eclipse.ui.file.refresh"
1119                label="Refresh"
1120                style="push">
1121             <visibleWhen
1122                   checkEnabled="true">
1123             </visibleWhen>
1124          </command>
1125          <command
1126                commandId="org.simantics.modeling.ui.open"
1127                label="Open"
1128                style="push">
1129             <visibleWhen
1130                   checkEnabled="true">
1131             </visibleWhen>
1132          </command>
1133          <command
1134                commandId="org.eclipse.ui.edit.delete"
1135                label="Delete"
1136                style="push">
1137             <visibleWhen
1138                   checkEnabled="false">
1139             </visibleWhen>
1140          </command>
1141          <command
1142                commandId="org.eclipse.ui.edit.rename"
1143                label="Rename"
1144                style="push">
1145             <visibleWhen
1146                   checkEnabled="false">
1147             </visibleWhen>
1148          </command>
1149          <separator
1150                name="edit.ext"
1151                visible="false">
1152          </separator>
1153          <separator
1154                name="edit.end"
1155                visible="true">
1156          </separator>
1157          <separator
1158                name="import.begin"
1159                visible="false">
1160          </separator>
1161          <separator
1162                name="import.ext"
1163                visible="false">
1164          </separator>
1165          <separator
1166                name="import.end"
1167                visible="true">
1168          </separator>
1169          <separator
1170                name="modelling.begin"
1171                visible="false">
1172          </separator>
1173          <dynamic
1174                class="org.simantics.modeling.ui.actions.SetInitialState"
1175                id="org.simantics.modeling.ui.setInitialState">
1176             <visibleWhen
1177                   checkEnabled="false">
1178                <with
1179                      variable="selection">
1180                   <test
1181                         args="http://www.simantics.org/Simulation-0.0/Experiment"
1182                         property="org.simantics.graph.resourceType">
1183                   </test>
1184                </with>
1185             </visibleWhen>
1186          </dynamic>
1187          <dynamic
1188                class="org.simantics.modeling.ui.actions.ModelingOperationsContribution"
1189                id="org.simantics.modeling.ui.actions">
1190          </dynamic>
1191          <separator
1192                name="modelling.ext"
1193                visible="false">
1194          </separator>
1195          <separator
1196                name="modelling.end"
1197                visible="true">
1198          </separator>
1199          <separator
1200                name="additions"
1201                visible="false">
1202          </separator>
1203          <separator
1204                name="wbEnd"
1205                visible="false">
1206          </separator>
1207       </menuContribution>
1208       <menuContribution
1209             locationURI="popup:#GraphExplorerPopup?after=modelling.ext">
1210          <dynamic
1211                id="org.simantics.modeling.ui.disableSubscription">
1212             <class
1213                   class="org.simantics.modeling.ui.modelBrowser2.contributions.SetSubscriptionEnabledContribution">
1214                <parameter
1215                      name="name"
1216                      value="Disable">
1217                </parameter>
1218                <parameter
1219                      name="image"
1220                      value="stop">
1221                </parameter>
1222                <parameter
1223                      name="include"
1224                      value="false">
1225                </parameter>
1226             </class>
1227          </dynamic>
1228          <dynamic
1229                id="org.simantics.modeling.ui.enableSubscription">
1230             <class
1231                   class="org.simantics.modeling.ui.modelBrowser2.contributions.SetSubscriptionEnabledContribution">
1232                <parameter
1233                      name="name"
1234                      value="Enable">
1235                </parameter>
1236                <parameter
1237                      name="image"
1238                      value="tick">
1239                </parameter>
1240                <parameter
1241                      name="include"
1242                      value="true">
1243                </parameter>
1244             </class>
1245          </dynamic>
1246       </menuContribution>
1247       <menuContribution
1248             locationURI="popup:#GraphExplorerPopup?after=import.ext">
1249          <command
1250                commandId="org.eclipse.ui.file.import"
1251                label="Import..."
1252                style="push"
1253                mnemonic="I">
1254             <visibleWhen
1255                   checkEnabled="true">
1256             </visibleWhen>
1257          </command>
1258          <command
1259                commandId="org.eclipse.ui.file.export"
1260                label="Export..."
1261                style="push"
1262                mnemonic="E">
1263             <visibleWhen
1264                   checkEnabled="true">
1265             </visibleWhen>
1266          </command>
1267       </menuContribution>
1268       <menuContribution
1269             locationURI="popup:org.simantics.new?after=begin">
1270          <command
1271                commandId="org.simantics.modeling.ui.newSpreadsheet"
1272                label="New Spreadsheet"
1273                icon="icons/table_add.png"
1274                style="push">
1275             <visibleWhen
1276                   checkEnabled="true">
1277                <with
1278                      variable="selection">
1279                   <and>
1280                      <test
1281                            args="org.simantics.modeling.ui.modelBrowser2.model.SheetsNode"
1282                            property="org.simantics.modeling.ui.nodeClass">
1283                      </test>
1284                   </and>
1285                </with>
1286             </visibleWhen>
1287          </command>
1288       </menuContribution>
1289       <menuContribution
1290             locationURI="popup:#GraphExplorerPopup?after=new.ext">
1291          <dynamic
1292                class="org.simantics.modeling.ui.actions.ModeledActions"
1293                id="org.simantics.modeling.ui.modeledActions">
1294          </dynamic>
1295       </menuContribution>
1296       <menuContribution
1297             locationURI="popup:#GraphExplorerPopup?after=modelling.ext">
1298       </menuContribution>
1299       <menuContribution
1300             locationURI="popup:#ModelingDiagramPopup">
1301          <dynamic
1302                class="org.simantics.modeling.ui.actions.DiagramOperationsContribution"
1303                id="org.simantics.modeling.ui.diagramOperations">
1304          </dynamic>
1305          <dynamic
1306                class="org.simantics.ui.contribution.OpenWithMenuContribution"
1307                id="openWith">
1308          </dynamic>
1309          <dynamic
1310                class="org.simantics.diagram.handler.ConnectionRoutingMenuContribution"
1311                id="connectionRouting">
1312          </dynamic>
1313          <dynamic
1314                class="org.simantics.modeling.ui.actions.SwitchComponentTypeContribution"
1315                id="org.simantics.modeling.ui.switchComponentType">
1316          </dynamic>
1317       </menuContribution>
1318       <menuContribution
1319             locationURI="toolbar:org.simantics.browsing.ui.graph.propertyView">
1320          <command
1321                commandId="org.simantics.modeling.ui.pinSelection"
1322                label="Pin Selection"
1323                icon="icons/etool16/pin_editor.gif"
1324                style="toggle"
1325                tooltip="Pin Current Selection"
1326                disabledIcon="icons/dtool16/pin_editor.gif">
1327             <visibleWhen
1328                   checkEnabled="true">
1329             </visibleWhen>
1330          </command>
1331          <command
1332                commandId="org.simantics.modeling.ui.duplicatePinnedView"
1333                label="Duplicate View and Pin Selection"
1334                icon="icons/etool16/open_pinned_view.gif"
1335                style="push"
1336                tooltip="Open New Pinned View">
1337             <visibleWhen
1338                   checkEnabled="true">
1339             </visibleWhen>
1340          </command>
1341       </menuContribution>
1342       <menuContribution
1343             locationURI="popup:#SymbolViewerPopup">
1344          <separator
1345                name="wbStart"
1346                visible="false">
1347          </separator>
1348          <separator
1349                name="new.begin"
1350                visible="false">
1351          </separator>
1352          <command
1353                commandId="org.simantics.modeling.ui.importSVG"
1354                label="Add Image"
1355                icon="icons/photo.png"
1356                style="push"
1357                id="Import SVG">
1358          </command>
1359          <command
1360                commandId="org.simantics.modeling.ui.createRectangle"
1361                label="Add Rectangle"
1362                icon="icons/shape_square.png"
1363                style="push"
1364                id="Add Rectangle">
1365          </command>
1366          <command
1367                commandId="org.simantics.modeling.ui.createEllipse"
1368                label="Add Ellipse"
1369                icon="icons/stop.png"
1370                style="push"
1371                id="Add Ellipse">
1372          </command>
1373          <command
1374                commandId="org.simantics.modeling.ui.createPath"
1375                label="Add Path"
1376                icon="icons/chart_line.png"
1377                style="push"
1378                id="Add Path">
1379          </command>
1380          <command
1381                commandId="org.simantics.modeling.ui.createText"
1382                label="Add Text"
1383                icon="icons/style.png"
1384                style="push"
1385                id="Add Text">
1386          </command>
1387          <separator
1388                name="new.end"
1389                visible="true">
1390          </separator>
1391          <separator
1392                name="edit.begin"
1393                visible="false">
1394          </separator>
1395          <command
1396                commandId="org.eclipse.ui.edit.delete"
1397                label="Delete"
1398                style="push">
1399             <visibleWhen
1400                   checkEnabled="false">
1401             </visibleWhen>
1402          </command>
1403          <separator
1404                name="edit.end"
1405                visible="true">
1406          </separator>
1407          <dynamic
1408                class="org.simantics.diagram.handler.TerminalConnectionDirectionsMenuContribution"
1409                id="org.simantics.modeling.ui.setTerminalConnectionDirections">
1410          </dynamic>
1411       </menuContribution>
1412       <menuContribution
1413             locationURI="popup:#ModelingDiagramPopup?after=import.ext">
1414          <command
1415                commandId="org.simantics.modeling.ui.editStyle"
1416                label="Edit Style"
1417                icon="icons/silk/palette.png"
1418                style="push">
1419             <visibleWhen
1420                   checkEnabled="true">
1421             </visibleWhen>
1422          </command>
1423          <command
1424                commandId="org.simantics.modeling.ui.createIssue"
1425                label="Create Issue"
1426                icon="platform:/plugin/com.famfamfam.silk/icons/error.png"
1427                style="toggle">
1428             <visibleWhen
1429                   checkEnabled="true">
1430             </visibleWhen>
1431          </command>
1432          <command
1433                commandId="org.simantics.modeling.ui.contextualHelp"
1434                label="Help"
1435                icon="platform:/plugin/com.famfamfam.silk/icons/help.png"
1436                style="toggle">
1437             <visibleWhen
1438                   checkEnabled="true">
1439             </visibleWhen>
1440          </command>
1441          <command
1442                commandId="org.simantics.modeling.ui.toggleExternalFlag"
1443                label="External"
1444                icon="icons/tick.png"
1445                style="toggle">
1446             <visibleWhen
1447                   checkEnabled="true">
1448             </visibleWhen>
1449          </command>
1450          <command
1451                commandId="org.simantics.modeling.ui.createConnectionPoint"
1452                label="Create Terminal"
1453                icon="icons/tick.png"
1454                style="push">
1455             <visibleWhen
1456                   checkEnabled="true">
1457             </visibleWhen>
1458          </command>
1459       </menuContribution>
1460       <menuContribution
1461             locationURI="popup:#PropertiesPopup">
1462          <command
1463                commandId="org.simantics.modeling.ui.properties.restoreDefaultValue"
1464                label="Restore Default Values"
1465                icon="icons/elcl16/defaults_ps.gif"
1466                style="push"
1467                disabledIcon="icons/dlcl16/defaults_ps.gif">
1468             <visibleWhen
1469                   checkEnabled="true">
1470             </visibleWhen>
1471          </command>
1472       </menuContribution>
1473       <menuContribution
1474             locationURI="toolbar:org.simantics.browsing.ui.graph.propertyView">
1475          <command
1476                commandId="org.simantics.modeling.ui.properties.restoreDefaultValue"
1477                label="Restore Default Values"
1478                icon="icons/elcl16/defaults_ps.gif"
1479                style="push"
1480                tooltip="Restore Default Values for Selection"
1481                disabledIcon="icons/dlcl16/defaults_ps.gif">
1482             <visibleWhen
1483                   checkEnabled="true">
1484             </visibleWhen>
1485          </command>
1486       </menuContribution>
1487       <menuContribution
1488             locationURI="toolbar:org.eclipse.ui.main.toolbar">
1489          <toolbar
1490                label="Diagram Toolbar"
1491                id="org.simantics.modeling.ui.diagramtoolbar">
1492             <separator
1493                   name="tool.begin"
1494                   visible="true">
1495             </separator>
1496             <separator
1497                   name="tool.additions">
1498             </separator>
1499             <separator
1500                   name="tool.end">
1501             </separator>
1502          </toolbar>
1503       </menuContribution>
1504       <!--<menuContribution
1505             locationURI="toolbar:org.eclipse.ui.main.toolbar">
1506          <toolbar
1507                label="Element Toolbar"
1508                id="org.simantics.modeling.ui.elementtoolbar">
1509          </toolbar>
1510       </menuContribution>-->
1511       <menuContribution
1512             allPopups="false"
1513             locationURI="popup:org.simantics.modeling.ui.scl.scriptEditor.EditorContext?after=additions">
1514          <command
1515                commandId="org.simantics.modeling.ui.scl.scriptEditor.run"
1516                label="Run Script"
1517                icon="platform:/plugin/com.famfamfam.silk/companion/script_start.png"
1518                style="push"
1519                tooltip="Run the Current Contents of This SCL Script">
1520          </command>
1521       </menuContribution>
1522    </extension>
1523    <extension
1524          point="org.eclipse.ui.contexts">
1525       <context
1526             name="In Modelling Perspective"
1527             id="org.simantics.modeling.ui.context"
1528             parentId="org.eclipse.ui.contexts.window">
1529       </context>
1530       <context
1531             name="In Model Browser"
1532             id="org.simantics.modeling.ui.modelBrowser"
1533             parentId="org.eclipse.ui.contexts.window">
1534       </context>
1535       <context
1536             name="In Property View"
1537             id="org.simantics.modeling.ui.properties"
1538             parentId="org.eclipse.ui.contexts.window">
1539       </context>
1540       <context
1541             name="Undo Context"
1542             id="org.simantics.ui.undoContext"
1543             parentId="org.eclipse.ui.contexts.window">
1544       </context>
1545       <context
1546             name="In SCL Script Editor"
1547             id="org.simantics.modeling.ui.scl.scriptEditor.context"
1548             parentId="org.eclipse.ui.contexts.window">
1549       </context>
1550    </extension>
1551    <extension
1552          point="org.simantics.ui.perspectiveContextBinding">
1553       <binding
1554             contextIds="org.simantics.modeling.ui.context"
1555             perspectiveId="org.simantics.modeling.ui.perspective">
1556       </binding>
1557    </extension>
1558    <extension
1559          point="org.simantics.ui.resourceEditorAdapter">
1560       <group
1561             id="org.simantics.diagramEditor.group">
1562       </group>
1563       <group
1564             id="org.simantics.componentTypeEditor.group">
1565       </group>
1566       <adapterClass
1567             groupId="org.simantics.diagramEditor.group"
1568             priority="50"
1569             class="org.simantics.modeling.ui.diagramEditor.OpenDiagramFromConfigurationAdapter">
1570          <!--<inContext
1571                id="org.simantics.modeling.ui.context">
1572          </inContext>-->
1573       </adapterClass>
1574       <adapterClass
1575             groupId="org.simantics.diagramEditor.group"
1576             priority="50"
1577             class="org.simantics.modeling.ui.diagramEditor.OpenDiagramFromComponentAdapter">
1578          <!--<inContext
1579                id="org.simantics.modeling.ui.context">
1580          </inContext>-->
1581       </adapterClass>
1582       <adapterClass
1583             priority="150"
1584             class="org.simantics.modeling.ui.diagramEditor.OpenSheetAdapter">
1585          <!--<inContext
1586                id="org.simantics.modeling.ui.context">
1587          </inContext>-->
1588       </adapterClass>
1589       <adapterClass
1590             priority="50"
1591             class="org.simantics.modeling.ui.diagramEditor.OpenDiagramFromSymbolAdapter">
1592          <inContext
1593                id="org.simantics.modeling.ui.context">
1594          </inContext>
1595       </adapterClass>
1596       <adapter
1597             label="User Component Editor"
1598             priority="10"
1599             groupId="org.simantics.componentTypeEditor.group"
1600             editorId="org.simantics.modeling.ui.componentTypeEditor"
1601             type_uris="http://www.simantics.org/Structural-0.0/ComponentType">
1602       </adapter>
1603       <adapter
1604             label="User Component Editor"
1605             priority="11"
1606             groupId="org.simantics.componentTypeEditor.group"
1607             editorId="org.simantics.modeling.ui.componentTypeEditor"
1608             type_uris="http://www.simantics.org/Structural-0.0/ProceduralComponentType">
1609       </adapter>
1610       <adapter
1611             label="Ontology Definition File Editor"
1612             priority="11"
1613             editorId="org.simantics.modeling.ui.pgraphEditor"
1614             type_uris="http://www.simantics.org/Layer0-0.0/PGraph">
1615       </adapter>
1616       <adapter
1617             label="SCL Query Editor"
1618             priority="11"
1619             editorId="org.simantics.modeling.ui.sclQueryEditor"
1620             type_uris="http://www.simantics.org/Modeling-1.2/SCLQueryType,http://www.simantics.org/Modeling-1.2/SCLQuery">
1621       </adapter>
1622       <adapter
1623             label="Procedural User Component Code Editor"
1624             priority="11"
1625             editorId="org.simantics.modeling.ui.proceduralComponentTypeCodeEditor"
1626             type_uris="http://www.simantics.org/Structural-0.0/ProceduralComponentTypeCode">
1627       </adapter>
1628       <adapter
1629             editorId="org.simantics.modeling.ui.symbolCodeEditor"
1630             label="Symbol Code Editor"
1631             priority="11"
1632             type_uris="http://www.simantics.org/Diagram-0.0/ElementClass">
1633       </adapter>
1634       <adapter
1635             editorId="org.simantics.modeling.ui.symbolDropHandlerEditor"
1636             label="Symbol Drop Handler Editor"
1637             priority="11"
1638             type_uris="http://www.simantics.org/Diagram-0.0/ElementClass">
1639       </adapter>
1640       <adapter
1641             label="User Component Script Editor"
1642             priority="11"
1643             editorId="org.simantics.modeling.ui.componentTypeScriptEditor"
1644             type_uris="http://www.simantics.org/Structural-0.0/ComponentTypeScript">
1645       </adapter>
1646       <adapterClass
1647             priority="-10"
1648             class="org.simantics.modeling.ui.componentTypeEditor.ProceduralComponentInstanceViewerEditorAdapter">
1649       </adapterClass>
1650       <adapterClass
1651             class="org.simantics.modeling.ui.componentTypeEditor.SCLModuleEditorAdapter"
1652             id="org.simantics.modeling.ui.sclModuleEditor2"
1653             priority="10">
1654       </adapterClass>
1655       <adapterClass
1656             class="org.simantics.modeling.ui.scl.scriptEditor.SCLScriptEditorAdapter"
1657             id="org.simantics.modeling.ui.scl.scriptEditor.adapter"
1658             priority="20">
1659       </adapterClass>
1660    </extension>
1661    <extension
1662          point="org.eclipse.core.runtime.preferences">
1663       <initializer
1664             class="org.simantics.modeling.ui.preferences.PreferenceInitializer">
1665       </initializer>
1666    </extension>
1667    <extension
1668          point="org.eclipse.ui.preferencePages">
1669       <page
1670             name="Diagram"
1671             class="org.simantics.modeling.ui.preferences.DiagramPreferencePage"
1672             id="org.simantics.modeling.diagram.preferences">
1673       </page>
1674       <page
1675             name="Connection Flags"
1676             category="org.simantics.modeling.diagram.preferences"
1677             class="org.simantics.modeling.ui.preferences.DiagramFlagPreferencePage"
1678             id="org.simantics.modeling.diagram.flag.preferences">
1679       </page>
1680       <page
1681             name="Subscription"
1682             class="org.simantics.modeling.ui.preferences.SubscriptionPreferencePage"
1683             id="org.simantics.modeling.ui.subscription.preferences">
1684       </page>
1685       <page
1686             name="CSV (Comma separated value)"
1687             class="org.simantics.modeling.ui.preferences.CSVPreferencePage"
1688             id="org.simantics.modeling.csv.preferences">
1689       </page>
1690    </extension>
1691    <extension
1692          point="org.eclipse.ui.exportWizards">
1693       <category
1694             name="Generic Modeling"
1695             id="org.simantics.export.export">
1696       </category>
1697       <wizard
1698             name="Diagrams to PDF"
1699             icon="icons/page_white_acrobat.png"
1700             category="org.simantics.export.export"
1701             class="org.simantics.modeling.ui.pdf.PDFDiagramExportWizard"
1702             id="org.simantics.modeling.ui.pdf.wizard">
1703          <description>
1704          </description>
1705       </wizard>
1706       <wizard
1707             name="Shared Library"
1708             icon="platform:/plugin/com.famfamfam.silk/icons/folder.png"
1709             category="org.simantics.export.export"
1710             class="org.simantics.modeling.ui.sharedontology.wizard.WizardExtensionFactory:sharedOntologyExportWizard"
1711             id="org.simantics.modeling.ui.sharedOntologyExportWizard">
1712          <description>
1713          </description>
1714       </wizard>
1715       <wizard
1716             name="Model"
1717             icon="platform:/plugin/com.famfamfam.silk/icons/folder.png"
1718             category="org.simantics.export.export"
1719             class="org.simantics.modeling.ui.sharedontology.wizard.WizardExtensionFactory:modelExportWizard"
1720             id="org.simantics.modeling.ui.modelExportWizard">
1721          <description>
1722          </description>
1723       </wizard>
1724    </extension>
1725    <extension
1726          point="org.eclipse.ui.importWizards">
1727       <category
1728             name="Generic Modeling"
1729             id="org.simantics.modeling.import">
1730       </category>
1731       <wizard
1732             name="Shared Library"
1733             icon="platform:/plugin/com.famfamfam.silk/icons/folder.png"
1734             category="org.simantics.modeling.import"
1735             class="org.simantics.modeling.ui.sharedontology.wizard.WizardExtensionFactory:sharedOntologyImportWizard"
1736             id="org.simantics.modeling.ui.sharedOntologyImportWizard">
1737          <description>
1738          </description>
1739       </wizard>
1740       <wizard
1741             name="Model"
1742             icon="platform:/plugin/com.famfamfam.silk/icons/folder.png"
1743             category="org.simantics.modeling.import"
1744             class="org.simantics.modeling.ui.sharedontology.wizard.WizardExtensionFactory:modelImportWizard"
1745             id="org.simantics.modeling.ui.modelImportWizard">
1746          <description>
1747          </description>
1748       </wizard>
1749    </extension>
1750    <extension
1751          point="org.simantics.ui.doubleClick">
1752       <doubleClickAction
1753             name="Expand Browser Node"
1754             priority="-1"
1755             class="org.simantics.modeling.ui.ExpandNodeHandler">
1756       </doubleClickAction>
1757    </extension>
1758    <extension
1759          point="org.simantics.scl.reflection.binding">
1760       <namespace
1761             path="http://www.simantics.org/Modeling-0.0/Functions">
1762          <externalClass
1763                className="org.simantics.db.Resource">
1764          </externalClass>
1765          <externalClass
1766                className="org.simantics.db.ReadGraph">
1767          </externalClass>
1768          <externalClass
1769                className="org.simantics.db.layer0.variable.Variable">
1770          </externalClass>
1771          <externalClass
1772                className="org.simantics.browsing.ui.StatePersistor">
1773          </externalClass>
1774          <class
1775                className="org.simantics.modeling.ui.function.All">
1776          </class>
1777       </namespace>
1778    </extension>
1779    <extension
1780          point="org.eclipse.core.runtime.adapters">
1781       <factory
1782             class="org.simantics.diagram.adapter.CanvasAdapterFactory"
1783             adaptableType="org.simantics.modeling.ui.diagramEditor.DiagramEditor">
1784          <adapter
1785                type="org.simantics.g2d.canvas.ICanvasContext">
1786          </adapter>
1787       </factory>
1788    </extension>
1789    <extension
1790          id="org.simantics.modeling.ui.fragment"
1791          point="org.eclipse.e4.workbench.model">
1792       <fragment
1793             uri="fragment.e4xmi">
1794       </fragment>
1795    </extension>
1796
1797 </plugin>