summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java22
1 files changed, 2 insertions, 20 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
index 44ffd7f4..824611b5 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java
@@ -26,6 +26,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import at.asit.pdfover.gui.MainWindow;
+import at.asit.pdfover.gui.Messages;
import at.asit.pdfover.gui.controls.ErrorDialog;
import at.asit.pdfover.gui.workflow.states.PrepareConfigurationState;
import at.asit.pdfover.gui.workflow.states.State;
@@ -87,7 +88,7 @@ public class StateMachineImpl implements StateMachine, GUIProvider {
} catch (Exception e) {
log.error("StateMachine update: ", e); //$NON-NLS-1$
ErrorDialog errorState = new ErrorDialog(this.getMainShell(),
- SWT.NONE, "Unexpected Error", e, false);
+ SWT.NONE, Messages.getString("error.Unexpected"), e, false); //$NON-NLS-1$
//errorState.setException(e);
//jumpToState(errorState);
errorState.open();
@@ -125,14 +126,6 @@ public class StateMachineImpl implements StateMachine, GUIProvider {
this.status.setCurrentState(next);
}
}
-
- // TODO: Remove following line when releasing ...
- if (this.status.getCurrentState() != null) {
- this.setCurrentStateMessage(this.status.getCurrentState()
- .toString());
- } else {
- this.setCurrentStateMessage(""); //$NON-NLS-1$
- }
}
/**
@@ -159,17 +152,6 @@ public class StateMachineImpl implements StateMachine, GUIProvider {
private MainWindow mainWindow = null;
- /**
- * Helper method for developing
- *
- * @param value
- */
- public void setCurrentStateMessage(String value) {
- if (this.mainWindow != null) {
- this.mainWindow.setStatus(value);
- }
- }
-
/*
* (non-Javadoc)
*