]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.modeling.ontology / graph / ModelingViewpoint.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 L0X = <http://www.simantics.org/Layer0X-1.1>
3 VP = <http://www.simantics.org/Viewpoint-1.2>
4 SIMU = <http://www.simantics.org/Simulation-1.1>
5 STR = <http://www.simantics.org/Structural-1.2>
6 PROJECT = <http://www.simantics.org/Project-1.2>
7 MOD = <http://www.simantics.org/Modeling-1.2>
8 IMAGE = <http://www.simantics.org/Image2-1.2>
9 COLOR = <http://www.simantics.org/Color-1.1>
10 DIA = <http://www.simantics.org/Diagram-2.2>
11 ACT = <http://www.simantics.org/Action-1.1>
12 VIEW = <http://www.simantics.org/Views-1.2>
13 SILK = <http://www.simantics.org/Silk-1.1>
14 DOC = <http://www.simantics.org/Document-1.2>
15 SHEET = <http://www.simantics.org/Spreadsheet-1.2>
16
17 // Library containing all modeling viewpoint contributions
18 MOD.Contributions : L0.Library
19
20 MOD.SCLChildRule <T VP.ChildRule
21   >-- MOD.SCLChildRule.getChildren ==> "Resource -> <ReadGraph> [Resource]" <R L0.HasProperty : L0.FunctionalRelation
22
23 MOD.SCLLabelRule <T VP.VisualsRule
24   >-- MOD.SCLLabelRule.getLabels ==> "Resource -> <ReadGraph> [String]" <R L0.HasProperty : L0.FunctionalRelation
25
26 MOD.SCLImageRule <T VP.VisualsRule
27   >-- MOD.SCLImageRule.getImages ==> "Resource -> <ReadGraph> [(String,ImageDescriptor)]" <R L0.HasProperty : L0.FunctionalRelation
28
29 MOD.SCLLabelForegroundColorRule <T VP.VisualsRule
30   >-- MOD.SCLLabelForegroundColorRule.getColor ==> "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> <ReadGraph> Maybe (Double, Double, Double)]" <R L0.HasProperty : L0.FunctionalRelation
31
32 MOD.SCLLabelBackgroundColorRule <T VP.VisualsRule
33   >-- MOD.SCLLabelBackgroundColorRule.getColor ==> "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> <ReadGraph> Maybe (Double, Double, Double)]" <R L0.HasProperty : L0.FunctionalRelation
34
35 MOD.SCLCheckedStateRule <T VP.VisualsRule
36   >-- MOD.SCLCheckedStateRule.getState ==> "BrowseNodeRule CheckedState" <R L0.HasProperty : L0.FunctionalRelation
37
38 MOD.SCLAction <T ACT.Action
39   --> MOD.SCLAction.action ==> "Resource -> <Proc> ()" <R L0.HasProperty : L0.FunctionalRelation 
40
41 MOD.SCLDropAction <T ACT.Action
42   --> MOD.SCLDropAction.action ==> "Resource -> Dynamic -> Integer -> <Proc> ()" <R L0.HasProperty : L0.FunctionalRelation 
43
44 MOD.SCLTest <T VP.Test
45   --> MOD.SCLTest.test ==> "Resource -> <ReadGraph> Boolean" <R L0.HasProperty : L0.FunctionalRelation 
46
47 // Legacy ModelingBrowseContext
48 MBC = MOD.ModelingBrowseContext : VP.BrowseContext
49     VP.BrowseContext.IsIncludedIn PROJECT.ProjectBrowseContext
50 MAC = MOD.ModelingActionContext : VP.BrowseContext
51     VP.BrowseContext.IsIncludedIn PROJECT.ProjectActionContext
52     
53     
54 // Browse contexts
55 MOD.DefaultStructuralBrowseContext : VP.BrowseContext
56     VP.BrowseContext.HasChildContribution MOD.Contributions.ModelConfiguration
57     VP.BrowseContext.HasChildContribution MOD.Contributions.ComponentDefinition
58     VP.BrowseContext.HasChildContribution MOD.Contributions.ComponentChildRule
59     VP.BrowseContext.HasChildContribution MOD.Contributions.ComponentTypeToSymbol
60     VP.BrowseContext.HasChildContribution MOD.Contributions.LocalLibrary
61     VP.BrowseContext.HasChildContribution MOD.Contributions.LibraryChildren
62     VP.BrowseContext.HasChildContribution MOD.Contributions.ImageChildren
63     VP.BrowseContext.HasChildContribution MOD.Contributions.ElementClassChildren
64     VP.BrowseContext.HasChildContribution MOD.Contributions.ConnectionsFolder
65     VP.BrowseContext.HasChildContribution MOD.Contributions.ConfigurationBooks
66     VP.BrowseContext.HasChildContribution MOD.Contributions.BookSheets
67     VP.BrowseContext.HasChildContribution MOD.Contributions.SubscriptionItemChildren
68     VP.BrowseContext.HasChildContribution MOD.Contributions.ChildrenInActiveExperiment
69     VP.BrowseContext.HasChildContribution MOD.Contributions.VariableChildren
70     VP.BrowseContext.HasChildContribution MOD.Contributions.ConfigurationComponents
71     VP.BrowseContext.HasChildContribution MOD.Contributions.Code
72     VP.BrowseContext.Includes MOD.DefaultStructuralLabelContext
73     VP.BrowseContext.Includes MOD.DefaultStructuralLabelModifierContext
74     VP.BrowseContext.Includes MOD.DefaultStructuralImageContext
75     
76 MOD.DefaultStructuralLabelContext : VP.BrowseContext    
77     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ComponentTypesLabel
78     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ConfigurationLabel
79     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionsLabel
80     VP.BrowseContext.HasVisualsContribution MOD.Contributions.TerminalsLabel
81     VP.BrowseContext.HasVisualsContribution MOD.Contributions.DocumentsLabel
82     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SymbolLabel
83     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionLabel
84     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionItemLabel
85     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionItemLabelDecoration
86     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ConnectionRelationLabelDecoration
87     VP.BrowseContext.HasVisualsContribution MOD.Contributions.VariableLabel
88     VP.BrowseContext.HasVisualsContribution MOD.Contributions.CodeLabel
89
90 MOD.DefaultStructuralLabelModifierContext : VP.BrowseContext     
91     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SymbolLabelModifier
92     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionLabelModifier
93     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionItemLabelModifier
94
95     
96 MOD.DefaultStructuralImageContext : VP.BrowseContext
97     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionImage
98     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionsImage
99     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ComponentTypeImage
100     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ComponentImage
101     VP.BrowseContext.HasVisualsContribution MOD.Contributions.CompositeImage
102     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ConfigurationImage
103     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ComponentTypesImage
104     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ConnectionPointDefinitionsImage
105     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SubscriptionItemImage
106     VP.BrowseContext.HasVisualsContribution MOD.Contributions.SymbolImage
107     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ConnectionRelationImage
108     VP.BrowseContext.HasVisualsContribution MOD.Contributions.DocumentsImage
109     VP.BrowseContext.HasVisualsContribution MOD.Contributions.DocumentImage
110     VP.BrowseContext.HasVisualsContribution MOD.Contributions.LibraryImage
111     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ProfileImage
112     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ProfileEntryImage
113     VP.BrowseContext.HasVisualsContribution MOD.Contributions.StyleImage
114     VP.BrowseContext.HasVisualsContribution MOD.Contributions.GroupImage
115     VP.BrowseContext.HasVisualsContribution MOD.Contributions.VariableImage
116     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ImageImage
117     VP.BrowseContext.HasVisualsContribution MOD.Contributions.CodeImage
118     
119 MOD.DefaultStructuralActionContext : VP.BrowseContext    
120
121 MOD.HasLocalLibrary <R L0.DependsOn
122     L0.HasDescription "A relation used for binding libraries to a model for UI viewing purposes. Allows the creation of specific rules for UI viewpoints."
123     L0.InverseOf MOD.IsLocalLibraryOf <R L0.IsWeaklyRelatedTo
124     <-- SIMU.Model
125     --> L0.Library
126
127 MOD.NewComposite <T ACT.Action
128 MOD.NewComposite.HasCompositeType <R L0.IsRelatedTo : L0.TotalFunction
129     L0.HasDomain MOD.NewComposite
130     L0.HasRange  L0.Type
131 MOD.NewComposite.HasDefaultName <R L0.HasProperty : L0.TotalFunction
132     L0.HasDomain MOD.NewComposite
133     L0.HasRange  L0.String
134
135 MOD.ExportModel <T ACT.Action
136     >-- MOD.ExportModel.extension --> L0.String <R L0.HasProperty : L0.FunctionalRelation
137     >-- MOD.ExportModel.format --> L0.String <R L0.HasProperty : L0.FunctionalRelation
138
139 // Rules
140 MBC.SubscriptionLabelRule : VP.LabelRule
141 MBC.SubscriptionImageRule : VP.ImageRule
142 MBC.SubscriptionItemLabelRule : VP.LabelRule
143 MBC.SubscriptionItemLabelDecorationRule : VP.LabelDecorationRule
144 MBC.ExperimentLabelRule : VP.LabelRule
145 MBC.ConnectionRelationLabelDecorationRule : VP.LabelDecorationRule
146 MBC.ConnectionRelationModifierRule : VP.ModifierRule
147
148 // Node types
149 MBC.ComponentTypesFolder : VP.ResourceNodeType
150 MBC.DocumentsFolder : VP.ResourceNodeType
151 MBC.SubscriptionsFolder : VP.ResourceNodeType
152
153 // Tests
154 MBC.IsComponent : VP.Test
155     L0.HasDescription "Returns true if the specified input Resource/Variable refers to a structural component."
156 MBC.IsUserDefinedComponentTest : VP.Test
157     L0.HasDescription "Returns true if the specified input Resource/Variable refers to an instance of a user-defined structural component type."
158
159 MOD.Contributions.ModelLibraries
160     @VP.defineRelationChildRule SIMU.Model L0.ConsistsOf L0.Library
161 MOD.Contributions.Experiments
162     @VP.defineRelationChildRule SIMU.Model L0.ConsistsOf SIMU.Experiment
163 MOD.Contributions.ExperimentRuns
164     @VP.defineRelationChildRule SIMU.Experiment L0.ConsistsOf SIMU.Run
165 MOD.Contributions.Subscriptions
166     @VP.defineRelationChildRule L0.Entity L0.ConsistsOf MOD.Subscription
167
168 // Viewpoint
169 MBC    
170     // Rules that are specific to structural models
171     @VP.namedRelationChildRule           MOD.Contributions.ModelConfiguration MOD.StructuralModel SIMU.HasConfiguration MBC.Configuration
172
173     @VP.namedRelationChildRule           MOD.Contributions.ComponentDefinition STR.ComponentType   STR.IsDefinedBy MBC.Configuration
174     VP.BrowseContext.HasChildContribution MOD.Contributions.ComponentChildRule : VP.ChildContribution
175         VP.ChildContribution.HasParentNodeType STR.Component
176         VP.ChildContribution.HasChildNodeType STR.Component
177         VP.ChildContribution.HasRule _ : VP.RelationChildRule
178             VP.RelationChildRule.HasRelation L0.ConsistsOf
179             VP.RelationChildRule.HasTest _ : VP.HasNegatedTest
180                 VP.HasNegatedTest.HasTest _ : VP.HasStatementTest
181                     VP.HasStatementTest.HasRelation MOD.HiddenComposite
182     @VP.namedRelationChildRule           MOD.Contributions.ComponentTypeToSymbol STR.ComponentType   MOD.ComponentTypeToSymbol MBC.Symbol
183     @VP.namedRelationChildRule           MOD.Contributions.ComponentTypeScript   STR.ComponentType   STR.ComponentType.hasScript STR.ComponentTypeScript
184     @VP.namedRelationChildRule           MOD.Contributions.SymbolToTerminal      MBC.Symbol L0.ConsistsOf STR.ConnectionRelation
185
186     @VP.namedRelationChildRule           MOD.Contributions.LocalLibrary MOD.StructuralModel MOD.HasLocalLibrary L0.Library
187
188     @VP.namedRelationChildRule           MOD.Contributions.LibraryChildren      L0.Library         L0.ConsistsOf   L0.Library
189     @VP.namedRelationChildRule           MOD.Contributions.ImageChildren        L0.Library         L0.ConsistsOf   IMAGE.Image
190     @VP.namedRelationChildRule           MOD.Contributions.ElementClassChildren L0.Library         L0.ConsistsOf   DIA.ElementClass
191     @VP.namedRelationChildRule           MOD.Contributions.ConfigurationBooks      MBC.Configuration L0.ConsistsOf  SHEET.Book
192     @VP.namedRelationChildRule           MOD.Contributions.LibraryBooks         L0.Library L0.ConsistsOf SHEET.Book
193     @VP.namedRelationChildRule           MOD.Contributions.BookSheets           L0.Entity L0.ConsistsOf  SHEET.Spreadsheet
194
195     @VP.namedRelationChildRule           MOD.Contributions.SCLModules L0.Entity   L0.ConsistsOf L0.SCLModule
196     
197     @VP.namedRelationChildRule           MOD.Contributions.SCLScripts L0.Entity   L0.ConsistsOf L0.SCLScript
198     
199     @VP.namedRelationChildRule           MOD.Contributions.SCLQueries L0.Library   L0.ConsistsOf MOD.SCLQuery
200     
201     @VP.namedRelationChildRule           MOD.Contributions.PGraphs L0.Ontology   L0.ConsistsOf L0.PGraph
202
203     // Contribute in product-specific browse context.
204     //@VP.relationChildRuleWithFolder MOD.StructuralModel L0.ConsistsOf   STR.ComponentType
205     //    MBC.ComponentTypesFolder
206
207     @VP.namedRelationChildRuleWithFolder MOD.Contributions.ConnectionsFolder MOD.Contributions.ConnectionRelationChildren STR.ComponentType   L0.ConsistsOf   STR.ConnectionRelation
208         MBC.ConnectionPointDefinitionsFolder : VP.ResourceNodeType
209
210     // Contribute in product-specific browse context.
211     //@VP.relationChildRuleWithFolder MOD.StructuralModel L0.ConsistsOf   MOD.Subscription
212     //    MBC.SubscriptionsFolder
213
214     @VP.namedRelationChildRule           MOD.Contributions.SubscriptionItemChildren MOD.Subscription    L0.ConsistsOf   MOD.Subscription.Item
215     
216     @VP.namedRelationChildRule           MOD.Contributions.Code STR.ProceduralComponentType STR.ProceduralComponentType.code STR.ProceduralComponentTypeCode
217
218     // Contribute in product-specific browse context.
219     //@VP.relationChildRuleWithFolder MOD.StructuralModel L0.ConsistsOf DOC.Document
220     //    MBC.DocumentsFolder
221
222     VP.BrowseContext.HasChildContribution MOD.Contributions.ChildrenInActiveExperiment : VP.ChildContribution
223         VP.ChildContribution.HasParentNodeType STR.Component    
224         VP.ChildContribution.HasChildNodeType MBC.Variable
225         VP.ChildContribution.HasRule MBC.ChildrenInActiveExperiment : VP.ChildRule
226     VP.BrowseContext.HasChildContribution MOD.Contributions.VariableChildren : VP.ChildContribution
227         VP.ChildContribution.HasParentNodeType MBC.Variable    
228         VP.ChildContribution.HasChildNodeType MBC.Variable
229         VP.ChildContribution.HasRule MBC.VariableChildRule
230     VP.BrowseContext.HasChildContribution MOD.Contributions.SharedOntologies : VP.ChildContribution
231         VP.ChildContribution.HasParentNodeType PROJECT.Project
232         VP.ChildContribution.HasChildNodeType L0.SharedOntology
233         VP.ChildContribution.HasRule MBC.SharedOntologies : MOD.SCLChildRule
234             @MOD.scl MOD.SCLChildRule.getChildren """\_ -> (getSharedOntologies ())""" "Resource -> <ReadGraph> [Resource]"
235     VP.BrowseContext.HasChildContribution MOD.Contributions.Ontologies : VP.ChildContribution
236         VP.ChildContribution.HasParentNodeType PROJECT.Project
237         VP.ChildContribution.HasChildNodeType L0.Ontology
238         VP.ChildContribution.HasRule MBC.Ontologies : MOD.SCLChildRule
239             @MOD.scl MOD.SCLChildRule.getChildren """\_ -> (getVisibleSystemOntologies ())""" "Resource -> <ReadGraph> [Resource]"
240     VP.BrowseContext.HasChildContribution MOD.Contributions.ConfigurationComponents : VP.ChildContribution
241         VP.ChildContribution.HasParentNodeType MBC.Configuration
242         VP.ChildContribution.HasChildNodeType STR.Component
243         VP.ChildContribution.HasRule _ : VP.RelationChildRule
244             VP.RelationChildRule.HasRelation L0.ConsistsOf
245             VP.RelationChildRule.HasTest _ : VP.HasNegatedTest
246                 VP.HasNegatedTest.HasTest _ : VP.HasStatementTest
247                     VP.HasStatementTest.HasRelation MOD.HiddenComposite
248
249 MBC.VariableChildRule : VP.ChildRule
250
251 MBC.VariablePropertyRule <T VP.ChildRule
252 MBC.VariablePropertyRule.RequireProperty <R L0.DependsOn
253 MBC.VariablePropertyRule.FilterProperty <R L0.DependsOn
254
255 MBC.VariableLabelRule : VP.LabelRule
256 MBC.VariableLabelRule.browseName ==> "String" <R L0.HasProperty : L0.FunctionalRelation
257     L0.HasDescription "This property can be asserted for a type to customize the label returned by VariableLabelRule. By default VariableLabelRule will return the value of Variable.getName."
258
259 MBC.Configuration : VP.ResourceNodeType
260
261 MBC.Variable : VP.NodeType
262     VP.HasContentType "Variable"
263
264 MBC.Symbol : VP.ResourceNodeType
265     // We cannot use DIA.ElementClass, because it inherits DIA.ComponentType
266     // that has already unwanted contributions.
267
268 MBC.ComponentTypeLockStatusImageDecorationRule : VP.ImageDecorationRule
269 MBC.ChangedResourceImageDecorationRule : VP.ImageDecorationRule
270
271 // Labels
272 MBC
273     @VP.namedConstantLabelRule           MOD.Contributions.ComponentTypesLabel   MBC.ComponentTypesFolder             "User components"
274     @VP.namedConstantLabelRule           MOD.Contributions.ConfigurationLabel    MBC.Configuration                    "Configuration"
275     @VP.namedConstantLabelRule           MOD.Contributions.SubscriptionsLabel    MBC.SubscriptionsFolder              "Subscriptions"
276     @VP.namedConstantLabelRule           MOD.Contributions.TerminalsLabel        MBC.ConnectionPointDefinitionsFolder "Terminals"
277     @VP.namedConstantLabelRule           MOD.Contributions.DocumentsLabel        MBC.DocumentsFolder                  "Documents"
278     @VP.namedConstantLabelRule           MOD.Contributions.CodeLabel             STR.ProceduralComponentTypeCode      "Code"
279
280     @VP.namedCustomLabelRule             MOD.Contributions.ComponentTypeScriptLabel STR.ComponentTypeScript           VP.ResourceNameLabelRule
281     @VP.namedCustomLabelRule             MOD.Contributions.SymbolLabel           MBC.Symbol                           VP.ResourceNameLabelRule
282     @VP.namedCustomLabelRule             MOD.Contributions.SymbolLabelModifier   MBC.Symbol                           VP.ResourceNameModifierRule
283     @VP.namedCustomLabelRule             MOD.Contributions.SubscriptionLabel     MOD.Subscription                     MBC.SubscriptionLabelRule
284     @VP.namedCustomLabelRuleWithPriority MOD.Contributions.SubscriptionLabelModifier     MOD.Subscription                     VP.ResourceLabelModifierRule  1.0
285     @VP.namedCustomLabelRule             MOD.Contributions.SubscriptionItemLabel         MOD.Subscription.Item                MBC.SubscriptionItemLabelRule
286     @VP.namedCustomLabelDecorationRule   MOD.Contributions.SubscriptionItemLabelDecoration MOD.Subscription.Item                MBC.SubscriptionItemLabelDecorationRule
287     @VP.namedCustomLabelRule             MOD.Contributions.SubscriptionItemLabelModifier MOD.Subscription.Item                VP.ResourceLabelModifierRule
288     @VP.namedCustomLabelDecorationRule   MOD.Contributions.ConnectionRelationLabelDecoration STR.ConnectionRelation               MBC.ConnectionRelationLabelDecorationRule
289     @VP.namedCustomLabelRule             MOD.Contributions.ConnectionRelationModifier        STR.ConnectionRelation   MBC.ConnectionRelationModifierRule
290
291     VP.BrowseContext.HasVisualsContribution MOD.Contributions.VariableLabel : VP.VisualsContribution
292         VP.VisualsContribution.HasNodeType MBC.Variable
293         VP.VisualsContribution.HasRule MBC.VariableLabelRule
294
295
296 // Tooltips
297 MBC
298     VP.BrowseContext.HasVisualsContribution MOD.Contributions.VariableTooltip : VP.VisualsContribution
299         VP.VisualsContribution.HasNodeType MBC.Variable
300         VP.VisualsContribution.HasRule VP.DescriptionTooltipRule
301
302 // Images
303 MBC
304     @VP.namedCustomImageRule             MOD.Contributions.SubscriptionImage     MOD.Subscription                     MBC.SubscriptionImageRule
305     @VP.namedConstantImageRule           MOD.Contributions.SubscriptionsImage    MBC.SubscriptionsFolder              IMAGES.SubscriptionsFolder
306     @VP.namedConstantImageRule           MOD.Contributions.ComponentTypeImage    STR.ComponentType                    IMAGES.ComponentType
307     @VP.namedConstantImageRule           MOD.Contributions.ComponentImage        STR.Component                        SILK.brick
308     @VP.namedConstantImageRule           MOD.Contributions.CompositeImage        STR.Composite                        SILK.bricks
309     @VP.namedConstantImageRule           MOD.Contributions.ConfigurationImage    MBC.Configuration                    SILK.bricks
310     @VP.namedConstantImageRule           MOD.Contributions.ComponentTypesImage   MBC.ComponentTypesFolder             SILK.folder
311     @VP.namedConstantImageRule           MOD.Contributions.ConnectionPointDefinitionsImage MBC.ConnectionPointDefinitionsFolder SILK.folder
312     @VP.namedConstantImageRule           MOD.Contributions.SubscriptionItemImage MOD.Subscription.Item                SILK.tag_blue
313     @VP.namedConstantImageRule           MOD.Contributions.SymbolImage           MBC.Symbol                           SILK.image
314     @VP.namedConstantImageRule           MOD.Contributions.ConnectionRelationImage STR.ConnectionRelation               SILK.bullet_green
315     @VP.namedConstantImageRule           MOD.Contributions.DocumentsImage        MBC.DocumentsFolder                  SILK.folder
316     @VP.namedConstantImageRule           MOD.Contributions.DocumentImage         DOC.Document                         SILK.page_white
317     @VP.namedConstantImageRule           MOD.Contributions.UrlDocumentImage      DOC.UrlDocument                      SILK.page_white_world
318     @VP.namedConstantImageRule           MOD.Contributions.LibraryImage          L0.Library                           SILK.folder
319     @VP.namedConstantImageRule           MOD.Contributions.SharedOntologyImage   L0.SharedOntology                    SILK.folder_brick
320     @VP.namedConstantImageRule           MOD.Contributions.ProfileImage          DIA.Profile                          SILK.bullet_green
321     @VP.namedConstantImageRule           MOD.Contributions.ProfileEntryImage     DIA.ProfileEntry                     SILK.bullet_green
322     @VP.namedConstantImageRule           MOD.Contributions.StyleImage            DIA.Style                            SILK.bullet_green
323     @VP.namedConstantImageRule           MOD.Contributions.GroupImage            DIA.Group                            SILK.bullet_green
324     @VP.namedConstantImageRule           MOD.Contributions.VariableImage         MBC.Variable                         SILK.bullet_black
325     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ConfiguredComponentImage : VP.VisualsContribution
326         VP.VisualsContribution.HasNodeType MBC.Variable
327         VP.VisualsContribution.HasPriority 1.0
328         VP.VisualsContribution.HasRule MOD.Contributions.ComponentImage : VP.ConstantImageRule
329             VP.ConstantImageRule.HasColumnKey "single"
330             VP.ConstantImageRule.HasImage SILK.brick
331         VP.VisualsContribution.HasCondition MBC.IsComponent
332     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
333         VP.VisualsContribution.HasNodeType MBC.Variable
334         VP.VisualsContribution.HasPriority 2.0
335         VP.VisualsContribution.HasRule MOD.Contributions.UserDefinedComponentImage : VP.ConstantImageRule
336             VP.ConstantImageRule.HasColumnKey "single"
337             VP.ConstantImageRule.HasImage IMAGES.UserDefinedComponent
338         VP.VisualsContribution.HasCondition MBC.IsUserDefinedComponentTest
339     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
340         VP.VisualsContribution.HasNodeType L0.Library
341         VP.VisualsContribution.HasPriority 2.0
342         VP.VisualsContribution.HasRule MOD.Contributions.FolderLockImage : VP.ConstantImageRule
343             VP.ConstantImageRule.HasColumnKey "single"
344             VP.ConstantImageRule.HasImage IMAGES.FolderLock
345         VP.VisualsContribution.HasCondition TESTS.IsPublished
346     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
347         VP.VisualsContribution.HasNodeType STR.ComponentType
348         VP.VisualsContribution.HasPriority 2.0
349         VP.VisualsContribution.HasRule MOD.Contributions.ComponentLockImage : VP.ConstantImageRule
350             VP.ConstantImageRule.HasColumnKey "single"
351             VP.ConstantImageRule.HasImage IMAGES.ComponentLock
352         VP.VisualsContribution.HasCondition TESTS.IsPublished
353     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
354         VP.VisualsContribution.HasNodeType STR.Component
355         VP.VisualsContribution.HasPriority 1.0
356         VP.VisualsContribution.HasRule MOD.Contributions.UserDefinedComponentImage
357         VP.VisualsContribution.HasCondition MBC.IsUserDefinedComponentTest
358     @VP.namedConstantImageRule           MOD.Contributions.ImageImage            IMAGE.Image                          SILK.image
359     @VP.namedConstantImageRule           MOD.Contributions.ModuleImage           L0.SCLModule                         SILK.box
360     @VP.namedConstantImageRule           MOD.Contributions.ScriptImage           L0.SCLScript                         SILK.script_go
361     @VP.namedConstantImageRule           MOD.Contributions.PGraphImage           L0.PGraph                            SILK.box
362     @VP.namedConstantImageRule           MOD.Contributions.QueryImage            MOD.SCLQuery                         SILK.script
363     @VP.namedConstantImageRule           MOD.Contributions.CodeImage             STR.ProceduralComponentTypeCode      SILK.book_open
364     @VP.namedConstantImageRule           MOD.Contributions.ComponentTypeScriptImage STR.ComponentTypeScript           SILK.book_open
365     @VP.namedConstantImageRule           MOD.Contributions.SheetBookImage        SHEET.Book                           SILK.folder_table
366     @VP.namedConstantImageRule           MOD.Contributions.SheetImage            SHEET.Spreadsheet                    SILK.table
367     @VP.customImageDecorationRule        STR.ComponentType                       MBC.ComponentTypeLockStatusImageDecorationRule
368     @VP.customImageDecorationRule        L0.Entity                               MBC.ChangedResourceImageDecorationRule
369     
370 IMAGES = MBC.Images : L0.Library
371 IMAGES.SubscriptionsFolder : IMAGE.PngImage
372     @L0.loadBytes "images/subscriptions.png"
373 IMAGES.ComponentType : IMAGE.PngImage
374     @L0.loadBytes "images/shape_3d.png"
375 IMAGES.UserDefinedComponent : IMAGE.PngImage
376     @L0.loadBytes "images/shape_3d_gray.png"
377 IMAGES.FolderLock : IMAGE.PngImage
378     @L0.loadBytes "images/folder_lock.png"
379 IMAGES.ComponentLock : IMAGE.PngImage
380     @L0.loadBytes "images/shape_3d_lock.png"
381
382 MBC
383     @VP.dropActionContribution MOD.Subscription MAC.Actions.SubscriptionDropAction 1.0
384
385 MOD.sclChildRule : L0.Template
386     @template %action %expression
387         %action : MOD.SCLChildRule
388           MOD.SCLChildRule.getChildren _ : MOD.SCLValue
389             L0.SCLValue.expression %expression
390             L0.HasValueType "Resource -> <ReadGraph> [Resource]"
391
392 MOD.sclLabelRule : L0.Template
393     @template %action %expression
394         %action : MOD.SCLLabelRule
395           MOD.SCLLabelRule.getLabels _ : MOD.SCLValue
396             L0.SCLValue.expression %expression
397             L0.HasValueType "Resource -> <ReadGraph> [String]"
398
399 MOD.sclImageRule : L0.Template
400     @template %action %expression
401         %action : MOD.SCLImageRule
402           MOD.SCLImageRule.getImages _ : MOD.SCLValue
403             L0.SCLValue.expression %expression
404             L0.HasValueType "Resource -> <ReadGraph> [(String,ImageDescriptor)]"
405
406 MOD.sclLabelForegroundColorRule : L0.Template
407     @template %action %expression
408         %action : MOD.SCLLabelForegroundColorRule
409           MOD.SCLLabelForegroundColorRule.getColor _ : MOD.SCLValue
410             L0.SCLValue.expression %expression
411             L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> <ReadGraph> Maybe (Double, Double, Double)"
412
413 MOD.sclLabelBackgroundColorRule : L0.Template
414     @template %action %expression
415         %action : MOD.SCLLabelBackgroundColorRule
416           MOD.SCLLabelBackgroundColorRule.getColor _ : MOD.SCLValue
417             L0.SCLValue.expression %expression
418             L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> <ReadGraph> Maybe (Double, Double, Double)"
419
420 MOD.sclCheckedStateRule : L0.Template
421     @template %action %expression
422         %action : MOD.SCLCheckedStateRule
423           MOD.SCLCheckedStateRule.getState _ : MOD.SCLValue
424             L0.SCLValue.expression %expression
425             L0.HasValueType "Browsable a => a -> <ReadGraph> CheckedState"
426
427 MOD.sclAction : L0.Template
428     @template %action %expression
429         %action : MOD.SCLAction
430           MOD.SCLAction.action _ : MOD.SCLValue
431             L0.SCLValue.expression %expression
432             L0.HasValueType "Resource -> <Proc> ()"
433
434 MOD.sclDropAction : L0.Template
435     @template %action %expression
436         %action : MOD.SCLDropAction
437           MOD.SCLDropAction.action _ : MOD.SCLValue
438             L0.SCLValue.expression %expression
439             L0.HasValueType "Resource -> Dynamic -> Integer -> <Proc> ()"
440
441 MOD.sclTest : L0.Template
442     @template %subject %expression
443         %subject : MOD.SCLTest
444             MOD.SCLTest.test _ : MOD.SCLValue
445                 L0.SCLValue.expression %expression
446                 L0.HasValueType "Resource -> <ReadGraph> Boolean"
447
448 MOD.Contributions.NewSheetBook : VP.ActionContribution
449     L0.HasLabel "Spreadsheet"
450     VP.ActionContribution.HasImage SILK.star
451     VP.ActionContribution.HasCategory VP.NewActionCategory
452     VP.ActionContribution.HasNodeType L0.Library
453     VP.ActionContribution.HasAction ACTIONS.NewSheetBook
454
455 MOD.Contributions.ImportSheetBook : VP.ActionContribution
456     L0.HasLabel "Spreadsheet"
457     VP.ActionContribution.HasImage SILK.star
458     VP.ActionContribution.HasCategory VP.ImportActionCategory
459     VP.ActionContribution.HasNodeType L0.Library
460     VP.ActionContribution.HasAction ACTIONS.ImportSheetBook
461
462 MOD.Contributions.ActivateModel : VP.ActionContribution
463     L0.HasLabel "Activate"
464     VP.ActionContribution.HasImage SILK.bullet_go
465     VP.ActionContribution.HasCategory VP.EditActionCategory
466     VP.ActionContribution.HasNodeType SIMU.Model
467     VP.ActionContribution.HasAction ACTIONS.ActivateModel
468
469 MOD.Contributions.ActivateExperiment : VP.ActionContribution
470     L0.HasLabel "Activate"
471     VP.ActionContribution.HasImage SILK.bullet_go
472     VP.ActionContribution.HasCategory VP.EditActionCategory
473     VP.ActionContribution.HasNodeType SIMU.Experiment
474     VP.ActionContribution.HasAction ACTIONS.ActivateExperiment
475
476 MOD.Contributions.Help : VP.ActionContribution
477     L0.HasLabel "Help"
478     VP.ActionContribution.HasImage SILK.help
479     VP.ActionContribution.HasCategory VP.EditActionCategory
480     VP.ActionContribution.HasNodeType L0.Entity
481     VP.ActionContribution.HasAction ACTIONS.Help
482
483 MOD.Contributions.CopyURI : VP.ActionContribution
484     L0.HasLabel "Copy URI"
485     VP.ActionContribution.HasImage SILK.clipboard
486     VP.ActionContribution.HasCategory VP.EditActionCategory
487     VP.ActionContribution.HasNodeType L0.Entity
488     VP.ActionContribution.HasNodeType MBC.Variable
489     VP.ActionContribution.HasAction ACTIONS.CopyURI
490     VP.ActionContribution.IsVisibleIf _ : VP.AndTest
491         VP.AndTest.HasTest
492             _ : VP.InDevelopmentModeTest
493             _ : VP.HasURITest
494
495 // Actions
496 MAC    
497     VP.BrowseContext.HasActionContribution MOD.Contributions.Help
498     VP.BrowseContext.HasActionContribution MOD.Contributions.CopyURI
499     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
500         L0.HasLabel "Migrate"
501         VP.ActionContribution.HasImage SILK.star
502         VP.ActionContribution.HasCategory VP.EditActionCategory
503         VP.ActionContribution.HasNodeType STR.ComponentType
504         VP.ActionContribution.HasAction ACTIONS.MigrateComponentType
505     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
506         L0.HasLabel "Migrate"
507         VP.ActionContribution.HasImage SILK.star
508         VP.ActionContribution.HasCategory VP.EditActionCategory
509         VP.ActionContribution.HasNodeType L0.SharedOntology
510         VP.ActionContribution.HasAction ACTIONS.MigrateComponentType
511     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
512         L0.HasLabel "Compile Ontology Definitions"
513         VP.ActionContribution.HasImage SILK.star
514         VP.ActionContribution.HasCategory VP.EditActionCategory
515         VP.ActionContribution.HasNodeType L0.SharedOntology
516         VP.ActionContribution.HasAction ACTIONS.CompilePGraphs
517 //    VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
518 //        L0.HasLabel "Migrate"
519 //        VP.ActionContribution.HasImage SILK.star
520 //        VP.ActionContribution.HasCategory VP.EditActionCategory
521 //        VP.ActionContribution.HasNodeType MOD.MasterTypicalCompositeType
522 //        VP.ActionContribution.HasAction ACTIONS.MigrateMasterTypical
523     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
524         L0.HasLabel "Create New Version"
525         VP.ActionContribution.HasImage SILK.new
526         VP.ActionContribution.HasCategory VP.EditActionCategory
527         VP.ActionContribution.HasNodeType STR.ComponentType
528         VP.ActionContribution.HasAction ACTIONS.CreateNewVersion
529         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
530     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
531         L0.HasLabel "Create New Version"
532         VP.ActionContribution.HasImage SILK.new
533         VP.ActionContribution.HasCategory VP.EditActionCategory
534         VP.ActionContribution.HasNodeType L0.SharedOntology
535         VP.ActionContribution.HasAction ACTIONS.CreateNewVersion
536     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
537         L0.HasLabel "Finish for Publishing"
538         VP.ActionContribution.HasImage SILK.lock
539         VP.ActionContribution.HasCategory VP.EditActionCategory
540         VP.ActionContribution.HasNodeType STR.ComponentType
541         VP.ActionContribution.IsVisibleIf TESTS.IsNotPublished
542         VP.ActionContribution.HasAction ACTIONS.FinishComponentTypeForPublishing
543     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
544         L0.HasLabel "Finish for Publishing"
545         VP.ActionContribution.HasImage SILK.lock
546         VP.ActionContribution.HasCategory VP.EditActionCategory
547         VP.ActionContribution.HasNodeType L0.SharedOntology
548         VP.ActionContribution.IsVisibleIf TESTS.IsNotPublished
549         VP.ActionContribution.HasAction ACTIONS.FinishSharedOntologyForPublishing
550     VP.BrowseContext.HasActionContribution MOD.Contributions.NewSCLModule : VP.ActionContribution
551         L0.HasLabel "SCL Module"
552         VP.ActionContribution.HasImage SILK.page_white_text
553         VP.ActionContribution.HasCategory VP.NewActionCategory
554         VP.ActionContribution.HasNodeType
555             L0.Library
556             STR.ComponentType
557         VP.ActionContribution.HasAction ACTIONS.NewSCLModule
558         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
559     VP.BrowseContext.HasActionContribution MOD.Contributions.NewSCLScript : VP.ActionContribution
560         L0.HasLabel "SCL Script"
561         VP.ActionContribution.HasImage SILK.script_go
562         VP.ActionContribution.HasCategory VP.NewActionCategory
563         VP.ActionContribution.HasNodeType
564             L0.Library
565         VP.ActionContribution.HasAction ACTIONS.NewSCLScript
566         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
567     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
568         L0.HasLabel "Run SCL Script"
569         VP.ActionContribution.HasImage SILK.script_start
570         VP.ActionContribution.HasCategory VP.EditActionCategory
571         VP.ActionContribution.HasNodeType L0.SCLScript
572         VP.ActionContribution.HasAction ACTIONS.RunSCLScript
573     VP.BrowseContext.HasActionContribution MOD.Contributions.NewPGraph : VP.ActionContribution
574         L0.HasLabel "Ontology Definition File"
575         VP.ActionContribution.HasImage SILK.page_white_text
576         VP.ActionContribution.HasCategory VP.NewActionCategory
577         VP.ActionContribution.HasNodeType L0.Ontology
578         VP.ActionContribution.HasAction ACTIONS.NewPGraph
579         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
580     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
581         L0.HasLabel "SCL Query"
582         VP.ActionContribution.HasImage SILK.script_add
583         VP.ActionContribution.HasCategory VP.NewActionCategory
584         VP.ActionContribution.HasNodeType L0.Library
585         VP.ActionContribution.HasAction ACTIONS.NewSCLQuery
586         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
587     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
588         L0.HasLabel "SCL Query Type"
589         VP.ActionContribution.HasImage SILK.script_add
590         VP.ActionContribution.HasCategory VP.NewActionCategory
591         VP.ActionContribution.HasNodeType L0.Library
592         VP.ActionContribution.HasAction ACTIONS.NewSCLQueryType
593         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
594     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
595         L0.HasLabel "User Component"
596         VP.ActionContribution.HasImage IMAGES.ComponentType
597         VP.ActionContribution.HasCategory VP.NewActionCategory
598         VP.ActionContribution.HasNodeType MBC.ComponentTypesFolder
599         VP.ActionContribution.HasAction ACTIONS.NewComponentType
600     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
601         L0.HasLabel "User Component"
602         VP.ActionContribution.HasImage IMAGES.ComponentType
603         VP.ActionContribution.HasCategory VP.NewActionCategory
604         VP.ActionContribution.HasNodeType L0.Library
605         VP.ActionContribution.HasAction ACTIONS.NewComponentType
606         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
607     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
608         L0.HasLabel "Procedural User Component"
609         VP.ActionContribution.HasImage IMAGES.ComponentType
610         VP.ActionContribution.HasCategory VP.NewActionCategory
611         VP.ActionContribution.HasNodeType MBC.ComponentTypesFolder
612         VP.ActionContribution.HasAction ACTIONS.NewProceduralComponentType
613     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
614         L0.HasLabel "Procedural User Component"
615         VP.ActionContribution.HasImage IMAGES.ComponentType
616         VP.ActionContribution.HasCategory VP.NewActionCategory
617         VP.ActionContribution.HasNodeType L0.Library
618         VP.ActionContribution.HasAction ACTIONS.NewProceduralComponentType
619         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
620     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
621         L0.HasLabel "Assign Symbol Group..."
622         VP.ActionContribution.HasCategory VP.EditActionCategory
623         VP.ActionContribution.HasNodeType MBC.Symbol
624         VP.ActionContribution.HasAction ACTIONS.AssignSymbolGroup : ACT.Action
625         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
626     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
627         L0.HasLabel "Configure Connection Types..."
628         VP.ActionContribution.HasCategory VP.EditActionCategory
629         VP.ActionContribution.HasNodeType STR.ConnectionRelation
630         VP.ActionContribution.HasAction ACTIONS.ConfigureConnectionTypes : ACT.Action
631         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
632     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
633         L0.HasLabel "Document"
634         VP.ActionContribution.HasImage SILK.page_white
635         VP.ActionContribution.HasCategory VP.NewActionCategory
636         VP.ActionContribution.HasNodeType MBC.DocumentsFolder
637         VP.ActionContribution.HasAction ACTIONS.NewDocument : ACT.Action
638         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
639     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
640         L0.HasLabel "Library"
641         VP.ActionContribution.HasImage SILK.folder
642         VP.ActionContribution.HasCategory VP.NewActionCategory
643         VP.ActionContribution.HasNodeType L0.Library
644         VP.ActionContribution.HasAction ACTIONS.NewLibrary : ACT.Action
645         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
646     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
647         L0.HasLabel "Merge Flags"
648         VP.ActionContribution.HasCategory VP.EditActionCategory
649         VP.ActionContribution.HasNodeType STR.Composite
650         VP.ActionContribution.HasAction ACTIONS.MergeFlags : ACT.Action
651     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
652         L0.HasLabel "Rename Diagram Components"
653         VP.ActionContribution.HasCategory VP.EditActionCategory
654         VP.ActionContribution.HasNodeType STR.Composite
655         VP.ActionContribution.HasAction ACTIONS.RenameDiagramComponents
656     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
657         L0.HasLabel "Connection Point"
658         VP.ActionContribution.HasCategory VP.NewActionCategory
659         VP.ActionContribution.HasNodeType STR.ProceduralComponentType
660         VP.ActionContribution.HasNodeType MBC.ConnectionPointDefinitionsFolder
661         VP.ActionContribution.HasAction ACTIONS.NewConnectionPoint : ACT.Action
662     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
663         L0.HasLabel "Symbol"
664         VP.ActionContribution.HasImage SILK.image
665         VP.ActionContribution.HasCategory VP.NewActionCategory
666         VP.ActionContribution.HasNodeType STR.ComponentType
667         VP.ActionContribution.HasAction ACTIONS.NewSymbol : ACT.Action
668     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
669         L0.HasLabel "Copy"
670         VP.ActionContribution.HasImage SILK.page_copy
671         VP.ActionContribution.HasCategory VP.EditActionCategory
672         VP.ActionContribution.HasNodeType STR.ComponentType
673         VP.ActionContribution.HasAction ACTIONS.Copy : ACT.Action        
674     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
675         L0.HasLabel "Cut"
676         VP.ActionContribution.HasImage SILK.cut
677         VP.ActionContribution.HasCategory VP.EditActionCategory
678         VP.ActionContribution.HasNodeType STR.ComponentType
679         VP.ActionContribution.HasAction ACTIONS.Cut : ACT.Action        
680     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
681         L0.HasLabel "Paste"
682         VP.ActionContribution.HasImage SILK.page_paste
683         VP.ActionContribution.HasCategory VP.EditActionCategory
684         VP.ActionContribution.HasNodeType L0.Library
685         VP.ActionContribution.HasAction ACTIONS.Paste : ACT.Action        
686         VP.ActionContribution.IsVisibleIf TESTS.HasSomethingToPaste
687     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
688         L0.HasLabel "Lock"
689         VP.ActionContribution.HasImage SILK.lock
690         VP.ActionContribution.HasCategory VP.EditActionCategory
691         VP.ActionContribution.HasNodeType STR.ComponentType
692         VP.ActionContribution.HasAction ACTIONS.Lock : ACT.Action
693         VP.ActionContribution.IsVisibleIf TESTS.IsNotLocked
694     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
695         L0.HasLabel "Unlock"
696         VP.ActionContribution.HasImage SILK.lock_open
697         VP.ActionContribution.HasCategory VP.EditActionCategory
698         VP.ActionContribution.HasNodeType STR.ComponentType
699         VP.ActionContribution.HasAction ACTIONS.Unlock : ACT.Action
700         VP.ActionContribution.IsVisibleIf TESTS.IsLocked
701     VP.BrowseContext.SupportsRemovalOf MBC.Symbol
702     VP.BrowseContext.SupportsRenamingOf MBC.Symbol
703     VP.BrowseContext.HasActionContribution
704         MOD.Contributions.NewSheetBook
705         MOD.Contributions.ImportSheetBook
706
707     @VP.renamingTestContribution
708         L0.SharedOntology
709         TESTS.CanRename
710         0.0
711
712     @VP.actionContributionWithVisibility "Images" L0.Library SILK.image VP.ImportActionCategory ACTIONS.ImportImages MAC.Tests.IsContainerNotPublished
713
714 MOD.Contributions.Delete : VP.ActionContribution
715         L0.HasLabel "Delete"
716         VP.ActionContribution.HasImage SILK.cross
717         VP.ActionContribution.HasCategory VP.EditActionCategory
718         VP.ActionContribution.HasNodeType L0.Entity
719         VP.ActionContribution.HasAction ACTIONS.Delete        
720         VP.ActionContribution.IsVisibleIf TESTS.CanDelete
721         
722 ACTIONS = MAC.Actions : L0.Library
723 ACTIONS.ImportImages : ACT.Action
724 ACTIONS.Delete : ACT.Action
725 ACTIONS.NewLocalLibrary : ACT.Action
726 ACTIONS.SubscriptionDropAction : ACT.DropAction
727 ACTIONS.FinishComponentTypeForPublishing
728   @MOD.sclAction "publishComponentTypeAction"
729 ACTIONS.FinishSharedOntologyForPublishing
730   @MOD.sclAction "publishSharedOntologyAction"
731 ACTIONS.CreateNewVersion
732   @MOD.sclAction "newVersionAction"
733 ACTIONS.NewSCLModule
734   @MOD.sclAction "createSCLModuleAction"
735 ACTIONS.NewSCLScript
736   @MOD.sclAction "createSCLScriptAction"
737 ACTIONS.RunSCLScript : ACT.Action
738 ACTIONS.NewPGraph
739   @MOD.sclAction "createPGraphAction"
740 ACTIONS.NewSCLQuery : ACT.Action
741 ACTIONS.NewSCLQueryType
742   @MOD.sclAction "createSCLQueryTypeAction"
743 ACTIONS.NewSheetBook
744   @MOD.sclAction "createSpreadsheetBookAction"
745 ACTIONS.ImportSheetBook
746   @MOD.sclAction "importSpreadsheetBookAction"
747 ACTIONS.ActivateModel
748   @MOD.sclAction "activateModelAction"
749 ACTIONS.ActivateExperiment
750   @MOD.sclAction "activateExperimentAction"
751 ACTIONS.MigrateComponentType : ACT.Action
752 ACTIONS.CompilePGraphs : ACT.Action
753 //ACTIONS.MigrateMasterTypical : ACT.Action
754 ACTIONS.RenameDiagramComponents : ACT.Action
755 ACTIONS.Help : ACT.Action
756 ACTIONS.CopyURI : ACT.Action
757
758 ACTIONS.NavigateToSubstructure
759   @MOD.sclAction "navigateToSubstructureAction"
760
761 ACTIONS.NewProceduralComponentType : ACT.Action
762 ACTIONS.NewComponentType : ACT.Action
763
764 MOD.InstantiateUnder <T MOD.SCLAction
765   >-- MOD.InstantiateUnder.HasType --> L0.Type <R L0.IsRelatedTo : L0.TotalFunction
766   @MOD.sclAssertion MOD.SCLAction.action "instantiateUnderAction self" "Resource -> <Proc> ()"
767
768 ACTIONS.InstantiateUnder
769   @MOD.sclAction "instantiateUnderAction self"
770
771 MOD.InstanceOfTest <T MOD.SCLTest
772   >-- MOD.InstanceOfTest.HasType --> L0.Type <R L0.IsRelatedTo : L0.TotalFunction
773   @MOD.sclAssertion MOD.SCLTest.test "instanceOfTest self" "Resource -> <Proc> Boolean"
774
775 MOD.instanceOfTest : L0.Template
776     @template %test %type
777         %test : MOD.InstanceOfTest
778           MOD.InstanceOfTest.HasType %type
779
780 TESTS = MAC.Tests : L0.Library
781 TESTS.IsNotPublished
782   @MOD.sclTest "isNotPublished"
783 TESTS.IsPublished
784   @MOD.sclTest "isPublished"
785 TESTS.IsNotLocked
786   @MOD.sclTest "isNotLocked"
787 TESTS.IsLocked
788   @MOD.sclTest "isLocked"
789 TESTS.IsContainerNotPublished
790   @MOD.sclTest "isContainerNotPublished"
791 TESTS.HasSomethingToPaste
792   @MOD.sclTest "hasSomethingToPaste"
793 TESTS.CanDelete
794   @MOD.sclTest "canDelete"
795 TESTS.CanRename
796   @MOD.sclTest "canRename"
797
798 MOD.Functions.singleVariableSelection : L0.Function
799   L0.HasValueType "a"
800 MOD.Functions.projectSelection : L0.Function
801   L0.HasValueType "a"
802 MOD.Functions.standardPersistor : L0.Function
803   L0.HasValueType "StatePersistor"
804   
805   
806 //MOD.ModelBrowser : MOD.ModelBrowser
807