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