private void share() { final int rowCount = myLocalTable.getSelectedRowCount(); if (rowCount > 0) { final int[] rows = myLocalTable.getSelectedRows(); for (int i = rows.length - 1; i >= 0; i--) { FileColorConfiguration removed = myLocalTable.removeConfiguration(rows[i]); if (removed != null) { mySharedTable.addConfiguration(removed); } } } }