Bug 279917 SWT Editor Example does not work RC3
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/TextEditor.java
Menu menu = new Menu(shell, SWT.BAR);
		shell.setMenuBar(menu);
		MenuItem fileItem = new MenuItem(menu, SWT.CASCADE);
		Menu fileMenu = new Menu(shell, SWT.DROP_DOWN);
		fileItem.setText(getResourceString("File_menuitem")); 
		fileItem.setMenu(fileMenu);		
		
		MenuItem openItem = new MenuItem(fileMenu, SWT.PUSH);
		openItem.setText(getResourceString("Open_menuitem")); 
		openItem.addSelectionListener(new SelectionAdapter () {
			public void widgetSelected(SelectionEvent event) {
				FileDialog dialog = new FileDialog(shell, SWT.OPEN);
				dialog.setFilterNames(new String [] {getResourceString("Text_Documents")}); 
				dialog.setFilterExtensions (new String [] {"*.txt"}); 
		        String name = dialog.open();
		        if (name == null)  return;
		        fileName = name;
		        FileInputStream file = null;
		        try {
		        	file = new FileInputStream(name);
		        	styledText.setText(openFile(file));
		        } catch (IOException e) {
		        	showError(getResourceString("Error"), e.getMessage()); 
		        } finally {
		        	try {
		        		if (file != null) file.close();
		        	} catch (IOException e) {
		        		showError(getResourceString("Error"), e.getMessage()); 
		        	}
		        }