Bug 16986 JavaViewer example should remember path
The JavaViewer example does not remember the path of the last file opened. Every time the user opens a file, he has to walk the file system again. This can be easily done by keeping the FileDialog around.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/javaviewer/JavaViewer.java
}
		catch (IOException e) {
			
			String message = MessageFormat.format(resources.getString("Err_file_io"), new String[] {file.getName()});
			displayError(message);
			return;
		}
	}
	catch (FileNotFoundException e) {
		String message = MessageFormat.format(resources.getString("Err_not_found"), new String[] {file.getName()});
		displayError(message);
		return;
	}
	
	Display display = text.getDisplay();
	display.asyncExec(new Runnable() {
		public void run() {
			text.setText(textString);
		}
	});	
	
	
	
	lineStyler.parseBlockComments(textString);
}
void menuFileExit () {
	shell.close ();
}
}