Changeset 2587 for branches/PluginInfrastructure Refactoring/HeuristicLab.Core/3.2/ChooseOperatorDialog.cs
- Timestamp:
- 01/04/10 18:55:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.Core/3.2/ChooseOperatorDialog.cs
r1529 r2587 70 70 builtinOperatorsTreeView.TreeViewNodeSorter = nodeSorter; 71 71 72 DiscoveryService discoveryService = new DiscoveryService(); 73 PluginInfo[] plugins = discoveryService.Plugins; 74 foreach(PluginInfo plugin in plugins) { 72 foreach (IPluginDescription plugin in ApplicationManager.Manager.Plugins) { 75 73 TreeNode pluginItem = new TreeNode(); 76 74 pluginItem.Text = plugin.Name; 77 75 pluginItem.Tag = plugin; 78 76 79 Type[] operators = discoveryService.GetTypes(typeof(IOperator), plugin);80 foreach (Type type in operators) {81 if (!type.IsAbstract) {77 IEnumerable<Type> operators = ApplicationManager.Manager.GetTypes(typeof(IOperator), plugin); 78 foreach (Type type in operators) { 79 if (!type.IsAbstract) { 82 80 TreeNode operatorItem = new TreeNode(); 83 81 operatorItem.Text = type.Name; … … 87 85 } 88 86 // add plugin node only if it contains operators 89 if (pluginItem.Nodes.Count > 0) {87 if (pluginItem.Nodes.Count > 0) { 90 88 builtinOperatorsTreeView.Nodes.Add(pluginItem); 91 89 }
Note: See TracChangeset
for help on using the changeset viewer.