summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2014-01-30 14:44:31 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2014-01-30 14:44:31 +0000
commit2e6d6f72da480649deff7f3e2c22ef699d20beb4 (patch)
treed6983c8374dfaa3af7d1cf1941028bb12671ac9a /pdf-over-gui/src/main/java/at/asit
parentfff79296a7a0c32f773bce746b9dcf0b9198027e (diff)
downloadpdf-over-2e6d6f72da480649deff7f3e2c22ef699d20beb4.tar.gz
pdf-over-2e6d6f72da480649deff7f3e2c22ef699d20beb4.tar.bz2
pdf-over-2e6d6f72da480649deff7f3e2c22ef699d20beb4.zip
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
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java4
1 files changed, 3 insertions, 1 deletions
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) {