Example #1
0
 public ICocoaMouseProcessor GetAssociatedMouseProcessor(
     ICocoaTextViewHost wpfTextViewHost,
     ICocoaTextViewMargin margin)
 {
     return(new BreakpointGlyphMouseProcessor(
                wpfTextViewHost,
                margin,
                viewTagAggregatorService.CreateTagAggregator <IGlyphTag> (wpfTextViewHost.TextView),
                editorPrimitivesFactoryService.GetViewPrimitives(wpfTextViewHost.TextView)));
 }
        public ICocoaTextViewMargin CreateMargin(
            ICocoaTextViewHost wpfTextViewHost,
            ICocoaTextViewMargin marginContainer)
        {
            var textView = wpfTextViewHost?.TextView
                           ?? throw new ArgumentNullException(nameof(wpfTextViewHost));

            var vimBuffer = _vim.GetOrCreateVimBuffer(textView);

            var formatMap = _formatMapService.GetClassificationFormatMap(textView);

            return(new RelativeLineNumbersMargin(
                       textView,
                       formatMap,
                       _typeRegistryService,
                       vimBuffer.LocalSettings));
        }
Example #3
0
        public BreakpointGlyphMouseProcessor(
            ICocoaTextViewHost wpfTextViewHost,
            ICocoaTextViewMargin margin,
            ITagAggregator <IGlyphTag> tagAggregator,
            IViewPrimitives viewPrimitives)
        {
            this.textViewHost       = wpfTextViewHost;
            this.glyphMargin        = margin;
            this.glyphTagAggregator = tagAggregator;
            this.viewPrimitives     = viewPrimitives;

            // Setup the UI
            //TODO:MAC
            //popup = new Popup();
            //popup.IsOpen = false;
            //popup.Visibility = Visibility.Hidden;

            textViewHost.Closed += delegate {
                glyphTagAggregator.Dispose();
                glyphTagAggregator = null;
            };
        }
Example #4
0
 public IGlyphFactory GetGlyphFactory(ICocoaTextView view, ICocoaTextViewMargin margin)
 {
     return(new ImageSourceGlyphFactory <TracepointInvalidGlyphTag> (imageId, imageService));
 }
Example #5
0
 public IGlyphFactory GetGlyphFactory(ICocoaTextView view, ICocoaTextViewMargin margin)
 {
     return(new ImageSourceGlyphFactory <BreakpointDisabledGlyphTag> (imageId, imageService));
 }
 public ICocoaTextViewMargin CreateMargin(ICocoaTextViewHost textViewHost, ICocoaTextViewMargin marginContainer)
 {
     return(new EvenOddMargin(textViewHost.TextView));
 }
 public IGlyphFactory GetGlyphFactory(ICocoaTextView view, ICocoaTextViewMargin margin)
 {
     return(new ImageSourceGlyphFactory <ReturnStatementGlyphTag> (imageId, imageService));
 }
 public ICocoaTextViewMargin CreateMargin(ICocoaTextViewHost textViewHost, ICocoaTextViewMargin marginContainer)
 {
     return(new CodeCoverageMargin(textViewHost.TextView));
 }