1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
\r<!--
3 Copyright (c) 2007, 2010 Association for Decentralized Information Management
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
11 VTT Technical Research Centre of Finland - initial API and implementation
18 point="org.eclipse.ui.editors">
20 class="org.simantics.wiki.ui.editor.WikiEditor"
21 icon="icons/table.png"
22 id="org.simantics.wiki.ui.editor"
23 name="Documentation Editor (old)">
26 class="org.simantics.wiki.ui.editor.WikiViewer"
27 icon="icons/table.png"
28 id="org.simantics.wiki.ui.viewer"
29 name="Documentation Viewer (old)">
34 point="org.simantics.ui.resourceEditorAdapter">
36 id="org.simantics.wiki.ui.editor">
39 editorId="org.simantics.wiki.ui.editor"
40 groupId="org.simantics.wiki.ui.editor"
41 id="org.simantics.wiki.ui.editor1"
43 type_uris="http://www.simantics.org/Document-0.0/Report,http://www.simantics.org/Document-0.0/DocumentTemplate">
46 editorId="org.simantics.wiki.ui.editor"
47 groupId="org.simantics.wiki.ui.editor"
48 id="org.simantics.wiki.ui.editor2"
49 label="Wiki Document Editor"
51 type_uris="http://www.simantics.org/Document-0.0/WikiDocument">
54 editorId="org.simantics.wiki.ui.editor"
55 groupId="org.simantics.wiki.ui.editor"
56 id="org.simantics.wiki.ui.editor3"
58 type_uris="http://www.simantics.org/Layer0-0.0/Entity">
61 editorId="org.simantics.wiki.ui.viewer"
62 id="org.simantics.wiki.ui.viewer"
64 type_uris="http://www.simantics.org/Layer0-0.0/Entity">
68 point="org.eclipse.ui.commands">
70 defaultHandler="org.simantics.wiki.ui.editor.NewDocumentTemplateHandler"
71 description="New Document Template"
72 id="org.simantics.wiki.ui.newDocumentTemplate"
76 defaultHandler="org.simantics.wiki.ui.editor.EditDocumentTemplateHandler"
77 description="Edit Document Template"
78 id="org.simantics.wiki.ui.editDocumentTemplate"
82 description="Generate Report from Active Experiment"
83 id="org.simantics.wiki.ui.export.Report"
84 name="Generate Report">
87 description="Back to previous wiki page in history"
88 id="org.simantics.wiki.ui.editor.back"
92 description="Forward to next wiki page in history"
93 id="org.simantics.wiki.ui.editor.forward"
99 point="org.eclipse.ui.handlers">
101 class="org.simantics.wiki.ui.editor.PasteHandler"
102 commandId="org.eclipse.ui.edit.paste">
105 variable="activeEditor">
107 value="org.simantics.wiki.ui.editor.WikiEditor">
113 class="org.simantics.wiki.ui.export.ReportHandler"
114 commandId="org.simantics.wiki.ui.export.Report">
116 <with variable="selection">
117 <test property="org.simantics.wiki.isReportable" />
124 point="org.eclipse.ui.menus">
126 locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
128 id="org.simantics.wiki.ui">
130 commandId="org.simantics.wiki.ui.editor.back"
131 icon="icons/arrow_left.png"
135 tooltip="Back to previous page">
136 <visibleWhen checkEnabled="false">
138 variable="activeEditor">
140 value="org.simantics.wiki.ui.editor.WikiEditor">
142 </with></visibleWhen>
145 commandId="org.simantics.wiki.ui.editor.forward"
146 icon="icons/arrow_right.png"
151 <visibleWhen checkEnabled="false">
153 variable="activeEditor">
155 value="org.simantics.wiki.ui.editor.WikiEditor">
157 </with></visibleWhen>
163 locationURI="popup:#GraphExplorerPopup?after=new.ext">
165 commandId="org.simantics.wiki.ui.newDocumentTemplate"
166 icon="icons/page_add.png"
167 label="New Document Template"
172 variable="selection">
175 args="org.simantics.modeling.ui.modelBrowser.model.Node"
176 property="org.simantics.modeling.ui.nodeClass">
183 commandId="org.simantics.wiki.ui.editDocumentTemplate"
184 icon="icons/page_edit.png"
185 label="Edit Document Template"
190 variable="selection">
193 args="org.simantics.modeling.ui.modelBrowser.model.Node"
194 property="org.simantics.modeling.ui.nodeClass">
201 <menuContribution locationURI="popup:#GraphExplorerPopup?after=modelling.ext">
203 commandId="org.simantics.wiki.ui.export.Report"
204 icon="icons/export.gif"
205 label="Generate Report"
214 <!-- Doesn't work, wiki content cannot be exported in headless mode
216 point="org.eclipse.ui.exportWizards">
218 id="org.simantics.wiki.ui.category.documentation"
219 name="Documentation">
222 category="org.simantics.wiki.ui.category.documentation"
223 class="org.simantics.wiki.ui.export.FullPDFExport"
224 icon="icons/export.gif"
225 id="org.simantics.wiki.ui.fullPDFExport"
226 name="Documentation hierarchy in PDF">
230 point="org.eclipse.core.expressions.propertyTesters">
232 class="org.simantics.wiki.ui.tester.ReportPropertyTester"
233 id="org.simantics.wiki.reportPropertyTester"
234 namespace="org.simantics.wiki"
235 properties="isReportable"
236 type="java.lang.Object">
242 point="org.eclipse.ui.themes">
243 <themeElementCategory
244 id="org.simantics.wiki.ui"
246 </themeElementCategory>
248 categoryId="org.simantics.wiki.ui"
249 id="org.simantics.wiki.sourcefont"
250 label="Wiki Source Font"
251 value="Tahoma-10-regular">