summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:40:09 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:40:09 +0000
commit17b9255bbafe0f696a70bc01bb31521879a24ac3 (patch)
tree6291298aa690f18d077750ff6caab8fed3d13618 /pdf-over-gui/src/main/java/at/asit
parentb0ff12fd26e9ca31d7f75d34aef95eaf35591af6 (diff)
downloadpdf-over-17b9255bbafe0f696a70bc01bb31521879a24ac3.tar.gz
pdf-over-17b9255bbafe0f696a70bc01bb31521879a24ac3.tar.bz2
pdf-over-17b9255bbafe0f696a70bc01bb31521879a24ac3.zip
Catch SWT exception on Mac
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@443 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/workflow/states/PositioningState.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
index b1f53c27..1d8f2aa7 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
@@ -154,8 +154,15 @@ public class PositioningState extends State {
setNextState(new OpenState(this.stateMachine));
}
return;
+ }
+ }
+
+ if (status.getSignaturePosition() == null) {
+ PositioningComposite position = null;
+ try {
+ position = this.getPositioningComposite(this.document);
} catch(Exception ex) {
- log.error("Failed to create composite (seems like a mac ...)", ex); //$NON-NLS-1$
+ log.error("Failed to create composite (probably a mac...)", ex); //$NON-NLS-1$
ErrorDialog dialog = new ErrorDialog(
this.stateMachine.getGUIProvider().getMainShell(),
Messages.getString("error.PositioningNotPossible"), BUTTONS.OK); //$NON-NLS-1$
@@ -164,10 +171,6 @@ public class PositioningState extends State {
this.setNextState(new BKUSelectionState(this.stateMachine));
return;
}
- }
-
- if (status.getSignaturePosition() == null) {
- PositioningComposite position = this.getPositioningComposite(this.document);
this.stateMachine.getGUIProvider().display(position);