summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:39:48 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:39:48 +0000
commitfe859bf03cf0e758d10e58d4e9958fcdd19ab778 (patch)
tree199d0ba741689c6cc0e78ef493b0b3532216f5ea /pdf-over-gui/src/main/java/at
parent5ffe3db4b8a1171ae9620afe1d64395d6b71109b (diff)
downloadpdf-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/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/Status.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StatusImpl.java3
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java1
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;
}