package com.omnicrola.essen.start;

import com.omnicrola.essen.data.IEssenDataModel;
import com.omnicrola.essen.ui.IEssenWindow;
import com.omnicrola.essen.ui.ITimesheetSelection;
import com.omnicrola.essen.ui.observers.TimesheetChangeObserver;

public class EssenModelObservationAssistant {

	public static void installObservers(IEssenDataModel dataModel, IEssenWindow essenWindow) {
		final ITimesheetSelection timesheetDisplay = essenWindow.getTimesheetSelectionPanel();
		final TimesheetChangeObserver nameChangeObserver = new TimesheetChangeObserver(timesheetDisplay);
		dataModel.addObserver(nameChangeObserver);
	}

}
