Ignore:
Timestamp:
2017-08-25T10:18:53+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.main.menu. Replacement: gui.MainApplication.getMenu()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpUtil.java

    r11397 r12643  
    1313import org.openstreetmap.josm.Main;
    1414import org.openstreetmap.josm.actions.HelpAction;
     15import org.openstreetmap.josm.gui.MainApplication;
    1516import org.openstreetmap.josm.tools.LanguageInfo;
    1617import org.openstreetmap.josm.tools.LanguageInfo.LocaleType;
     
    187188
    188189    /**
    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}.
    191191     *
    192192     * @return instance of help action
    193193     */
    194194    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;
    197197        }
    198198        return HelpAction.createWithoutShortcut();
     
    202202     * Makes a component aware of context sensitive help.
    203203     *
    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.
    207206     *
    208207     * @param component the component
Note: See TracChangeset for help on using the changeset viewer.