if (editedMessageHander != null) {
int selectedRow = getSelectedRow();
if (selectedRow > -1) {
try {
SortableTableModel sortModel = (SortableTableModel) getModel();
SQL92FilterableTableModel filterModel = (SQL92FilterableTableModel) sortModel.getActualModel();
MessageHeaderTableModel model = (MessageHeaderTableModel) filterModel.getActualModel();
Message message = model.getMessageAt(selectedRow);
MessageEditorDialog dialog = new MessageEditorDialog(message, editedMessageHander);
dialog.setLocationRelativeTo(HermesBrowser.getBrowser());
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);