void () { VcsMappingConfigurationDialog dlg = new VcsMappingConfigurationDialog(myProject, VcsBundle.message("directory.mapping.remove.title")); int row = myDirectoryMappingTable.getSelectedRow(); VcsDirectoryMapping mapping = myDirectoryMappingTable.getRow(row).mapping; dlg.setMapping(mapping); if (dlg.showAndGet()) { setMapping(row, dlg.getMapping()); } }