]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.wiki.ui/plugin.xml
Fixed regression in TrendNode.
[simantics/platform.git] / bundles / org.simantics.wiki.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <?eclipse version="3.2"?>\r<!--\r
3     Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
4     in 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 \r
16    <!--\r
17    <extension\r
18          point="org.eclipse.ui.editors">\r
19       <editor\r
20             class="org.simantics.wiki.ui.editor.WikiEditor"\r
21             icon="icons/table.png"\r
22             id="org.simantics.wiki.ui.editor"\r
23             name="Documentation Editor (old)">\r
24       </editor>\r
25       <editor\r
26             class="org.simantics.wiki.ui.editor.WikiViewer"\r
27             icon="icons/table.png"\r
28             id="org.simantics.wiki.ui.viewer"\r
29             name="Documentation Viewer (old)">\r
30       </editor>\r
31    </extension>\r
32 \r
33    <extension\r
34          point="org.simantics.ui.resourceEditorAdapter">\r
35       <group\r
36             id="org.simantics.wiki.ui.editor">\r
37       </group>\r
38       <adapter\r
39             editorId="org.simantics.wiki.ui.editor"\r
40             groupId="org.simantics.wiki.ui.editor"\r
41             id="org.simantics.wiki.ui.editor1"\r
42             priority="5"\r
43             type_uris="http://www.simantics.org/Document-0.0/Report,http://www.simantics.org/Document-0.0/DocumentTemplate">\r
44       </adapter>    \r
45       <adapter\r
46             editorId="org.simantics.wiki.ui.editor"\r
47             groupId="org.simantics.wiki.ui.editor"\r
48             id="org.simantics.wiki.ui.editor2"\r
49             label="Wiki Document Editor"\r
50             priority="5"\r
51             type_uris="http://www.simantics.org/Document-0.0/WikiDocument">\r
52       </adapter> \r
53       <adapter\r
54             editorId="org.simantics.wiki.ui.editor"\r
55             groupId="org.simantics.wiki.ui.editor"\r
56             id="org.simantics.wiki.ui.editor3"\r
57             priority="0"\r
58             type_uris="http://www.simantics.org/Layer0-0.0/Entity">\r
59       </adapter> \r
60       <adapter\r
61             editorId="org.simantics.wiki.ui.viewer"\r
62             id="org.simantics.wiki.ui.viewer"\r
63             priority="0"\r
64             type_uris="http://www.simantics.org/Layer0-0.0/Entity">\r
65       </adapter>\r
66    </extension>\r
67    <extension\r
68          point="org.eclipse.ui.commands">\r
69       <command\r
70             defaultHandler="org.simantics.wiki.ui.editor.NewDocumentTemplateHandler"\r
71             description="New Document Template"\r
72             id="org.simantics.wiki.ui.newDocumentTemplate"\r
73             name="New Template">\r
74       </command>\r
75       <command\r
76             defaultHandler="org.simantics.wiki.ui.editor.EditDocumentTemplateHandler"\r
77             description="Edit Document Template"\r
78             id="org.simantics.wiki.ui.editDocumentTemplate"\r
79             name="Edit Template">\r
80       </command>\r
81       <command\r
82             description="Generate Report from Active Experiment"\r
83             id="org.simantics.wiki.ui.export.Report"\r
84             name="Generate Report">\r
85       </command>\r
86       <command\r
87             description="Back to previous wiki page in history"\r
88             id="org.simantics.wiki.ui.editor.back"\r
89             name="Back">\r
90       </command>\r
91       <command\r
92             description="Forward to next wiki page in history"\r
93             id="org.simantics.wiki.ui.editor.forward"\r
94             name="Forward">\r
95       </command>\r
96    </extension>\r
97    \r
98    <extension\r
99          point="org.eclipse.ui.handlers">\r
100       <handler\r
101             class="org.simantics.wiki.ui.editor.PasteHandler"\r
102             commandId="org.eclipse.ui.edit.paste">\r
103             <activeWhen>\r
104                <with\r
105                      variable="activeEditor">\r
106                   <instanceof\r
107                         value="org.simantics.wiki.ui.editor.WikiEditor">\r
108                   </instanceof>\r
109                </with>\r
110             </activeWhen>\r
111       </handler>\r
112       <handler\r
113             class="org.simantics.wiki.ui.export.ReportHandler"\r
114             commandId="org.simantics.wiki.ui.export.Report">\r
115          <activeWhen>\r
116             <with variable="selection">\r
117                <test property="org.simantics.wiki.isReportable" />\r
118             </with>\r
119          </activeWhen>\r
120       </handler>\r
121    </extension>\r
122 \r
123    <extension\r
124          point="org.eclipse.ui.menus">\r
125       <menuContribution\r
126             locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">\r
127          <toolbar\r
128                id="org.simantics.wiki.ui">\r
129             <command\r
130                   commandId="org.simantics.wiki.ui.editor.back"\r
131                   icon="icons/arrow_left.png"\r
132                   id="wikiback"\r
133                   label="Back"\r
134                   style="push"\r
135                   tooltip="Back to previous page">\r
136                <visibleWhen checkEnabled="false">\r
137                <with\r
138                      variable="activeEditor">\r
139                   <instanceof\r
140                         value="org.simantics.wiki.ui.editor.WikiEditor">\r
141                   </instanceof>\r
142                </with></visibleWhen>\r
143             </command>\r
144             <command\r
145                   commandId="org.simantics.wiki.ui.editor.forward"\r
146                   icon="icons/arrow_right.png"\r
147                   id="wikiforward"\r
148                   label="Forward"\r
149                   style="push"\r
150                   tooltip="Next page">\r
151                <visibleWhen checkEnabled="false">\r
152                <with\r
153                      variable="activeEditor">\r
154                   <instanceof\r
155                         value="org.simantics.wiki.ui.editor.WikiEditor">\r
156                   </instanceof>\r
157                </with></visibleWhen>\r
158             </command>\r
159             \r
160          </toolbar>\r
161       </menuContribution>
162       <menuContribution\r
163             locationURI="popup:#GraphExplorerPopup?after=new.ext">\r
164          <command\r
165                commandId="org.simantics.wiki.ui.newDocumentTemplate"\r
166                icon="icons/page_add.png"\r
167                label="New Document Template"\r
168                style="push">\r
169             <visibleWhen\r
170                   checkEnabled="true">\r
171                <with\r
172                      variable="selection">\r
173                   <and>\r
174                      <test\r
175                            args="org.simantics.modeling.ui.modelBrowser.model.Node"\r
176                            property="org.simantics.modeling.ui.nodeClass">\r
177                      </test>\r
178                   </and>\r
179                </with>\r
180             </visibleWhen>\r
181          </command>\r
182          <command\r
183                commandId="org.simantics.wiki.ui.editDocumentTemplate"\r
184                icon="icons/page_edit.png"\r
185                label="Edit Document Template"\r
186                style="push">\r
187             <visibleWhen\r
188                   checkEnabled="true">\r
189                <with\r
190                      variable="selection">\r
191                   <and>\r
192                      <test\r
193                            args="org.simantics.modeling.ui.modelBrowser.model.Node"\r
194                            property="org.simantics.modeling.ui.nodeClass">\r
195                      </test>\r
196                   </and>\r
197                </with>\r
198             </visibleWhen>\r
199          </command>\r
200        </menuContribution>\r
201        <menuContribution locationURI="popup:#GraphExplorerPopup?after=modelling.ext">\r
202          <command\r
203                commandId="org.simantics.wiki.ui.export.Report"\r
204                icon="icons/export.gif"\r
205                label="Generate Report"\r
206                style="push">\r
207             <visibleWhen\r
208                   checkEnabled="true">\r
209             </visibleWhen>\r
210          </command>\r
211       </menuContribution>\r
212    </extension>\r
213    -->\r
214 <!-- Doesn't work, wiki content cannot be exported in headless mode   \r
215    <extension\r
216          point="org.eclipse.ui.exportWizards">\r
217       <category\r
218             id="org.simantics.wiki.ui.category.documentation"\r
219             name="Documentation">\r
220       </category>\r
221       <wizard\r
222             category="org.simantics.wiki.ui.category.documentation"\r
223             class="org.simantics.wiki.ui.export.FullPDFExport"\r
224             icon="icons/export.gif"\r
225             id="org.simantics.wiki.ui.fullPDFExport"\r
226             name="Documentation hierarchy in PDF">\r
227       </wizard>\r
228    </extension>\r
229    <extension\r
230          point="org.eclipse.core.expressions.propertyTesters">\r
231       <propertyTester\r
232             class="org.simantics.wiki.ui.tester.ReportPropertyTester"\r
233             id="org.simantics.wiki.reportPropertyTester"\r
234             namespace="org.simantics.wiki"\r
235             properties="isReportable"\r
236             type="java.lang.Object">\r
237       </propertyTester>\r
238    </extension>\r
239    -->\r
240 \r
241    <extension\r
242          point="org.eclipse.ui.themes">\r
243       <themeElementCategory\r
244             id="org.simantics.wiki.ui"\r
245             label="Wiki System">\r
246       </themeElementCategory>\r
247       <fontDefinition\r
248             categoryId="org.simantics.wiki.ui"\r
249             id="org.simantics.wiki.sourcefont"\r
250             label="Wiki Source Font"\r
251             value="Tahoma-10-regular">\r
252       </fontDefinition>\r
253    </extension>\r
254 \r
255 </plugin>\r