Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/05/10 10:31:40 (14 years ago)
Author:
gkronber
Message:

Copied refactored plugin infrastructure from branch and merged changeset r2586:2589 from branch into the trunk. #799

Location:
trunk/sources/HeuristicLab.SimOpt/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SimOpt/3.2/HeuristicLabSimOptPlugin.cs

    r1530 r2591  
    2727
    2828namespace HeuristicLab.SimOpt {
    29   [ClassInfo(Name = "HeuristicLab.SimOpt-3.2")]
    30   [PluginFile(Filename = "HeuristicLab.SimOpt-3.2.dll", Filetype = PluginFileType.Assembly)]
    31   [Dependency(Dependency = "HeuristicLab.Core-3.2")]
    32   [Dependency(Dependency = "HeuristicLab.Data-3.2")]
    33   [Dependency(Dependency = "HeuristicLab.Operators-3.2")]
    34   [Dependency(Dependency = "HeuristicLab.Constraints-3.2")]
    35   [Dependency(Dependency = "HeuristicLab.Evolutionary-3.2")]
    36   [Dependency(Dependency = "HeuristicLab.Selection-3.2")]
    37   [Dependency(Dependency = "HeuristicLab.Random-3.2")]
     29  [Plugin("HeuristicLab.SimOpt-3.2")]
     30  [PluginFile("HeuristicLab.SimOpt-3.2.dll", PluginFileType.Assembly)]
     31  [PluginDependency("HeuristicLab.Core-3.2")]
     32  [PluginDependency("HeuristicLab.Data-3.2")]
     33  [PluginDependency("HeuristicLab.Operators-3.2")]
     34  [PluginDependency("HeuristicLab.Constraints-3.2")]
     35  [PluginDependency("HeuristicLab.Evolutionary-3.2")]
     36  [PluginDependency("HeuristicLab.Selection-3.2")]
     37  [PluginDependency("HeuristicLab.Random-3.2")]
    3838  public class HeuristicLabSimOptPlugin : PluginBase {
    3939  }
  • trunk/sources/HeuristicLab.SimOpt/3.2/SimOptProblemInjectorView.cs

    r1530 r2591  
    7171    private void UpdateDataTypeTreeView() {
    7272      dataTypeTreeView.Nodes.Clear();
    73       DiscoveryService discoveryService = new DiscoveryService();
    74       foreach (PluginInfo plugin in discoveryService.Plugins) {
     73      foreach (IPluginDescription plugin in ApplicationManager.Manager.Plugins) {
    7574        TreeNode pluginNode = new TreeNode(plugin.Name);
    7675        pluginNode.Tag = null;
    7776
    78         Type[] types = discoveryService.GetTypes(typeof(IObjectData), plugin);
    79         foreach (Type type in types) {
     77        foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(IObjectData), plugin)) {
    8078          if (!type.IsAbstract) {
    8179            TreeNode itemNode = new TreeNode();
Note: See TracChangeset for help on using the changeset viewer.