Beispiel #1
0
        public void Subscribe()
        {
            _importDocumentManager.OnSubscribed(this);

            _workspaceEditorSettings.Changed += EditorSettingsManager_Changed;
            _projectManager.Changed          += ProjectManager_Changed;
            _importDocumentManager.Changed   += Import_Changed;

            _isSupportedProject = true;
            _project            = _projectManager.GetProjectWithFilePath(_projectPath);

            OnContextChanged(_project, ContextChangeKind.ProjectChanged);
        }
Beispiel #2
0
        public void Subscribe()
        {
            _foregroundDispatcher.AssertForegroundThread();

            if (_subscribeCount++ > 0)
            {
                return;
            }

            _projectSnapshot    = _projectManager.GetOrCreateProject(_projectPath);
            _isSupportedProject = true;

            _projectManager.Changed          += ProjectManager_Changed;
            _workspaceEditorSettings.Changed += EditorSettingsManager_Changed;
            _importDocumentManager.Changed   += Import_Changed;

            _importDocumentManager.OnSubscribed(this);

            OnContextChanged(ContextChangeKind.ProjectChanged);
        }