From 2e6d6f72da480649deff7f3e2c22ef699d20beb4 Mon Sep 17 00:00:00 2001
From: tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>
Date: Thu, 30 Jan 2014 14:44:31 +0000
Subject: Use Program.launch as alternative if SWT Desktop ist not supported

git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@496 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
---
 .../at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
index 55203ba9..1d198e30 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
@@ -34,6 +34,7 @@ import org.eclipse.swt.graphics.Rectangle;
 import org.eclipse.swt.layout.FormAttachment;
 import org.eclipse.swt.layout.FormData;
 import org.eclipse.swt.layout.FormLayout;
+import org.eclipse.swt.program.Program;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Label;
@@ -251,7 +252,8 @@ public class MobileBKUEnterTANComposite extends StateComposite {
 					if (Desktop.isDesktopSupported()) {
 						Desktop.getDesktop().browse(new URI(signatureData));
 					} else {
-						log.error("SWT Desktop is not supported on this platform!"); //$NON-NLS-1$
+						log.info("SWT Desktop is not supported on this platform"); //$NON-NLS-1$
+						Program.launch(signatureData);
 					}
 				}
 			} catch (Exception ex) {
-- 
cgit v1.2.3