1 L0 = <http://www.simantics.org/Layer0-1.1>
2 SIMU = <http://www.simantics.org/Simulation-1.1>
3 PROJECT = <http://www.simantics.org/Project-1.2>
4 MOD = <http://www.simantics.org/Modeling-1.2>
5 STR = <http://www.simantics.org/Structural-1.2>
6 VP = <http://www.simantics.org/Viewpoint-1.2>
7 DATA = <http://www.simantics.org/Datatypes-1.1>
8 DOC = <http://www.simantics.org/Documentation-1.2>
9 SEL = <http://www.simantics.org/SelectionView-1.2>
10 SWT = <http://www.simantics.org/SWT-1.0>
11 SHEET = <http://www.simantics.org/Spreadsheet-1.2>
12 PlatformUI = <http://www.simantics.org/PlatformUI-1.0>
14 VIEWS = PlatformUI.Views : L0.Library
15 COMPONENTS = SWT.Components
17 VIEWS.UsedColumns = { columns = [
18 {key = "single", label = "Used libraries", tooltip = "Used libraries", width = 80, weight = 1, alignment = "LEFT", grab = true}
19 ]} : SWT.Literals.Columns
21 VIEWS.AvailableColumns = { columns = [
22 {key = "single", label = "Available libraries", tooltip = "Available libraries", width = 80, weight = 1, alignment = "LEFT", grab = true}
23 ]} : SWT.Literals.Columns
25 SharedLibraries = VIEWS.SharedLibraries : DOC.Document
26 SharedLibraries.Root : DOC.Components.Root
27 @DOC.child1 _ SharedLibraries.Panel
30 @SWT.scrolledComposite
31 @DOC.child1 _ SharedLibraries.Panel2
33 SharedLibraries.Panel2
35 @DOC.child1 _ SharedLibraries.Cell1
36 @DOC.child2 _ SharedLibraries.Cell2
37 @DOC.child3 _ SharedLibraries.Cell3
38 @DOC.child4 _ SharedLibraries.Cell4
39 @DOC.child5 _ SharedLibraries.Cell5
40 @DOC.child6 _ SharedLibraries.Cell6
43 @SWT.gridCell _ true false 4 SharedLibraries.Explorer1
46 @SWT.gridCell _ true false 1 SharedLibraries.LinkButton
49 @SWT.gridCell _ true false 1 SharedLibraries.UnlinkButton
52 @SWT.gridCell _ true false 1 SharedLibraries.NewButton
55 @SWT.gridCell _ true false 1 SharedLibraries.ImportButton
58 @SWT.gridCell _ true false 4 SharedLibraries.Explorer2
60 SharedLibraries.Explorer1
61 COMPONENTS.Component.NoScroll true
62 @SWT.explorer true true
63 "http://www.simantics.org/PlatformUI-1.0/Views/SharedLibraries/UsedContext"
64 "#SharedLibrarySelection"
67 SharedLibraries.Explorer2
68 COMPONENTS.Component.NoScroll true
69 @SWT.explorer true true
70 "http://www.simantics.org/PlatformUI-1.0/Views/SharedLibraries/AvailableContext"
71 "#SharedLibrarySelection"
72 VIEWS.AvailableColumns
74 SharedLibraries.LinkButton
77 SharedLibraries.UnlinkButton
80 SharedLibraries.NewButton
82 @VIEWS.sclEvent COMPONENTS.Button.onPress "writeEventHandler input createNewHandler"
84 SharedLibraries.ImportButton
86 @VIEWS.sclEvent COMPONENTS.Button.onPress "writeEventHandler input importHandler"
88 SharedLibraries.UseEvent
89 @DOC.commandEvent "writeEventHandler input useSelectedHandler" VIEWS.SCLValue
90 @DOC.singleData SharedLibraries.DefVar SharedLibraries.Explorer2 SharedLibraries.LinkButton DOC.Relations.click "selection" "selection" _ _ _
92 SharedLibraries.UnlinkEvent
93 @DOC.commandEvent "writeEventHandler input unlinkSelectedHandler" VIEWS.SCLValue
94 @DOC.singleData SharedLibraries.DefVar2 SharedLibraries.Explorer1 SharedLibraries.UnlinkButton DOC.Relations.click "selection" "selection" _ _ _
96 VIEWS.SharedLibraryContribution : SWT.TypedVariableTabContribution
97 SEL.AbstractVariableTabContribution.HasPriority 1
98 SEL.AbstractTypedVariableTabContribution.HasType L0.IndexRoot
99 SWT.TypedVariableTabContribution.HasView SharedLibraries
100 L0.HasLabel "Shared Libraries"
102 //VIEWS.SharedLibraryContribution2 : SWT.TypedVariableTabContribution
103 // SEL.AbstractVariableTabContribution.HasPriority 1
104 // SEL.AbstractTypedTabContribution.HasType L0.SharedOntology
105 // SWT.TypedVariableTabContribution.HasView SharedLibraries
106 // L0.HasLabel "Shared Libraries"
108 MBC = MOD.ModelingBrowseContext
110 SharedLibraries.UsedContext : VP.BrowseContext
111 VP.BrowseContext.HasVisualsContribution PROJECT.Contributions.StandardNameLabelRule
112 VP.BrowseContext.HasChildContribution SharedLibraries.UsedContext.Children : VP.ChildContribution
113 VP.ChildContribution.HasParentNodeType MBC.Variable
114 VP.ChildContribution.HasChildNodeType L0.SharedOntology
115 VP.ChildContribution.HasRule SharedLibraries.UsedContext.Children.Rule : MOD.SCLChildRule
116 @VIEWS.scl MOD.SCLChildRule.getChildren "usedSharedOntologies2" "Resource -> <ReadGraph> [Resource]"
118 SharedLibraries.AvailableContext : VP.BrowseContext
119 VP.BrowseContext.HasVisualsContribution PROJECT.Contributions.StandardNameLabelRule
120 VP.BrowseContext.HasChildContribution SharedLibraries.AvailableContext.Children : VP.ChildContribution
121 VP.ChildContribution.HasParentNodeType MBC.Variable
122 VP.ChildContribution.HasChildNodeType L0.SharedOntology
123 VP.ChildContribution.HasRule SharedLibraries.AvailableContext.Children.Rule : MOD.SCLChildRule
124 @VIEWS.scl MOD.SCLChildRule.getChildren "availableSharedOntologies2" "Resource -> <ReadGraph> [Resource]"
126 VIEWS.SCLValue <T DOC.SCLValue
127 /* @L0.assert L0.SCLValue.environment
128 _ : L0.SCLValue.Environment
129 L0.SCLValue.Environment.moduleName "http://www.simantics.org/PlatformUI-1.0/Views/SCL"
130 L0.SCLValue.Environment.namespace ""*/
132 VIEWS.scl : L0.Template
133 @template %subject %property %expression %valueType
135 %property _ : VIEWS.SCLValue
136 L0.SCLValue.expression %expression
137 L0.HasValueType %valueType
139 VIEWS.sclEvent : L0.Template
140 @template %subject %property %expression
142 %property _ : VIEWS.SCLValue
143 L0.SCLValue.expression %expression
144 L0.HasValueType "EventHandler"
146 VIEWS.RangeSelectionTabContribution : SWT.TypedVariableTabContribution
147 SEL.AbstractVariableTabContribution.HasPriority 1
148 SEL.AbstractTypedVariableTabContribution.HasType SHEET.Spreadsheet
149 SWT.TypedVariableTabContribution.HasView RangeSelectionTab
152 RangeSelectionTab = VIEWS.RangeSelectionTab : DOC.Document
153 RangeSelectionTab.Root : DOC.Components.Root
154 @DOC.child1 _ RangeSelectionTab.Panel
156 RangeSelectionTab.Panel
158 @DOC.child1 _ RangeSelectionTab.Cell1
159 @DOC.child2 _ RangeSelectionTab.Cell2
160 //@DOC.child3 _ RangeSelectionTab.Cell3
161 //@DOC.child4 _ RangeSelectionTab.Cell4
163 RangeSelectionTab.Cell1
164 @SWT.gridCell _ true false 3 RangeSelectionTab.Combo
166 RangeSelectionTab.Cell2
167 @SWT.gridCell _ true true 3 RangeSelectionTab.Text
169 RangeSelectionTab.Combo
171 @DOC.sclValue "availableRanges input" "[String]"
172 @DOC.sclValue "currentRangeName self input" "String"
173 @DOC.sclValue "writeEventHandler2 $ fooHandler self" "AbstractEventHandler"
175 RangeSelectionTab.Text
177 @DOC.sclValue "currentRangeTextAndErrors self input" "TextAndErrors"
178 @DOC.sclValue "writeEventHandler2 $ modifyCodeHandler self input" "AbstractEventHandler"