void () { int selected = myImportLayoutTable.getSelectedRow(); if (selected < 0) { return; } PackageEntry entry = myImportLayoutList.getEntryAt(selected); if (entry == PackageEntry.ALL_OTHER_STATIC_IMPORTS_ENTRY || entry == PackageEntry.ALL_OTHER_IMPORTS_ENTRY) { return; } TableUtil.stopEditing(myImportLayoutTable); myImportLayoutList.removeEntryAt(selected); AbstractTableModel model = (AbstractTableModel)myImportLayoutTable.getModel(); model.fireTableRowsDeleted(selected, selected); if (selected >= myImportLayoutList.getEntryCount()) { selected--; } if (selected >= 0) { myImportLayoutTable.setRowSelectionInterval(selected, selected); } }