Changeset 29635 in osm
- Timestamp:
- 2013-06-07T00:43:13+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/osmarender
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/osmarender/.project
r21422 r29635 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> osmarender</name>3 <name>JOSM-osmarender</name> 4 4 <comment></comment> 5 5 <projects> -
applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java
r29351 r29635 41 41 import org.openstreetmap.josm.plugins.PluginInformation; 42 42 import org.openstreetmap.josm.tools.GBC; 43 import org.openstreetmap.josm.tools.PlatformHookWindows; 43 44 44 45 public class OsmarenderPlugin extends Plugin { … … 107 108 108 109 // get the exec line 109 String exec = firefox;110 if ( System.getProperty("os.name").startsWith("Windows"))111 exec += "file:///"+getPluginDir().replace('\\','/').replace(" ","%20")+File.separator+"generated.xml\"";110 String argument; 111 if (Main.platform instanceof PlatformHookWindows) 112 argument = "file:///"+getPluginDir().replace('\\','/').replace(" ","%20")+File.separator+"generated.xml\""; 112 113 else 113 exec += " "+getPluginDir()+File.separator+"generated.xml";114 argument = getPluginDir()+File.separator+"generated.xml"; 114 115 115 116 // launch up the viewer 116 Runtime.getRuntime().exec( exec);117 Runtime.getRuntime().exec(new String[]{firefox, argument}); 117 118 } catch (IOException e1) { 118 119 JOptionPane.showMessageDialog(Main.parent, tr("Firefox not found. Please set firefox executable in the Map Settings page of the preferences."));
Note:
See TracChangeset
for help on using the changeset viewer.