summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2014-02-04 12:32:24 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2014-02-04 12:32:24 +0000
commit214147c3906cb0efad43e2a32c070c6c5a82e94a (patch)
tree7ddf6a93632739ea063ba787bb88cb5d227bb58a /pdf-over-gui/src/main
parentabfc3d38e149705e2d1dfc7768a9b6126d5ef6cb (diff)
downloadmocca-214147c3906cb0efad43e2a32c070c6c5a82e94a.tar.gz
mocca-214147c3906cb0efad43e2a32c070c6c5a82e94a.tar.bz2
mocca-214147c3906cb0efad43e2a32c070c6c5a82e94a.zip
Update git repo location
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@514 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java20
1 files changed, 12 insertions, 8 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 8f90cd78..1ca05015 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
@@ -195,15 +195,19 @@ public class PositioningComposite extends StateComposite {
getDisplay().asyncExec(new Runnable() {
@Override
public void run() {
- PositioningComposite.this.mainArea.setFocus();
- EventQueue.invokeLater(new Runnable() {
- @Override
- public void run() {
- if(!PositioningComposite.this.frame.hasFocus()) {
- PositioningComposite.this.frame.requestFocus();
+ if (!PositioningComposite.this.isDisposed() && !PositioningComposite.this.mainArea.isDisposed()) {
+ PositioningComposite.this.mainArea.setFocus();
+ EventQueue.invokeLater(new Runnable() {
+ @Override
+ public void run() {
+ if (!PositioningComposite.this.isDisposed()) {
+ if(!PositioningComposite.this.frame.hasFocus()) {
+ PositioningComposite.this.frame.requestFocus();
+ }
+ }
}
- }
- });
+ });
+ }
}
});
}