summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-08-24 17:04:54 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-08-24 17:04:54 +0000
commit969617f6557c559b173a8cc267c7cd37c6e2e088 (patch)
treea2fd8841f7f10ed0945e9d1fd7430da808f8aaf0 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
parente24c0e89cdd46006fc33ca565e0b3cc6639f2cb6 (diff)
downloadpdf-over-969617f6557c559b173a8cc267c7cd37c6e2e088.tar.gz
pdf-over-969617f6557c559b173a8cc267c7cd37c6e2e088.tar.bz2
pdf-over-969617f6557c559b173a8cc267c7cd37c6e2e088.zip
PDF-AS signature working with local BKU
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12391 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
index 5ad800e9..cf764a73 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
@@ -80,7 +80,14 @@ public class StateMachineImpl implements StateMachine, GUIProvider {
State next = null;
while (this.status.getCurrentState() != null) {
State current = this.status.getCurrentState();
- current.run();
+ try
+ {
+ current.run();
+ }
+ catch(Exception e) {
+ log.error("StateMachine update: ", e); //$NON-NLS-1$
+ // TODO: GOTO generic error state!
+ }
if (this.mainWindow != null
&& !this.mainWindow.getShell().isDisposed()) {
log.debug("Allowing MainWindow to update its state for " //$NON-NLS-1$
@@ -98,11 +105,13 @@ public class StateMachineImpl implements StateMachine, GUIProvider {
+ next.toString());
this.status.setCurrentState(next);
}
+
+ // TODO: Remove following line when releasing ...
if (this.status.getCurrentState() != null) {
this.setCurrentStateMessage(this.status.getCurrentState()
.toString());
} else {
- this.setCurrentStateMessage("");
+ this.setCurrentStateMessage(""); //$NON-NLS-1$
}
}
@@ -197,7 +206,7 @@ public class StateMachineImpl implements StateMachine, GUIProvider {
composite = constructor.newInstance(getComposite(), style, state);
} catch (Exception e) {
log.error(
- "Could not create Composite for Class "
+ "Could not create Composite for Class " //$NON-NLS-1$
+ compositeClass.getName(), e);
}
return composite;