Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/11 09:55:16 (12 years ago)
Author:
mkommend
Message:

#1654: Changed discovery in multi operators as the discovery by specifying a plugin description does not work in the LightWeightApplicationManager and therefore the classes were not useable in unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Creators/MultiSymbolicDataAnalysisExpressionCreator.cs

    r7037 r7052  
    8282      Parameters.Add(new LookupParameter<ISymbolicExpressionGrammar>(ClonedSymbolicExpressionTreeGrammarParameterName, "An immutable clone of the concrete grammar that is actually used to create and manipulate trees."));
    8383
    84       var plugin = ApplicationManager.Manager.GetDeclaringPlugin(this.GetType());
    8584      List<ISymbolicDataAnalysisSolutionCreator> list = new List<ISymbolicDataAnalysisSolutionCreator>();
    86       foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(ISymbolicDataAnalysisSolutionCreator), plugin)) {
    87         if (!typeof(IMultiOperator<ISymbolicDataAnalysisSolutionCreator>).IsAssignableFrom(type))
    88           list.Add((ISymbolicDataAnalysisSolutionCreator)Activator.CreateInstance(type));
     85      foreach (Type type in ApplicationManager.Manager.GetTypes(typeof(ISymbolicDataAnalysisSolutionCreator))) {
     86        if (this.GetType().Assembly != type.Assembly) continue;
     87        if (typeof(IMultiOperator<ISymbolicDataAnalysisSolutionCreator>).IsAssignableFrom(type)) continue;
     88        list.Add((ISymbolicDataAnalysisSolutionCreator)Activator.CreateInstance(type));
    8989      }
    9090      CheckedItemList<ISymbolicDataAnalysisSolutionCreator> checkedItemList = new CheckedItemList<ISymbolicDataAnalysisSolutionCreator>();
Note: See TracChangeset for help on using the changeset viewer.