Beispiel #1
0
        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>();

            // Create the initial view to display
            AddNewTab("Empty Doc");
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

#if DEBUG
            VimTrace.TraceSwitch.Level = TraceLevel.Info;
#endif

            _vimComponentHost = new VimComponentHost();
            _vimComponentHost.CompositionContainer.GetExportedValue <DefaultVimHost>().MainWindow = this;

            _textBuffer = _vimComponentHost.TextBufferFactoryService.CreateTextBuffer();
            var textViewHost = CreateTextViewHost();
            _textViewHostList.Add(textViewHost);
            m_dockPanel.Children.Add(textViewHost.HostControl);
        }
Beispiel #3
0
        public MainWindow()
        {
            InitializeComponent();

            #if DEBUG
            VimTrace.TraceSwitch.Level = TraceLevel.Info;
            #endif

            _vimComponentHost = new VimComponentHost();
            _vimComponentHost.CompositionContainer.GetExportedValue<DefaultVimHost>().MainWindow = this;

            _textBuffer = _vimComponentHost.TextBufferFactoryService.CreateTextBuffer();
            var textViewHost = CreateTextViewHost();
            _textViewHostList.Add(textViewHost);
            m_dockPanel.Children.Add(textViewHost.HostControl);
        }
Beispiel #4
0
        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");
        }
Beispiel #5
0
        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>();
            var vimAppHost = _vimComponentHost.CompositionContainer.GetExportedValue<VimAppHost>();
            vimAppHost.MainWindow = this;
            vimAppHost.VimWindowManager = _vimWindowManager;

            _vimWindowManager.VimWindowCreated += OnVimWindowCreated;

            // Create the initial view to display 
            AddNewTab("Empty Doc");
        }
Beispiel #6
0
        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");
        }