Changeset 17637 in josm for trunk/src/org
- Timestamp:
- 2021-03-22T19:30:36+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r17337 r17637 64 64 65 65 /** 66 * Localized description text for this action 67 */ 68 public static final String ACTION_DESCRIPTION = tr("Show status report with useful information that can be attached to bugs"); 69 70 /** 66 71 * Constructs a new {@code ShowStatusReportAction} 67 72 */ … … 70 75 tr("Show Status Report"), 71 76 "misc/statusreport", 72 tr("Show status report with useful information that can be attached to bugs"),77 ACTION_DESCRIPTION, 73 78 Shortcut.registerShortcut("help:showstatusreport", tr("Help: {0}", 74 79 tr("Show Status Report")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), true, "help/showstatusreport", false); -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r17556 r17637 71 71 import org.openstreetmap.josm.actions.PreferencesAction; 72 72 import org.openstreetmap.josm.actions.RestartAction; 73 import org.openstreetmap.josm.actions.ShowStatusReportAction; 73 74 import org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask; 74 75 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; … … 657 658 "\t--language=<language> "+tr("Set the language")+"\n\n"+ 658 659 "\t--version "+tr("Displays the JOSM version and exits")+"\n\n"+ 660 "\t--status-report "+ShowStatusReportAction.ACTION_DESCRIPTION+"\n\n"+ 659 661 "\t--debug "+tr("Print debugging messages to console")+"\n\n"+ 660 662 "\t--skip-plugins "+tr("Skip loading plugins")+"\n\n"+ … … 730 732 Level logLevel = args.getLogLevel(); 731 733 Logging.setLogLevel(logLevel); 732 if (!args. showVersion() && !args.showHelp()) {734 if (!args.hasOption(Option.VERSION) && !args.hasOption(Option.STATUS_REPORT) && !args.showHelp()) { 733 735 Logging.info(tr("Log level is at {0} ({1}, {2})", logLevel.getLocalizedName(), logLevel.getName(), logLevel.intValue())); 734 736 } … … 772 774 Config.setUrlsProvider(JosmUrls.getInstance()); 773 775 774 if (args. showVersion()) {776 if (args.hasOption(Option.VERSION)) { 775 777 System.out.println(Version.getInstance().getAgentString()); 778 return; 779 } else if (args.hasOption(Option.STATUS_REPORT)) { 780 System.out.println(ShowStatusReportAction.getReportHeader()); 776 781 return; 777 782 } else if (args.showHelp()) { -
trunk/src/org/openstreetmap/josm/gui/ProgramArguments.java
r16446 r17637 35 35 /** --version Displays the JOSM version and exits */ 36 36 VERSION(false), 37 /** {@code --status-report} Show status report with useful information that can be attached to bugs */ 38 STATUS_REPORT(false), 37 39 /** --debug Print debugging messages to console */ 38 40 DEBUG(false),
Note:
See TracChangeset
for help on using the changeset viewer.