Changeset 26838 in osm for applications/editors/josm/plugins
- Timestamp:
- 2011-10-12T12:09:07+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java
r26215 r26838 250 250 } 251 251 252 // load the preference for the clocksystem (12h/24h) 253 ClockSystem clockSystem = ClockSystem.valueOf(Main.pref.get("ohe.clocksystem", 254 ClockSystem.getClockSystem(Locale.getDefault()).toString())); 255 252 256 JCheckBox useTwelveHourClock = new JCheckBox(tr("Display clock in 12h mode."), 253 ClockSystem.getClockSystem(Locale.getDefault())== ClockSystem.TWELVE_HOURS);257 clockSystem == ClockSystem.TWELVE_HOURS); 254 258 255 259 JPanel dlgPanel = new JPanel(new GridBagLayout()); … … 280 284 if (keyToEdit == null) 281 285 return; 286 287 // save the value for the clocksystem (12h/24h) 288 Main.pref.put("ohe.clocksystem", (useTwelveHourClock.isSelected() ? ClockSystem.TWELVE_HOURS 289 : ClockSystem.TWENTYFOUR_HOURS).toString()); 282 290 283 291 OheDialogPanel panel = new OheDialogPanel(OhePlugin.this, keyToEdit, valuesToEdit, -
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/gui/TimeRect.java
r26002 r26838 234 234 public void mouseReleased(MouseEvent evt) { 235 235 transformType = -1; 236 if (evt.isPopupTrigger()) { 237 showMenu(evt); 238 } 236 239 } 237 240
Note:
See TracChangeset
for help on using the changeset viewer.