SPARK-1256 , removed & from check for updates menuentry and added KeyListener

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12149 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Wolf Posdorfer
2011-03-21 08:40:11 +00:00
committed by wolf.posdorfer
parent ab38cffe58
commit 72fe1f3048
2 changed files with 11 additions and 20 deletions

View File

@ -447,17 +447,15 @@ public final class MainWindow extends ChatFrame implements ActionListener {
connectMenu.add(exitMenuItem);
}
final Action updateAction = new AbstractAction() {
private static final long serialVersionUID = -2159350387773310325L;
public void actionPerformed(ActionEvent actionEvent) {
JMenuItem updateMenu= new JMenuItem("", SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16));
ResourceUtils.resButton(updateMenu, Res.getString("menuitem.check.for.updates"));
updateMenu.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
checkForUpdates(true);
}
};
updateAction.putValue(Action.NAME, Res.getString("menuitem.check.for.updates"));
updateAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16));
}
});
// Add Error Dialog Viewer
final Action viewErrors = new AbstractAction() {
@ -500,13 +498,9 @@ public final class MainWindow extends ChatFrame implements ActionListener {
}
// Build Help Menu
helpMenu.add(updateAction);
helpMenu.add(updateMenu);
helpMenu.addSeparator();
helpMenu.add(viewErrors);
helpMenu.add(menuAbout);
// ResourceUtils - Adds mnemonics
@ -515,9 +509,6 @@ public final class MainWindow extends ChatFrame implements ActionListener {
ResourceUtils.resButton(menuAbout, Res.getString("menuitem.about"));
ResourceUtils.resButton(helpMenuItem, Res.getString("menuitem.online.help"));
// }
// });
// Register shutdown with the exit menu.
exitMenuItem.addActionListener(new AbstractAction() {
private static final long serialVersionUID = -2301236575241532698L;

View File

@ -651,7 +651,7 @@ menuitem.logout.no.status = Ausloggen
menuitem.logout.with.status = Ausloggen mit Nachricht
menuitem.show.traffic = Verbindungsdaten
menuitem.check.for.updates = Ist eine neuere &Version verf<72>gbar?
menuitem.help = Hilfe
menuitem.help = &Hilfe
menuitem.preferences = Einstellungen
menuitem.about = <EFBFBD>ber
menuitem.online.help = Online-Hilfe