public void Read(ExtSection section) { service.Views = section.Entries.Select(e => new ViewInfo( e.Key, e.Element("title"), e.Element("shortcut"), e.Element <ViewType>("kind"), TypeFinder.Get(e.Element("type")) )); }
public void Read(ExtSection section) { service.Editors = section.Entries.Select(e => new EditorInfo( e.Key, TypeFinder.Get(e.Element("type")), TypeFinder.Get(e.Element("documentType")), e.Element("displayName"), e.Element("fileExtension"), e.Element("fileExtensionDescription"), e.Element <EditorFlags>("flags"))) .ToList(); }
public void Read(ExtSection section) { service.Configs = section.Entries.Select(e => new TextConfigInfo( e.Key, e.Element("display"), e.Element <TextConfigOptions>("options")) { IndentMode = e.ElementNullable <IndentMode>("indentMode"), UseTabs = e.ElementNullable <Boolean>("useTabs"), TabSize = e.ElementNullable <Int32>("tabSize"), IndentSize = e.ElementNullable <Int32>("indentSize") } ).ToList(); }
public void Read(ExtSection section) { service.Compilers = section.Entries.Select(s => new BackgroundCompilerInfo(s.Key, s.Element("editorKey"), TypeFinder.Get(s.Element("type")))).ToList(); }
public void Read(ExtSection section) { service.Providers = section.Entries.Select(s => new TaskProviderInfo(s.Key, s.Element("editorKey"), TypeFinder.Get(s.Element("type")))).ToList(); }
public void Read(ExtSection section) { service.Resolvers = section.Entries.Select(s => new ResolverInfo(s.Key, TypeFinder.Get(s.Element("type")))).ToList(); }
public void Read(ExtSection section) { service.Groups = section.Entries.Select <ExtEntry, StyleGroupInfo>(ProcessGroup); }
public void Read(ExtSection section) { service.Configs = section.Entries.Select(e => new ConfigInfo(e.Key, TypeFinder.Get(e.Element("type")), e.Element("displayName"), e.Element("category"), e.Element <Int32>("position"), TypeFinder.Get(e.Element("widget")))).ToList(); }