void () { EditMigrationEntryDialog dialog = new EditMigrationEntryDialog(myProject); int selected = myTable.getSelectedRow(); if (selected < 0) { return; } MigrationMapEntry entry = myMigrationMap.getEntryAt(selected); dialog.setEntry(entry); if (!dialog.showAndGet()) { return; } dialog.updateEntry(entry); AbstractTableModel model = (AbstractTableModel)myTable.getModel(); model.fireTableRowsUpdated(selected, selected); }