Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/03/10 18:32:57 (15 years ago)
Author:
epitzer
Message:

update to new PluginInfrastructure (#802)

Location:
branches/Persistence Test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/Persistence Test

  • branches/Persistence Test/HeuristicLab.SGA/3.3/HeuristicLabSGAPlugin.cs

    r2474 r2744  
    2929  /// Plugin class for HeuristicLab.SGA plugin.
    3030  /// </summary>
    31   [ClassInfo(Name = "HeuristicLab.SGA-3.3")]
    32   [PluginFile(Filename = "HeuristicLab.SGA-3.3.dll", Filetype = PluginFileType.Assembly)]
    33   [Dependency(Dependency = "HeuristicLab.Common-3.2")]
    34   [Dependency(Dependency = "HeuristicLab.Core-3.3")]
    35   [Dependency(Dependency = "HeuristicLab.Data-3.3")]
    36   [Dependency(Dependency = "HeuristicLab.Evolutionary-3.3")]
    37   [Dependency(Dependency = "HeuristicLab.Operators-3.3")]
    38   [Dependency(Dependency = "HeuristicLab.Random-3.3")]
    39   [Dependency(Dependency = "HeuristicLab.Selection-3.3")]
    40   [Dependency(Dependency = "HeuristicLab.Logging-3.3")]
    41   [Dependency(Dependency = "HeuristicLab.SequentialEngine-3.3")]
    42   [Dependency(Dependency = "HeuristicLab.Persistence-3.3")]
     31  [Plugin("HeuristicLab.SGA-3.3")]
     32  [PluginFile("HeuristicLab.SGA-3.3.dll", PluginFileType.Assembly)]
     33  [PluginDependency("HeuristicLab.Common-3.2")]
     34  [PluginDependency("HeuristicLab.Core-3.3")]
     35  [PluginDependency("HeuristicLab.Data-3.3")]
     36  [PluginDependency("HeuristicLab.Evolutionary-3.3")]
     37  [PluginDependency("HeuristicLab.Operators-3.3")]
     38  [PluginDependency("HeuristicLab.Random-3.3")]
     39  [PluginDependency("HeuristicLab.Selection-3.3")]
     40  [PluginDependency("HeuristicLab.Logging-3.3")]
     41  [PluginDependency("HeuristicLab.SequentialEngine-3.3")]
     42  [PluginDependency("HeuristicLab.Persistence-3.3")]
    4343  public class HeuristicLabSGAPlugin : PluginBase {
    4444  }
  • branches/Persistence Test/HeuristicLab.SGA/3.3/SGAEditor.cs

    r2474 r2744  
    117117      IView view = SGA.ProblemInjector.CreateView();
    118118      if (view != null)
    119         PluginManager.ControlManager.ShowControl(view);
     119        ControlManager.Manager.ShowControl(view);
    120120    }
    121121    private void viewSolutionGenerationButton_Click(object sender, EventArgs e) {
    122122      IView view = SGA.SolutionGenerator.CreateView();
    123123      if (view != null)
    124         PluginManager.ControlManager.ShowControl(view);
     124        ControlManager.Manager.ShowControl(view);
    125125    }
    126126    private void viewSelectionButton_Click(object sender, EventArgs e) {
    127127      IView view = SGA.Selector.CreateView();
    128128      if (view != null)
    129         PluginManager.ControlManager.ShowControl(view);
     129        ControlManager.Manager.ShowControl(view);
    130130    }
    131131    private void viewCrossoverButton_Click(object sender, EventArgs e) {
    132132      IView view = SGA.Crossover.CreateView();
    133133      if (view != null)
    134         PluginManager.ControlManager.ShowControl(view);
     134        ControlManager.Manager.ShowControl(view);
    135135    }
    136136    private void viewMutationButton_Click(object sender, EventArgs e) {
    137137      IView view = SGA.Mutator.CreateView();
    138138      if (view != null)
    139         PluginManager.ControlManager.ShowControl(view);
     139        ControlManager.Manager.ShowControl(view);
    140140    }
    141141    private void viewEvaluationButton_Click(object sender, EventArgs e) {
    142142      IView view = SGA.Evaluator.CreateView();
    143143      if (view != null)
    144         PluginManager.ControlManager.ShowControl(view);
     144        ControlManager.Manager.ShowControl(view);
    145145    }
    146146    private void setProblemInitializationButton_Click(object sender, EventArgs e) {
     
    200200      IEngine clone = (IEngine)SGA.Engine.Clone();
    201201      IEditor editor = ((IEditable)clone).CreateEditor();
    202       PluginManager.ControlManager.ShowControl(editor);
     202      ControlManager.Manager.ShowControl(editor);
    203203    }
    204204    #endregion
Note: See TracChangeset for help on using the changeset viewer.