diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:39:48 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:39:48 +0000 |
commit | fe859bf03cf0e758d10e58d4e9958fcdd19ab778 (patch) | |
tree | 199d0ba741689c6cc0e78ef493b0b3532216f5ea /pdf-over-gui | |
parent | 5ffe3db4b8a1171ae9620afe1d64395d6b71109b (diff) | |
download | pdf-over-fe859bf03cf0e758d10e58d4e9958fcdd19ab778.tar.gz pdf-over-fe859bf03cf0e758d10e58d4e9958fcdd19ab778.tar.bz2 pdf-over-fe859bf03cf0e758d10e58d4e9958fcdd19ab778.zip |
Debugging
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@439 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
3 files changed, 3 insertions, 3 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/Status.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/Status.java index 79372aeb..984dc509 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/Status.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/Status.java @@ -33,7 +33,7 @@ public interface Status { * @param document the document */ public void setDocument(File document); - + /** * Gets the document * @return the document diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StatusImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StatusImpl.java index b60608b6..d2618320 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StatusImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StatusImpl.java @@ -74,9 +74,10 @@ public class StatusImpl implements Status { //if (this.previousState == this.currentState) // log.error("Changing to same state? " + this.currentState); //$NON-NLS-1$ - if (this.previousState != null && this.previousState != currentState) + if (this.previousState != null && !this.previousState.equals(currentState)) { //Reference to previous state will be lost - perform cleanup + log.debug("Changing from " + this.currentState + " to " + currentState); //$NON-NLS-1$ //$NON-NLS-2$ log.debug("Cleaning up " + this.previousState); //$NON-NLS-1$ this.previousState.cleanUp(); } diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java index faea77a0..aad6e005 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java @@ -52,7 +52,6 @@ public class OpenState extends State { this.selectionComposite = this.stateMachine.getGUIProvider().createComposite(DataSourceSelectComposite.class, SWT.RESIZE, this); } - return this.selectionComposite; } |