Ejemplo n.º 1
0
        private void DoProcessCategory(Annotation annotation, Context context, CategoryDeclaration declaration)
        {
            IWidgetDeclaration widget     = declaration.AsWidget();
            Object             value      = annotation.GetDefaultArgument();
            PropertyMap        properties = CheckProperties(annotation, context, value);

            if (properties != null)
            {
                widget.SetProperties(properties);
                Annotation widgetField = FindWidgetPropertiesFieldAnnotation(context, declaration);
                if (widgetField != null)
                {
                    OverrideWidgetFieldType(context, widgetField, new PropertiesType(properties));
                }
            }
        }