Changeset 1180 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
- Timestamp:
- 2008-12-25T18:58:04+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
r1169 r1180 41 41 } 42 42 43 projectionCombo.addActionListener(gui.requireRestartAction);44 coordinatesCombo.addActionListener(gui.requireRestartAction);45 46 43 JPanel projPanel = new JPanel(); 47 44 projPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.gray), tr("Map Projection"))); … … 56 53 } 57 54 58 public void ok() { 59 Main.pref.put("projection", projectionCombo.getSelectedItem().getClass().getName()); 60 Main.pref.put("coordinates", ((CoordinateFormat)coordinatesCombo.getSelectedItem()).name()); 55 public boolean ok() { 56 boolean restart = Main.pref.put("projection", 57 projectionCombo.getSelectedItem().getClass().getName()); 58 if(Main.pref.put("coordinates", 59 ((CoordinateFormat)coordinatesCombo.getSelectedItem()).name())) 60 restart = true; 61 return restart; 61 62 } 62 63 }
Note:
See TracChangeset
for help on using the changeset viewer.
