viewer.setInput(getMoveRefactoring().getPossibleNewReceivers());
INewReceiver[] possibleNewReceivers= getMoveRefactoring().getPossibleNewReceivers(); Assert.isTrue(possibleNewReceivers.length > 0); viewer.setInput(possibleNewReceivers); INewReceiver chosen= possibleNewReceivers[0]; viewer.setSelection(new StructuredSelection(new Object[]{chosen})); getMoveRefactoring().chooseNewReceiver(chosen);
	private void createNewReceiverList(Composite result) {		Label label= new Label(result, SWT.SINGLE);		label.setText("&New receiver:");		GridData gd0= new GridData();		gd0.horizontalSpan= 2;		label.setLayoutData(gd0);		TableLayoutComposite layouter= new TableLayoutComposite(result, SWT.NULL);		addColumnLayoutData(layouter);		Table table= new Table(layouter, SWT.SINGLE | SWT.BORDER);		table.setHeaderVisible(true);		table.setLinesVisible(false);				TableColumn column0= new TableColumn(table, SWT.NONE);				column0.setText("Name");		column0.setResizable(true); 		TableColumn column1= new TableColumn(table, SWT.NONE);		column1.setText("Type Name");		column1.setResizable(true);		 		TableColumn column2= new TableColumn(table, SWT.NONE);		column2.setText("Parameter / Field");		column2.setResizable(true);		TableViewer viewer= new TableViewer(table);		viewer.setContentProvider(new StaticObjectArrayContentProvider());		viewer.setLabelProvider(createReceiverArrayLabelProvider());		viewer.setInput(getMoveRefactoring().getPossibleNewReceivers());				viewer.addSelectionChangedListener(new ISelectionChangedListener(){			public void selectionChanged(SelectionChangedEvent event) {				Object first= ((IStructuredSelection)event.getSelection()).getFirstElement();				if (! (first instanceof INewReceiver))					return;				INewReceiver chosen= (INewReceiver)first;					getMoveRefactoring().chooseNewReceiver(chosen);			}		});		GridData gd= new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL);		gd.heightHint= table.getGridLineWidth() + table.getItemHeight() * ROW_COUNT;//		gd.widthHint= 40;		gd.horizontalSpan= 2;		layouter.setLayoutData(gd);	}