protected override void FillAttributes(IList attributeList) { if(!string.IsNullOrEmpty(Setting.Category)) { attributeList.Add(new CategoryAttribute(Setting.Category)); } if (!string.IsNullOrEmpty(Setting.Description)) { attributeList.Add(new DescriptionAttribute(Setting.Description)); } if (!string.IsNullOrEmpty(Setting.EditorType)) { var expl = new NamedExportLocator<IConfigurationSettingUIEditorProvider>(_coreShell.CompositionService); var provider = expl.GetExport(Setting.EditorType); if (provider != null) { attributeList.Add(new EditorAttribute(provider.EditorType, typeof(UITypeEditor))); } } base.FillAttributes(attributeList); }
protected override void FillAttributes(IList attributeList) { if (!string.IsNullOrEmpty(Setting.Category)) { attributeList.Add(new CategoryAttribute(Setting.Category)); } if (!string.IsNullOrEmpty(Setting.Description)) { attributeList.Add(new DescriptionAttribute(Setting.Description)); } if (!string.IsNullOrEmpty(Setting.EditorType)) { var expl = new NamedExportLocator <IConfigurationSettingUIEditorProvider>(_coreShell.CompositionService); var provider = expl.GetExport(Setting.EditorType); if (provider != null) { attributeList.Add(new EditorAttribute(provider.EditorType, typeof(UITypeEditor))); } } base.FillAttributes(attributeList); }