comment.setCommentDate(Util.getCurrentDate());
comment.addCommentType(CommentTypeUtil.getCommentType("Bruker"));
CommentViewHandler preventiveActionCommentViewHandler = new CommentViewHandler(
login, (PreventiveActionManager) overviewManager);
EditCommentView editDeviationCommentView = new EditCommentView(
new PreventiveActionCommentModel(comment),
preventiveActionCommentViewHandler);
JDialog dialog = Util.getDialog(window, "Legg til kommentar", true);
dialog.setName("EditDeviationCommentView");
WindowInterface dialogWindow = new JDialogAdapter(dialog);
dialogWindow.add(editDeviationCommentView.buildPanel(dialogWindow));
dialog.pack();
Util.locateOnScreenCenter(dialog);
dialogWindow.setVisible(true);
if (preventiveActionCommentViewHandler.isOk()) {