Bug 279917 SWT Editor Example does not work RC3
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/TextEditor.java
copyItem.setImage(iCopy);
		copyItem.addListener (SWT.Selection, new Listener () {
			public void handleEvent (Event event) {
				styledText.copy();
			}
		});
		final MenuItem pasteItem = new MenuItem (menu, SWT.PUSH);
		pasteItem.setText (getResourceString("Paste_menuitem")); 
		pasteItem.setImage(iPaste);
		pasteItem.addListener (SWT.Selection, new Listener () {
			public void handleEvent (Event event) {
				styledText.paste();
			}
		});
		new MenuItem (menu, SWT.SEPARATOR);
		final MenuItem selectAllItem = new MenuItem (menu, SWT.PUSH);
		selectAllItem.setText (getResourceString("SelectAll_menuitem")); 
		selectAllItem.addListener (SWT.Selection, new Listener () {
			public void handleEvent (Event event) {
				styledText.selectAll();
			}
		});
		menu.addMenuListener(new MenuAdapter() {
			public void menuShown(MenuEvent event) {
				int selectionCount = styledText.getSelectionCount();
				cutItem.setEnabled(selectionCount > 0);
				copyItem.setEnabled(selectionCount > 0);
				selectAllItem.setEnabled(selectionCount < styledText.getCharCount());
			}
		});