Esempio n. 1
0
 ITextDocument ITextEditorFactory.CreateNewDocument(MonoDevelop.Core.Text.ITextSource textSource, string fileName, string mimeType)
 {
     return(new TextDocument(textSource.Text, fileName, mimeType)
     {
         Encoding = textSource.Encoding,
     });
 }
Esempio n. 2
0
 IReadonlyTextDocument ITextEditorFactory.CreateNewReadonlyDocument(MonoDevelop.Core.Text.ITextSource textSource, string fileName, string mimeType)
 {
     return(new TextDocument(textSource.Text)
     {
         Encoding = textSource.Encoding,
         IsReadOnly = true,
         MimeType = mimeType,
         FileName = fileName
     });
 }
Esempio n. 3
0
 ITextDocument ITextEditorFactory.CreateNewDocument(MonoDevelop.Core.Text.ITextSource textSource, string fileName, string mimeType)
 {
     return(new TextDocumentWrapper(new TextDocument(textSource.Text)
     {
         Encoding = textSource.Encoding,
         UseBom = textSource.UseBOM,
         MimeType = mimeType,
         FileName = fileName
     }));
 }