From 214147c3906cb0efad43e2a32c070c6c5a82e94a Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 4 Feb 2014 12:32:24 +0000 Subject: Update git repo location git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@514 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../pdfover/gui/composites/PositioningComposite.java | 20 ++++++++++++-------- pom.xml | 2 +- 2 files changed, 13 insertions(+), 9 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(); + } + } } - } - }); + }); + } } }); } diff --git a/pom.xml b/pom.xml index 74feca72..96477570 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ - scm:git:ssh://git@abyss.iaik.tugraz.at/home/git/pdf-over.git + scm:git:ssh://git@abyss.iaik.tugraz.at/srv/git/pdf-over.git scm:svn:https://joinup.ec.europa.eu/svn/pdf-over/trunk/ https://joinup.ec.europa.eu/svn/pdf-over/trunk/ -- cgit v1.2.3