private void RemoveLicenseHeadersFromAllFiles(object obj) { var removeAllLicenseHeadersCommand = new RemoveLicenseHeaderFromAllFilesInProjectCommand(_licenseReplacer); IVsStatusbar statusBar = (IVsStatusbar)GetService(typeof(SVsStatusbar)); statusBar.SetText(Resources.UpdatingFiles); removeAllLicenseHeadersCommand.Execute(obj); statusBar.SetText(String.Empty); }
private void RemoveLicenseHeadersFromAllFiles(object obj) { var removeAllLicenseHeadersCommand = new RemoveLicenseHeaderFromAllFilesInProjectCommand(_licenseReplacer); var task = GetServiceAsync(typeof(SVsStatusbar)); task.ContinueWith(t => { IVsStatusbar statusBar = (IVsStatusbar)t.Result; statusBar.SetText(Resources.UpdatingFiles); removeAllLicenseHeadersCommand.Execute(obj); statusBar.SetText(String.Empty); }); task.Start(); }