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