ProductionUnitViewHandler productionUnitViewHandler = new ProductionUnitViewHandler(
login, productionUnitManager);
ProductionUnitModel productionUnitModel = new ProductionUnitModel(
new ProductionUnit());
final EditProductionUnitView editProductionUnitView = new EditProductionUnitView(
false, productionUnitModel, productionUnitViewHandler);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(editProductionUnitView.buildPanel(window));
dialog.pack();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);