Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10617


Ignore:
Timestamp:
03/19/14 12:50:33 (10 years ago)
Author:
pfleck
Message:
  • moved ViewShortcuts creations to PreprocessingView.
Location:
branches/DataPreprocessing
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataPreprocessingView.cs

    r10614 r10617  
    3737    public new IPreprocessingContext Content {
    3838      get { return (IPreprocessingContext)base.Content; }
    39       set {
    40         base.Content = value;
    41       }
     39      set { base.Content = value; }
    4240    }
    4341
     
    4543      base.OnContentChanged();
    4644      if (Content != null) {
    47         viewShortcutCollectionView.Content = Content.ViewShortcuts;
     45        var data = Content.Data;
     46        var searchLogic = new SearchLogic(data);
     47        var dataGridLogic = new DataGridLogic(data);
     48        var statisticsLogic = new StatisticsLogic(data, searchLogic);
     49        var manipulationLogic = new ManipulationLogic(data, searchLogic, statisticsLogic);
     50        var transformationLogic = new TransformationLogic(data, searchLogic, statisticsLogic);
     51        var lineChartLogic = new LineChartLogic(data);
     52        var histogramLogic = new HistogramLogic(data);
     53        var filterLogic = new FilterLogic();
     54
     55        viewShortcutCollectionView.Content = new ViewShortcutCollection {
     56          new DataGridContent(dataGridLogic, manipulationLogic),
     57          new StatisticsContent(statisticsLogic),
     58          new FilterContent(filterLogic),
     59          new TransformationContent(transformationLogic),
     60          new LineChartContent(lineChartLogic),
     61          new HistogramContent(histogramLogic)
     62        };
    4863      } else {
    4964        viewShortcutCollectionView.Content = null;
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingContext.cs

    r10614 r10617  
    3333    public ITransactionalPreprocessingData Data { get; private set; }
    3434
    35     public ViewShortcutCollection ViewShortcuts { get; private set; }
    36 
    3735    public IDataAnalysisProblemData DataAnalysisProblemData { get; private set; }
    3836
     
    4644      Algorithm = algorithm;
    4745      Problem = problem;
    48 
    49       var searchLogic = new SearchLogic(Data);
    50       var dataGridLogic = new DataGridLogic(Data);
    51       var statisticsLogic = new StatisticsLogic(Data, searchLogic);
    52       var manipulationLogic = new ManipulationLogic(Data, searchLogic, statisticsLogic);
    53       var transformationLogic = new TransformationLogic(Data, searchLogic, statisticsLogic);
    54       var lineChartLogic = new LineChartLogic(Data);
    55       var histogramLogic = new HistogramLogic(Data);
    56       var filterLogic = new FilterLogic();
    57 
    58       ViewShortcuts = new ViewShortcutCollection {
    59         new DataGridContent(dataGridLogic, manipulationLogic),
    60         new StatisticsContent(statisticsLogic),
    61         new FilterContent(filterLogic),
    62         new TransformationContent(transformationLogic),
    63         new LineChartContent(lineChartLogic),
    64         new HistogramContent(histogramLogic)
    65       };
    6646    }
    6747
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IPreprocessingContext.cs

    r10614 r10617  
    3131    ITransactionalPreprocessingData Data { get; }
    3232
    33     ViewShortcutCollection ViewShortcuts { get; }
    34 
    3533    [Obsolete]
    3634    IDataAnalysisProblemData DataAnalysisProblemData { get; }
Note: See TracChangeset for help on using the changeset viewer.