Class MainMenu
- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- javax.swing.JComponent
- 
- javax.swing.JMenuBar
- 
- org.openstreetmap.josm.gui.MainMenu
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.io.Serializable,- javax.accessibility.Accessible,- javax.swing.MenuElement
 
 public class MainMenu extends javax.swing.JMenuBar This is the JOSM main menu bar. It is overwritten to initialize itself and provide all menu entries as member variables (sort of collect them).It also provides possibilities to attach new menu entries (used by plugins). - See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description (package private) static classMainMenu.EditLayerMenuEnablerstatic classMainMenu.WINDOW_MENU_GROUPThe possible item groups of the Windows menu.- 
Nested classes/interfaces inherited from class javax.swing.JMenuBarjavax.swing.JMenuBar.AccessibleJMenuBar
 - 
Nested classes/interfaces inherited from class javax.swing.JComponentjavax.swing.JComponent.AccessibleJComponent
 
- 
 - 
Field SummaryFields Modifier and Type Field Description AboutActionaboutHelp / AboutAddNodeActionaddNodeTools / Add Node...AlignInCircleActionalignInCircleTools / Align Nodes in CircleAlignInLineActionalignInLineTools / Align Nodes in LineJosmActionaudioBackAudio / BackJosmActionaudioFasterAudio / FasterJosmActionaudioFwdAudio / Forwardjavax.swing.JMenuaudioMenuaudioMenu contains all audio-related actions.JosmActionaudioNextAudio / Next markerJosmActionaudioPlayPauseAudio / Play/PauseJosmActionaudioPrevAudio / Previous MarkerJosmActionaudioSlowerAudio / Slowerjava.util.Map<AutoScaleAction.AutoScaleMode,AutoScaleAction>autoScaleActionsView / "Zoom to"...ChangesetManagerToggleActionchangesetManagerWindows / Changeset ManagerCloseChangesetActioncloseChangesetActionFile / Close open changesets...CombineWayActioncombineWayTools / Combine WayCopyActioncopyEdit / CopyJosmActioncopyCoordinatesEdit / Copy CoordinatesCopyUrlActioncopyUrlEdit / Copy URLsCreateCircleActioncreateCircleTools / Create CircleCreateMultipolygonActioncreateMultipolygonTools / Create multipolygonjavax.swing.JMenudataMenudataMenu contains plugin actions that are related to certain tagging schemes (addressing opening hours), importing external data and using external web APIsprivate static intdefaultMenuPosDeleteActiondeleteEdit / DeleteDeleteLayerActiondeleteLayerActionFile / Delete LayerDialogsToggleActiondialogsToggleActionToggle visibility of dialogs panelDistributeActiondistributeTools / Distribute NodesDownloadActiondownloadFile / Download from OSM...DownloadAlongWayActiondownloadAlongWayTools / Download along wayDownloadOsmInViewActiondownloadInViewFile / Download in current viewDownloadNotesInViewActiondownloadNotesInViewFile / Download notes in current viewDownloadPrimitiveActiondownloadPrimitiveFile / Download object...DownloadReferrersActiondownloadReferrersFile / Download parent ways/relations...DrawBoundariesOfDownloadedDataActiondrawBoundariesOfDownloadedDataActionView / Hatch area outside downloadDuplicateActionduplicateEdit / Duplicatejavax.swing.JMenueditMenueditMenu contains editing actionsExitActionexitFile / Exitjavax.swing.JMenufileMenufileMenu contains I/O actionsFollowLineActionfollowLineTools / Follow lineFullscreenToggleActionfullscreenToggleActionToggle the full-screen modejavax.swing.JMenugpsMenugpsMenu contains all plugin actions that are related to using GPS data, including opening, uploading and real-time trackingGpxExportActiongpxExportFile / Export to GPX...HelpActionhelpHelp / Helpjavax.swing.JMenuhelpMenuhelpMenu contains JOSM general actions (Help, About, etc.)HistoryInfoActionhistoryinfoView / HistoryHistoryInfoWebActionhistoryinfowebView / History (web)ImageryMenuimageryMenuimageryMenu contains all imagery-related actionsjavax.swing.JMenuimagerySubMenusubmenu in Imagery menu that contains plugin-managed additional imagery layersInfoActioninfoView / Advanced infoInfoWebActioninfowebView / Advanced info (web)InvertSelectionActioninvertSelectionSelection / Invert SelectionJoinAreasActionjoinAreasTools / Join overlapping AreasJoinNodeWayActionjoinNodeWayTools / Join Node to WayJumpToActionjumpToActView / Jump to positionstatic javax.swing.event.MenuListenermenuSeparatorHandlerthis menu listener hides unnecessary JSeparators in a menu list but does not remove them.MergeLayerActionmergeEdit / Merge layerMergeNodesActionmergeNodesTools / Merge NodesMergeSelectionActionmergeSelectedEdit / Merge selectionMirrorActionmirrorTools / Mirrorjavax.swing.JMenumodeMenumodeMenu contains map modesjavax.swing.JMenumoreToolsMenumoreToolsMenu contains geometry-related actions from all the pluginsJosmActionmoveDownActionMove the selection downJosmActionmoveLeftActionMove the selection leftMoveNodeActionmoveNodeTools / Move Node...JoinNodeWayActionmoveNodeOntoWayTools / Join Way to NodeJosmActionmoveRightActionMove the selection rightJosmActionmoveUpActionMove the selection upNewActionnewActionFile / New LayerSelectNonBranchingWaySequencesActionnonBranchingWaySequencesSelection / Non-branching way sequencesOpenFileActionopenFileFile / Open...OpenLocationActionopenLocationFile / Open Location...OrthogonalizeActionorthoTools / Orthogonalize ShapeOrthogonalizeAction.UndoorthoUndoOrthogonalize undo.PasteActionpasteEdit / Pasteprivate PasteAtSourcePositionActionpasteAtSourceEdit / Paste at sourcePasteTagsActionpasteTagsEdit / Paste TagsPreferencesActionpreferencesEdit / PreferencesTaggingPresetSearchActionpresetSearchActionSearch tagging presetsTaggingPresetSearchPrimitiveDialog.ActionpresetSearchPrimitiveActionSearch objects by their tagging presetjavax.swing.JMenupresetsMenupresetsMenu contains presets actions (search, presets tree)JosmActionpurgeEdit / Purge...RecentlyOpenedFilesMenurecentlyOpenedFile / Open Recent >RedoActionredoEdit / RedoReorderImageryLayersActionreorderImageryLayersActionReorder imagery layersReportBugActionreportbugHelp / Report bugRestartActionrestartFile / RestartReverseWayActionreverseWayTools / Reverse WaysSaveActionsaveFile / SaveSaveAsActionsaveAsFile / Save As...SearchActionsearchEdit / Search...SearchNotesDownloadActionsearchNotesFile / Search Notes...SelectAllActionselectAllSelection / Select Alljavax.swing.JMenuselectionMenuselectionMenu contains all actions related to selecting different objectsSessionSaveActionsessionSaveFile / Session > Save SessionSessionSaveAsActionsessionSaveAsFile / Session > Save Session As...SelectSharedChildObjectsActionsharedChildObjectsSelection / Shared Child ObjectsSimplifyWayActionsimplifyWayTools / Simplify WaySplitWayActionsplitWayTools / Split WayShowStatusReportActionstatusreportHelp / Show Status ReportTiledRenderToggleActiontiledRenderToggleActionView / Tiled Renderingjavax.swing.JMenutoolsMenutoolsMenu contains different geometry manipulation actions from JOSM core (most used) The plugins should use other menusUndoActionundoEdit / Undo...UnGlueActionunglueNodesTools / Unglue WaysUnJoinNodeWayActionunJoinNodeWayTools / Disconnect Node from WayUnselectAllActionunselectAllSelection / Unselect AllJosmActionupdateFile / Update dataJosmActionupdateModifiedFile / Update modifiedCreateMultipolygonActionupdateMultipolygonTools / Update multipolygonJosmActionupdateSelectionFile / Update selectionJosmActionuploadFile / Upload dataJosmActionuploadSelectionFile / Upload selectionjavax.swing.JMenuviewMenuviewMenu contains display actions (zoom, map styles, etc.)WindowMenuwindowMenuthe window menu is split into several groups.WireframeToggleActionwireFrameToggleActionView / Wireframe View- 
Fields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
- 
 - 
Constructor SummaryConstructors Constructor Description MainMenu()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.JMenuItemadd(javax.swing.JMenu menu, JosmAction action)Add a JosmAction at the end of a menu.static javax.swing.JMenuItemadd(javax.swing.JMenu menu, JosmAction action, boolean isExpert)Add a JosmAction at the end of a menu.static javax.swing.JMenuItemadd(javax.swing.JMenu menu, JosmAction action, boolean isExpert, java.lang.Integer index)Add a JosmAction at the end of a menu.static <E extends java.lang.Enum<E>>
 javax.swing.JMenuItemadd(javax.swing.JMenu menu, JosmAction action, java.lang.Enum<E> group)Add a JosmAction to a menu.static javax.swing.JMenuItemaddAfter(javax.swing.JMenu menu, JosmAction actionToBeInserted, boolean isExpert, JosmAction existingMenuEntryAction)Add the JosmActionactionToBeInserteddirectly belowexistingMenuEntryAction.javax.swing.JMenuaddMenu(java.lang.String name, java.lang.String translatedName, int mnemonicKey, int position, java.lang.String relativeHelpTopic)Creates a menu and adds it on the given position to the main menu.<T extends javax.swing.JMenu>
 TaddMenu(T menu, java.lang.String name, int mnemonicKey, int position, java.lang.String relativeHelpTopic)Adds the given menu on the given position to the main menu.static <E extends java.lang.Enum<E>>
 javax.swing.JCheckBoxMenuItemaddWithCheckbox(javax.swing.JMenu menu, JosmAction action, int i, boolean isEntryExpert)Add a JosmAction to a menu and automatically prints accelerator if available.static <E extends java.lang.Enum<E>>
 javax.swing.JCheckBoxMenuItemaddWithCheckbox(javax.swing.JMenu menu, JosmAction action, java.lang.Enum<E> group)Add a JosmAction to a menu and automatically prints accelerator if available.static <E extends java.lang.Enum<E>>
 javax.swing.JCheckBoxMenuItemaddWithCheckbox(javax.swing.JMenu menu, JosmAction action, java.lang.Enum<E> group, boolean isEntryExpert, boolean isGroupSeparatorExpert)Add a JosmAction to a menu and automatically prints accelerator if available.java.util.Optional<javax.swing.JCheckBoxMenuItem>findMapModeMenuItem(MapMode mode)Returns theJCheckBoxMenuItemfor the givenMapMode.java.util.List<javax.swing.JMenuItem>findMenuItems(java.lang.String textToFind, boolean skipPresets)Search main menu for items withtextToFindin title.private static voidfindMenuItems(javax.swing.JMenu menu, java.lang.String textToFind, java.util.List<javax.swing.JMenuItem> result)Recursive walker for menu items.intgetDefaultMenuPos()Returns the default position of new top-level menus.private static intgetInsertionIndexForGroup(javax.swing.JMenu menu, int group, boolean isGroupSeparatorExpert)Finds the correct insertion index for a given group and adds separators if necessaryvoidinitialize()Initialize the main menu.protected voidshowAudioMenu(boolean showMenu)- 
Methods inherited from class javax.swing.JMenuBaradd, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI
 - 
Methods inherited from class javax.swing.JComponentaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 - 
Methods inherited from class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 - 
Methods inherited from class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
- 
 
- 
- 
- 
Field Detail- 
openFilepublic final OpenFileAction openFile File / Open...
 - 
recentlyOpenedpublic final RecentlyOpenedFilesMenu recentlyOpened File / Open Recent >
 - 
openLocationpublic final OpenLocationAction openLocation File / Open Location...
 - 
deleteLayerActionpublic final DeleteLayerAction deleteLayerAction File / Delete Layer
 - 
savepublic final SaveAction save File / Save
 - 
saveAspublic final SaveAsAction saveAs File / Save As...
 - 
sessionSavepublic final SessionSaveAction sessionSave File / Session > Save Session
 - 
sessionSaveAspublic final SessionSaveAsAction sessionSaveAs File / Session > Save Session As...
 - 
gpxExportpublic final GpxExportAction gpxExport File / Export to GPX...
 - 
downloadpublic final DownloadAction download File / Download from OSM...
 - 
downloadInViewpublic final DownloadOsmInViewAction downloadInView File / Download in current view
 - 
downloadPrimitivepublic final DownloadPrimitiveAction downloadPrimitive File / Download object...
 - 
downloadNotesInViewpublic final DownloadNotesInViewAction downloadNotesInView File / Download notes in current view
 - 
searchNotespublic final SearchNotesDownloadAction searchNotes File / Search Notes...
 - 
downloadReferrerspublic final DownloadReferrersAction downloadReferrers File / Download parent ways/relations...
 - 
closeChangesetActionpublic final CloseChangesetAction closeChangesetAction File / Close open changesets...
 - 
updatepublic final JosmAction update File / Update data
 - 
updateSelectionpublic final JosmAction updateSelection File / Update selection
 - 
updateModifiedpublic final JosmAction updateModified File / Update modified
 - 
uploadpublic final JosmAction upload File / Upload data
 - 
uploadSelectionpublic final JosmAction uploadSelection File / Upload selection
 - 
restartpublic final RestartAction restart File / Restart
 - 
exitpublic final ExitAction exit File / Exit
 - 
undopublic final UndoAction undo Edit / Undo...
 - 
redopublic final RedoAction redo Edit / Redo
 - 
copypublic final CopyAction copy Edit / Copy
 - 
copyUrlpublic final CopyUrlAction copyUrl Edit / Copy URLs
 - 
copyCoordinatespublic final JosmAction copyCoordinates Edit / Copy Coordinates
 - 
pastepublic final PasteAction paste Edit / Paste
 - 
pasteAtSourceprivate final PasteAtSourcePositionAction pasteAtSource Edit / Paste at source
 - 
pasteTagspublic final PasteTagsAction pasteTags Edit / Paste Tags
 - 
duplicatepublic final DuplicateAction duplicate Edit / Duplicate
 - 
deletepublic final DeleteAction delete Edit / Delete
 - 
purgepublic final JosmAction purge Edit / Purge...
 - 
mergepublic final MergeLayerAction merge Edit / Merge layer
 - 
mergeSelectedpublic final MergeSelectionAction mergeSelected Edit / Merge selection
 - 
searchpublic final SearchAction search Edit / Search...
 - 
preferencespublic final PreferencesAction preferences Edit / Preferences
 - 
wireFrameToggleActionpublic final WireframeToggleAction wireFrameToggleAction View / Wireframe View
 - 
tiledRenderToggleActionpublic final TiledRenderToggleAction tiledRenderToggleAction View / Tiled Rendering
 - 
drawBoundariesOfDownloadedDataActionpublic final DrawBoundariesOfDownloadedDataAction drawBoundariesOfDownloadedDataAction View / Hatch area outside download
 - 
infopublic final InfoAction info View / Advanced info
 - 
infowebpublic final InfoWebAction infoweb View / Advanced info (web)
 - 
historyinfopublic final HistoryInfoAction historyinfo View / History
 - 
historyinfowebpublic final HistoryInfoWebAction historyinfoweb View / History (web)
 - 
autoScaleActionspublic final java.util.Map<AutoScaleAction.AutoScaleMode,AutoScaleAction> autoScaleActions View / "Zoom to"... actions
 - 
jumpToActpublic final JumpToAction jumpToAct View / Jump to position
 - 
splitWaypublic final SplitWayAction splitWay Tools / Split Way
 - 
combineWaypublic final CombineWayAction combineWay Tools / Combine Way
 - 
reverseWaypublic final ReverseWayAction reverseWay Tools / Reverse Ways
 - 
simplifyWaypublic final SimplifyWayAction simplifyWay Tools / Simplify Way
 - 
alignInCirclepublic final AlignInCircleAction alignInCircle Tools / Align Nodes in Circle
 - 
alignInLinepublic final AlignInLineAction alignInLine Tools / Align Nodes in Line
 - 
distributepublic final DistributeAction distribute Tools / Distribute Nodes
 - 
orthopublic final OrthogonalizeAction ortho Tools / Orthogonalize Shape
 - 
orthoUndopublic final OrthogonalizeAction.Undo orthoUndo Orthogonalize undo. Action is not shown in the menu. Only triggered by shortcut
 - 
mirrorpublic final MirrorAction mirror Tools / Mirror
 - 
followLinepublic final FollowLineAction followLine Tools / Follow line
 - 
addNodepublic final AddNodeAction addNode Tools / Add Node...
 - 
moveNodepublic final MoveNodeAction moveNode Tools / Move Node...
 - 
createCirclepublic final CreateCircleAction createCircle Tools / Create Circle
 - 
mergeNodespublic final MergeNodesAction mergeNodes Tools / Merge Nodes
 - 
joinNodeWaypublic final JoinNodeWayAction joinNodeWay Tools / Join Node to Way
 - 
moveNodeOntoWaypublic final JoinNodeWayAction moveNodeOntoWay Tools / Join Way to Node
 - 
unJoinNodeWaypublic final UnJoinNodeWayAction unJoinNodeWay Tools / Disconnect Node from Way
 - 
unglueNodespublic final UnGlueAction unglueNodes Tools / Unglue Ways
 - 
joinAreaspublic final JoinAreasAction joinAreas Tools / Join overlapping Areas
 - 
createMultipolygonpublic final CreateMultipolygonAction createMultipolygon Tools / Create multipolygon
 - 
updateMultipolygonpublic final CreateMultipolygonAction updateMultipolygon Tools / Update multipolygon
 - 
downloadAlongWaypublic final DownloadAlongWayAction downloadAlongWay Tools / Download along way
 - 
selectAllpublic final SelectAllAction selectAll Selection / Select All
 - 
unselectAllpublic final UnselectAllAction unselectAll Selection / Unselect All
 - 
invertSelectionpublic final InvertSelectionAction invertSelection Selection / Invert Selection
 - 
nonBranchingWaySequencespublic final SelectNonBranchingWaySequencesAction nonBranchingWaySequences Selection / Non-branching way sequences
 - 
sharedChildObjectspublic final SelectSharedChildObjectsAction sharedChildObjects Selection / Shared Child Objects
 - 
audioPlayPausepublic final JosmAction audioPlayPause Audio / Play/Pause
 - 
audioNextpublic final JosmAction audioNext Audio / Next marker
 - 
audioPrevpublic final JosmAction audioPrev Audio / Previous Marker
 - 
audioFwdpublic final JosmAction audioFwd Audio / Forward
 - 
audioBackpublic final JosmAction audioBack Audio / Back
 - 
audioFasterpublic final JosmAction audioFaster Audio / Faster
 - 
audioSlowerpublic final JosmAction audioSlower Audio / Slower
 - 
changesetManagerpublic final ChangesetManagerToggleAction changesetManager Windows / Changeset Manager
 - 
helppublic final HelpAction help Help / Help
 - 
aboutpublic final AboutAction about Help / About
 - 
statusreportpublic final ShowStatusReportAction statusreport Help / Show Status Report
 - 
reportbugpublic final ReportBugAction reportbug Help / Report bug
 - 
fileMenupublic final javax.swing.JMenu fileMenu fileMenu contains I/O actions
 - 
editMenupublic final javax.swing.JMenu editMenu editMenu contains editing actions
 - 
viewMenupublic final javax.swing.JMenu viewMenu viewMenu contains display actions (zoom, map styles, etc.)
 - 
modeMenupublic final javax.swing.JMenu modeMenu modeMenu contains map modes
 - 
toolsMenupublic final javax.swing.JMenu toolsMenu toolsMenu contains different geometry manipulation actions from JOSM core (most used) The plugins should use other menus
 - 
moreToolsMenupublic final javax.swing.JMenu moreToolsMenu moreToolsMenu contains geometry-related actions from all the plugins- Since:
- 6082 (moved from Utilsplugin2)
 
 - 
dataMenupublic final javax.swing.JMenu dataMenu dataMenu contains plugin actions that are related to certain tagging schemes (addressing opening hours), importing external data and using external web APIs- Since:
- 6082
 
 - 
selectionMenupublic final javax.swing.JMenu selectionMenu selectionMenu contains all actions related to selecting different objects- Since:
- 6082 (moved from Utilsplugin2)
 
 - 
presetsMenupublic final javax.swing.JMenu presetsMenu presetsMenu contains presets actions (search, presets tree)
 - 
imagerySubMenupublic final javax.swing.JMenu imagerySubMenu submenu in Imagery menu that contains plugin-managed additional imagery layers- Since:
- 6097
 
 - 
imageryMenupublic final ImageryMenu imageryMenu imageryMenu contains all imagery-related actions
 - 
gpsMenupublic final javax.swing.JMenu gpsMenu gpsMenu contains all plugin actions that are related to using GPS data, including opening, uploading and real-time tracking- Since:
- 6082
 
 - 
windowMenupublic final WindowMenu windowMenu the window menu is split into several groups. The first is for windows that can be opened from this menu any time, e.g. the changeset editor. The second group is for toggle dialogs and the third group is for currently open windows that cannot be toggled, e.g. relation editors. It's recommended to use WINDOW_MENU_GROUP to determine the group integer.
 - 
audioMenupublic javax.swing.JMenu audioMenu audioMenu contains all audio-related actions. Be careful, this menu is not guaranteed to be displayed at all
 - 
helpMenupublic final javax.swing.JMenu helpMenu helpMenu contains JOSM general actions (Help, About, etc.)
 - 
defaultMenuPosprivate static final int defaultMenuPos - See Also:
- Constant Field Values
 
 - 
moveUpActionpublic final JosmAction moveUpAction Move the selection up
 - 
moveDownActionpublic final JosmAction moveDownAction Move the selection down
 - 
moveLeftActionpublic final JosmAction moveLeftAction Move the selection left
 - 
moveRightActionpublic final JosmAction moveRightAction Move the selection right
 - 
reorderImageryLayersActionpublic final ReorderImageryLayersAction reorderImageryLayersAction Reorder imagery layers
 - 
presetSearchActionpublic final TaggingPresetSearchAction presetSearchAction Search tagging presets
 - 
presetSearchPrimitiveActionpublic final TaggingPresetSearchPrimitiveDialog.Action presetSearchPrimitiveAction Search objects by their tagging preset
 - 
dialogsToggleActionpublic final DialogsToggleAction dialogsToggleAction Toggle visibility of dialogs panel
 - 
fullscreenToggleActionpublic FullscreenToggleAction fullscreenToggleAction Toggle the full-screen mode
 - 
menuSeparatorHandlerpublic static final javax.swing.event.MenuListener menuSeparatorHandler this menu listener hides unnecessary JSeparators in a menu list but does not remove them. If at a later time the separators are required, they will be made visible again. Intended usage is make menus not look broken if separators are used to group the menu and some of these groups are empty.
 
- 
 - 
Constructor Detail- 
MainMenupublic MainMenu() 
 
- 
 - 
Method Detail- 
getDefaultMenuPospublic int getDefaultMenuPos() Returns the default position of new top-level menus.- Returns:
- the default position of new top-level menus
- Since:
- 6088
 
 - 
addpublic static javax.swing.JMenuItem add(javax.swing.JMenu menu, JosmAction action) Add a JosmAction at the end of a menu.This method handles all the shortcut handling. It also makes sure that actions that are handled by the OS are not duplicated on the menu. - Parameters:
- menu- the menu to add the action to
- action- the action that should get a menu item
- Returns:
- the created menu item
 
 - 
addpublic static javax.swing.JMenuItem add(javax.swing.JMenu menu, JosmAction action, boolean isExpert) Add a JosmAction at the end of a menu.This method handles all the shortcut handling. It also makes sure that actions that are handled by the OS are not duplicated on the menu. - Parameters:
- menu- the menu to add the action to
- action- the action that should get a menu item
- isExpert- whether the entry should only be visible if the expert mode is activated
- Returns:
- the created menu item
 
 - 
addpublic static javax.swing.JMenuItem add(javax.swing.JMenu menu, JosmAction action, boolean isExpert, java.lang.Integer index) Add a JosmAction at the end of a menu.This method handles all the shortcut handling. It also makes sure that actions that are handled by the OS are not duplicated on the menu. - Parameters:
- menu- the menu to add the action to
- action- the action that should get a menu item
- isExpert- whether the entry should only be visible if the expert mode is activated
- index- an integer specifying the position at which to add the action
- Returns:
- the created menu item
 
 - 
addAfterpublic static javax.swing.JMenuItem addAfter(javax.swing.JMenu menu, JosmAction actionToBeInserted, boolean isExpert, JosmAction existingMenuEntryAction) Add the JosmActionactionToBeInserteddirectly belowexistingMenuEntryAction.This method handles all the shortcut handling. It also makes sure that actions that are handled by the OS are not duplicated on the menu. - Parameters:
- menu- the menu to add the action to
- actionToBeInserted- the action that should get a menu item directly below- existingMenuEntryAction
- isExpert- whether the entry should only be visible if the expert mode is activated
- existingMenuEntryAction- an action already added to the menu- menu, the action- actionToBeInsertedis added directly below
- Returns:
- the created menu item
 
 - 
addpublic static <E extends java.lang.Enum<E>> javax.swing.JMenuItem add(javax.swing.JMenu menu, JosmAction action, java.lang.Enum<E> group) Add a JosmAction to a menu.This method handles all the shortcut handling. It also makes sure that actions that are handled by the OS are not duplicated on the menu. - Type Parameters:
- E- group item enum type
- Parameters:
- menu- to add the action to
- action- the action that should get a menu item
- group- the item should be added to. Groups are split by a separator. null will add the item to the end.
- Returns:
- The created menu item
 
 - 
addWithCheckboxpublic static <E extends java.lang.Enum<E>> javax.swing.JCheckBoxMenuItem addWithCheckbox(javax.swing.JMenu menu, JosmAction action, java.lang.Enum<E> group) Add a JosmAction to a menu and automatically prints accelerator if available. Also adds a checkbox that may be toggled.- Type Parameters:
- E- group enum item type
- Parameters:
- menu- to add the action to
- action- the action that should get a menu item
- group- the item should be added to. Groups are split by a separator. Use one of the enums that are defined for some of the menus to tell in which group the item should go.
- Returns:
- The created menu item
 
 - 
addWithCheckboxpublic static <E extends java.lang.Enum<E>> javax.swing.JCheckBoxMenuItem addWithCheckbox(javax.swing.JMenu menu, JosmAction action, java.lang.Enum<E> group, boolean isEntryExpert, boolean isGroupSeparatorExpert) Add a JosmAction to a menu and automatically prints accelerator if available. Also adds a checkbox that may be toggled.- Type Parameters:
- E- group enum item type
- Parameters:
- menu- to add the action to
- action- the action that should get a menu item
- group- the item should be added to. Groups are split by a separator. Use one of the enums that are defined for some of the menus to tell in which group the item should go. null will add the item to the end.
- isEntryExpert- whether the entry should only be visible if the expert mode is activated
- isGroupSeparatorExpert- whether the group separator should only be visible if the expert mode is activated
- Returns:
- The created menu item
- Since:
- 15633
 
 - 
addWithCheckboxpublic static <E extends java.lang.Enum<E>> javax.swing.JCheckBoxMenuItem addWithCheckbox(javax.swing.JMenu menu, JosmAction action, int i, boolean isEntryExpert) Add a JosmAction to a menu and automatically prints accelerator if available. Also adds a checkbox that may be toggled.- Type Parameters:
- E- group enum item type
- Parameters:
- menu- to add the action to
- action- the action that should get a menu item
- i- the item position in the menu. -1 will add the item to the end.
- isEntryExpert- whether the entry should only be visible if the expert mode is activated
- Returns:
- The created menu item
- Since:
- 15655
 
 - 
getInsertionIndexForGroupprivate static int getInsertionIndexForGroup(javax.swing.JMenu menu, int group, boolean isGroupSeparatorExpert) Finds the correct insertion index for a given group and adds separators if necessary- Parameters:
- menu- menu
- group- group number
- isGroupSeparatorExpert- whether the added separators should only be visible if the expert mode is activated
- Returns:
- correct insertion index
 
 - 
addMenupublic javax.swing.JMenu addMenu(java.lang.String name, java.lang.String translatedName, int mnemonicKey, int position, java.lang.String relativeHelpTopic) Creates a menu and adds it on the given position to the main menu.- Parameters:
- name- the untranslated name (used as identifier for shortcut registration)
- translatedName- the translated menu name (use- I18n.trc("menu", name)to allow better internationalization
- mnemonicKey- the mnemonic key to register
- position- the position in the main menu
- relativeHelpTopic- the relative help topic
- Returns:
- the newly created menu
 
 - 
addMenupublic <T extends javax.swing.JMenu> T addMenu(T menu, java.lang.String name, int mnemonicKey, int position, java.lang.String relativeHelpTopic) Adds the given menu on the given position to the main menu.- Type Parameters:
- T- menu type
- Parameters:
- menu- the menu to add
- name- the untranslated name (used as identifier for shortcut registration)
- mnemonicKey- the mnemonic key to register
- position- the position in the main menu
- relativeHelpTopic- the relative help topic
- Returns:
- the given menu}
 
 - 
initializepublic void initialize() Initialize the main menu.- Since:
- 10340
 
 - 
findMenuItemspublic java.util.List<javax.swing.JMenuItem> findMenuItems(java.lang.String textToFind, boolean skipPresets) Search main menu for items withtextToFindin title.- Parameters:
- textToFind- The text to find
- skipPresets- whether to skip the- presetsMenuin the search
- Returns:
- not null list of found menu items.
 
 - 
findMapModeMenuItempublic java.util.Optional<javax.swing.JCheckBoxMenuItem> findMapModeMenuItem(MapMode mode) Returns theJCheckBoxMenuItemfor the givenMapMode.- Parameters:
- mode- map mode
- Returns:
- the JCheckBoxMenuItemfor the givenMapMode
- Since:
- 15438
 
 - 
findMenuItemsprivate static void findMenuItems(javax.swing.JMenu menu, java.lang.String textToFind, java.util.List<javax.swing.JMenuItem> result) Recursive walker for menu items. Only menu items with action are selected. If menu item containstextToFindit's appended to result.- Parameters:
- menu- menu in which search will be performed
- textToFind- The text to find
- result- resulting list of menu items
 
 - 
showAudioMenuprotected void showAudioMenu(boolean showMenu) 
 
- 
 
-