Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/04/10 18:55:46 (14 years ago)
Author:
gkronber
Message:

Fixed projects to work with new plugin infrastructure. #799

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.Core/3.2/ChooseOperatorDialog.cs

    r1529 r2587  
    7070      builtinOperatorsTreeView.TreeViewNodeSorter = nodeSorter;
    7171
    72       DiscoveryService discoveryService = new DiscoveryService();
    73       PluginInfo[] plugins = discoveryService.Plugins;
    74       foreach(PluginInfo plugin in plugins) {
     72      foreach (IPluginDescription plugin in ApplicationManager.Manager.Plugins) {
    7573        TreeNode pluginItem = new TreeNode();
    7674        pluginItem.Text = plugin.Name;
    7775        pluginItem.Tag = plugin;
    7876
    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) {
    8280            TreeNode operatorItem = new TreeNode();
    8381            operatorItem.Text = type.Name;
     
    8785        }
    8886        // add plugin node only if it contains operators
    89         if(pluginItem.Nodes.Count > 0) {
     87        if (pluginItem.Nodes.Count > 0) {
    9088          builtinOperatorsTreeView.Nodes.Add(pluginItem);
    9189        }
Note: See TracChangeset for help on using the changeset viewer.