Changeset 5857 in josm
- Timestamp:
- 2013-04-14T18:23:10+02:00 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java
r5310 r5857 1 // License: GPL. For details, see LICENSE file. 1 2 package org.openstreetmap.josm.actions; 2 3 -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r5661 r5857 68 68 import org.openstreetmap.josm.actions.PurgeAction; 69 69 import org.openstreetmap.josm.actions.RedoAction; 70 import org.openstreetmap.josm.actions.RestartAction; 70 71 import org.openstreetmap.josm.actions.ReverseWayAction; 71 72 import org.openstreetmap.josm.actions.SaveAction; … … 138 139 public final JosmAction upload = new UploadAction(); 139 140 public final JosmAction uploadSelection = new UploadSelectionAction(); 141 public final JosmAction restart = new RestartAction(); 140 142 public final JosmAction exit = new ExitAction(); 141 143 … … 454 456 add(fileMenu, closeChangesetAction, true); 455 457 fileMenu.addSeparator(); 458 add(fileMenu, restart); 456 459 add(fileMenu, exit); 457 460 -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r5631 r5857 29 29 import org.openstreetmap.josm.Main; 30 30 import org.openstreetmap.josm.actions.ExpertToggleAction; 31 import org.openstreetmap.josm.actions.RestartAction; 31 32 import org.openstreetmap.josm.actions.ExpertToggleAction.ExpertModeChangeListener; 33 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 34 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 32 35 import org.openstreetmap.josm.gui.preferences.advanced.AdvancedPreference; 33 36 import org.openstreetmap.josm.gui.preferences.display.ColorPreference; … … 285 288 if (requiresRestart) { 286 289 sb.append(tr("You have to restart JOSM for some settings to take effect.")); 290 sb.append("<br/><br/>"); 291 sb.append(tr("Would you like to restart now?")); 287 292 } 288 293 sb.append("</html>"); … … 290 295 // display the message, if necessary 291 296 // 292 if ((task != null && !task.isCanceled()) || requiresRestart) { 297 if (requiresRestart) { 298 final ButtonSpec [] options = RestartAction.getButtonSpecs(); 299 if (0 == HelpAwareOptionPane.showOptionDialog( 300 Main.parent, 301 sb.toString(), 302 tr("Restart"), 303 JOptionPane.INFORMATION_MESSAGE, 304 null, /* no special icon */ 305 options, 306 options[0], 307 null /* no special help */ 308 )) { 309 Main.main.menu.restart.actionPerformed(null); 310 } 311 } else if (task != null && !task.isCanceled()) { 293 312 JOptionPane.showMessageDialog( 294 313 Main.parent, -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r5723 r5857 113 113 new DeprecatedPlugin("epsg31287", tr("replaced by new {0} plugin", "proj4j")), 114 114 new DeprecatedPlugin("licensechange", tr("no longer required")), 115 new DeprecatedPlugin("restart", IN_CORE) 115 116 }); 116 117 }
Note:
See TracChangeset
for help on using the changeset viewer.