]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.annotation.ui/plugin.xml
Working towards multiple readers.
[simantics/platform.git] / bundles / org.simantics.annotation.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>\r<!--
3     Copyright (c) 2012 Association for Decentralized Information Management in
4     Industry THTH ry.
5     All rights reserved. This program and the accompanying materials
6     are made available under the terms of the Eclipse Public License v1.0
7     which accompanies this distribution, and is available at
8     http://www.eclipse.org/legal/epl-v10.html
9    
10     Contributors:
11         VTT Technical Research Centre of Finland - initial API and implementation
12  -->
13
14 <plugin>
15    <extension
16          point="org.eclipse.ui.editors">
17       <editor
18             class="org.simantics.modeling.ui.componentTypeEditor.ComponentTypeEditor:formTitle=Annotation Type"
19             default="false"
20             id="org.simantics.annotation.ui.annotationTypeEditor"
21             matchingStrategy="org.simantics.ui.workbench.editor.input.ResourceEditorInputMatchingStrategy"
22             name="Annotation Type Editor">
23       </editor>
24    </extension>
25    <extension
26          point="org.simantics.ui.resourceEditorAdapter">
27       <adapter
28             editorId="org.simantics.annotation.ui.annotationTypeEditor"
29             label="Annotation Type Editor"
30             priority="10"
31             type_uris="http://www.simantics.org/Annotation-0.0/AnnotationType">
32       </adapter>
33    </extension>
34    <extension
35          point="org.eclipse.ui.handlers">
36       <handler
37             class="org.simantics.annotation.ui.diagram.handlers.NewAnnotation"
38             commandId="org.simantics.annotation.ui.newAnnotation">
39          <enabledWhen>
40             <with
41                   variable="selection">
42                <iterate
43                      ifEmpty="false"
44                      operator="and">
45                   <and>
46                      <test
47                            args="http://www.simantics.org/Diagram-0.0/Flag"
48                            property="org.simantics.graph.resourceType">
49                      </test>
50                      <test
51                            property="org.simantics.diagram.flag.locallyConnected"
52                            value="false">
53                      </test>
54                   </and>
55                </iterate>
56             </with>
57          </enabledWhen>
58       </handler>
59   </extension>
60    <extension
61          point="org.eclipse.ui.commands">
62       <command
63             categoryId="org.simantics.modeling.ui.category"
64             id="org.simantics.annotation.ui.newAnnotation"
65             name="New Annotation">
66       </command>
67   </extension>
68
69    <extension point="org.simantics.scl.reflection.binding">
70       <namespace path="http://www.simantics.org/Annotation-0.0/Functions">
71          <externalClass className="org.simantics.db.Resource"/>
72          <externalClass className="org.simantics.db.layer0.variable.Variable"/>
73          <externalClass className="org.simantics.db.ReadGraph"/>
74          <externalClass className="org.simantics.db.WriteGraph"/>
75          <externalClass className="org.simantics.db.layer0.variable.VariableMap"/>
76          <class className="org.simantics.annotation.ui.SCL"/>
77       </namespace>
78    </extension>
79
80   <extension
81          point="org.eclipse.ui.exportWizards">
82       <wizard
83             category="org.simantics.export.export"
84             class="org.simantics.annotation.ui.wizard.WizardExtensionFactory:annotationTypeExportWizard"
85             icon="platform:/plugin/com.famfamfam.silk/icons/layout_sidebar.png"
86             id="org.simantics.annotation.ui.annotationTypeExportWizard"
87             name="Annotation Type">
88          <description>
89             Export an annotation type to the local file system.
90          </description>
91       </wizard>
92    </extension>
93    <extension
94          point="org.eclipse.ui.importWizards">
95       <category
96             id="org.simantics.modeling.import"
97             name="Generic Modeling">
98       </category>
99       <wizard
100             category="org.simantics.modeling.import"
101             class="org.simantics.annotation.ui.wizard.WizardExtensionFactory:annotationTypeImportWizard"
102             icon="platform:/plugin/com.famfamfam.silk/icons/layout_sidebar.png"
103             id="org.simantics.annotation.ui.annotationTypeImportWizard"
104             name="Annotation Type">
105          <description>
106             Import a previously exported annotation type into the current project from the local file system.
107          </description>
108       </wizard>
109    </extension>
110 </plugin>