コード例 #1
0
 public StringCopyPasteCommandHandler(
     IThreadingContext threadingContext,
     ITextUndoHistoryRegistry undoHistoryRegistry,
     IEditorOperationsFactoryService editorOperationsFactoryService,
     IGlobalOptionService globalOptions,
     ITextBufferFactoryService2 textBufferFactoryService)
 {
     _threadingContext               = threadingContext;
     _undoHistoryRegistry            = undoHistoryRegistry;
     _editorOperationsFactoryService = editorOperationsFactoryService;
     _globalOptions            = globalOptions;
     _textBufferFactoryService = textBufferFactoryService;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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
            }
        }
コード例 #4
0
 public TextBufferCloneService(ITextBufferFactoryService2 textBufferFactoryService, IContentType unknownContentType)
 {
     _textBufferFactoryService = textBufferFactoryService;
     _unknownContentType       = unknownContentType;
 }
コード例 #5
0
 public TextBufferCloneService(ITextBufferFactoryService2 textBufferFactoryService, IContentType unknownContentType)
 {
     _textBufferFactoryService = textBufferFactoryService;
     _unknownContentType = unknownContentType;
 }