copy.setAccelerator (SWT.CTRL + 'C');
copy.setAccelerator (SWT.MOD1 + 'C');
			public void widgetSelected (SelectionEvent e) {				final Shell shell = new Shell ();					shell.setText (LayoutExample.getResourceString ("Generated_Code"));				shell.setLayout (new FillLayout ());				final StyledText text = new StyledText (shell, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);				String layoutCode = generateCode ().toString ();				if (layoutCode.length () == 0) return;				text.setText (layoutCode);								Menu bar = new Menu (shell, SWT.BAR);				shell.setMenuBar (bar);				MenuItem editItem = new MenuItem (bar, SWT.CASCADE);				editItem.setText (LayoutExample.getResourceString ("Edit"));				Menu menu = new Menu (bar);				MenuItem select = new MenuItem (menu, SWT.PUSH);				select.setText (LayoutExample.getResourceString ("Select_All"));				select.setAccelerator (SWT.CTRL + 'A');				select.addSelectionListener (new SelectionAdapter () {					public void widgetSelected (SelectionEvent e) {						text.selectAll ();					}				});				MenuItem copy = new MenuItem (menu, SWT.PUSH);				copy.setText (LayoutExample.getResourceString ("Copy"));				copy.setAccelerator (SWT.CTRL + 'C');				copy.addSelectionListener (new SelectionAdapter () {					public void widgetSelected (SelectionEvent e) {						text.copy ();					}				});				MenuItem exit = new MenuItem (menu, SWT.PUSH);				exit.setText (LayoutExample.getResourceString ("Exit"));				exit.addSelectionListener (new SelectionAdapter () {					public void widgetSelected (SelectionEvent e) {						shell.close ();					}				});				editItem.setMenu (menu);								shell.pack ();				shell.setSize (400, 500);				shell.open ();				Display display = shell.getDisplay ();				while (!shell.isDisposed ())					if (!display.readAndDispatch ()) display.sleep ();			}