SelectionAdapter can also be used instead of SelectionListener. Review the example:

Java Code:
SelectionAdapter adapter = new SelectionAdapter() 
{
	public void widgetSelected(SelectionEvent arg) 
	{
		System.out.println("Button Selected");
	}
};