[Jsmooth-cvs] jsmooth/src/net/charabia/jsmoothgen/application/gui/util HTMLPane.java, 1.4, 1.5
Status: Beta
Brought to you by:
reyes
From: Rodrigo R. <re...@us...> - 2007-05-19 16:12:37
|
Update of /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui/util In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv25648/src/net/charabia/jsmoothgen/application/gui/util Modified Files: HTMLPane.java Log Message: links of the html panel linked to Native.shellExecute() Index: HTMLPane.java =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui/util/HTMLPane.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** HTMLPane.java 6 Apr 2007 16:27:10 -0000 1.4 --- HTMLPane.java 19 May 2007 15:24:03 -0000 1.5 *************** *** 58,62 **** if (nurl == null) nurl = new URL(m_baseurl, e.getDescription()); ! m_launcher.openURLinBrowser(nurl.toExternalForm()); } catch (Throwable t) { t.printStackTrace(); --- 58,67 ---- if (nurl == null) nurl = new URL(m_baseurl, e.getDescription()); ! if (jsmooth.Native.isAvailable()) ! { ! jsmooth.Native.shellExecute(jsmooth.Native.SHELLEXECUTE_OPEN, nurl.toString(), null, null, jsmooth.Native.SW_NORMAL); ! } ! else ! m_launcher.openURLinBrowser(nurl.toExternalForm()); } catch (Throwable t) { t.printStackTrace(); |