- Timestamp:
- 2006-08-15T01:06:04+02:00 (18 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/Main.java
r129 r133 152 152 String annotationSources = pref.get("annotation.sources"); 153 153 if (annotationSources.equals("")) { 154 JOptionPane.showMessageDialog(Main.parent, "You have to specify annotation sources in the preferences first.");154 JOptionPane.showMessageDialog(Main.parent, tr("You have to specify annotation sources in the preferences first.")); 155 155 return; 156 156 } -
src/org/openstreetmap/josm/gui/PreferenceDialog.java
r123 r133 55 55 public class PreferenceDialog extends JDialog { 56 56 57 private final class RequireRestartAction implements ActionListener { 58 public void actionPerformed(ActionEvent e) { 59 requiresRestart = true; 60 } 61 } 62 private RequireRestartAction requireRestartAction = new RequireRestartAction(); 63 57 64 /** 58 65 * Action to take place when user pressed the ok button. … … 132 139 */ 133 140 private JComboBox lafCombo = new JComboBox(UIManager.getInstalledLookAndFeels()); 134 private JComboBox languages = new JComboBox(new Locale[]{new Locale("en", "US"), new Locale("en", "GB"), Locale.GERMAN, Locale.FRENCH}); 141 private JComboBox languages = new JComboBox(new Locale[]{ 142 new Locale("en", "US"), 143 new Locale("en", "GB"), 144 Locale.GERMAN, 145 Locale.FRENCH, 146 new Locale("ro", "RO")}); 135 147 /** 136 148 * The main tab panel. … … 201 213 } 202 214 }); 203 lafCombo.addActionListener(new ActionListener(){ 204 public void actionPerformed(ActionEvent e) { 205 requiresRestart = true; 206 } 207 }); 215 lafCombo.addActionListener(requireRestartAction); 208 216 209 217 // language … … 220 228 } 221 229 }); 230 languages.addActionListener(requireRestartAction); 222 231 223 232 // projection combo box … … 228 237 } 229 238 } 230 projectionCombo.addActionListener(new ActionListener(){ 231 public void actionPerformed(ActionEvent e) { 232 requiresRestart = true; 233 } 234 }); 239 projectionCombo.addActionListener(requireRestartAction); 235 240 236 241 drawRawGpsLines.addActionListener(new ActionListener(){
Note:
See TracChangeset
for help on using the changeset viewer.