mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
committed by
wolf.posdorfer
parent
ab38cffe58
commit
72fe1f3048
@ -447,17 +447,15 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
|||||||
connectMenu.add(exitMenuItem);
|
connectMenu.add(exitMenuItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JMenuItem updateMenu= new JMenuItem("", SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16));
|
||||||
final Action updateAction = new AbstractAction() {
|
ResourceUtils.resButton(updateMenu, Res.getString("menuitem.check.for.updates"));
|
||||||
private static final long serialVersionUID = -2159350387773310325L;
|
updateMenu.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
public void actionPerformed(ActionEvent actionEvent) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
checkForUpdates(true);
|
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
|
// Add Error Dialog Viewer
|
||||||
final Action viewErrors = new AbstractAction() {
|
final Action viewErrors = new AbstractAction() {
|
||||||
@ -500,13 +498,9 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build Help Menu
|
// Build Help Menu
|
||||||
helpMenu.add(updateAction);
|
helpMenu.add(updateMenu);
|
||||||
helpMenu.addSeparator();
|
helpMenu.addSeparator();
|
||||||
helpMenu.add(viewErrors);
|
helpMenu.add(viewErrors);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
helpMenu.add(menuAbout);
|
helpMenu.add(menuAbout);
|
||||||
|
|
||||||
// ResourceUtils - Adds mnemonics
|
// ResourceUtils - Adds mnemonics
|
||||||
@ -515,9 +509,6 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
|||||||
ResourceUtils.resButton(menuAbout, Res.getString("menuitem.about"));
|
ResourceUtils.resButton(menuAbout, Res.getString("menuitem.about"));
|
||||||
ResourceUtils.resButton(helpMenuItem, Res.getString("menuitem.online.help"));
|
ResourceUtils.resButton(helpMenuItem, Res.getString("menuitem.online.help"));
|
||||||
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
// Register shutdown with the exit menu.
|
// Register shutdown with the exit menu.
|
||||||
exitMenuItem.addActionListener(new AbstractAction() {
|
exitMenuItem.addActionListener(new AbstractAction() {
|
||||||
private static final long serialVersionUID = -2301236575241532698L;
|
private static final long serialVersionUID = -2301236575241532698L;
|
||||||
|
|||||||
@ -651,7 +651,7 @@ menuitem.logout.no.status = Ausloggen
|
|||||||
menuitem.logout.with.status = Ausloggen mit Nachricht
|
menuitem.logout.with.status = Ausloggen mit Nachricht
|
||||||
menuitem.show.traffic = Verbindungsdaten
|
menuitem.show.traffic = Verbindungsdaten
|
||||||
menuitem.check.for.updates = Ist eine neuere &Version verf<72>gbar?
|
menuitem.check.for.updates = Ist eine neuere &Version verf<72>gbar?
|
||||||
menuitem.help = Hilfe
|
menuitem.help = &Hilfe
|
||||||
menuitem.preferences = Einstellungen
|
menuitem.preferences = Einstellungen
|
||||||
menuitem.about = <EFBFBD>ber
|
menuitem.about = <EFBFBD>ber
|
||||||
menuitem.online.help = Online-Hilfe
|
menuitem.online.help = Online-Hilfe
|
||||||
|
|||||||
Reference in New Issue
Block a user