void Reinitialize() {
			mouseProcessorCollection?.Dispose();
			var list = new List<HexMouseProcessor>();
			foreach (var provider in mouseProcessorProviders) {
				if (!wpfHexView.Roles.ContainsAny(provider.Metadata.TextViewRoles))
					continue;
				var mouseProcessor = provider.Value.GetAssociatedProcessor(wpfHexView);
				if (mouseProcessor != null)
					list.Add(mouseProcessor);
			}
			UIElement manipulationElem = null;//TODO:
			mouseProcessorCollection = new HexMouseProcessorCollection(wpfHexView.VisualElement, manipulationElem, new DefaultHexViewMouseProcessor(wpfHexView, editorOperationsFactoryService), list.ToArray(), allowEventDelegate);
		}
Beispiel #2
0
 void Initialize()
 {
     if (mouseProcessorCollection != null)
     {
         return;
     }
     iconCanvas = new Canvas {
         Background = Brushes.Transparent
     };
     canvas.Children.Add(iconCanvas);
     mouseProcessorCollection = new HexMouseProcessorCollection(VisualElement, null, new DefaultHexMouseProcessor(), CreateMouseProcessors(), null);
     lineInfos       = new Dictionary <object, LineInfo>();
     tagAggregator   = viewTagAggregatorFactoryService.CreateTagAggregator <HexGlyphTag>(wpfHexViewHost.HexView);
     editorFormatMap = editorFormatMapService.GetEditorFormatMap(wpfHexViewHost.HexView);
     InitializeGlyphFactories();
 }
Beispiel #3
0
        void Reinitialize()
        {
            mouseProcessorCollection?.Dispose();
            var list = new List <HexMouseProcessor>();

            foreach (var provider in mouseProcessorProviders)
            {
                if (!wpfHexView.Roles.ContainsAny(provider.Metadata.TextViewRoles))
                {
                    continue;
                }
                var mouseProcessor = provider.Value.GetAssociatedProcessor(wpfHexView);
                if (mouseProcessor != null)
                {
                    list.Add(mouseProcessor);
                }
            }
            UIElement manipulationElem = null;            //TODO:

            mouseProcessorCollection = new HexMouseProcessorCollection(wpfHexView.VisualElement, manipulationElem, new DefaultHexViewMouseProcessor(wpfHexView, editorOperationsFactoryService), list.ToArray(), allowEventDelegate);
        }
Beispiel #4
0
		void Initialize() {
			if (mouseProcessorCollection != null)
				return;
			iconCanvas = new Canvas { Background = Brushes.Transparent };
			canvas.Children.Add(iconCanvas);
			mouseProcessorCollection = new HexMouseProcessorCollection(VisualElement, null, new DefaultHexMouseProcessor(), CreateMouseProcessors(), null);
			lineInfos = new Dictionary<object, LineInfo>();
			tagAggregator = viewTagAggregatorFactoryService.CreateTagAggregator<HexGlyphTag>(wpfHexViewHost.HexView);
			editorFormatMap = editorFormatMapService.GetEditorFormatMap(wpfHexViewHost.HexView);
			InitializeGlyphFactories();
		}