Commit fe8706e6 authored by Schuhbaeck, Stefan's avatar Schuhbaeck, Stefan
Browse files

fix #168 add scenarioChecker to DataProcessingView already in constructor.

parent e9873189
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ class DataProcessingView extends JPanel implements IJsonView {
	private boolean isEditable;
	private IScenarioChecker scenarioChecker;

	DataProcessingView() {
	DataProcessingView(IScenarioChecker scenarioChecker) {
		setLayout(new BorderLayout()); // force it to span across the whole available space

		viewPanel = new JPanel(new GridLayout(1, 1));
@@ -87,6 +87,7 @@ class DataProcessingView extends JPanel implements IJsonView {
		JPanel togglePanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
		togglePanel.add(switchJsonViewModeLabel);
		add(togglePanel, BorderLayout.SOUTH);
		setScenarioChecker(scenarioChecker);
		switchMode();
	}

+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ public class ScenarioPanel extends JPanel implements IProjectChangeListener, Pro
		topographyFileView.setScenarioChecker(model);

		tabbedPane.addTab(Messages.getString("Tab.Topography.title"), topographyFileView);
		dataProcessingGUIview = new DataProcessingView();
		dataProcessingGUIview = new DataProcessingView(model);
		tabbedPane.addTab(Messages.getString("Tab.OutputProcessors.title"), dataProcessingGUIview);
		// online visualization card...
		JPanel visualizationCard = new JPanel();