showMissingCollies(window);
} else if (actionEvent.getActionCommand().equalsIgnoreCase(
menuItemShowContent.getText())) {
Assembly assembly = (Assembly) assemblySelectionList
.getElementAt(tableOrders
.convertRowIndexToModel(assemblySelectionList
.getSelectionIndex()));
Deviation deviation = assembly.getDeviation();
if (deviation != null) {
managerRepository.getDeviationManager().lazyLoad(
deviation,
new LazyLoadDeviationEnum[] {
LazyLoadDeviationEnum.ORDER_LINES,
LazyLoadDeviationEnum.COMMENTS });
showContent(deviation, window);
}
} else if (actionEvent.getActionCommand().equalsIgnoreCase(
menuItemDeviation.getText())) {
Assembly assembly = (Assembly) assemblySelectionList
.getElementAt(tableOrders
.convertRowIndexToModel(assemblySelectionList
.getSelectionIndex()));
Order order = assembly.getOrder();
if (order != null) {
DeviationViewHandler deviationViewHandler = deviationViewHandlerFactory
.create(order, true, false, true, null, true);
deviationViewHandler.registerDeviation(order, window);