private void createCopyInstructionAction(String owner) {
		copyInstructionAction = new DockingAction("Selected Instructions", owner) {
			@Override
			public void actionPerformed(ActionContext context) {
				int[] selectedRows = PreviewTable.this.getSelectedRows();
				String val = "";
				for (int selectedRow : selectedRows) {
					val += getColumnValue(selectedRow, HEADER_COL_PREVIEW) + "\n";
				}

				StringSelection sel = new StringSelection(val);
				Clipboard clip = GClipboard.getSystemClipboard();
				clip.setContents(sel, null);
			}

			@Override
			public boolean isEnabledForContext(ActionContext context) {
				return context.getSourceComponent() == PreviewTable.this;
			}
		};

		copyInstructionAction.setHelpLocation(dialog.getHelpLocation());
	}
Creates a string based on the contents of the preview column in all rows,
as shown in the table.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/ui/PreviewTable.java