Example #1
0
        public void Save(IProgressMonitor monitor)
        {
            try {
                fileStatusTracker.BeginSave();
                Services.ProjectService.GetExtensionChain(this).Save(monitor, this);
                SaveUserProperties();
                OnSaved(new WorkspaceItemEventArgs(this));

                // Update save times
            } finally {
                fileStatusTracker.EndSave();
            }
            FileService.NotifyFileChanged(FileName);
        }
        public override void Save(IProgressMonitor monitor)
        {
            if (string.IsNullOrEmpty(FileName))
            {
                throw new InvalidOperationException("Project does not have a file name");
            }

            try {
                fileStatusTracker.BeginSave();
                Services.ProjectService.GetExtensionChain(this).Save(monitor, this);
                OnSaved(thisItemArgs);
            } finally {
                fileStatusTracker.EndSave();
            }
            FileService.NotifyFileChanged(FileName);
        }