From 96a1a5c9d04238c63247794ad9c76e5a2001b8d0 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 18:58:27 +0000 Subject: Moved Mobile BKU URL to configuration file Extracted localizable Strings git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@61 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../pdfover/gui/workflow/StateMachineImpl.java | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java') 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) * -- cgit v1.2.3