diff options
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/State.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/State.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/State.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/State.java index 8fcf9367..975e612f 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/State.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/State.java @@ -26,7 +26,7 @@ public abstract class State { /** * The StateMachine */ - protected StateMachine stateMachine; + private StateMachine stateMachine; private State nextState = null; @@ -74,6 +74,15 @@ public abstract class State { } /** + * Get the state machine + * @return the StateMachine + */ + protected StateMachine getStateMachine() + { + return this.stateMachine; + } + + /** * Update the main window behavior of this state if necessary * Should update this.stateMachine.getStatus().getBehavior() */ |