@Override
	public ProgramSelection getProgramSelection(int[] rows) {

		AddressSet addressSet = new AddressSet();
		for (int row : rows) {
			FoundString foundString = getRowObject(row);
			Address addr = foundString.getAddress();
			if (addr != null) {
				addressSet.addRange(addr, addr.add(foundString.getLength() - 1));
			}
		}
		return new ProgramSelection(addressSet);
	}
Table model for the Search -&gt; For Strings... result dialog.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/StringTableModel.java