예제 #1
0
파일: ViewReader.cs 프로젝트: ngoffee/ela
 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"))
                                                ));
 }
예제 #2
0
파일: EditorReader.cs 프로젝트: ngoffee/ela
 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();
 }
예제 #3
0
 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();
 }
예제 #4
0
 public void Read(ExtSection section)
 {
     service.Compilers = section.Entries.Select(s => new BackgroundCompilerInfo(s.Key, s.Element("editorKey"),
                                                                                TypeFinder.Get(s.Element("type")))).ToList();
 }
예제 #5
0
 public void Read(ExtSection section)
 {
     service.Providers = section.Entries.Select(s => new TaskProviderInfo(s.Key, s.Element("editorKey"), TypeFinder.Get(s.Element("type")))).ToList();
 }
예제 #6
0
 public void Read(ExtSection section)
 {
     service.Resolvers = section.Entries.Select(s => new ResolverInfo(s.Key, TypeFinder.Get(s.Element("type")))).ToList();
 }
예제 #7
0
 public void Read(ExtSection section)
 {
     service.Groups = section.Entries.Select <ExtEntry, StyleGroupInfo>(ProcessGroup);
 }
예제 #8
0
파일: ConfigReader.cs 프로젝트: ngoffee/ela
 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();
 }