DeviationViewHandler deviationViewHandler = new DeviationViewHandler(
login, managerRepository, preventiveActionViewHandler,
//deviationOverviewViewFactory,
null, false, false, true, null, true);
deviationViewHandler.addCloseListener(this);
EditDeviationView deviationView = new EditDeviationView(false,
new DeviationModel(new Deviation(), false),
deviationViewHandler, false, true);
JFrame jFrame = new JFrame("Registrere avvik");
jFrame.setIconImage(IconEnum.ICON_UGLAND_BIG.getIcon().getImage());
jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
WindowInterface frame = new JFrameAdapter(jFrame);
frame.add(deviationView.buildPanel(frame));
frame.pack();
Util.locateOnScreenCenter(frame);
frame.setVisible(true);
listener.systemReady();
return jFrame;