summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:10:39 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:10:39 +0000
commitcca5c04e7983611bbbab8e2dcb907376f76d25a4 (patch)
treec3c60aaa751794c7a0eb963b37c3e0ae7d89a301 /pdf-over-gui/src
parent7d74db955056a7d1d41f89b54d702b80bdeed229 (diff)
downloadmocca-cca5c04e7983611bbbab8e2dcb907376f76d25a4.tar.gz
mocca-cca5c04e7983611bbbab8e2dcb907376f76d25a4.tar.bz2
mocca-cca5c04e7983611bbbab8e2dcb907376f76d25a4.zip
Threading issues
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@175 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index 02cf6d48..b7ed647d 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
@@ -269,10 +269,14 @@ public class PositioningComposite extends StateComposite {
this.getDisplay().syncExec(new Runnable() {
@Override
public void run() {
- PositioningComposite.this.scrollbar.setSelection(PositioningComposite.this.currentPage);
+ PositioningComposite.this.scrollbar.setSelection(
+ PositioningComposite.this.currentPage);
+ PositioningComposite.this.lblPage.setText(String.format(
+ "Page %d of %d",
+ PositioningComposite.this.currentPage,
+ PositioningComposite.this.numPages));
}
});
- this.lblPage.setText(String.format("Page %d of %d", page, this.numPages));
this.viewer.showPage(page);
}