diff options
author | mkersten <mkersten> | 2003-07-09 07:48:09 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-07-09 07:48:09 +0000 |
commit | 461bf788adbc4e7740202ea4c1866268f312d4b1 (patch) | |
tree | fdd1bb30530f9aa776c6d337b7b03e2bb3a3edea /ajde | |
parent | 49d7ef4d392a412e5dfe5375d18935c38e7a63d9 (diff) | |
download | aspectj-461bf788adbc4e7740202ea4c1866268f312d4b1.tar.gz aspectj-461bf788adbc4e7740202ea4c1866268f312d4b1.zip |
Added safeguard for missing 1.3 setLocationRelativeTo method.
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/src/org/aspectj/ajde/ui/swing/DefaultBuildProgressMonitor.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ajde/src/org/aspectj/ajde/ui/swing/DefaultBuildProgressMonitor.java b/ajde/src/org/aspectj/ajde/ui/swing/DefaultBuildProgressMonitor.java index 5caa9cbec..ad70c4d33 100644 --- a/ajde/src/org/aspectj/ajde/ui/swing/DefaultBuildProgressMonitor.java +++ b/ajde/src/org/aspectj/ajde/ui/swing/DefaultBuildProgressMonitor.java @@ -19,7 +19,7 @@ import java.awt.Frame; import javax.swing.JDialog; import org.aspectj.ajde.BuildProgressMonitor; - + /** * This dialog box is open while ajc is compiling the system and displays * a corresponding progress bar. @@ -36,7 +36,11 @@ public class DefaultBuildProgressMonitor extends Thread implements BuildProgress progressDialog = new BuildProgressPanel(); dialog.setContentPane(progressDialog); dialog.setSize(550, 120); - dialog.setLocationRelativeTo(parent); + try { + dialog.setLocationRelativeTo(parent); + } catch (NoSuchMethodError nsme) { + // running on 1.3 + } } /** |