Changeset 2282 in osm for utils/josm/plugins/ywms/src/org
- Timestamp:
- 2007-03-19T12:20:44+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/josm/plugins/ywms/src/org/openstreetmap/josm/plugins/ywms/GeckoSupport.java
r2264 r2282 1 1 package org.openstreetmap.josm.plugins.ywms; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.io.IOException; … … 35 37 builder.environment().put("MOZ_NO_REMOTE", "1"); 36 38 37 return builder.start();39 return startProcess(builder); 38 40 } 41 42 /** 43 * Starts the process 44 * 45 * @param builder The builder for the process 46 * @return The started process 47 * @throws IOException If coulnd't start the process 48 */ 49 private static Process startProcess(ProcessBuilder builder) throws IOException 50 { 51 try 52 { 53 return builder.start(); 54 } 55 catch(IOException ioe) 56 { 57 throw new IOException( tr("Could not start browser. Please check that the executable path is correct.")); 58 } 59 } 39 60 40 61 /** … … 70 91 environment.put("MOZ_FORCE_PAINT_AFTER_ONLOAD", System.getProperty("java.io.tmpdir") + "/ywms"); 71 92 72 return builder.start();93 return startProcess(builder); 73 94 } 74 95
Note:
See TracChangeset
for help on using the changeset viewer.