Help browser: open https links with the system browser 23/9723/1
Clément DAVID [Fri, 16 Nov 2012 14:26:24 +0000 (15:26 +0100)]
Change-Id: I671dc51e102a45a638a2381b1c89d793f5fccfda

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/helpbrowser/SwingScilabHelpBrowserViewer.java

index 05ac23d..9e4b592 100644 (file)
@@ -124,7 +124,7 @@ public class SwingScilabHelpBrowserViewer extends BasicContentViewerUI implement
      */
     public void hyperlinkUpdate(HyperlinkEvent event) {
         if (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
-            if (event.getDescription().startsWith("http://")) {
+            if (event.getDescription().startsWith("http://") || event.getDescription().startsWith("https://")) {
                 WebBrowser.openUrl(event.getURL(), event.getDescription());
             } else if (event.getDescription().startsWith(SCILAB_PROTO)) {
                 if (helpSets == null) {