1 L0 = <http://www.simantics.org/Layer0-1.1>
2 VIEWS = <http://www.simantics.org/Views-1.2>
3 TEXTVIEWS = <http://www.simantics.org/TextViews-1.0>
4 SG = <http://www.simantics.org/Scenegraph-1.1>
5 DOC = <http://www.simantics.org/Document-1.2>
6 ACT = <http://www.simantics.org/Action-1.1>
7 VP = <http://www.simantics.org/Viewpoint-1.2>
8 MOD = <http://www.simantics.org/Modeling-1.2>
9 SIMU = <http://www.simantics.org/Simulation-1.1>
10 SEL = <http://www.simantics.org/SelectionView-1.2>
11 SILK = <http://www.simantics.org/Silk-1.1>
12 DATA = <http://www.simantics.org/Datatypes-1.1>
14 UI = <http://www.simantics.org/DocumentUI-1.1> : L0.Ontology
16 L0.HasResourceClass "org.simantics.document.ui.DocumentUIResource"
18 UI.Functions : L0.Library
19 UI.Functions.editorLoaded : L0.Function
21 UI.CSSEditorContribution
22 L0.HasLabel "Wiki Style Editor"
23 @MOD.editorContribution "org.simantics.document.ui.csseditor"
26 "\r -> isInstanceOf r L0.IndexRoot"
28 UI.WikitextContribution : SEL.VariableTabContribution
29 SEL.VariableTabContribution.HasTest UI.Functions.isWikitext : L0.Function
30 SEL.VariableTabContribution.HasView UI.WikitextContribution.View
31 SEL.VariableTabContribution.HasPriority 1
34 UI.WikitextContribution.View : VIEWS.Composite
35 VIEWS.Control.layoutData
36 _ : VIEWS.GridLayout.GridData
37 VIEWS.GridLayout.GridData.horizontalGrab true
38 VIEWS.GridLayout.GridData.verticalGrab true
39 VIEWS.Composite.layout _ : VIEWS.GridLayout
40 SG.Node.children _ : L0.List
43 VIEWS.Composite.layout _ : VIEWS.RowLayout
44 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
45 VIEWS.GridLayout.GridData.horizontalGrab true
46 SG.Node.children _ : L0.List
49 @VIEWS.Control.style1 VIEWS.Control.Style.Constant.NoFocus
50 VIEWS.Button.tooltip "Makes selection bold or inserts some bold text at cursor"
51 VIEWS.Button.modifier UI.Functions.boldModifier : L0.Function
52 VIEWS.Button.image SILK.text_bold
53 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
55 VIEWS.Button.tooltip "Makes selection italic or inserts some italic text at cursor"
56 VIEWS.Button.modifier UI.Functions.italicModifier : L0.Function
57 VIEWS.Button.image SILK.text_italic
58 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
60 VIEWS.Button.tooltip "Makes selection strikethrough or inserts some strikethrough text at cursor"
61 VIEWS.Button.modifier UI.Functions.strikethroughModifier : L0.Function
62 VIEWS.Button.image SILK.text_strikethrough
63 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
65 VIEWS.Button.tooltip "Makes selection underlined or inserts some underlined text at cursor"
66 VIEWS.Button.modifier UI.Functions.underlineModifier : L0.Function
67 VIEWS.Button.image SILK.text_underline
68 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
70 VIEWS.Button.tooltip "Inserts a horizontal ruler at cursor"
71 VIEWS.Button.modifier UI.Functions.horizontalRulerModifier : L0.Function
72 VIEWS.Button.image SILK.text_horizontalrule
73 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
75 VIEWS.Button.tooltip "Indents text"
76 VIEWS.Button.modifier UI.Functions.indentModifier : L0.Function
77 VIEWS.Button.image SILK.text_indent
78 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
80 VIEWS.Button.tooltip "Modifies selection font or inserts text with font settings"
81 VIEWS.Button.modifier UI.Functions.fontModifier : L0.Function
82 VIEWS.Button.image SILK.font
83 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
85 VIEWS.Button.tooltip "Inserts an image"
86 VIEWS.Button.modifier UI.Functions.imageModifier : L0.Function
87 VIEWS.Button.image SILK.image
88 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
90 VIEWS.Button.tooltip "Inserts an internal model-specific document link"
91 VIEWS.Button.modifier UI.Functions.internalLinkModifier : L0.Function
92 VIEWS.Button.image SILK.database_link
93 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
95 VIEWS.Button.tooltip "Inserts an external website link"
96 VIEWS.Button.modifier UI.Functions.linkModifier : L0.Function
97 VIEWS.Button.image SILK.world_link
98 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
100 VIEWS.Button.tooltip "Inserts a 1st level header"
101 VIEWS.Button.modifier UI.Functions.header1Modifier : L0.Function
102 VIEWS.Button.image SILK.text_heading_1
103 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
105 VIEWS.Button.tooltip "Inserts a 2nd level header"
106 VIEWS.Button.modifier UI.Functions.header2Modifier : L0.Function
107 VIEWS.Button.image SILK.text_heading_2
108 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
110 VIEWS.Button.tooltip "Inserts a 3rd level header"
111 VIEWS.Button.modifier UI.Functions.header3Modifier : L0.Function
112 VIEWS.Button.image SILK.text_heading_3
113 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
115 VIEWS.Button.tooltip "Inserts a 4th level header"
116 VIEWS.Button.modifier UI.Functions.header4Modifier : L0.Function
117 VIEWS.Button.image SILK.text_heading_4
118 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
120 VIEWS.Button.tooltip "Inserts a numbered list"
121 VIEWS.Button.modifier UI.Functions.numberedListModifier : L0.Function
122 VIEWS.Button.image SILK.text_list_numbers
123 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
125 VIEWS.Button.tooltip "Inserts a bullet list"
126 VIEWS.Button.modifier UI.Functions.bulletListModifier : L0.Function
127 VIEWS.Button.image SILK.text_list_bullets
128 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
130 VIEWS.Button.tooltip "Inserts a table"
131 VIEWS.Button.modifier UI.Functions.tableModifier : L0.Function
132 VIEWS.Button.image SILK.table
133 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
135 VIEWS.Button.text "&Styles"
136 VIEWS.Button.tooltip "Edits document styles"
137 VIEWS.Button.modifier UI.Functions.styleModifier : L0.Function
138 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
140 VIEWS.Button.text "&Apply changes"
141 VIEWS.Button.tooltip "Applies any changes in the wiki markup into the document"
142 VIEWS.Button.modifier UI.Functions.wikitextModifier : L0.Function
143 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
145 VIEWS.Button.text "Delete document"
146 VIEWS.Button.tooltip "Deletes the document"
147 VIEWS.Button.modifier UI.Functions.onDeleteDocumentButton : L0.Function
148 VIEWS.Control.layoutData _ : VIEWS.RowLayout.RowData
150 UI.WikitextContribution.View.TextContainer : VIEWS.Composite
151 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
152 VIEWS.GridLayout.GridData.horizontalSpan 17
153 VIEWS.GridLayout.GridData.horizontalGrab true
154 VIEWS.GridLayout.GridData.verticalGrab true
155 VIEWS.Composite.layout _ : VIEWS.GridLayout
156 SG.Node.children _ : L0.List
158 UI.WikitextContribution.View.Text : TEXTVIEWS.MarkupSourceViewer
159 @VIEWS.Control.style4 VIEWS.Control.Style.Constant.Multi VIEWS.Control.Style.Constant.Border VIEWS.Control.Style.Constant.VScroll VIEWS.Control.Style.Constant.HScroll
160 VIEWS.TextContainer.text UI.Functions.selectedDocumentPart : L0.Function
161 L0.HasValueType "String"
162 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
163 VIEWS.GridLayout.GridData.verticalGrab true
164 VIEWS.GridLayout.GridData.horizontalGrab true
166 UI.Content : VIEWS.Composite
167 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
168 VIEWS.GridLayout.GridData.horizontalGrab true
169 VIEWS.GridLayout.GridData.verticalGrab true
170 VIEWS.Composite.layout _ : VIEWS.GridLayout
171 VIEWS.GridLayout.extendedMargins (2,2,2,2) : VIEWS.GridLayout.ExtendedMargins
172 VIEWS.GridLayout.horizontalSpacing 10
173 VIEWS.GridLayout.verticalSpacing 5
174 SG.Node.children _ : L0.List
178 UI.Alternative : VIEWS.Alternative
179 VIEWS.Alternative.condition UI.Functions.hasDocument : L0.Function
180 L0.HasValueType "Boolean"
181 SG.Node.children _ : L0.List
186 UI.Sash : VIEWS.SashForm
187 VIEWS.onLoaded UI.Functions.editorLoaded
188 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
189 VIEWS.GridLayout.GridData.horizontalGrab true
190 VIEWS.GridLayout.GridData.verticalGrab true
191 VIEWS.Composite.layout _ : VIEWS.GridLayout
192 VIEWS.GridLayout.extendedMargins (2,2,2,2) : VIEWS.GridLayout.ExtendedMargins
193 VIEWS.GridLayout.horizontalSpacing 10
194 VIEWS.GridLayout.verticalSpacing 5
195 VIEWS.SashForm.weights [70,30]
196 VIEWS.SashForm.orientation VIEWS.SashForm.Vertical
197 SG.Node.children _ : L0.List
199 UI.Browser : VIEWS.Browser
200 VIEWS.Control.layoutData
201 _ : VIEWS.GridLayout.GridData
202 VIEWS.GridLayout.GridData.horizontalGrab true
203 VIEWS.GridLayout.GridData.verticalGrab true
204 VIEWS.Browser.variable DOC.Functions.documentationRootVariable
205 VIEWS.Browser.document DOC.Functions.documentationText
206 VIEWS.Browser.locationChanging UI.Functions.locationChanging : L0.Function
207 L0.HasValueType "a -> Boolean"
208 UI.WikitextContribution.View
210 UI.NoDocument : VIEWS.Composite
211 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
212 VIEWS.GridLayout.GridData.horizontalGrab true
213 VIEWS.GridLayout.GridData.verticalGrab true
214 VIEWS.Control.background (255,255,255) : DATA.RGB.Integer
215 SG.Node.children _ : L0.List
218 VIEWS.TextContainer.text "No document to show"
219 VIEWS.Control.font ("Arial",14,"Bold") : DATA.Font
221 VIEWS.TextContainer.text UI.Functions.noDocumentText : L0.Function
222 L0.HasValueType "String"
223 VIEWS.Control.font ("Arial",8,"Normal") : DATA.Font
224 _ : VIEWS.Alternative
225 VIEWS.Alternative.condition UI.Functions.canCreateDocument : L0.Function
226 L0.HasValueType "Boolean"
227 VIEWS.Control.background (255,255,255) : DATA.RGB.Integer
228 SG.Node.children _ : L0.List
231 VIEWS.Button.text "Create a document"
232 VIEWS.Button.tooltip "Creates a document based on a template"
233 VIEWS.Button.modifier UI.Functions.onCreateDocumentButton : L0.Function
235 UI.Editor : VIEWS.Composite
236 VIEWS.onLoaded UI.Functions.editorLoaded
237 L0.HasValueType "WriteGraph => Variable -> Variable -> Boolean"
238 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
239 VIEWS.GridLayout.GridData.horizontalGrab true
240 VIEWS.GridLayout.GridData.verticalGrab true
241 VIEWS.Composite.layout _ : VIEWS.GridLayout
242 SG.Node.children _ : L0.List
246 UI.View : VIEWS.Composite
247 VIEWS.HasInputSource VIEWS.WorkbenchSelectionInputSource
248 VIEWS.onInputChanged UI.Functions.viewInputChanged : L0.Function
249 L0.HasValueType "Variable -> Boolean"
250 VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
251 VIEWS.GridLayout.GridData.horizontalGrab true
252 VIEWS.GridLayout.GridData.verticalGrab true
253 VIEWS.Composite.layout _ : VIEWS.GridLayout
254 SG.Node.children _ : L0.List
260 BC = UI.BrowseContext : VP.BrowseContext
263 VP.BrowseContext.HasChildContribution _ : VP.ChildContribution
264 VP.ChildContribution.HasParentNodeType MOD.ModelingBrowseContext.Variable
265 VP.ChildContribution.HasChildNodeType MOD.ModelingBrowseContext.Variable
266 VP.ChildContribution.HasRule _ : MOD.ModelingBrowseContext.VariablePropertyRule
267 MOD.ModelingBrowseContext.VariablePropertyRule.RequireProperty "userProperty"
268 VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
269 VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
270 VP.VisualsContribution.HasRule MOD.ModelingBrowseContext.VariableLabelRule
271 VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
272 VP.VisualsContribution.HasNodeType MOD.ModelingBrowseContext.Variable
273 VP.VisualsContribution.HasRule _ : VP.ConstantImageRule
274 VP.ConstantImageRule.HasImage SILK.layout_content