msg.setText("Oops!");
msg.setMessage("The Browser application cannot be found in " + browserAppPath
+ " Would you like to edit your preferences now?");
int result = msg.open();
if (result == SWT.YES) {
IPreferencePage page = new BrowserPreferencePage();
page.setTitle("Browsers");
page.setDescription("You can define the primary and secondary browsers that are launched when you press F12(primary) and Shift+F12(secondary)");
PreferenceManager mgr = new PreferenceManager();
IPreferenceNode node = new PreferenceNode("1", page);
mgr.addToRoot(node);
PreferenceDialog dialog = new PreferenceDialog(this.editor.getSite().getShell(), mgr);
dialog.create();
dialog.setMessage(page.getTitle());
dialog.open();
}
return;
}
String[] cmd = new String[] { browserAppPath, url };