});
edlMenu = new JMenu(Strings.get("menu_errordialoglevel")) {
{
ButtonGroup group = new ButtonGroup();
AbstractButton jrbn = new JRadioButtonMenuItem(Strings.get("menu_errordialoglevel_normal"));
group.add(jrbn);
add(jrbn);
jrbn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ev) {
System.setProperty("org.knopflerfish.desktop.errordialogfriendliness", "normal");
}
});
AbstractButton jrbm = new JRadioButtonMenuItem(Strings.get("menu_errordialoglevel_more"));
group.add(jrbm);
add(jrbm);
jrbm.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ev) {
System.setProperty("org.knopflerfish.desktop.errordialogfriendliness", "more");
}
});
AbstractButton jrba = new JRadioButtonMenuItem(Strings.get("menu_errordialoglevel_advanced"));
group.add(jrba);
add(jrba);
jrba.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ev) {
System.setProperty("org.knopflerfish.desktop.errordialogfriendliness", "advanced");
}
});
String curr = Util.getProperty("org.knopflerfish.desktop.errordialogfriendliness", null);
if ("more".equals(curr)) {
group.setSelected(jrbm.getModel(), true);
} else if ("advanced".equals(curr)) {
group.setSelected(jrba.getModel(), true);
} else {
group.setSelected(jrbn.getModel(), true);
}
setEnabled(!Util.getBooleanProperty("org.knopflerfish.desktop.dontuseerrordialog", false));