- Timestamp:
- 2014-12-20T21:12:00+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r7714 r7862 120 120 * The MapView this status belongs to. 121 121 */ 122 final MapView mv;123 final Collector collector;122 private final MapView mv; 123 private final Collector collector; 124 124 125 125 public class BackgroundProgressMonitor implements ProgressMonitorDialog { … … 902 902 @Override 903 903 public String helpTopic() { 904 return ht("/Status line");904 return ht("/StatusBar"); 905 905 } 906 906 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r7668 r7862 85 85 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 86 86 import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor; 87 import org.openstreetmap.josm.gui.help.HelpUtil; 87 88 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 88 89 import org.openstreetmap.josm.gui.tagging.PresetHandler; … … 234 235 Shortcut.registerShortcut("subwindow:properties", tr("Toggle: {0}", tr("Tags/Memberships")), KeyEvent.VK_P, 235 236 Shortcut.ALT_SHIFT), 150, true); 237 238 HelpUtil.setHelpContext(this, HelpUtil.ht("/Dialog/TagsMembership")); 236 239 237 240 setupTagsMenu(); -
trunk/src/org/openstreetmap/josm/gui/help/HelpUtil.java
r7509 r7862 152 152 /** 153 153 * Replies the context specific help topic configured for <code>context</code>. 154 * @param context The UI object used as context 154 155 * 155 156 * @return the help topic. null, if no context specific help topic is found … … 201 202 * is not. 202 203 * 203 * @param component the component the component204 * @param component the component 204 205 * @param relativeHelpTopic the help topic. Set to the default help topic if null. 205 206 */ 206 207 public static void setHelpContext(JComponent component, String relativeHelpTopic) { 207 if (relativeHelpTopic == null) {208 relativeHelpTopic = "/";209 }210 208 component.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("F1"), "help"); 211 209 component.getActionMap().put("help", getHelpAction()); 212 component.putClientProperty("help", relativeHelpTopic );210 component.putClientProperty("help", relativeHelpTopic == null ? "/" : relativeHelpTopic); 213 211 } 214 212
Note:
See TracChangeset
for help on using the changeset viewer.