1 L0 = <http://www.simantics.org/Layer0-1.1>
2 MOD = <http://www.simantics.org/Modeling-1.2>
3 IMAGE = <http://www.simantics.org/Image2-1.2>
4 VP = <http://www.simantics.org/Viewpoint-1.2>
5 PROJ = <http://www.simantics.org/Project-1.2>
6 ACT = <http://www.simantics.org/Action-1.1>
7 ANNO = <http://www.simantics.org/Annotation-1.0>
8 STR = <http://www.simantics.org/Structural-1.2>
10 MOD_TESTS = MOD.ModelingActionContext.Tests
12 ANNO_BC = ANNO.AnnotationBC : VP.BrowseContext
13 VP.BrowseContext.IsIncludedIn PROJ.ProjectBrowseContext
16 @VP.relationChildRule L0.Entity L0.ConsistsOf ANNO.Annotation
17 @VP.relationChildRule L0.Library L0.ConsistsOf ANNO.AnnotationType
18 @VP.customLabelRule ANNO.BrowseNode VP.ResourceNameLabelRule
19 @VP.constantImageRule ANNO.Annotation IMAGES.Annotation
20 @VP.constantImageRule ANNO.AnnotationType IMAGES.AnnotationType
21 @VP.constantImageRule ANNO.BrowseNode IMAGES.General
22 @VP.customLabelRule ANNO.AnnotationType ANNO_BC.AnnotationTypeLabelRule
23 @VP.customModifierRule ANNO.AnnotationType ANNO_BC.AnnotationTypeModifierRule
25 @VP.dropActionContribution L0.Library ACTIONS.AnnotationDropAction 1.0
27 IMAGES = ANNO.Images : L0.Library
28 IMAGES.General : IMAGE.PngImage
29 @L0.loadBytes "images/general.png"
30 IMAGES.Annotation : IMAGE.PngImage
31 @L0.loadBytes "images/note.png"
32 IMAGES.AnnotationType : IMAGE.PngImage
33 @L0.loadBytes "images/annotationtype.png"
35 ANNO_BC.AnnotationTypeLabelRule : VP.LabelRule
36 ANNO_BC.AnnotationTypeModifierRule : VP.ModifierRule
38 ANNO_AC = ANNO.AnnotationAC : VP.BrowseContext
39 VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext
42 @VP.actionContributionWithVisibility "Annotation Type" L0.Library IMAGES.AnnotationType VP.NewActionCategory ACTIONS.NewAnnotationType MOD_TESTS.IsContainerNotPublished
43 @VP.actionContributionWithVisibility "Annotation Type" STR.ComponentType IMAGES.AnnotationType VP.NewActionCategory ACTIONS.NewAnnotationType MOD_TESTS.IsContainerNotPublished
44 @VP.actionContributionWithVisibility "Annotation Value" L0.Library IMAGES.Annotation VP.NewActionCategory ACTIONS.NewAnnotationInstance MOD_TESTS.IsContainerNotPublished
46 ACTIONS = ANNO.Actions : L0.Library
47 ACTIONS.NewAnnotationType : ACT.Action
48 ACTIONS.NewAnnotation : ACT.Action
49 ACTIONS.NewAnnotationInstance : ACT.Action
50 ACTIONS.AnnotationDropAction : ACT.DropAction
53 ACTIONS.NoActionCategory : VP.ActionCategory
55 VP.ActionCategory.IsSubmenu L0.False