}
AttributeCriteriaViewHandler attributeCriteriaViewHandler = new AttributeCriteriaViewHandler();
AttributeCriteriaView attributeCriteriaView = new AttributeCriteriaView(
orderLineAttribute, attributeCriteriaViewHandler);
WindowInterface dialogAttributes = new JDialogAdapter(
new JDialog(ProTransMain.PRO_TRANS_MAIN, "Attributter",
true));
dialogAttributes.setName("OrderLineAttributeView");
dialogAttributes.add(attributeCriteriaView
.buildPanel(dialogAttributes));
dialogAttributes.pack();
Util.locateOnScreenCenter(dialogAttributes);
dialogAttributes.setVisible(true);
dialogAttributes.dispose();
if (object == null
|| ((OrderLineTreeNode) object).getObject() == null) {
Order order = new Order();
order.setOrderLines(new HashSet<OrderLine>(orderLines1));