Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/14 12:50:33 (10 years ago)
Author:
pfleck
Message:
  • moved ViewShortcuts creations to PreprocessingView.
File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.