Changeset 28
- Timestamp:
- 02/28/08 12:35:49 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Loader.cs
r11 r28 156 156 157 157 foreach(string pluginName in this.pluginDependencies.Keys) { 158 allDependencies.Clear(); 158 159 CheckPluginDependencies(pluginName); 159 160 } … … 221 222 } 222 223 224 private List<string> allDependencies = new List<string>(); 223 225 private bool CheckPluginDependencies(string pluginName) { 224 226 // when we already checked the dependencies of this plugin earlier then just return true 225 227 if(loadablePlugins.Contains(pluginName)) { 226 228 return true; 227 } else if(!pluginAssemblies.ContainsKey(pluginName) ) {229 } else if(!pluginAssemblies.ContainsKey(pluginName) || allDependencies.Contains(pluginName)) { 228 230 // when the plugin is not available return false; 229 231 return false; … … 231 233 // otherwise check if all dependencies of the plugin are OK 232 234 // if yes then this plugin is also ok and we store it in the list of loadable plugins 235 allDependencies.Add(pluginName); 233 236 foreach(string dependency in pluginDependencies[pluginName]) { 234 237 if(CheckPluginDependencies(dependency) == false) {
Note: See TracChangeset
for help on using the changeset viewer.