Changeset 2274 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-10-11T21:15:33+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 3 edited
-
ExitAction.java (modified) (1 diff)
-
HelpAction.java (modified) (6 diffs)
-
HistoryInfoAction.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r2025 r2274 27 27 if (Main.saveUnsavedModifications()) { 28 28 Main.saveGuiGeometry(); 29 Main.cleanupBeforeExit(); 29 30 System.exit(0); 30 31 } -
trunk/src/org/openstreetmap/josm/actions/HelpAction.java
r2252 r2274 16 16 17 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.gui.help.HelpBrowser; 18 import org.openstreetmap.josm.gui.help.HelpBrowserProxy; 19 19 import org.openstreetmap.josm.gui.help.Helpful; 20 20 import org.openstreetmap.josm.tools.ImageProvider; … … 27 27 public class HelpAction extends AbstractAction { 28 28 29 private HelpBrowser helpBrowser;30 29 31 30 private String pathhelp = Main.pref.get("help.pathhelp", "Help/"); … … 34 33 public HelpAction() { 35 34 super(tr("Help"), ImageProvider.get("help")); 36 this.helpBrowser = new HelpBrowser();37 35 } 38 36 … … 43 41 Component c = SwingUtilities.getRoot((Component)e.getSource()); 44 42 Point mouse = c.getMousePosition(); 45 c = SwingUtilities.getDeepestComponentAt(c, mouse.x, mouse.y); 46 topic = contextSensitiveHelp(c); 43 if (mouse != null) { 44 c = SwingUtilities.getDeepestComponentAt(c, mouse.x, mouse.y); 45 topic = contextSensitiveHelp(c); 46 } else { 47 topic = null; 48 } 47 49 } else { 48 50 Point mouse = Main.parent.getMousePosition(); … … 50 52 } 51 53 if (topic == null) { 52 helpBrowser.setVisible(false); 53 helpBrowser.setUrlForHelpTopic("Help"); 54 HelpBrowserProxy.getInstance().setUrlForHelpTopic("Help"); 54 55 } else { 55 56 help(topic); 56 57 } 57 58 } else { 58 helpBrowser.setVisible(false); 59 helpBrowser.setUrlForHelpTopic("Help"); 59 HelpBrowserProxy.getInstance().setUrlForHelpTopic("Help"); 60 60 } 61 61 } … … 95 95 */ 96 96 public void help(String topic) { 97 helpBrowser.setVisible(false); 98 helpBrowser.setUrlForHelpTopic(pathhelp + topic); 97 HelpBrowserProxy.getInstance().setUrlForHelpTopic(pathhelp + topic); 99 98 } 100 99 } -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r2034 r2274 13 13 14 14 public HistoryInfoAction() { 15 super(tr(" History of Element"), "about",15 super(tr("Object history"), "about", 16 16 tr("Display history information about OSM ways, nodes, or relations."), 17 17 Shortcut.registerShortcut("core:history", 18 tr(" History of Element"), KeyEvent.VK_H, Shortcut.GROUP_HOTKEY), true);18 tr("Object history"), KeyEvent.VK_H, Shortcut.GROUP_HOTKEY), true); 19 19 } 20 20
Note:
See TracChangeset
for help on using the changeset viewer.
