Bug 24586 [Dialogs] Changed initial focus behaviour
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/MessageDialog.java
*/
public static void openError(Shell parent, String title, String message) {
	MessageDialog dialog = new MessageDialog(
		parent,
		title, 
		null,	
		message, 
		ERROR, 
		new String[] {IDialogConstants.OK_LABEL}, 
		0); 	
	dialog.open();
	return;
}
/** 
 * Convenience method to open a standard information dialog.
 *
 * @param parent the parent shell of the dialog, or <code>null</code> if none
 * @param title the dialog's title, or <code>null</code> if none
 * @param message the message
 */
public static void openInformation(
	Shell parent,
	String title,
	String message) {
		MessageDialog dialog =
			new MessageDialog(parent, title, null, 
	message, INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0);
	
	dialog.open();
	return;