diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:52:47 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:52:47 +0000 |
commit | aec0b00cb9801faa4a5093d200281763447f0696 (patch) | |
tree | 809190497f0a89624e8729319d3064c10a3b8df6 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/DataSourceSelectionState.java | |
parent | e710a326314184f31cd50d4637959f44232a74ee (diff) | |
download | mocca-aec0b00cb9801faa4a5093d200281763447f0696.tar.gz mocca-aec0b00cb9801faa4a5093d200281763447f0696.tar.bz2 mocca-aec0b00cb9801faa4a5093d200281763447f0696.zip |
State Machine refactor
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@21 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/DataSourceSelectionState.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/DataSourceSelectionState.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/DataSourceSelectionState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/DataSourceSelectionState.java index 10492dfe..6b69947a 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/DataSourceSelectionState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/DataSourceSelectionState.java @@ -23,13 +23,14 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import at.asit.pdfover.gui.components.DataSourceSelectComposite; -import at.asit.pdfover.gui.workflow.Workflow; -import at.asit.pdfover.gui.workflow.WorkflowState; +import at.asit.pdfover.gui.workflow.StateMachine; +import at.asit.pdfover.gui.workflow.StateMachineImpl; +import at.asit.pdfover.gui.workflow.State; /** * Selects the data source for the signature process. */ -public class DataSourceSelectionState extends WorkflowState { +public class DataSourceSelectionState extends State { /** * SFL4J Logger instance @@ -39,7 +40,7 @@ public class DataSourceSelectionState extends WorkflowState { private DataSourceSelectComposite selectionComposite = null; - private DataSourceSelectComposite getSelectionComposite(Workflow workflow) { + private DataSourceSelectComposite getSelectionComposite(StateMachineImpl workflow) { if (this.selectionComposite == null) { this.selectionComposite = new DataSourceSelectComposite( workflow.getComposite(), SWT.RESIZE, workflow); @@ -49,7 +50,7 @@ public class DataSourceSelectionState extends WorkflowState { } @Override - public void update(Workflow workflow) { + public void run(StateMachine stateMachine) { if (workflow.getDataSource() == null) { DataSourceSelectComposite selection = this |