public static ExportAnnotationSettings AllAnnotations(SrmDocument document) { return(EMPTY.ChangeElementTypes(ElementHandler .GetElementHandlers(SkylineDataSchema.MemoryDataSchema(document, DataSchemaLocalizer.INVARIANT)) .Select(handler => handler.Name)) .ChangeAnnotationNames( document.Settings.DataSettings.AnnotationDefs.Select(annotationDef => annotationDef.Name)) .ChangePropertyNames(new[] { @"Note" })); }
// ReSharper restore LocalizableElement public DocumentAnnotations(SkylineDataSchema skylineDataSchema) { DataSchema = skylineDataSchema; _elementHandlers = ElementHandler.GetElementHandlers(DataSchema).ToDictionary(handler => handler.Name); }