MainPackageViewHandler mainPackageViewHandler = new MainPackageViewHandler(
vismaFileCreator, orderViewHandlerFactory, login,
managerRepository, deviationViewHandlerFactory, colliSetup,
statusChekers);
final MainPackageView view = new MainPackageView(mainPackageViewHandler);
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();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);