Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/09 17:43:59 (14 years ago)
Author:
gkronber
Message:

Copied main HL plugins from trunk for testing. #799

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.AdvancedOptimizationFrontend/3.2/AvailableOperatorsForm.cs

    r1529 r2486  
    6363      builtinOperatorsTreeView.TreeViewNodeSorter = nodeSorter;
    6464
    65       DiscoveryService discoveryService = new DiscoveryService();
    66       PluginInfo[] plugins = discoveryService.Plugins;
    67       foreach(PluginInfo plugin in plugins) {
     65      foreach (var plugin in ApplicationManager.Manager.Plugins) {
    6866        TreeNode pluginItem = new TreeNode();
    6967        pluginItem.Text = plugin.Name;
    7068        pluginItem.Tag = plugin;
    7169
    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) {
    7572            TreeNode operatorItem = new TreeNode();
    7673            operatorItem.Text = type.Name;
     
    8077        }
    8178        // add plugin node only if it contains operators
    82         if(pluginItem.Nodes.Count > 0) {
     79        if (pluginItem.Nodes.Count > 0) {
    8380          builtinOperatorsTreeView.Nodes.Add(pluginItem);
    8481        }
Note: See TracChangeset for help on using the changeset viewer.