internal NewLineDisplay(IWpfTextView textView, IAdornmentLayer adornmentLayer, IVimAppOptions vimAppOptions) { _wpfTextView = textView; _adornmentLayer = adornmentLayer; _vimAppOptions = vimAppOptions; _wpfTextView.LayoutChanged += OnLayoutChanged; _vimAppOptions.Changed += OnOptionsChanged; }
public MainWindow() { InitializeComponent(); #if DEBUG VimTrace.TraceSwitch.Level = TraceLevel.Info; #endif _vimComponentHost = new VimComponentHost(); _vimComponentHost.CompositionContainer.GetExportedValue <VimAppHost>().MainWindow = this; _classificationFormatMapService = _vimComponentHost.CompositionContainer.GetExportedValue <IClassificationFormatMapService>(); _vimAppOptions = _vimComponentHost.CompositionContainer.GetExportedValue <IVimAppOptions>(); // Create the initial view to display AddNewTab("Empty Doc"); }
public MainWindow() { InitializeComponent(); #if DEBUG VimTrace.TraceSwitch.Level = TraceLevel.Info; #endif _vimComponentHost = new VimComponentHost(); _classificationFormatMapService = _vimComponentHost.CompositionContainer.GetExportedValue<IClassificationFormatMapService>(); _vimAppOptions = _vimComponentHost.CompositionContainer.GetExportedValue<IVimAppOptions>(); _vimWindowManager = _vimComponentHost.CompositionContainer.GetExportedValue<IVimWindowManager>(); var vimAppHost = _vimComponentHost.CompositionContainer.GetExportedValue<VimAppHost>(); vimAppHost.MainWindow = this; vimAppHost.VimWindowManager = _vimWindowManager; _vimWindowManager.VimWindowCreated += OnVimWindowCreated; // Create the initial view to display AddNewTab("Empty Doc"); }
public MainWindow() { InitializeComponent(); #if DEBUG VimTrace.TraceSwitch.Level = TraceLevel.Info; #endif _vimComponentHost = new VimComponentHost(); _editorHost = _vimComponentHost.EditorHost; _classificationFormatMapService = _vimComponentHost.CompositionContainer.GetExportedValue <IClassificationFormatMapService>(); _vimAppOptions = _vimComponentHost.CompositionContainer.GetExportedValue <IVimAppOptions>(); _vimWindowManager = _vimComponentHost.CompositionContainer.GetExportedValue <IVimWindowManager>(); _editorOperationsFactoryService = _vimComponentHost.CompositionContainer.GetExportedValue <IEditorOperationsFactoryService>(); _textUndoHistoryRegistry = _vimComponentHost.CompositionContainer.GetExportedValue <ITextUndoHistoryRegistry>(); var vimAppHost = _vimComponentHost.CompositionContainer.GetExportedValue <VimAppHost>(); vimAppHost.MainWindow = this; vimAppHost.VimWindowManager = _vimWindowManager; _vimWindowManager.VimWindowCreated += OnVimWindowCreated; // Create the initial view to display AddNewTab("Empty Doc"); }
internal NewLineDisplayFactory(IVimAppOptions vimAppOptions) { _vimAppOptions = vimAppOptions; }