From 89ac04963c6781065a5342e219396bbd73bdf6e9 Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 1 Oct 2012 08:30:45 +0000 Subject: Moved Mobile BKU URL to configuration file Extracted localizable Strings git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12542 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../pdfover/gui/workflow/StateMachineImpl.java | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachineImpl.java') 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 44ffd7f4..824611b5 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 @@ -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