AbstractProductionPackageViewHandler<PacklistV> productionViewHandler = new PacklistViewHandler(
login, managerRepository, deviationViewHandlerFactory,
orderViewHandlerFactory, new PacklistApplyList(login,
packlistVManager), null, null);
final PacklistView packlistView = new PacklistView(
productionViewHandler);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(packlistView.buildPanel(window));
dialog.pack();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);