public StringCopyPasteCommandHandler( IThreadingContext threadingContext, ITextUndoHistoryRegistry undoHistoryRegistry, IEditorOperationsFactoryService editorOperationsFactoryService, IGlobalOptionService globalOptions, ITextBufferFactoryService2 textBufferFactoryService) { _threadingContext = threadingContext; _undoHistoryRegistry = undoHistoryRegistry; _editorOperationsFactoryService = editorOperationsFactoryService; _globalOptions = globalOptions; _textBufferFactoryService = textBufferFactoryService; }
public KnownSourcePasteProcessor( string newLine, string indentationWhitespace, ITextSnapshot snapshotBeforePaste, ITextSnapshot snapshotAfterPaste, Document documentBeforePaste, Document documentAfterPaste, ExpressionSyntax stringExpressionBeforePaste, TextSpan selectionSpanBeforePaste, StringCopyPasteData copyPasteData, ITextBufferFactoryService2 textBufferFactoryService) : base(newLine, indentationWhitespace, snapshotBeforePaste, snapshotAfterPaste, documentBeforePaste, documentAfterPaste, stringExpressionBeforePaste) { _selectionSpanBeforePaste = selectionSpanBeforePaste; _copyPasteData = copyPasteData; _textBufferFactoryService = textBufferFactoryService; }
private PlatformCatalog() { var container = PlatformCatalog.CreateContainer(); container.SatisfyImportsOnce(this); this.CompositionContainer = container; this.TextBufferFactoryService = (ITextBufferFactoryService2)_textBufferFactoryService; this.MimeToContentTypeRegistryService.LinkTypes("text/plain", this.ContentTypeRegistryService.GetContentType("text")); //HACK this.MimeToContentTypeRegistryService.LinkTypes("text/x-csharp", this.ContentTypeRegistryService.GetContentType("csharp")); //HACK if (null != this.ContentTypeRegistryService.GetContentType("css")) { this.MimeToContentTypeRegistryService.LinkTypes("text/x-css", this.ContentTypeRegistryService.GetContentType("css")); //HACK this.MimeToContentTypeRegistryService.LinkTypes("text/x-html", this.ContentTypeRegistryService.GetContentType("htmlx")); //HACK this.MimeToContentTypeRegistryService.LinkTypes("text/x-json", this.ContentTypeRegistryService.GetContentType("JSON")); //HACK } }
public TextBufferCloneService(ITextBufferFactoryService2 textBufferFactoryService, IContentType unknownContentType) { _textBufferFactoryService = textBufferFactoryService; _unknownContentType = unknownContentType; }
public TextBufferCloneService(ITextBufferFactoryService2 textBufferFactoryService, IContentType unknownContentType) { _textBufferFactoryService = textBufferFactoryService; _unknownContentType = unknownContentType; }