Inheritance: IOleComponent, IDisposable
Beispiel #1
0
 private void ConfigureIdleSource()
 {
     _idleTimeSource       = new IdleTimeSource();
     _idleTimeSource.Idle += OnIdle;
     _idleTimeSource.ApplicationStarted += OnApplicationStarted;
     _idleTimeSource.ApplicationClosing += OnApplicationClosing;
 }
Beispiel #2
0
        private void Initialize()
        {
            MainThread           = Thread.CurrentThread;
            MainThreadDispatcher = Dispatcher.FromThread(MainThread);

            _idleTimeSource                 = new IdleTimeSource();
            _idleTimeSource.OnIdle         += OnIdle;
            _idleTimeSource.OnTerminateApp += OnTerminateApp;

            EditorShell.Current = this;
        }
Beispiel #3
0
        public VsAppShell()
        {
            ThreadHelper.ThrowIfNotOnUIThread("VsEditorShell constructor");
            MainThread = Thread.CurrentThread;

            IComponentModel componentModel = RPackage.GetGlobalService(typeof(SComponentModel)) as IComponentModel;

            CompositionService = componentModel.DefaultCompositionService;
            ExportProvider     = componentModel.DefaultExportProvider;

            _idleTimeSource                 = new IdleTimeSource();
            _idleTimeSource.OnIdle         += OnIdle;
            _idleTimeSource.OnTerminateApp += OnTerminateApp;

            DetemineTestEnvironment();
            EditorShell.Current = this;
        }
Beispiel #4
0
        private void Initialize()
        {
            MainThread           = Thread.CurrentThread;
            MainThreadDispatcher = Dispatcher.FromThread(MainThread);

            var componentModel = (IComponentModel)VsPackage.GetGlobalService(typeof(SComponentModel));

            _compositionService = componentModel.DefaultCompositionService;
            _exportProvider     = componentModel.DefaultExportProvider;

            CheckVsStarted();

            _idleTimeSource       = new IdleTimeSource();
            _idleTimeSource.Idle += OnIdle;
            _idleTimeSource.ApplicationClosing += OnApplicationClosing;
            _idleTimeSource.ApplicationStarted += OnApplicationStarted;

            _settings = _exportProvider.GetExportedValue <IRSettings>();
            _settings.LoadSettings();

            EditorShell.Current = this;
        }