OrderManager orderManager = (OrderManager) ModelUtil
.getBean("orderManager");
Transportable transportable = orderManager.findByOrderNr("45088");
viewHandler = new SplitOrderViewHandler(transportable);
final SplitOrderView splitOrderView = new SplitOrderView(viewHandler);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(splitOrderView.buildPanel(window));
dialog.pack();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);