Changeset 104 in josm for src/org/openstreetmap/josm/actions/ExitAction.java
- Timestamp:
- 2006-07-03T00:31:24+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/ExitAction.java
r68 r104 1 1 package org.openstreetmap.josm.actions; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.awt.event.ActionEvent; … … 10 12 */ 11 13 public class ExitAction extends JosmAction { 12 13 14 /** 14 15 * Construct the action with "Exit" as label 15 16 */ 16 17 public ExitAction() { 17 super( "Exit", "exit", "Exit the application.", KeyEvent.VK_X);18 super(tr("Exit"), "exit", tr("Exit the application."), KeyEvent.VK_X); 18 19 } 19 20 20 21 public void actionPerformed(ActionEvent e) { 21 // todo: check for modified windows before exiting22 22 System.exit(0); 23 23 } 24 25 24 }
Note:
See TracChangeset
for help on using the changeset viewer.