summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-06 16:41:17 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-06 16:41:17 +0200
commitda37de85afc55f67b4ceefe35350ac9a0af32c6e (patch)
treec94ae0649e365b2e8afc991235e4df01417a3a11 /pdf-over-gui/src/main/java/at/asit
parent6f27ed0949dea874e89dcab40ec66a68fa50b362 (diff)
downloadpdf-over-da37de85afc55f67b4ceefe35350ac9a0af32c6e.tar.gz
pdf-over-da37de85afc55f67b4ceefe35350ac9a0af32c6e.tar.bz2
pdf-over-da37de85afc55f67b4ceefe35350ac9a0af32c6e.zip
old Jakob yells at sky
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java
index 68eeb78b..cbb30b51 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java
@@ -28,11 +28,7 @@ import at.asit.pdfover.gui.MainWindow;
import at.asit.pdfover.gui.controls.Dialog.BUTTONS;
import at.asit.pdfover.gui.controls.ErrorDialog;
import at.asit.pdfover.commons.Messages;
-import at.asit.pdfover.gui.workflow.config.ConfigManipulator;
-import at.asit.pdfover.gui.workflow.config.ConfigOverlayManipulator;
-import at.asit.pdfover.gui.workflow.config.ConfigProvider;
import at.asit.pdfover.gui.workflow.config.ConfigProviderImpl;
-import at.asit.pdfover.gui.workflow.config.PersistentConfigProvider;
import at.asit.pdfover.gui.workflow.states.PrepareConfigurationState;
import at.asit.pdfover.gui.workflow.states.State;
@@ -100,14 +96,14 @@ public class StateMachine implements GUIProvider {
this.status.setCurrentState(next);
} else {
- if (this.mainWindow != null
- && !this.mainWindow.getShell().isDisposed()) {
- log.debug("Allowing MainWindow to update its state for "
- + current);
+ if (this.mainWindow != null && !this.mainWindow.getShell().isDisposed()) {
+ log.debug("Allowing MainWindow to update its state for " + current);
current.updateMainWindowBehavior();
this.mainWindow.applyBehavior();
this.mainWindow.doLayout();
}
+
+ // TODO: i really want this to be a return value from run()
next = current.nextState();
if (next == current) {
break;