public TextViewMouseProcessorCollection(IWpfTextView wpfTextView, Lazy<IMouseProcessorProvider, IOrderableContentTypeAndTextViewRoleMetadata>[] mouseProcessorProviders, IEditorOperationsFactoryService editorOperationsFactoryService) { this.wpfTextView = wpfTextView; dsWpfTextView = wpfTextView as IDsWpfTextViewImpl; this.mouseProcessorProviders = mouseProcessorProviders; this.editorOperationsFactoryService = editorOperationsFactoryService; allowEventDelegate = AllowMouseEvent; wpfTextView.Closed += WpfTextView_Closed; wpfTextView.TextDataModel.ContentTypeChanged += TextDataModel_ContentTypeChanged; Reinitialize(); }
public TextViewMouseProcessorCollection(IWpfTextView wpfTextView, Lazy <IMouseProcessorProvider, IOrderableContentTypeAndTextViewRoleMetadata>[] mouseProcessorProviders, IEditorOperationsFactoryService editorOperationsFactoryService) { this.wpfTextView = wpfTextView; this.dsWpfTextView = wpfTextView as IDsWpfTextViewImpl; this.mouseProcessorProviders = Orderer.Order(mouseProcessorProviders).ToArray(); this.editorOperationsFactoryService = editorOperationsFactoryService; this.allowEventDelegate = AllowMouseEvent; wpfTextView.Closed += WpfTextView_Closed; wpfTextView.TextDataModel.ContentTypeChanged += TextDataModel_ContentTypeChanged; Reinitialize(); }