private void copySelection(final WTable table, final WText selected) {
		Set<?> rows = table.getSelectedRows();

		if (rows.isEmpty()) {
			selected.setText("No Rows Selected");
		} else {
			StringBuffer out = new StringBuffer("Selected: ");
			boolean firstRow = true;
			for (Object row : rows) {
				if (firstRow) {
					firstRow = false;
				} else {
					out.append(", ");
				}
				out.append(row);
			}
			selected.setText(out.toString());
		}
	}
private void copySelection ( final WTable table , final WText selected ) { Set < ? > rows = table . getSelectedRows ( ) ; if ( rows . isEmpty ( ) ) { selected . setText ( "No Rows Selected" ) ; } else { StringBuffer out = new StringBuffer ( "Selected: " ) ; boolean firstRow = true ; for ( Object row : rows ) { if ( firstRow ) { firstRow = false ; } else { out . append ( ", " ) ; } out . append ( row ) ; } selected . setText ( out . toString ( ) ) ; } }
@param table the table with selected items
@param selected the text field that will contain a copy of the selected item details