Changeset 8801 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-09-29T18:32:27+02:00 (9 years ago)
Author:
simon04
Message:

fix #10432 - Session: get rid of submenu

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java

    r8510 r8801  
    5858     */
    5959    public SessionSaveAsAction() {
    60         super(tr("Save Session As..."), "save_as", tr("Save the current session to a new file."), null, true, "save_as-session", true);
     60        super(tr("Save Session As..."), "session", tr("Save the current session to a new file."), null, true, "save_as-session", true);
    6161        putValue("help", ht("/Action/SessionSaveAs"));
    6262    }
  • trunk/src/org/openstreetmap/josm/gui/MainMenu.java

    r8792 r8801  
    9797import org.openstreetmap.josm.actions.SelectAllAction;
    9898import org.openstreetmap.josm.actions.SelectNonBranchingWaySequencesAction;
    99 import org.openstreetmap.josm.actions.SessionLoadAction;
    10099import org.openstreetmap.josm.actions.SessionSaveAsAction;
    101100import org.openstreetmap.josm.actions.ShowStatusReportAction;
     
    134133import org.openstreetmap.josm.gui.tagging.TaggingPresetSearchPrimitiveDialog;
    135134import org.openstreetmap.josm.gui.widgets.DisableShortcutsOnFocusGainedTextField;
    136 import org.openstreetmap.josm.tools.ImageProvider;
    137135import org.openstreetmap.josm.tools.Shortcut;
    138136
     
    162160    /** File / Save As... **/
    163161    public final SaveAsAction saveAs = SaveAsAction.getInstance();
    164     /** File / Session > Load Session **/
    165     public SessionLoadAction sessionLoad;
    166162    /** File / Session > Save Session As... **/
    167163    public SessionSaveAsAction sessionSaveAs;
     
    331327    public final JMenu fileMenu = addMenu("File", /* I18N: mnemonic: F */ trc("menu", "File"), KeyEvent.VK_F, 0, ht("/Menu/File"));
    332328    /**
    333      * sessionMenu is a submenu of File menu containing all session actions
    334      */
    335     public final JMenu sessionMenu = new JMenu(tr("Session"));
    336     /**
    337329     * editMenu contains editing actions
    338330     */
     
    665657        add(fileMenu, save);
    666658        add(fileMenu, saveAs);
    667         sessionMenu.setToolTipText(tr("Save and load the current session (list of layers, etc.)"));
    668         sessionMenu.setIcon(new ImageProvider("session").setSize(ImageProvider.ImageSizes.MENU).get());
    669659        sessionSaveAs = new SessionSaveAsAction();
    670         sessionLoad = new SessionLoadAction();
    671         add(sessionMenu, sessionSaveAs);
    672         add(sessionMenu, sessionLoad);
    673         fileMenu.add(sessionMenu);
    674         ExpertToggleAction.addVisibilitySwitcher(sessionMenu);
     660        ExpertToggleAction.addVisibilitySwitcher(fileMenu.add(sessionSaveAs));
    675661        add(fileMenu, gpxExport, true);
    676662        fileMenu.addSeparator();
Note: See TracChangeset for help on using the changeset viewer.