From 17b9255bbafe0f696a70bc01bb31521879a24ac3 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:40:09 +0000 Subject: Catch SWT exception on Mac git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@443 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../asit/pdfover/gui/workflow/states/PositioningState.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'pdf-over-gui') 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); -- cgit v1.2.3