Changeset 14397 in josm
- Timestamp:
- 2018-11-01T22:57:33+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 81 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r14367 r14397 71 71 super(info.getMenuName(), /* ICON */"imagery_menu", tr("Add imagery layer {0}", info.getName()), null, 72 72 true, ToolbarPreferences.IMAGERY_PREFIX + info.getToolbarName(), false); 73 putValue("help",ht("/Preferences/Imagery"));73 setHelpId(ht("/Preferences/Imagery")); 74 74 setTooltip(info.getToolTipText().replaceAll("</?html>", "")); 75 75 this.info = info; -
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r14153 r14397 35 35 Shortcut.registerShortcut("addnode", tr("Edit: {0}", tr("Add Node...")), 36 36 KeyEvent.VK_D, Shortcut.SHIFT), true); 37 putValue("help",ht("/Action/AddNode"));37 setHelpId(ht("/Action/AddNode")); 38 38 } 39 39 -
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r14134 r14397 50 50 Shortcut.registerShortcut("tools:aligncircle", tr("Tool: {0}", tr("Align Nodes in Circle")), 51 51 KeyEvent.VK_O, Shortcut.DIRECT), true); 52 putValue("help",ht("/Action/AlignInCircle"));52 setHelpId(ht("/Action/AlignInCircle")); 53 53 } 54 54 -
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r14134 r14397 55 55 super(tr("Align Nodes in Line"), "alignline", tr("Move the selected nodes in to a line."), 56 56 Shortcut.registerShortcut("tools:alignline", tr("Tool: {0}", tr("Align Nodes in Line")), KeyEvent.VK_L, Shortcut.DIRECT), true); 57 putValue("help",ht("/Action/AlignInLine"));57 setHelpId(ht("/Action/AlignInLine")); 58 58 } 59 59 -
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r14221 r14397 246 246 String label = mode.getEnglishLabel(); 247 247 String modeHelp = Character.toUpperCase(label.charAt(0)) + label.substring(1); 248 putValue("help","Action/AutoScale/" + modeHelp);248 setHelpId("Action/AutoScale/" + modeHelp); 249 249 this.mode = mode; 250 250 switch (mode) { 251 251 case DATA: 252 putValue("help",ht("/Action/ZoomToData"));252 setHelpId(ht("/Action/ZoomToData")); 253 253 break; 254 254 case LAYER: 255 putValue("help",ht("/Action/ZoomToLayer"));255 setHelpId(ht("/Action/ZoomToLayer")); 256 256 break; 257 257 case SELECTION: 258 putValue("help",ht("/Action/ZoomToSelection"));258 setHelpId(ht("/Action/ZoomToSelection")); 259 259 break; 260 260 case CONFLICT: 261 putValue("help",ht("/Action/ZoomToConflict"));261 setHelpId(ht("/Action/ZoomToConflict")); 262 262 break; 263 263 case PROBLEM: 264 putValue("help",ht("/Action/ZoomToProblem"));264 setHelpId(ht("/Action/ZoomToProblem")); 265 265 break; 266 266 case DOWNLOAD: 267 putValue("help",ht("/Action/ZoomToDownload"));267 setHelpId(ht("/Action/ZoomToDownload")); 268 268 break; 269 269 case PREVIOUS: 270 putValue("help",ht("/Action/ZoomToPrevious"));270 setHelpId(ht("/Action/ZoomToPrevious")); 271 271 break; 272 272 case NEXT: 273 putValue("help",ht("/Action/ZoomToNext"));273 setHelpId(ht("/Action/ZoomToNext")); 274 274 break; 275 275 default: -
trunk/src/org/openstreetmap/josm/actions/ChangesetManagerToggleAction.java
r9067 r14397 35 35 notifySelectedState(); 36 36 changesetCacheManagerClosedHandler = new ChangesetCacheManagerClosedHandler(); 37 putValue("help",ht("/Dialog/ChangesetManager"));37 setHelpId(ht("/Dialog/ChangesetManager")); 38 38 } 39 39 -
trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
r14390 r14397 52 52 true 53 53 ); 54 putValue("help",ht("/Action/CloseChangeset"));54 setHelpId(ht("/Action/CloseChangeset")); 55 55 setEnabled(!NetworkManager.isOffline(OnlineResource.OSM_API)); 56 56 -
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r14256 r14397 57 57 super(tr("Combine Way"), "combineway", tr("Combine several ways into one."), 58 58 Shortcut.registerShortcut("tools:combineway", tr("Tool: {0}", tr("Combine Way")), KeyEvent.VK_C, Shortcut.DIRECT), true); 59 putValue("help",ht("/Action/CombineWay"));59 setHelpId(ht("/Action/CombineWay")); 60 60 } 61 61 -
trunk/src/org/openstreetmap/josm/actions/CopyAction.java
r14153 r14397 34 34 tr("Copy selected objects to paste buffer."), 35 35 Shortcut.registerShortcut("system:copy", tr("Edit: {0}", tr("Copy")), KeyEvent.VK_C, Shortcut.CTRL), true); 36 putValue("help",ht("/Action/Copy"));36 setHelpId(ht("/Action/Copy")); 37 37 // CUA shortcut for copy (https://en.wikipedia.org/wiki/IBM_Common_User_Access#Description) 38 38 MainApplication.registerActionShortcut(this, -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r14194 r14397 63 63 Shortcut.registerShortcut("tools:createcircle", tr("Tool: {0}", tr("Create Circle")), 64 64 KeyEvent.VK_O, Shortcut.SHIFT), true, "createcircle", true); 65 putValue("help",ht("/Action/CreateCircle"));65 setHelpId(ht("/Action/CreateCircle")); 66 66 } 67 67 -
trunk/src/org/openstreetmap/josm/actions/DeleteAction.java
r14153 r14397 63 63 super(tr("Delete"), "dialogs/delete", tr("Delete selected objects."), 64 64 Shortcut.registerShortcut("system:delete", tr("Edit: {0}", tr("Delete")), KeyEvent.VK_DELETE, Shortcut.DIRECT), true); 65 putValue("help",ht("/Action/Delete"));65 setHelpId(ht("/Action/Delete")); 66 66 } 67 67 -
trunk/src/org/openstreetmap/josm/actions/DeleteLayerAction.java
r12636 r14397 25 25 Shortcut.registerShortcut("system:deletelayer", tr("File: {0}", tr("Delete Layer")), KeyEvent.VK_F4, Shortcut.CTRL), 26 26 true, "delete-layer", true); 27 putValue("help",ht("/Action/DeleteLayer"));27 setHelpId(ht("/Action/DeleteLayer")); 28 28 } 29 29 -
trunk/src/org/openstreetmap/josm/actions/DialogsToggleAction.java
r13090 r14397 35 35 false 36 36 ); 37 putValue("help",ht("/ToggleDialogs"));37 setHelpId(ht("/ToggleDialogs")); 38 38 setSelected(Config.getPref().getBoolean("draw.dialogspanel", true)); 39 39 notifySelectedState(); -
trunk/src/org/openstreetmap/josm/actions/DistributeAction.java
r14134 r14397 42 42 Shortcut.registerShortcut("tools:distribute", tr("Tool: {0}", tr("Distribute Nodes")), KeyEvent.VK_B, Shortcut.SHIFT), 43 43 true); 44 putValue("help",ht("/Action/DistributeNodes"));44 setHelpId(ht("/Action/DistributeNodes")); 45 45 } 46 46 -
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r14390 r14397 28 28 Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download data")), KeyEvent.VK_DOWN, Shortcut.CTRL_SHIFT), 29 29 true); 30 putValue("help",ht("/Action/Download"));30 setHelpId(ht("/Action/Download")); 31 31 } 32 32 -
trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java
r13761 r14397 35 35 super(tr("Download object..."), "downloadprimitive", tr("Download OSM object by ID"), 36 36 SHORTCUT, true); 37 putValue("help",ht("/Action/DownloadObject"));37 setHelpId(ht("/Action/DownloadObject")); 38 38 } 39 39 -
trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java
r13559 r14397 31 31 tr("File: {0}", tr("Download parent ways/relations...")), KeyEvent.VK_D, Shortcut.ALT_CTRL), 32 32 true, "downloadreferrers", true); 33 putValue("help",ht("/Action/DownloadParentWaysAndRelation"));33 setHelpId(ht("/Action/DownloadParentWaysAndRelation")); 34 34 } 35 35 -
trunk/src/org/openstreetmap/josm/actions/DuplicateAction.java
r13434 r14397 27 27 tr("Duplicate selection."), 28 28 Shortcut.registerShortcut("system:duplicate", tr("Edit: {0}", tr("Duplicate")), KeyEvent.VK_D, Shortcut.CTRL), true); 29 putValue("help",ht("/Action/Duplicate"));29 setHelpId(ht("/Action/Duplicate")); 30 30 } 31 31 -
trunk/src/org/openstreetmap/josm/actions/ExitAction.java
r12636 r14397 23 23 super(tr("Exit"), "exit", tr("Exit the application."), 24 24 Shortcut.registerShortcut("system:menuexit", tr("Exit"), KeyEvent.VK_Q, Shortcut.CTRL), true); 25 putValue("help",ht("/Action/Exit"));25 setHelpId(ht("/Action/Exit")); 26 26 } 27 27 -
trunk/src/org/openstreetmap/josm/actions/FullscreenToggleAction.java
r14153 r14397 43 43 false /* register */ 44 44 ); 45 putValue("help",ht("/Action/FullscreenView"));45 setHelpId(ht("/Action/FullscreenView")); 46 46 putValue("toolbar", "fullscreen"); 47 47 MainApplication.getToolbar().register(this); -
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r14153 r14397 36 36 super(tr("Export to GPX..."), "exportgpx", tr("Export the data to GPX file."), 37 37 Shortcut.registerShortcut("file:exportgpx", tr("Export to GPX..."), KeyEvent.VK_E, Shortcut.CTRL)); 38 putValue("help",ht("/Action/GpxExport"));38 setHelpId(ht("/Action/GpxExport")); 39 39 } 40 40 -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r14153 r14397 30 30 Shortcut.registerShortcut("core:historyinfo", 31 31 tr("History"), KeyEvent.VK_H, Shortcut.CTRL), false); 32 putValue("help",ht("/Action/ObjectHistory"));32 setHelpId(ht("/Action/ObjectHistory")); 33 33 putValue("toolbar", "action/historyinfo"); 34 34 MainApplication.getToolbar().register(this); -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoWebAction.java
r14119 r14397 27 27 tr("History (web)"), KeyEvent.VK_H, Shortcut.CTRL_SHIFT), 28 28 true, "action/historyinfoweb", true); 29 putValue("help",ht("/Action/ObjectHistoryWeb"));29 setHelpId(ht("/Action/ObjectHistoryWeb")); 30 30 } 31 31 -
trunk/src/org/openstreetmap/josm/actions/InfoAction.java
r13926 r14397 29 29 tr("Advanced info"), KeyEvent.VK_I, Shortcut.CTRL), 30 30 true, "action/info", true); 31 putValue("help",ht("/Action/InfoAboutElements"));31 setHelpId(ht("/Action/InfoAboutElements")); 32 32 } 33 33 -
trunk/src/org/openstreetmap/josm/actions/InfoWebAction.java
r14119 r14397 31 31 tr("Advanced info (web)"), KeyEvent.VK_I, Shortcut.CTRL_SHIFT), 32 32 true, "action/infoweb", true); 33 putValue("help",ht("/Action/InfoAboutElementsWeb"));33 setHelpId(ht("/Action/InfoAboutElementsWeb")); 34 34 } 35 35 -
trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java
r14134 r14397 64 64 Shortcut.registerShortcut("tools:joinnodeway", tr("Tool: {0}", tr("Join Node to Way")), 65 65 KeyEvent.VK_J, Shortcut.DIRECT), true); 66 action. putValue("help",ht("/Action/JoinNodeWay"));66 action.setHelpId(ht("/Action/JoinNodeWay")); 67 67 return action; 68 68 } … … 78 78 Shortcut.registerShortcut("tools:movenodeontoway", tr("Tool: {0}", tr("Move Node onto Way")), 79 79 KeyEvent.VK_N, Shortcut.DIRECT), true); 80 action. putValue("help",ht("/Action/MoveNodeWay"));80 action.setHelpId(ht("/Action/MoveNodeWay")); 81 81 return action; 82 82 } -
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r14291 r14397 269 269 helpId = helpId.substring(0, helpId.length()-6); 270 270 } 271 setHelpId(helpId); 272 } 273 274 protected void setHelpId(String helpId) { 271 275 putValue("help", helpId); 272 276 } -
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r14153 r14397 51 51 Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump to Position")), 52 52 KeyEvent.VK_J, Shortcut.CTRL), true, "action/jumpto", true); 53 putValue("help",ht("/Action/JumpToPosition"));53 setHelpId(ht("/Action/JumpToPosition")); 54 54 } 55 55 -
trunk/src/org/openstreetmap/josm/actions/MapRectifierWMSmenuAction.java
r14153 r14397 89 89 true 90 90 ); 91 putValue("help",ht("/Menu/Imagery"));91 setHelpId(ht("/Menu/Imagery")); 92 92 93 93 // Add default services -
trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java
r14338 r14397 41 41 tr("Merge")), KeyEvent.VK_M, Shortcut.CTRL), 42 42 true, "action/mergelayer", true); 43 putValue("help",ht("/Action/MergeLayer"));43 setHelpId(ht("/Action/MergeLayer")); 44 44 } 45 45 -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r14153 r14397 68 68 super(tr("Merge Nodes"), "mergenodes", tr("Merge nodes into the oldest one."), 69 69 Shortcut.registerShortcut("tools:mergenodes", tr("Tool: {0}", tr("Merge Nodes")), KeyEvent.VK_M, Shortcut.DIRECT), true); 70 putValue("help",ht("/Action/MergeNodes"));70 setHelpId(ht("/Action/MergeNodes")); 71 71 } 72 72 -
trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java
r13568 r14397 35 35 true /* register */ 36 36 ); 37 putValue("help",ht("/Action/MergeSelection"));37 setHelpId(ht("/Action/MergeSelection")); 38 38 } 39 39 -
trunk/src/org/openstreetmap/josm/actions/MirrorAction.java
r14134 r14397 40 40 Shortcut.registerShortcut("tools:mirror", tr("Tool: {0}", tr("Mirror")), 41 41 KeyEvent.VK_M, Shortcut.SHIFT), true); 42 putValue("help",ht("/Action/Mirror"));42 setHelpId(ht("/Action/Mirror")); 43 43 } 44 44 -
trunk/src/org/openstreetmap/josm/actions/MoveAction.java
r14153 r14397 87 87 calltosupermustbefirststatementinconstructor(dir), false); 88 88 myDirection = dir; 89 putValue("help",ht("/Action/Move"));89 setHelpId(ht("/Action/Move")); 90 90 if (dir == Direction.UP) { 91 91 putValue("toolbar", "action/move/up"); -
trunk/src/org/openstreetmap/josm/actions/MoveNodeAction.java
r14153 r14397 30 30 null, /* no shortcut */ 31 31 true); 32 putValue("help",ht("/Action/MoveNode"));32 setHelpId(ht("/Action/MoveNode")); 33 33 } 34 34 -
trunk/src/org/openstreetmap/josm/actions/NewAction.java
r12636 r14397 24 24 super(tr("New Layer"), "new", tr("Create a new map layer."), 25 25 Shortcut.registerShortcut("system:new", tr("File: {0}", tr("New Layer")), KeyEvent.VK_N, Shortcut.CTRL), true); 26 putValue("help",ht("/Action/NewLayer"));26 setHelpId(ht("/Action/NewLayer")); 27 27 } 28 28 -
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r14201 r14397 68 68 super(tr("Open..."), "open", tr("Open a file."), 69 69 Shortcut.registerShortcut("system:open", tr("File: {0}", tr("Open...")), KeyEvent.VK_O, Shortcut.CTRL)); 70 putValue("help",ht("/Action/Open"));70 setHelpId(ht("/Action/Open")); 71 71 } 72 72 -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r14153 r14397 89 89 Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")), 90 90 KeyEvent.VK_L, Shortcut.CTRL), true); 91 putValue("help",ht("/Action/OpenLocation"));91 setHelpId(ht("/Action/OpenLocation")); 92 92 this.downloadTasks = new ArrayList<>(); 93 93 addDownloadTaskClass(DownloadOsmTask.class); -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r14153 r14397 65 65 KeyEvent.VK_Q, 66 66 Shortcut.DIRECT), true); 67 putValue("help",ht("/Action/OrthogonalizeShape"));67 setHelpId(ht("/Action/OrthogonalizeShape")); 68 68 } 69 69 -
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r12639 r14397 23 23 super(tr("Paste"), "paste", tr("Paste contents of clipboard."), 24 24 Shortcut.registerShortcut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, Shortcut.CTRL), true); 25 putValue("help",ht("/Action/Paste"));25 setHelpId(ht("/Action/Paste")); 26 26 // CUA shortcut for paste (https://en.wikipedia.org/wiki/IBM_Common_User_Access#Description) 27 27 MainApplication.registerActionShortcut(this, -
trunk/src/org/openstreetmap/josm/actions/PasteAtSourcePositionAction.java
r10766 r14397 25 25 Shortcut.registerShortcut("menu:edit:pasteAtSource", tr("Edit: {0}", tr("Paste at source position")), 26 26 KeyEvent.VK_V, Shortcut.ALT_CTRL), true, "pasteatsource"); 27 putValue("help",ht("/Action/Paste"));27 setHelpId(ht("/Action/Paste")); 28 28 } 29 29 -
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r13434 r14397 34 34 Shortcut.registerShortcut("system:pastestyle", tr("Edit: {0}", tr("Paste Tags")), 35 35 KeyEvent.VK_V, Shortcut.CTRL_SHIFT), true); 36 putValue("help",HELP);36 setHelpId(HELP); 37 37 } 38 38 -
trunk/src/org/openstreetmap/josm/actions/PreferencesAction.java
r14153 r14397 89 89 super(tr("Preferences..."), "preference", tr("Open a preferences dialog for global settings."), 90 90 Shortcut.registerShortcut("system:preferences", tr("Preferences"), KeyEvent.VK_F12, Shortcut.DIRECT), true); 91 putValue("help",ht("/Action/Preferences"));91 setHelpId(ht("/Action/Preferences")); 92 92 this.tab = null; 93 93 this.subTab = null; -
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r14153 r14397 73 73 Shortcut.registerShortcut("system:purge", tr("Edit: {0}", tr("Purge")), KeyEvent.VK_P, Shortcut.CTRL_SHIFT), 74 74 true); 75 putValue("help",HelpUtil.ht("/Action/Purge"));75 setHelpId(HelpUtil.ht("/Action/Purge")); 76 76 } 77 77 -
trunk/src/org/openstreetmap/josm/actions/RedoAction.java
r14281 r14397 28 28 Shortcut.registerShortcut("system:redo", tr("Edit: {0}", tr("Redo")), KeyEvent.VK_Y, Shortcut.CTRL), true); 29 29 setEnabled(false); 30 putValue("help",ht("/Action/Redo"));30 setHelpId(ht("/Action/Redo")); 31 31 } 32 32 -
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r14138 r14397 50 50 super(tr("Restart"), "restart", tr("Restart the application."), 51 51 Shortcut.registerShortcut("file:restart", tr("File: {0}", tr("Restart")), KeyEvent.VK_J, Shortcut.ALT_CTRL_SHIFT), false); 52 putValue("help",ht("/Action/Restart"));52 setHelpId(ht("/Action/Restart")); 53 53 putValue("toolbar", "action/restart"); 54 54 if (MainApplication.getToolbar() != null) { -
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r14256 r14397 107 107 super(tr("Reverse Ways"), "wayflip", tr("Reverse the direction of all selected ways."), 108 108 Shortcut.registerShortcut("tools:reverse", tr("Tool: {0}", tr("Reverse Ways")), KeyEvent.VK_R, Shortcut.DIRECT), true); 109 putValue("help",ht("/Action/ReverseWays"));109 setHelpId(ht("/Action/ReverseWays")); 110 110 } 111 111 -
trunk/src/org/openstreetmap/josm/actions/SaveAction.java
r14153 r14397 28 28 super(tr("Save"), "save", tr("Save the current data."), 29 29 Shortcut.registerShortcut("system:save", tr("File: {0}", tr("Save")), KeyEvent.VK_S, Shortcut.CTRL)); 30 putValue("help",ht("/Action/Save"));30 setHelpId(ht("/Action/Save")); 31 31 } 32 32 -
trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java
r13329 r14397 26 26 Shortcut.registerShortcut("system:saveas", tr("File: {0}", tr("Save As...")), 27 27 KeyEvent.VK_S, Shortcut.CTRL_SHIFT)); 28 putValue("help",ht("/Action/SaveAs"));28 setHelpId(ht("/Action/SaveAs")); 29 29 } 30 30 -
trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java
r13938 r14397 22 22 super(tr("Select All"), "selectall", tr("Select all undeleted objects in the data layer. This selects incomplete objects too."), 23 23 Shortcut.registerShortcut("system:selectall", tr("Edit: {0}", tr("Select All")), KeyEvent.VK_A, Shortcut.CTRL), true); 24 putValue("help",ht("/Action/SelectAll"));24 setHelpId(ht("/Action/SelectAll")); 25 25 } 26 26 -
trunk/src/org/openstreetmap/josm/actions/SessionLoadAction.java
r14153 r14397 49 49 public SessionLoadAction() { 50 50 super(tr("Load Session"), "open", tr("Load a session from file."), null, true, "load-session", true); 51 putValue("help",ht("/Action/SessionLoad"));51 setHelpId(ht("/Action/SessionLoad")); 52 52 } 53 53 -
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r14153 r14397 73 73 super(tr("Save Session As..."), "session", tr("Save the current session to a new file."), 74 74 null, toolbar, "save_as-session", installAdapters); 75 putValue("help",ht("/Action/SessionSaveAs"));75 setHelpId(ht("/Action/SessionSaveAs")); 76 76 MainApplication.addMapFrameListener(this); 77 77 } -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r14153 r14397 67 67 tr("Show Status Report")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), false); 68 68 69 putValue("help",ht("/Action/ShowStatusReport"));69 setHelpId(ht("/Action/ShowStatusReport")); 70 70 putValue("toolbar", "help/showstatusreport"); 71 71 MainApplication.getToolbar().register(this); -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r14153 r14397 50 50 super(tr("Simplify Way"), "simplify", tr("Delete unnecessary nodes from a way."), 51 51 Shortcut.registerShortcut("tools:simplify", tr("Tool: {0}", tr("Simplify Way")), KeyEvent.VK_Y, Shortcut.SHIFT), true); 52 putValue("help",ht("/Action/SimplifyWay"));52 setHelpId(ht("/Action/SimplifyWay")); 53 53 } 54 54 -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r14153 r14397 55 55 super(tr("Split Way"), "splitway", tr("Split a way at the selected node."), 56 56 Shortcut.registerShortcut("tools:splitway", tr("Tool: {0}", tr("Split Way")), KeyEvent.VK_P, Shortcut.DIRECT), true); 57 putValue("help",ht("/Action/SplitWay"));57 setHelpId(ht("/Action/SplitWay")); 58 58 } 59 59 -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r14330 r14397 64 64 super(tr("UnGlue Ways"), "unglueways", tr("Duplicate nodes that are used by multiple ways."), 65 65 Shortcut.registerShortcut("tools:unglue", tr("Tool: {0}", tr("UnGlue Ways")), KeyEvent.VK_G, Shortcut.DIRECT), true); 66 putValue("help",ht("/Action/UnGlue"));66 setHelpId(ht("/Action/UnGlue")); 67 67 } 68 68 -
trunk/src/org/openstreetmap/josm/actions/UnJoinNodeWayAction.java
r14134 r14397 37 37 Shortcut.registerShortcut("tools:unjoinnodeway", 38 38 tr("Tool: {0}", tr("Disconnect Node from Way")), KeyEvent.VK_J, Shortcut.ALT), true); 39 putValue("help",ht("/Action/UnJoinNodeWay"));39 setHelpId(ht("/Action/UnJoinNodeWay")); 40 40 } 41 41 -
trunk/src/org/openstreetmap/josm/actions/UndoAction.java
r14281 r14397 28 28 Shortcut.registerShortcut("system:undo", tr("Edit: {0}", tr("Undo")), KeyEvent.VK_Z, Shortcut.CTRL), true); 29 29 setEnabled(false); 30 putValue("help",ht("/Action/Undo"));30 setHelpId(ht("/Action/Undo")); 31 31 } 32 32 -
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r13926 r14397 23 23 tr("Unselect All")), KeyEvent.VK_ESCAPE, Shortcut.DIRECT), true); 24 24 25 putValue("help",ht("/Action/UnselectAll"));25 setHelpId(ht("/Action/UnselectAll")); 26 26 } 27 27 -
trunk/src/org/openstreetmap/josm/actions/UpdateDataAction.java
r14121 r14397 39 39 KeyEvent.VK_U, Shortcut.CTRL), 40 40 true); 41 putValue("help",ht("/Action/UpdateData"));41 setHelpId(ht("/Action/UpdateData")); 42 42 } 43 43 -
trunk/src/org/openstreetmap/josm/actions/UpdateModifiedAction.java
r14214 r14397 32 32 Shortcut.ALT_CTRL), 33 33 true, "updatemodified"); 34 putValue("help",ht("/Action/UpdateModified"));34 setHelpId(ht("/Action/UpdateModified")); 35 35 } 36 36 -
trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
r14214 r14397 92 92 Shortcut.ALT_CTRL), 93 93 true, "updateselection", true); 94 putValue("help",ht("/Action/UpdateSelection"));94 setHelpId(ht("/Action/UpdateSelection")); 95 95 } 96 96 -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r14390 r14397 142 142 super(tr("Upload data..."), "upload", tr("Upload all changes in the active data layer to the OSM server"), 143 143 Shortcut.registerShortcut("file:upload", tr("File: {0}", tr("Upload data")), KeyEvent.VK_UP, Shortcut.CTRL_SHIFT), true); 144 putValue("help",ht("/Action/Upload"));144 setHelpId(ht("/Action/Upload")); 145 145 } 146 146 -
trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java
r14390 r14397 52 52 // CHECKSTYLE.ON: LineLength 53 53 true); 54 putValue("help",ht("/Action/UploadSelection"));54 setHelpId(ht("/Action/UploadSelection")); 55 55 } 56 56 -
trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java
r12636 r14397 28 28 true /* register shortcut */ 29 29 ); 30 putValue("help",ht("/Action/ViewportFollowing"));30 setHelpId(ht("/Action/ViewportFollowing")); 31 31 setSelected(false); 32 32 notifySelectedState(); -
trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java
r12639 r14397 29 29 true 30 30 ); 31 putValue("help",ht("/Action/ZoomIn"));31 setHelpId(ht("/Action/ZoomIn")); 32 32 // On standard QWERTY, AZERTY and other common layouts the '+' key is obtained with Shift+EQUALS 33 33 MainApplication.registerActionShortcut(this, -
trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java
r12639 r14397 23 23 super(tr("Zoom Out"), "dialogs/zoomout", tr("Zoom Out"), 24 24 Shortcut.registerShortcut("view:zoomout", tr("View: {0}", tr("Zoom Out")), KeyEvent.VK_MINUS, Shortcut.DIRECT), true); 25 putValue("help",ht("/Action/ZoomOut"));25 setHelpId(ht("/Action/ZoomOut")); 26 26 // make numpad - behave like - 27 27 MainApplication.registerActionShortcut(this, -
trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java
r12846 r14397 28 28 super(trc("audio", "Back"), "audio-back", trc("audio", "Jump back."), 29 29 Shortcut.registerShortcut("audio:back", tr("Audio: {0}", trc("audio", "Back")), KeyEvent.VK_F6, Shortcut.DIRECT), true); 30 this.putValue("help",ht("/Action/AudioBack"));30 setHelpId(ht("/Action/AudioBack")); 31 31 } 32 32 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFasterAction.java
r6380 r14397 23 23 super(trc("audio", "Faster"), "audio-faster", trc("audio", "Faster Forward"), 24 24 Shortcut.registerShortcut("audio:faster", tr("Audio: {0}", trc("audio", "Faster")), KeyEvent.VK_F9, Shortcut.DIRECT), true); 25 this.putValue("help",ht("/Action/AudioFaster"));25 setHelpId(ht("/Action/AudioFaster")); 26 26 } 27 27 } -
trunk/src/org/openstreetmap/josm/actions/audio/AudioSlowerAction.java
r6380 r14397 23 23 super(trc("audio", "Slower"), "audio-slower", trc("audio", "Slower Forward"), 24 24 Shortcut.registerShortcut("audio:slower", tr("Audio: {0}", trc("audio", "Slower")), KeyEvent.VK_F4, Shortcut.DIRECT), false); 25 this.putValue("help",ht("/Action/AudioSlower"));25 setHelpId(ht("/Action/AudioSlower")); 26 26 } 27 27 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r14273 r14397 1413 1413 super(tr("Angle snapping"), /* ICON() */ "anglesnap", 1414 1414 tr("Switch angle snapping mode while drawing"), null, false); 1415 putValue("help",ht("/Action/Draw/AngleSnap"));1415 setHelpId(ht("/Action/Draw/AngleSnap")); 1416 1416 } 1417 1417 -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r14134 r14397 199 199 super(tr("Dual alignment"), /* ICON() */ "mapmode/extrude/dualalign", 200 200 tr("Switch dual alignment mode while extruding"), null, false); 201 putValue("help",ht("/Action/Extrude#DualAlign"));201 setHelpId(ht("/Action/Extrude#DualAlign")); 202 202 } 203 203 … … 222 222 Shortcut.registerShortcut("mapmode:extrude", tr("Mode: {0}", tr("Extrude")), KeyEvent.VK_X, Shortcut.DIRECT), 223 223 ImageProvider.getCursor("normal", "rectangle")); 224 putValue("help",ht("/Action/Extrude"));224 setHelpId(ht("/Action/Extrude")); 225 225 cursorCreateNew = ImageProvider.getCursor("normal", "rectangle_plus"); 226 226 cursorTranslate = ImageProvider.getCursor("normal", "rectangle_move"); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r13434 r14397 155 155 tr("Parallel")), KeyEvent.VK_P, Shortcut.SHIFT), 156 156 ImageProvider.getCursor("normal", "parallel")); 157 putValue("help",ht("/Action/Parallel"));157 setHelpId(ht("/Action/Parallel")); 158 158 mv = mapFrame.mapView; 159 159 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r14343 r14397 197 197 ImageProvider.getCursor("normal", "selection")); 198 198 mv = mapFrame.mapView; 199 putValue("help",ht("/Action/Select"));199 setHelpId(ht("/Action/Select")); 200 200 selectionManager = new SelectionManager(this, false, mv); 201 201 } -
trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java
r14214 r14397 60 60 && ds != null && !ds.isLocked() && DownloadPolicy.BLOCKED != ds.getDownloadPolicy(); 61 61 } 62 63 protected void setHelpId(String helpId) { 64 putValue("help", helpId); 65 } 62 66 } -
trunk/src/org/openstreetmap/josm/actions/relation/DownloadMembersAction.java
r13957 r14397 29 29 putValue(NAME, tr("Download members")); 30 30 new ImageProvider("dialogs", "downloadincomplete").getResource().attachImageIcon(this, true); 31 putValue("help",ht("/Dialog/RelationList#DownloadMembers"));31 setHelpId(ht("/Dialog/RelationList#DownloadMembers")); 32 32 } 33 33 -
trunk/src/org/openstreetmap/josm/actions/relation/ExportRelationToGpxAction.java
r13957 r14397 80 80 super(name(mode), mode.contains(TO_FILE) ? "exportgpx" : "dialogs/layerlist", tooltip(mode), 81 81 null, false, null, false); 82 putValue("help",ht("/Action/ExportRelationToGpx"));82 setHelpId(ht("/Action/ExportRelationToGpx")); 83 83 this.mode = mode; 84 84 } -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r14153 r14397 172 172 super(tr("Search..."), "dialogs/search", tr("Search for objects"), 173 173 Shortcut.registerShortcut("system:find", tr("Search..."), KeyEvent.VK_F, Shortcut.CTRL), true); 174 putValue("help",ht("/Action/Search"));174 setHelpId(ht("/Action/Search")); 175 175 } 176 176 -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r14121 r14397 178 178 } 179 179 180 @Override 181 public String helpTopic() { 182 return HelpUtil.ht("/Dialog/ChangesetList"); 183 } 184 180 185 protected void build() { 181 186 JPanel pnl = new JPanel(new BorderLayout()); … … 185 190 186 191 cbInSelectionOnly.addItemListener(new FilterChangeHandler()); 187 188 HelpUtil.setHelpContext(pnl, HelpUtil.ht("/Dialog/ChangesetList"));189 192 190 193 // -- select objects action -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r14153 r14397 241 241 setMinimumSize(new Dimension(0, 0)); 242 242 this.preferredHeight = preferredHeight; 243 toggleAction = new ToggleDialogAction(name, "dialogs/"+iconName, tooltip, shortcut); 244 String helpId = "Dialog/"+getClass().getName().substring(getClass().getName().lastIndexOf('.')+1); 245 toggleAction.putValue("help", helpId.substring(0, helpId.length()-6)); 243 toggleAction = new ToggleDialogAction(name, "dialogs/"+iconName, tooltip, shortcut, helpTopic()); 246 244 247 245 isShowing = Config.getPref().getBoolean(preferencePrefix+".visible", defShow); … … 284 282 public final class ToggleDialogAction extends JosmAction { 285 283 286 private ToggleDialogAction(String name, String iconName, String tooltip, Shortcut shortcut ) {284 private ToggleDialogAction(String name, String iconName, String tooltip, Shortcut shortcut, String helpId) { 287 285 super(name, iconName, tooltip, shortcut, false, false); 286 setHelpId(helpId); 288 287 } 289 288 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r14153 r14397 249 249 Shortcut.ALT_SHIFT), 150, true); 250 250 251 HelpUtil.setHelpContext(this, HelpUtil.ht("/Dialog/TagsMembership"));252 253 251 setupTagsMenu(); 254 252 buildTagsTable(); … … 299 297 300 298 Config.getPref().addKeyPreferenceChangeListener("display.discardable-keys", preferenceListener); 299 } 300 301 @Override 302 public String helpTopic() { 303 return HelpUtil.ht("/Dialog/TagsMembership"); 301 304 } 302 305
Note:
See TracChangeset
for help on using the changeset viewer.