Bug 178364 Type-o in Snippet260
Snippet 260 has a type-o: System.out.println("Count not instantiate Browser: " + e.getMessage()); should read: System.out.println("Could not instantiate Browser: " + e.getMessage());
examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet160.java
}
			public void completed(ProgressEvent event) {
				/* 
				 * Use JavaScript to query the desired node content through the Document Object Model
				 * 
				 * Assign result to the window property status to pass the result to the StatusTextListener
				 * This trick is required since <code>execute</code> does not return the <code>String</code>
				 * directly.
				 */
				boolean result = browser.execute("window.status=document.getElementById('myid').childNodes[0].nodeValue;");
				if (!result) {
					
					System.out.println("Script was not executed.");
					return;
				}
				String value = (String)browser.getData("query");
				System.out.println("Node value: "+value);
			}
		});
		
		browser.setText(html);
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
	}
}