Changeset 2486 for branches/PluginInfrastructure Refactoring/HeuristicLab.AdvancedOptimizationFrontend/3.2/AvailableOperatorsForm.cs
- Timestamp:
- 11/12/09 17:43:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.AdvancedOptimizationFrontend/3.2/AvailableOperatorsForm.cs
r1529 r2486 63 63 builtinOperatorsTreeView.TreeViewNodeSorter = nodeSorter; 64 64 65 DiscoveryService discoveryService = new DiscoveryService(); 66 PluginInfo[] plugins = discoveryService.Plugins; 67 foreach(PluginInfo plugin in plugins) { 65 foreach (var plugin in ApplicationManager.Manager.Plugins) { 68 66 TreeNode pluginItem = new TreeNode(); 69 67 pluginItem.Text = plugin.Name; 70 68 pluginItem.Tag = plugin; 71 69 72 Type[] operators = discoveryService.GetTypes(typeof(IOperator), plugin); 73 foreach(Type type in operators) { 74 if(!type.IsAbstract) { 70 foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IOperator), plugin)) { 71 if (!type.IsAbstract) { 75 72 TreeNode operatorItem = new TreeNode(); 76 73 operatorItem.Text = type.Name; … … 80 77 } 81 78 // add plugin node only if it contains operators 82 if (pluginItem.Nodes.Count > 0) {79 if (pluginItem.Nodes.Count > 0) { 83 80 builtinOperatorsTreeView.Nodes.Add(pluginItem); 84 81 }
Note: See TracChangeset
for help on using the changeset viewer.