Changeset 8801 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-09-29T18:32:27+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r8510 r8801 58 58 */ 59 59 public SessionSaveAsAction() { 60 super(tr("Save Session As..."), "s ave_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); 61 61 putValue("help", ht("/Action/SessionSaveAs")); 62 62 } -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r8792 r8801 97 97 import org.openstreetmap.josm.actions.SelectAllAction; 98 98 import org.openstreetmap.josm.actions.SelectNonBranchingWaySequencesAction; 99 import org.openstreetmap.josm.actions.SessionLoadAction;100 99 import org.openstreetmap.josm.actions.SessionSaveAsAction; 101 100 import org.openstreetmap.josm.actions.ShowStatusReportAction; … … 134 133 import org.openstreetmap.josm.gui.tagging.TaggingPresetSearchPrimitiveDialog; 135 134 import org.openstreetmap.josm.gui.widgets.DisableShortcutsOnFocusGainedTextField; 136 import org.openstreetmap.josm.tools.ImageProvider;137 135 import org.openstreetmap.josm.tools.Shortcut; 138 136 … … 162 160 /** File / Save As... **/ 163 161 public final SaveAsAction saveAs = SaveAsAction.getInstance(); 164 /** File / Session > Load Session **/165 public SessionLoadAction sessionLoad;166 162 /** File / Session > Save Session As... **/ 167 163 public SessionSaveAsAction sessionSaveAs; … … 331 327 public final JMenu fileMenu = addMenu("File", /* I18N: mnemonic: F */ trc("menu", "File"), KeyEvent.VK_F, 0, ht("/Menu/File")); 332 328 /** 333 * sessionMenu is a submenu of File menu containing all session actions334 */335 public final JMenu sessionMenu = new JMenu(tr("Session"));336 /**337 329 * editMenu contains editing actions 338 330 */ … … 665 657 add(fileMenu, save); 666 658 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());669 659 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)); 675 661 add(fileMenu, gpxExport, true); 676 662 fileMenu.addSeparator();
Note:
See TracChangeset
for help on using the changeset viewer.