public static CodeEditorOptions TryCreate(ITextViewOptionsGroup group, IContentTypeRegistryService contentTypeRegistryService, ICodeEditorOptionsDefinitionMetadata md) { if (group == null) throw new ArgumentNullException(nameof(group)); if (contentTypeRegistryService == null) throw new ArgumentNullException(nameof(contentTypeRegistryService)); if (md == null) throw new ArgumentNullException(nameof(md)); if (md.ContentType == null) return null; var contentType = contentTypeRegistryService.GetContentType(md.ContentType); if (contentType == null) return null; if (md.Guid == null) return null; Guid guid; if (!Guid.TryParse(md.Guid, out guid)) return null; if (md.LanguageName == null) return null; return new CodeEditorOptions(group, contentType, guid, md.LanguageName); }
CodeEditorOptions(ITextViewOptionsGroup group, IContentType contentType, Guid guid, string languageName) { this.group = group; ContentType = contentType; Guid = guid; LanguageName = languageName; }
public DocumentViewerOptions(ITextViewOptionsGroup group, IContentType contentType) { if (group == null) { throw new ArgumentNullException(nameof(group)); } if (contentType == null) { throw new ArgumentNullException(nameof(contentType)); } this.group = group; ContentType = contentType; }
protected CommonEditorOptions(ITextViewOptionsGroup group, IContentType contentType) { if (group == null) { throw new ArgumentNullException(nameof(group)); } if (contentType == null) { throw new ArgumentNullException(nameof(contentType)); } this.group = group; ContentType = contentType; }
public static CodeEditorOptions TryCreate(ITextViewOptionsGroup group, IContentTypeRegistryService contentTypeRegistryService, ICodeEditorOptionsDefinitionMetadata md) { if (group == null) { throw new ArgumentNullException(nameof(group)); } if (contentTypeRegistryService == null) { throw new ArgumentNullException(nameof(contentTypeRegistryService)); } if (md == null) { throw new ArgumentNullException(nameof(md)); } if (md.ContentType == null) { return(null); } var contentType = contentTypeRegistryService.GetContentType(md.ContentType); if (contentType == null) { return(null); } if (md.Guid == null) { return(null); } Guid guid; if (!Guid.TryParse(md.Guid, out guid)) { return(null); } if (md.LanguageName == null) { return(null); } return(new CodeEditorOptions(group, contentType, guid, md.LanguageName)); }
public static ReplOptions?TryCreate(ITextViewOptionsGroup group, IContentTypeRegistryService contentTypeRegistryService, IReplOptionsDefinitionMetadata md) { if (group is null) { throw new ArgumentNullException(nameof(group)); } if (contentTypeRegistryService is null) { throw new ArgumentNullException(nameof(contentTypeRegistryService)); } if (md is null) { throw new ArgumentNullException(nameof(md)); } if (md.ContentType is null) { return(null); } var contentType = contentTypeRegistryService.GetContentType(md.ContentType); if (contentType is null) { return(null); } if (md.Guid is null) { return(null); } if (!Guid.TryParse(md.Guid, out var guid)) { return(null); } if (md.LanguageName is null) { return(null); } return(new ReplOptions(group, contentType, guid, md.LanguageName)); }
ReplOptions(ITextViewOptionsGroup group, IContentType contentType, Guid guid, string languageName) : base(group, contentType) { Guid = guid; LanguageName = languageName; }
protected CommonEditorOptions(ITextViewOptionsGroup group, IContentType contentType) { if (group == null) throw new ArgumentNullException(nameof(group)); if (contentType == null) throw new ArgumentNullException(nameof(contentType)); this.group = group; ContentType = contentType; }
public DocumentViewerOptions(ITextViewOptionsGroup group, IContentType contentType) : base(group, contentType) { }
public OutputWindowOptions(ITextViewOptionsGroup group, IContentType contentType) : base(group, contentType) { }
CodeEditorOptions(ITextViewOptionsGroup group, IContentType contentType, Guid guid, string languageName) : base(group, contentType) { Guid = guid; LanguageName = languageName; }