Changeset 12643 in josm for trunk/src/org/openstreetmap/josm/gui/help/HelpUtil.java
- Timestamp:
- 2017-08-25T10:18:53+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpUtil.java
r11397 r12643 13 13 import org.openstreetmap.josm.Main; 14 14 import org.openstreetmap.josm.actions.HelpAction; 15 import org.openstreetmap.josm.gui.MainApplication; 15 16 import org.openstreetmap.josm.tools.LanguageInfo; 16 17 import org.openstreetmap.josm.tools.LanguageInfo.LocaleType; … … 187 188 188 189 /** 189 * Replies the global help action, if available. Otherwise, creates an instance 190 * of {@link HelpAction}. 190 * Replies the global help action, if available. Otherwise, creates an instance of {@link HelpAction}. 191 191 * 192 192 * @return instance of help action 193 193 */ 194 194 private static Action getHelpAction() { 195 if (Main .main != null && Main.main.menu!= null) {196 return Main .main.menu.help;195 if (MainApplication.getMenu() != null) { 196 return MainApplication.getMenu().help; 197 197 } 198 198 return HelpAction.createWithoutShortcut(); … … 202 202 * Makes a component aware of context sensitive help. 203 203 * 204 * A relative help topic doesn't start with /Help and doesn't include a locale 205 * code. Example: /Dialog/RelationEditor is a relative help topic, /De:Help/Dialog/RelationEditor 206 * is not. 204 * A relative help topic doesn't start with /Help and doesn't include a locale code. 205 * Example: /Dialog/RelationEditor is a relative help topic, /De:Help/Dialog/RelationEditor is not. 207 206 * 208 207 * @param component the component
Note:
See TracChangeset
for help on using the changeset viewer.