final PreventiveActionViewHandler preventiveActionViewHandler = new PreventiveActionViewHandler(
login, managerRepository);
final DeviationViewHandler deviationViewHandler = new DeviationViewHandler(
login, managerRepository, preventiveActionViewHandler, null,
true, false, true, null, true);
final DeviationOverviewView view = new DeviationOverviewView(
preventiveActionViewHandler, deviationViewHandler, true, null,
true, false, true, null, true);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(view.buildPanel(window));
dialog.pack();
dialog.setSize(deviationViewHandler.getWindowSize());
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);
dialogFixture.show();