Changeset 5831 in josm
- Timestamp:
- 2013-04-06T17:12:20+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r5829 r5831 124 124 125 125 /** 126 * Command-line arguments used to run the application. 127 */ 128 public static String[] commandLineArgs; 129 130 /** 126 131 * The worker thread slave. This is for executing all long and intensive 127 132 * calculations. The executed runnables are guaranteed to be executed separately … … 165 170 public UndoRedoHandler undoRedo = new UndoRedoHandler(); 166 171 172 /** 173 * The progress monitor being currently displayed. 174 */ 167 175 public static PleaseWaitProgressMonitor currentProgressMonitor; 168 176 … … 282 290 * Remove the specified layer from the map. If it is the last layer, 283 291 * remove the map as well. 292 * @param layer The layer to remove 284 293 */ 285 294 public final void removeLayer(final Layer layer) { -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r4973 r5831 8 8 import java.awt.event.ActionEvent; 9 9 import java.awt.event.KeyEvent; 10 import java.lang.management.ManagementFactory; 11 import java.util.Arrays; 10 12 import java.util.HashSet; 13 import java.util.List; 11 14 import java.util.Map; 12 15 import java.util.Map.Entry; … … 66 69 text.append("Operating system: "+ System.getProperty("os.name")); 67 70 text.append("\n"); 71 try { 72 List<String> vmArguments = ManagementFactory.getRuntimeMXBean().getInputArguments(); 73 if (!vmArguments.isEmpty()) { 74 text.append("VM arguments: "+ vmArguments); 75 text.append("\n"); 76 } 77 } catch (SecurityException e) { 78 // Ignore exception 79 } 80 if (Main.commandLineArgs.length > 0) { 81 text.append("Program arguments: "+ Arrays.toString(Main.commandLineArgs)); 82 text.append("\n"); 83 } 68 84 DataSet dataset = Main.main.getCurrentDataSet(); 69 85 if (dataset != null) { -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r5829 r5831 264 264 System.exit(1); 265 265 } 266 267 Main.commandLineArgs = argArray; 266 268 267 269 if (args.containsKey(Option.VERSION)) {
Note:
See TracChangeset
for help on using the changeset viewer.