void (MigrationMapEntry entry) { myOldNameField.setText(entry.getOldName()); myNewNameField.setText(entry.getNewName()); myRbPackage.setSelected(entry.getType() == MigrationMapEntry.PACKAGE); myRbClass.setSelected(entry.getType() == MigrationMapEntry.CLASS); validateOKButton(); }