]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph
98b7aa98120c69217aba16c8a9cf709a98bccbf0
[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
270 // Labels
271 MBC
272     @VP.namedConstantLabelRule           MOD.Contributions.ComponentTypesLabel   MBC.ComponentTypesFolder             "User components"
273     @VP.namedConstantLabelRule           MOD.Contributions.ConfigurationLabel    MBC.Configuration                    "Configuration"
274     @VP.namedConstantLabelRule           MOD.Contributions.SubscriptionsLabel    MBC.SubscriptionsFolder              "Subscriptions"
275     @VP.namedConstantLabelRule           MOD.Contributions.TerminalsLabel        MBC.ConnectionPointDefinitionsFolder "Terminals"
276     @VP.namedConstantLabelRule           MOD.Contributions.DocumentsLabel        MBC.DocumentsFolder                  "Documents"
277     @VP.namedConstantLabelRule           MOD.Contributions.CodeLabel             STR.ProceduralComponentTypeCode      "Code"
278
279     @VP.namedCustomLabelRule             MOD.Contributions.ComponentTypeScriptLabel STR.ComponentTypeScript           VP.ResourceNameLabelRule
280     @VP.namedCustomLabelRule             MOD.Contributions.SymbolLabel           MBC.Symbol                           VP.ResourceNameLabelRule
281     @VP.namedCustomLabelRule             MOD.Contributions.SymbolLabelModifier   MBC.Symbol                           VP.ResourceNameModifierRule
282     @VP.namedCustomLabelRule             MOD.Contributions.SubscriptionLabel     MOD.Subscription                     MBC.SubscriptionLabelRule
283     @VP.namedCustomLabelRuleWithPriority MOD.Contributions.SubscriptionLabelModifier     MOD.Subscription                     VP.ResourceLabelModifierRule  1.0
284     @VP.namedCustomLabelRule             MOD.Contributions.SubscriptionItemLabel         MOD.Subscription.Item                MBC.SubscriptionItemLabelRule
285     @VP.namedCustomLabelDecorationRule   MOD.Contributions.SubscriptionItemLabelDecoration MOD.Subscription.Item                MBC.SubscriptionItemLabelDecorationRule
286     @VP.namedCustomLabelRule             MOD.Contributions.SubscriptionItemLabelModifier MOD.Subscription.Item                VP.ResourceLabelModifierRule
287     @VP.namedCustomLabelDecorationRule   MOD.Contributions.ConnectionRelationLabelDecoration STR.ConnectionRelation               MBC.ConnectionRelationLabelDecorationRule
288     @VP.namedCustomLabelRule             MOD.Contributions.ConnectionRelationModifier        STR.ConnectionRelation   MBC.ConnectionRelationModifierRule
289
290     VP.BrowseContext.HasVisualsContribution MOD.Contributions.VariableLabel : VP.VisualsContribution
291         VP.VisualsContribution.HasNodeType MBC.Variable
292         VP.VisualsContribution.HasRule MBC.VariableLabelRule
293
294
295 // Tooltips
296 MBC
297     VP.BrowseContext.HasVisualsContribution MOD.Contributions.VariableTooltip : VP.VisualsContribution
298         VP.VisualsContribution.HasNodeType MBC.Variable
299         VP.VisualsContribution.HasRule VP.DescriptionTooltipRule
300
301 // Images
302 MBC
303     @VP.namedCustomImageRule             MOD.Contributions.SubscriptionImage     MOD.Subscription                     MBC.SubscriptionImageRule
304     @VP.namedConstantImageRule           MOD.Contributions.SubscriptionsImage    MBC.SubscriptionsFolder              IMAGES.SubscriptionsFolder
305     @VP.namedConstantImageRule           MOD.Contributions.ComponentTypeImage    STR.ComponentType                    IMAGES.ComponentType
306     @VP.namedConstantImageRule           MOD.Contributions.ComponentImage        STR.Component                        SILK.brick
307     @VP.namedConstantImageRule           MOD.Contributions.CompositeImage        STR.Composite                        SILK.bricks
308     @VP.namedConstantImageRule           MOD.Contributions.ConfigurationImage    MBC.Configuration                    SILK.bricks
309     @VP.namedConstantImageRule           MOD.Contributions.ComponentTypesImage   MBC.ComponentTypesFolder             SILK.folder
310     @VP.namedConstantImageRule           MOD.Contributions.ConnectionPointDefinitionsImage MBC.ConnectionPointDefinitionsFolder SILK.folder
311     @VP.namedConstantImageRule           MOD.Contributions.SubscriptionItemImage MOD.Subscription.Item                SILK.tag_blue
312     @VP.namedConstantImageRule           MOD.Contributions.SymbolImage           MBC.Symbol                           SILK.image
313     @VP.namedConstantImageRule           MOD.Contributions.ConnectionRelationImage STR.ConnectionRelation               SILK.bullet_green
314     @VP.namedConstantImageRule           MOD.Contributions.DocumentsImage        MBC.DocumentsFolder                  SILK.folder
315     @VP.namedConstantImageRule           MOD.Contributions.DocumentImage         DOC.Document                         SILK.page_white
316     @VP.namedConstantImageRule           MOD.Contributions.UrlDocumentImage      DOC.UrlDocument                      SILK.page_white_world
317     @VP.namedConstantImageRule           MOD.Contributions.LibraryImage          L0.Library                           SILK.folder
318     @VP.namedConstantImageRule           MOD.Contributions.SharedOntologyImage   L0.SharedOntology                    SILK.folder_brick
319     @VP.namedConstantImageRule           MOD.Contributions.ProfileImage          DIA.Profile                          SILK.bullet_green
320     @VP.namedConstantImageRule           MOD.Contributions.ProfileEntryImage     DIA.ProfileEntry                     SILK.bullet_green
321     @VP.namedConstantImageRule           MOD.Contributions.StyleImage            DIA.Style                            SILK.bullet_green
322     @VP.namedConstantImageRule           MOD.Contributions.GroupImage            DIA.Group                            SILK.bullet_green
323     @VP.namedConstantImageRule           MOD.Contributions.VariableImage         MBC.Variable                         SILK.bullet_black
324     VP.BrowseContext.HasVisualsContribution MOD.Contributions.ConfiguredComponentImage : VP.VisualsContribution
325         VP.VisualsContribution.HasNodeType MBC.Variable
326         VP.VisualsContribution.HasPriority 1.0
327         VP.VisualsContribution.HasRule MOD.Contributions.ComponentImage : VP.ConstantImageRule
328             VP.ConstantImageRule.HasColumnKey "single"
329             VP.ConstantImageRule.HasImage SILK.brick
330         VP.VisualsContribution.HasCondition MBC.IsComponent
331     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
332         VP.VisualsContribution.HasNodeType MBC.Variable
333         VP.VisualsContribution.HasPriority 2.0
334         VP.VisualsContribution.HasRule MOD.Contributions.UserDefinedComponentImage : VP.ConstantImageRule
335             VP.ConstantImageRule.HasColumnKey "single"
336             VP.ConstantImageRule.HasImage IMAGES.UserDefinedComponent
337         VP.VisualsContribution.HasCondition MBC.IsUserDefinedComponentTest
338     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
339         VP.VisualsContribution.HasNodeType L0.Library
340         VP.VisualsContribution.HasPriority 2.0
341         VP.VisualsContribution.HasRule MOD.Contributions.FolderLockImage : VP.ConstantImageRule
342             VP.ConstantImageRule.HasColumnKey "single"
343             VP.ConstantImageRule.HasImage IMAGES.FolderLock
344         VP.VisualsContribution.HasCondition TESTS.IsPublished
345     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
346         VP.VisualsContribution.HasNodeType STR.ComponentType
347         VP.VisualsContribution.HasPriority 2.0
348         VP.VisualsContribution.HasRule MOD.Contributions.ComponentLockImage : VP.ConstantImageRule
349             VP.ConstantImageRule.HasColumnKey "single"
350             VP.ConstantImageRule.HasImage IMAGES.ComponentLock
351         VP.VisualsContribution.HasCondition TESTS.IsPublished
352     VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution
353         VP.VisualsContribution.HasNodeType STR.Component
354         VP.VisualsContribution.HasPriority 1.0
355         VP.VisualsContribution.HasRule MOD.Contributions.UserDefinedComponentImage
356         VP.VisualsContribution.HasCondition MBC.IsUserDefinedComponentTest
357     @VP.namedConstantImageRule           MOD.Contributions.ImageImage            IMAGE.Image                          SILK.image
358     @VP.namedConstantImageRule           MOD.Contributions.ModuleImage           L0.SCLModule                         SILK.box
359     @VP.namedConstantImageRule           MOD.Contributions.ScriptImage           L0.SCLScript                         SILK.script_go
360     @VP.namedConstantImageRule           MOD.Contributions.PGraphImage           L0.PGraph                            SILK.box
361     @VP.namedConstantImageRule           MOD.Contributions.QueryImage            MOD.SCLQuery                         SILK.script
362     @VP.namedConstantImageRule           MOD.Contributions.CodeImage             STR.ProceduralComponentTypeCode      SILK.book_open
363     @VP.namedConstantImageRule           MOD.Contributions.ComponentTypeScriptImage STR.ComponentTypeScript           SILK.book_open
364     @VP.namedConstantImageRule           MOD.Contributions.SheetBookImage        SHEET.Book                           SILK.folder_table
365     @VP.namedConstantImageRule           MOD.Contributions.SheetImage            SHEET.Spreadsheet                    SILK.table
366     @VP.customImageDecorationRule        STR.ComponentType                       MBC.ComponentTypeLockStatusImageDecorationRule
367     
368 IMAGES = MBC.Images : L0.Library
369 IMAGES.SubscriptionsFolder : IMAGE.PngImage
370     @L0.loadBytes "images/subscriptions.png"
371 IMAGES.ComponentType : IMAGE.PngImage
372     @L0.loadBytes "images/shape_3d.png"
373 IMAGES.UserDefinedComponent : IMAGE.PngImage
374     @L0.loadBytes "images/shape_3d_gray.png"
375 IMAGES.FolderLock : IMAGE.PngImage
376     @L0.loadBytes "images/folder_lock.png"
377 IMAGES.ComponentLock : IMAGE.PngImage
378     @L0.loadBytes "images/shape_3d_lock.png"
379
380 MBC
381     @VP.dropActionContribution MOD.Subscription MAC.Actions.SubscriptionDropAction 1.0
382
383 MOD.sclChildRule : L0.Template
384     @template %action %expression
385         %action : MOD.SCLChildRule
386           MOD.SCLChildRule.getChildren _ : MOD.SCLValue
387             L0.SCLValue.expression %expression
388             L0.HasValueType "Resource -> <ReadGraph> [Resource]"
389
390 MOD.sclLabelRule : L0.Template
391     @template %action %expression
392         %action : MOD.SCLLabelRule
393           MOD.SCLLabelRule.getLabels _ : MOD.SCLValue
394             L0.SCLValue.expression %expression
395             L0.HasValueType "Resource -> <ReadGraph> [String]"
396
397 MOD.sclImageRule : L0.Template
398     @template %action %expression
399         %action : MOD.SCLImageRule
400           MOD.SCLImageRule.getImages _ : MOD.SCLValue
401             L0.SCLValue.expression %expression
402             L0.HasValueType "Resource -> <ReadGraph> [(String,ImageDescriptor)]"
403
404 MOD.sclLabelForegroundColorRule : L0.Template
405     @template %action %expression
406         %action : MOD.SCLLabelForegroundColorRule
407           MOD.SCLLabelForegroundColorRule.getColor _ : MOD.SCLValue
408             L0.SCLValue.expression %expression
409             L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> <ReadGraph> Maybe (Double, Double, Double)"
410
411 MOD.sclLabelBackgroundColorRule : L0.Template
412     @template %action %expression
413         %action : MOD.SCLLabelBackgroundColorRule
414           MOD.SCLLabelBackgroundColorRule.getColor _ : MOD.SCLValue
415             L0.SCLValue.expression %expression
416             L0.HasValueType "Resource -> Maybe (Double, Double, Double) -> String -> Integer -> <ReadGraph> Maybe (Double, Double, Double)"
417
418 MOD.sclCheckedStateRule : L0.Template
419     @template %action %expression
420         %action : MOD.SCLCheckedStateRule
421           MOD.SCLCheckedStateRule.getState _ : MOD.SCLValue
422             L0.SCLValue.expression %expression
423             L0.HasValueType "Browsable a => a -> <ReadGraph> CheckedState"
424
425 MOD.sclAction : L0.Template
426     @template %action %expression
427         %action : MOD.SCLAction
428           MOD.SCLAction.action _ : MOD.SCLValue
429             L0.SCLValue.expression %expression
430             L0.HasValueType "Resource -> <Proc> ()"
431
432 MOD.sclDropAction : L0.Template
433     @template %action %expression
434         %action : MOD.SCLDropAction
435           MOD.SCLDropAction.action _ : MOD.SCLValue
436             L0.SCLValue.expression %expression
437             L0.HasValueType "Resource -> Dynamic -> Integer -> <Proc> ()"
438
439 MOD.sclTest : L0.Template
440     @template %subject %expression
441         %subject : MOD.SCLTest
442             MOD.SCLTest.test _ : MOD.SCLValue
443                 L0.SCLValue.expression %expression
444                 L0.HasValueType "Resource -> <ReadGraph> Boolean"
445
446 MOD.Contributions.NewSheetBook : VP.ActionContribution
447     L0.HasLabel "Spreadsheet"
448     VP.ActionContribution.HasImage SILK.star
449     VP.ActionContribution.HasCategory VP.NewActionCategory
450     VP.ActionContribution.HasNodeType L0.Library
451     VP.ActionContribution.HasAction ACTIONS.NewSheetBook
452
453 MOD.Contributions.ActivateModel : VP.ActionContribution
454     L0.HasLabel "Activate"
455     VP.ActionContribution.HasImage SILK.bullet_go
456     VP.ActionContribution.HasCategory VP.EditActionCategory
457     VP.ActionContribution.HasNodeType SIMU.Model
458     VP.ActionContribution.HasAction ACTIONS.ActivateModel
459
460 MOD.Contributions.Help : VP.ActionContribution
461     L0.HasLabel "Help"
462     VP.ActionContribution.HasImage SILK.help
463     VP.ActionContribution.HasCategory VP.EditActionCategory
464     VP.ActionContribution.HasNodeType L0.Entity
465     VP.ActionContribution.HasAction ACTIONS.Help
466
467 MOD.Contributions.CopyURI : VP.ActionContribution
468     L0.HasLabel "Copy URI"
469     VP.ActionContribution.HasImage SILK.clipboard
470     VP.ActionContribution.HasCategory VP.EditActionCategory
471     VP.ActionContribution.HasNodeType L0.Entity
472     VP.ActionContribution.HasNodeType MBC.Variable
473     VP.ActionContribution.HasAction ACTIONS.CopyURI
474     VP.ActionContribution.IsVisibleIf _ : VP.AndTest
475         VP.AndTest.HasTest
476             _ : VP.InDevelopmentModeTest
477             _ : VP.HasURITest
478
479 // Actions
480 MAC    
481     VP.BrowseContext.HasActionContribution MOD.Contributions.Help
482     VP.BrowseContext.HasActionContribution MOD.Contributions.CopyURI
483     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
484         L0.HasLabel "Migrate"
485         VP.ActionContribution.HasImage SILK.star
486         VP.ActionContribution.HasCategory VP.EditActionCategory
487         VP.ActionContribution.HasNodeType STR.ComponentType
488         VP.ActionContribution.HasAction ACTIONS.MigrateComponentType
489     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
490         L0.HasLabel "Migrate"
491         VP.ActionContribution.HasImage SILK.star
492         VP.ActionContribution.HasCategory VP.EditActionCategory
493         VP.ActionContribution.HasNodeType L0.SharedOntology
494         VP.ActionContribution.HasAction ACTIONS.MigrateComponentType
495     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
496         L0.HasLabel "Compile Ontology Definitions"
497         VP.ActionContribution.HasImage SILK.star
498         VP.ActionContribution.HasCategory VP.EditActionCategory
499         VP.ActionContribution.HasNodeType L0.SharedOntology
500         VP.ActionContribution.HasAction ACTIONS.CompilePGraphs
501 //    VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
502 //        L0.HasLabel "Migrate"
503 //        VP.ActionContribution.HasImage SILK.star
504 //        VP.ActionContribution.HasCategory VP.EditActionCategory
505 //        VP.ActionContribution.HasNodeType MOD.MasterTypicalCompositeType
506 //        VP.ActionContribution.HasAction ACTIONS.MigrateMasterTypical
507     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
508         L0.HasLabel "Create New Version"
509         VP.ActionContribution.HasImage SILK.new
510         VP.ActionContribution.HasCategory VP.EditActionCategory
511         VP.ActionContribution.HasNodeType STR.ComponentType
512         VP.ActionContribution.HasAction ACTIONS.CreateNewVersion
513         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
514     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
515         L0.HasLabel "Create New Version"
516         VP.ActionContribution.HasImage SILK.new
517         VP.ActionContribution.HasCategory VP.EditActionCategory
518         VP.ActionContribution.HasNodeType L0.SharedOntology
519         VP.ActionContribution.HasAction ACTIONS.CreateNewVersion
520     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
521         L0.HasLabel "Finish for Publishing"
522         VP.ActionContribution.HasImage SILK.lock
523         VP.ActionContribution.HasCategory VP.EditActionCategory
524         VP.ActionContribution.HasNodeType STR.ComponentType
525         VP.ActionContribution.IsVisibleIf TESTS.IsNotPublished
526         VP.ActionContribution.HasAction ACTIONS.FinishComponentTypeForPublishing
527     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
528         L0.HasLabel "Finish for Publishing"
529         VP.ActionContribution.HasImage SILK.lock
530         VP.ActionContribution.HasCategory VP.EditActionCategory
531         VP.ActionContribution.HasNodeType L0.SharedOntology
532         VP.ActionContribution.IsVisibleIf TESTS.IsNotPublished
533         VP.ActionContribution.HasAction ACTIONS.FinishSharedOntologyForPublishing
534     VP.BrowseContext.HasActionContribution MOD.Contributions.NewSCLModule : VP.ActionContribution
535         L0.HasLabel "SCL Module"
536         VP.ActionContribution.HasImage SILK.page_white_text
537         VP.ActionContribution.HasCategory VP.NewActionCategory
538         VP.ActionContribution.HasNodeType
539             L0.Library
540             STR.ComponentType
541         VP.ActionContribution.HasAction ACTIONS.NewSCLModule
542         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
543     VP.BrowseContext.HasActionContribution MOD.Contributions.NewSCLScript : VP.ActionContribution
544         L0.HasLabel "SCL Script"
545         VP.ActionContribution.HasImage SILK.script_go
546         VP.ActionContribution.HasCategory VP.NewActionCategory
547         VP.ActionContribution.HasNodeType
548             L0.Library
549         VP.ActionContribution.HasAction ACTIONS.NewSCLScript
550         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
551     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
552         L0.HasLabel "Run SCL Script"
553         VP.ActionContribution.HasImage SILK.script_start
554         VP.ActionContribution.HasCategory VP.EditActionCategory
555         VP.ActionContribution.HasNodeType L0.SCLScript
556         VP.ActionContribution.HasAction ACTIONS.RunSCLScript
557     VP.BrowseContext.HasActionContribution MOD.Contributions.NewPGraph : VP.ActionContribution
558         L0.HasLabel "Ontology Definition File"
559         VP.ActionContribution.HasImage SILK.page_white_text
560         VP.ActionContribution.HasCategory VP.NewActionCategory
561         VP.ActionContribution.HasNodeType L0.Ontology
562         VP.ActionContribution.HasAction ACTIONS.NewPGraph
563         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
564     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
565         L0.HasLabel "SCL Query"
566         VP.ActionContribution.HasImage SILK.script_add
567         VP.ActionContribution.HasCategory VP.NewActionCategory
568         VP.ActionContribution.HasNodeType L0.Library
569         VP.ActionContribution.HasAction ACTIONS.NewSCLQuery
570         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
571     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
572         L0.HasLabel "SCL Query Type"
573         VP.ActionContribution.HasImage SILK.script_add
574         VP.ActionContribution.HasCategory VP.NewActionCategory
575         VP.ActionContribution.HasNodeType L0.Library
576         VP.ActionContribution.HasAction ACTIONS.NewSCLQueryType
577         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
578     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
579         L0.HasLabel "User Component"
580         VP.ActionContribution.HasImage IMAGES.ComponentType
581         VP.ActionContribution.HasCategory VP.NewActionCategory
582         VP.ActionContribution.HasNodeType MBC.ComponentTypesFolder
583         VP.ActionContribution.HasAction ACTIONS.NewComponentType
584     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
585         L0.HasLabel "User Component"
586         VP.ActionContribution.HasImage IMAGES.ComponentType
587         VP.ActionContribution.HasCategory VP.NewActionCategory
588         VP.ActionContribution.HasNodeType L0.Library
589         VP.ActionContribution.HasAction ACTIONS.NewComponentType
590         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
591     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
592         L0.HasLabel "Procedural User Component"
593         VP.ActionContribution.HasImage IMAGES.ComponentType
594         VP.ActionContribution.HasCategory VP.NewActionCategory
595         VP.ActionContribution.HasNodeType MBC.ComponentTypesFolder
596         VP.ActionContribution.HasAction ACTIONS.NewProceduralComponentType
597     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
598         L0.HasLabel "Procedural User Component"
599         VP.ActionContribution.HasImage IMAGES.ComponentType
600         VP.ActionContribution.HasCategory VP.NewActionCategory
601         VP.ActionContribution.HasNodeType L0.Library
602         VP.ActionContribution.HasAction ACTIONS.NewProceduralComponentType
603         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
604     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
605         L0.HasLabel "Assign Symbol Group..."
606         VP.ActionContribution.HasCategory VP.EditActionCategory
607         VP.ActionContribution.HasNodeType MBC.Symbol
608         VP.ActionContribution.HasAction ACTIONS.AssignSymbolGroup : ACT.Action
609         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
610     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
611         L0.HasLabel "Configure Connection Types..."
612         VP.ActionContribution.HasCategory VP.EditActionCategory
613         VP.ActionContribution.HasNodeType STR.ConnectionRelation
614         VP.ActionContribution.HasAction ACTIONS.ConfigureConnectionTypes : ACT.Action
615         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
616     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
617         L0.HasLabel "Document"
618         VP.ActionContribution.HasImage SILK.page_white
619         VP.ActionContribution.HasCategory VP.NewActionCategory
620         VP.ActionContribution.HasNodeType MBC.DocumentsFolder
621         VP.ActionContribution.HasAction ACTIONS.NewDocument : ACT.Action
622         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
623     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
624         L0.HasLabel "Library"
625         VP.ActionContribution.HasImage SILK.folder
626         VP.ActionContribution.HasCategory VP.NewActionCategory
627         VP.ActionContribution.HasNodeType L0.Library
628         VP.ActionContribution.HasAction ACTIONS.NewLibrary : ACT.Action
629         VP.ActionContribution.IsVisibleIf TESTS.IsContainerNotPublished
630     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
631         L0.HasLabel "Merge Flags"
632         VP.ActionContribution.HasCategory VP.EditActionCategory
633         VP.ActionContribution.HasNodeType STR.Composite
634         VP.ActionContribution.HasAction ACTIONS.MergeFlags : ACT.Action
635     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
636         L0.HasLabel "Rename Diagram Components"
637         VP.ActionContribution.HasCategory VP.EditActionCategory
638         VP.ActionContribution.HasNodeType STR.Composite
639         VP.ActionContribution.HasAction ACTIONS.RenameDiagramComponents
640     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
641         L0.HasLabel "Connection Point"
642         VP.ActionContribution.HasCategory VP.NewActionCategory
643         VP.ActionContribution.HasNodeType STR.ProceduralComponentType
644         VP.ActionContribution.HasNodeType MBC.ConnectionPointDefinitionsFolder
645         VP.ActionContribution.HasAction ACTIONS.NewConnectionPoint : ACT.Action
646     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
647         L0.HasLabel "Symbol"
648         VP.ActionContribution.HasImage SILK.image
649         VP.ActionContribution.HasCategory VP.NewActionCategory
650         VP.ActionContribution.HasNodeType STR.ComponentType
651         VP.ActionContribution.HasAction ACTIONS.NewSymbol : ACT.Action
652     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
653         L0.HasLabel "Copy"
654         VP.ActionContribution.HasImage SILK.page_copy
655         VP.ActionContribution.HasCategory VP.EditActionCategory
656         VP.ActionContribution.HasNodeType STR.ComponentType
657         VP.ActionContribution.HasAction ACTIONS.Copy : ACT.Action        
658     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
659         L0.HasLabel "Cut"
660         VP.ActionContribution.HasImage SILK.cut
661         VP.ActionContribution.HasCategory VP.EditActionCategory
662         VP.ActionContribution.HasNodeType STR.ComponentType
663         VP.ActionContribution.HasAction ACTIONS.Cut : ACT.Action        
664     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
665         L0.HasLabel "Paste"
666         VP.ActionContribution.HasImage SILK.page_paste
667         VP.ActionContribution.HasCategory VP.EditActionCategory
668         VP.ActionContribution.HasNodeType L0.Library
669         VP.ActionContribution.HasAction ACTIONS.Paste : ACT.Action        
670         VP.ActionContribution.IsVisibleIf TESTS.HasSomethingToPaste
671     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
672         L0.HasLabel "Lock"
673         VP.ActionContribution.HasImage SILK.lock
674         VP.ActionContribution.HasCategory VP.EditActionCategory
675         VP.ActionContribution.HasNodeType STR.ComponentType
676         VP.ActionContribution.HasAction ACTIONS.Lock : ACT.Action
677         VP.ActionContribution.IsVisibleIf TESTS.IsNotLocked
678     VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
679         L0.HasLabel "Unlock"
680         VP.ActionContribution.HasImage SILK.lock_open
681         VP.ActionContribution.HasCategory VP.EditActionCategory
682         VP.ActionContribution.HasNodeType STR.ComponentType
683         VP.ActionContribution.HasAction ACTIONS.Unlock : ACT.Action
684         VP.ActionContribution.IsVisibleIf TESTS.IsLocked
685     VP.BrowseContext.SupportsRemovalOf MBC.Symbol
686     VP.BrowseContext.SupportsRenamingOf MBC.Symbol
687     VP.BrowseContext.HasActionContribution
688         MOD.Contributions.NewSheetBook
689
690     @VP.renamingTestContribution
691         L0.SharedOntology
692         TESTS.CanRename
693         0.0
694
695     @VP.actionContributionWithVisibility "Images" L0.Library SILK.image VP.ImportActionCategory ACTIONS.ImportImages MAC.Tests.IsContainerNotPublished
696
697 MOD.Contributions.Delete : VP.ActionContribution
698         L0.HasLabel "Delete"
699         VP.ActionContribution.HasImage SILK.cross
700         VP.ActionContribution.HasCategory VP.EditActionCategory
701         VP.ActionContribution.HasNodeType L0.Entity
702         VP.ActionContribution.HasAction ACTIONS.Delete        
703         VP.ActionContribution.IsVisibleIf TESTS.CanDelete
704         
705 ACTIONS = MAC.Actions : L0.Library
706 ACTIONS.ImportImages : ACT.Action
707 ACTIONS.Delete : ACT.Action
708 ACTIONS.NewLocalLibrary : ACT.Action
709 ACTIONS.SubscriptionDropAction : ACT.DropAction
710 ACTIONS.FinishComponentTypeForPublishing
711   @MOD.sclAction "publishComponentTypeAction"
712 ACTIONS.FinishSharedOntologyForPublishing
713   @MOD.sclAction "publishSharedOntologyAction"
714 ACTIONS.CreateNewVersion
715   @MOD.sclAction "newVersionAction"
716 ACTIONS.NewSCLModule
717   @MOD.sclAction "createSCLModuleAction"
718 ACTIONS.NewSCLScript
719   @MOD.sclAction "createSCLScriptAction"
720 ACTIONS.RunSCLScript : ACT.Action
721 ACTIONS.NewPGraph
722   @MOD.sclAction "createPGraphAction"
723 ACTIONS.NewSCLQuery : ACT.Action
724 ACTIONS.NewSCLQueryType
725   @MOD.sclAction "createSCLQueryTypeAction"
726 ACTIONS.NewSheetBook
727   @MOD.sclAction "createSpreadsheetBookAction"
728 ACTIONS.ActivateModel
729   @MOD.sclAction "activateModelAction"
730 ACTIONS.MigrateComponentType : ACT.Action
731 ACTIONS.CompilePGraphs : ACT.Action
732 //ACTIONS.MigrateMasterTypical : ACT.Action
733 ACTIONS.RenameDiagramComponents : ACT.Action
734 ACTIONS.Help : ACT.Action
735 ACTIONS.CopyURI : ACT.Action
736
737 ACTIONS.NavigateToSubstructure
738   @MOD.sclAction "navigateToSubstructureAction"
739
740 ACTIONS.NewProceduralComponentType : ACT.Action
741 ACTIONS.NewComponentType : ACT.Action
742
743 MOD.InstantiateUnder <T MOD.SCLAction
744   >-- MOD.InstantiateUnder.HasType --> L0.Type <R L0.IsRelatedTo : L0.TotalFunction
745   @MOD.sclAssertion MOD.SCLAction.action "instantiateUnderAction self" "Resource -> <Proc> ()"
746
747 ACTIONS.InstantiateUnder
748   @MOD.sclAction "instantiateUnderAction self"
749
750 MOD.InstanceOfTest <T MOD.SCLTest
751   >-- MOD.InstanceOfTest.HasType --> L0.Type <R L0.IsRelatedTo : L0.TotalFunction
752   @MOD.sclAssertion MOD.SCLTest.test "instanceOfTest self" "Resource -> <Proc> Boolean"
753
754 MOD.instanceOfTest : L0.Template
755     @template %test %type
756         %test : MOD.InstanceOfTest
757           MOD.InstanceOfTest.HasType %type
758
759 TESTS = MAC.Tests : L0.Library
760 TESTS.IsNotPublished
761   @MOD.sclTest "isNotPublished"
762 TESTS.IsPublished
763   @MOD.sclTest "isPublished"
764 TESTS.IsNotLocked
765   @MOD.sclTest "isNotLocked"
766 TESTS.IsLocked
767   @MOD.sclTest "isLocked"
768 TESTS.IsContainerNotPublished
769   @MOD.sclTest "isContainerNotPublished"
770 TESTS.HasSomethingToPaste
771   @MOD.sclTest "hasSomethingToPaste"
772 TESTS.CanDelete
773   @MOD.sclTest "canDelete"
774 TESTS.CanRename
775   @MOD.sclTest "canRename"
776
777 MOD.Functions.singleVariableSelection : L0.Function
778   L0.HasValueType "a"
779 MOD.Functions.projectSelection : L0.Function
780   L0.HasValueType "a"
781 MOD.Functions.standardPersistor : L0.Function
782   L0.HasValueType "StatePersistor"
783   
784   
785 //MOD.ModelBrowser : MOD.ModelBrowser
786