+L0 = <http://www.simantics.org/Layer0-1.1>
+MOD = <http://www.simantics.org/Modeling-1.2>
+IMAGE = <http://www.simantics.org/Image2-1.2>
+VP = <http://www.simantics.org/Viewpoint-1.2>
+PROJ = <http://www.simantics.org/Project-1.2>
+ACT = <http://www.simantics.org/Action-1.1>
+ANNO = <http://www.simantics.org/Annotation-1.0>
+STR = <http://www.simantics.org/Structural-1.2>
+
+MOD_TESTS = MOD.ModelingActionContext.Tests
+
+ANNO_BC = ANNO.AnnotationBC : VP.BrowseContext
+ VP.BrowseContext.IsIncludedIn PROJ.ProjectBrowseContext
+
+ANNO_BC
+ @VP.relationChildRule L0.Entity L0.ConsistsOf ANNO.Annotation
+ @VP.relationChildRule L0.Library L0.ConsistsOf ANNO.AnnotationType
+ @VP.customLabelRule ANNO.BrowseNode VP.ResourceNameLabelRule
+ @VP.constantImageRule ANNO.Annotation IMAGES.Annotation
+ @VP.constantImageRule ANNO.AnnotationType IMAGES.AnnotationType
+ @VP.constantImageRule ANNO.BrowseNode IMAGES.General
+ @VP.customLabelRule ANNO.AnnotationType ANNO_BC.AnnotationTypeLabelRule
+ @VP.customModifierRule ANNO.AnnotationType ANNO_BC.AnnotationTypeModifierRule
+
+ @VP.dropActionContribution L0.Library ACTIONS.AnnotationDropAction 1.0
+
+IMAGES = ANNO.Images : L0.Library
+IMAGES.General : IMAGE.PngImage
+ @L0.loadBytes "images/general.png"
+IMAGES.Annotation : IMAGE.PngImage
+ @L0.loadBytes "images/note.png"
+IMAGES.AnnotationType : IMAGE.PngImage
+ @L0.loadBytes "images/annotationtype.png"
+
+ANNO_BC.AnnotationTypeLabelRule : VP.LabelRule
+ANNO_BC.AnnotationTypeModifierRule : VP.ModifierRule
+
+ANNO_AC = ANNO.AnnotationAC : VP.BrowseContext
+ VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext
+
+ANNO_AC
+ @VP.actionContributionWithVisibility "Annotation Type" L0.Library IMAGES.AnnotationType VP.NewActionCategory ACTIONS.NewAnnotationType MOD_TESTS.IsContainerNotPublished
+ @VP.actionContributionWithVisibility "Annotation Type" STR.ComponentType IMAGES.AnnotationType VP.NewActionCategory ACTIONS.NewAnnotationType MOD_TESTS.IsContainerNotPublished
+ @VP.actionContributionWithVisibility "Annotation Value" L0.Library IMAGES.Annotation VP.NewActionCategory ACTIONS.NewAnnotationInstance MOD_TESTS.IsContainerNotPublished
+
+ACTIONS = ANNO.Actions : L0.Library
+ACTIONS.NewAnnotationType : ACT.Action
+ACTIONS.NewAnnotation : ACT.Action
+ACTIONS.NewAnnotationInstance : ACT.Action
+ACTIONS.AnnotationDropAction : ACT.DropAction
+
+
+ACTIONS.NoActionCategory : VP.ActionCategory
+ L0.HasLabel "Root"
+ VP.ActionCategory.IsSubmenu L0.False
+