- Timestamp:
- 05/05/10 11:37:57 (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/UploadPluginsView.cs
r3624 r3627 34 34 35 35 namespace HeuristicLab.PluginInfrastructure.Advanced { 36 internal partial class PluginEditor: InstallationManagerControl {36 internal partial class UploadPluginsView : InstallationManagerControl { 37 37 private const string UploadMessage = "Uploading plugins..."; 38 38 private const string RefreshMessage = "Downloading plugin information from deployment service..."; … … 48 48 } 49 49 50 public PluginEditor() {50 public UploadPluginsView() { 51 51 InitializeComponent(); 52 52 pluginImageList.Images.Add(HeuristicLab.PluginInfrastructure.Resources.Resources.plugin_16); … … 192 192 if (!modifiedPlugins.Contains(plugin)) 193 193 modifiedPlugins.Add(plugin); 194 foreach (var dep in GetAllDependencies(plugin)) {194 foreach (var dep in Util.GetAllDependencies(plugin)) { 195 195 if (!modifiedPlugins.Contains(dep)) 196 196 modifiedPlugins.Add(dep); … … 204 204 if (!modifiedPlugins.Contains(plugin)) 205 205 modifiedPlugins.Add(plugin); 206 foreach (var dep in GetAllDependents(plugin)) {206 foreach (var dep in Util.GetAllDependents(plugin, localAndServerPlugins.Keys)) { 207 207 if (!modifiedPlugins.Contains(dep)) 208 208 modifiedPlugins.Add(dep); … … 242 242 Util.ResizeColumns(listView.Columns.OfType<ColumnHeader>()); 243 243 ignoreItemCheckedEvents = false; 244 }245 246 private IEnumerable<IPluginDescription> GetAllDependents(IPluginDescription plugin) {247 return from p in localAndServerPlugins.Keys248 let matchingEntries = from dep in GetAllDependencies(p)249 where dep.Name == plugin.Name250 where dep.Version == plugin.Version251 select dep252 where matchingEntries.Any()253 select p;254 }255 256 private IEnumerable<IPluginDescription> GetAllDependencies(IPluginDescription plugin) {257 foreach (var dep in plugin.Dependencies) {258 foreach (var recDep in GetAllDependencies(dep)) {259 yield return recDep;260 }261 yield return dep;262 }263 244 } 264 245
Note: See TracChangeset
for help on using the changeset viewer.