diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:10:39 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:10:39 +0000 |
commit | cca5c04e7983611bbbab8e2dcb907376f76d25a4 (patch) | |
tree | c3c60aaa751794c7a0eb963b37c3e0ae7d89a301 /pdf-over-gui/src/main/java/at/asit/pdfover | |
parent | 7d74db955056a7d1d41f89b54d702b80bdeed229 (diff) | |
download | pdf-over-cca5c04e7983611bbbab8e2dcb907376f76d25a4.tar.gz pdf-over-cca5c04e7983611bbbab8e2dcb907376f76d25a4.tar.bz2 pdf-over-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/main/java/at/asit/pdfover')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 8 |
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); } |