private List<Address> getSelectedAddresses() {
		List<Address> result = new ArrayList<>();
		for (EncodedStringsRow row : tableModel.getRowObjects(table.getSelectedRows())) {
			result.add(row.sdi().getAddress());
		}
		return result;
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java