public override void Execute(IActionContext context) { foreach (IResource res in context.SelectedResources) { RepositoryType repType = SccPlugin.GetRepositoryType(res); if (repType != null) { repType.UpdateRepository(res); } } }
internal static void SynchronizeRepositories() { foreach (IResource res in Core.ResourceStore.GetAllResources(Props.RepositoryResource)) { _statusWriter.ShowStatus("Updating repository " + res.DisplayName + "..."); if (Core.ProgressWindow != null) { Core.ProgressWindow.UpdateProgress(0, "Updating repository " + res.DisplayName + "...", null); } RepositoryType repType = GetRepositoryType(res); if (repType != null) { repType.UpdateRepository(res); } } _statusWriter.ClearStatus(); }