[izpack-changes] r1987 - in izpack-src/trunk: . src/lib/com/izforge/izpack/panels
noreply at berlios.de
noreply at berlios.de
Thu Jan 17 22:07:14 CET 2008
Author: jponge
Date: 2008-01-17 22:07:11 +0100 (Thu, 17 Jan 2008)
New Revision: 1987
Modified:
izpack-src/trunk/Versions.txt
izpack-src/trunk/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
Log:
HTMLInfoPanel: open external links in a web browser on Mac OS X as well (Alexander Maslov via Julien Ponge)
Modified: izpack-src/trunk/Versions.txt
===================================================================
--- izpack-src/trunk/Versions.txt 2008-01-13 14:33:50 UTC (rev 1986)
+++ izpack-src/trunk/Versions.txt 2008-01-17 21:07:11 UTC (rev 1987)
@@ -83,6 +83,7 @@
- PacksPanelAutomationHelper fix (Jeff Gordon via Julien Ponge)
- 'parsexml' attribute for resources (Matthew Fudge via Julien Ponge)
- InstallationGroupPanel UI improvements (Jeff Gordon via Julien Ponge)
+- HTMLInfoPanel: open external links in a web browser on Mac OS X as well (Alexander Maslov via Julien Ponge)
> 3.10.2 (build 2007.05.11)
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java 2008-01-13 14:33:50 UTC (rev 1986)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/HTMLInfoPanel.java 2008-01-17 21:07:11 UTC (rev 1987)
@@ -123,8 +123,11 @@
textArea.setPage(e.getURL());
else
{
- if(com.izforge.izpack.util.OsVersion.IS_UNIX)
+ if(com.izforge.izpack.util.OsVersion.IS_OSX)
{
+ Runtime.getRuntime().exec("open " + urls);
+ } else if(com.izforge.izpack.util.OsVersion.IS_UNIX)
+ {
String[] launchers = {"htmlview QqzURL", "xdg-open QqzURL", "gnome-open QqzURL", "kfmclient openURL QqzURL", "call-browser QqzURL", "firefox QqzURL", "opera QqzURL", "konqueror QqzURL", "epiphany QqzURL", "mozilla QqzURL", "netscape QqzURL"};
//String launchers = "/bin/sh -c \"htmlview QqzURL || xdg-open QqzURL || gnome-open QqzURL || kfmclient openURL QqzURL || call-browser QqzURL || firefox QqzURL || opera QqzURL || konqueror QqzURL || epiphany QqzURL || mozilla QqzURL || netscape QqzURL\"";
for(int q=0; q<launchers.length; q++)
@@ -143,7 +146,9 @@
}
}
else // windows
- Runtime.getRuntime().exec("cmd /C start "+urls);
+ {
+ Runtime.getRuntime().exec("cmd /C start " + urls);
+ }
}
}
}
More information about the izpack-changes
mailing list