Ejemplo n.º 1
0
        internal FormatCommandHandler(ITextBuffer textBuffer, ITextView textView, ISingletons core)
        {
            Requires.NotNull(textBuffer, nameof(textBuffer));
            Requires.NotNull(textView, nameof(textView));
            Requires.NotNull(core, nameof(core));

            this.core       = core;
            this.textBuffer = textBuffer;
            this.textView   = textView;
        }
Ejemplo n.º 2
0
        public ErrorTagger(ITextBuffer buffer, ISingletons singletons)
        {
            Validate.IsNotNull(buffer, nameof(buffer));
            Validate.IsNotNull(singletons, nameof(singletons));

            this.buffer     = buffer;
            this.singletons = singletons;

            this.buffer.Changed += this.OnBufferChanged;
        }
Ejemplo n.º 3
0
        internal FormatCommandHandler(ITextBuffer textBuffer, ITextView textView, ISingletons core)
        {
            Requires.NotNull(textBuffer, nameof(textBuffer));
            Requires.NotNull(textView, nameof(textView));
            Requires.NotNull(core, nameof(core));

            this.core = core;
            this.textBuffer = textBuffer;
            this.textView = textView;
        }
Ejemplo n.º 4
0
        public TextView(IWpfTextView wpfTextView, ISingletons core)
        {
            Requires.NotNull(wpfTextView, nameof(wpfTextView));
            Requires.NotNull(core, nameof(core));

            this.core = core;
            this.editorAdaptersService = core.EditorAdaptersFactory;

            this.WpfTextView = wpfTextView;
            this.VsTextView = this.editorAdaptersService.GetViewAdapter(this.WpfTextView);
            this.IsReadOnly = wpfTextView.Roles.Contains(DifferenceViewerRoles.LeftViewTextViewRole);
        }
Ejemplo n.º 5
0
        public TextView(IWpfTextView wpfTextView, ISingletons core)
        {
            Requires.NotNull(wpfTextView, nameof(wpfTextView));
            Requires.NotNull(core, nameof(core));

            this.core = core;
            this.editorAdaptersService = core.EditorAdaptersFactory;

            this.WpfTextView = wpfTextView;
            this.VsTextView  = this.editorAdaptersService.GetViewAdapter(this.WpfTextView);
            this.IsReadOnly  = wpfTextView.Roles.Contains(DifferenceViewerRoles.LeftViewTextViewRole);
        }
Ejemplo n.º 6
0
        public ErrorListPresenter(IWpfTextView textView, ISingletons singletons)
        {
            Validate.IsNotNull(textView, nameof(textView));
            Validate.IsNotNull(singletons, nameof(singletons));

            this.textView = textView;
            this.singletons = singletons;
            this.errorListProvider = new ErrorListProvider(singletons.ServiceProvider);
            this.errorListProvider.ProviderGuid = Guid.NewGuid();
            this.errorListProvider.ProviderName = Constants.Language.Name;

            this.textView.TextBuffer.Changed += this.OnBufferChanged;
        }
Ejemplo n.º 7
0
        public ErrorListPresenter(IWpfTextView textView, ISingletons singletons)
        {
            Validate.IsNotNull(textView, nameof(textView));
            Validate.IsNotNull(singletons, nameof(singletons));

            this.textView          = textView;
            this.singletons        = singletons;
            this.errorListProvider = new ErrorListProvider(singletons.ServiceProvider);
            this.errorListProvider.ProviderGuid = Guid.NewGuid();
            this.errorListProvider.ProviderName = Constants.Language.Name;

            this.textView.TextBuffer.Changed += this.OnBufferChanged;
        }
Ejemplo n.º 8
0
        internal Tagger(ITextBuffer buffer, IStandardClassificationService standardClassifications, IClassificationTypeRegistryService classificationTypeRegistry, ISingletons singletons)
        {
            Requires.NotNull(standardClassifications, nameof(standardClassifications));
            Requires.NotNull(classificationTypeRegistry, nameof(classificationTypeRegistry));
            Requires.NotNull(singletons, nameof(singletons));

            this.buffer     = buffer;
            this.singletons = singletons;

            this.standardClassifications    = standardClassifications;
            this.classificationTypeRegistry = classificationTypeRegistry;
            this.singletons = singletons;

            vsClassifications =
                vsClassifications == null?
                InitializeDictionary(this.standardClassifications, this.classificationTypeRegistry) :
                    vsClassifications;

            this.buffer.Changed += this.OnBufferChanged;
            this.UpdateParserRelatedClassifications(this.buffer.CurrentSnapshot, new CancellationToken());
        }
Ejemplo n.º 9
0
 internal DocumentOperations(ISingletons singletons)
 {
     this.singletons = singletons;
 }
 internal DocumentOperations(ISingletons singletons)
 {
     this.singletons = singletons;
 }
Ejemplo n.º 11
0
 public SingletonLocator(ISingletonCandidates candidates, ISingletons singletons)
 {
     _candidates = candidates;
     _singletons = singletons;
 }
Ejemplo n.º 12
0
 internal SmartIndent(ITextView textView, ISingletons singletons)
 {
     this.textView = textView;
     this.singletons = singletons;
 }
Ejemplo n.º 13
0
 StaticExtension(ISingletons singletons, string memberPath)
 {
     _singletons = singletons;
     _memberPath = memberPath;
 }
Ejemplo n.º 14
0
 public ErrorTagger(ITextBuffer buffer, ISingletons singletons)
 {
     this.buffer     = buffer;
     this.singletons = singletons;
 }
Ejemplo n.º 15
0
 internal SmartIndent(ITextView textView, ISingletons singletons)
 {
     this.textView   = textView;
     this.singletons = singletons;
 }