diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-28 05:58:18 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-28 05:58:18 +0200 |
commit | 69844725fb9256a38c8f3e16d72a24c20a819e98 (patch) | |
tree | d129a5e07bc5ec21b7f8f95f35c66a6909df5929 /src/lombok/core/ShowUserHelp.java | |
parent | 19f1b265931737a28760ccfe0200b4721f545989 (diff) | |
download | lombok-69844725fb9256a38c8f3e16d72a24c20a819e98.tar.gz lombok-69844725fb9256a38c8f3e16d72a24c20a819e98.tar.bz2 lombok-69844725fb9256a38c8f3e16d72a24c20a819e98.zip |
Preparating for java 1.5-ification. All stuff that isn't specific to javac should run in java 1.5, so that an eclipse started on a 1.5 JVM will still run lombok.
Diffstat (limited to 'src/lombok/core/ShowUserHelp.java')
-rw-r--r-- | src/lombok/core/ShowUserHelp.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lombok/core/ShowUserHelp.java b/src/lombok/core/ShowUserHelp.java index 0596dcc4..443de833 100644 --- a/src/lombok/core/ShowUserHelp.java +++ b/src/lombok/core/ShowUserHelp.java @@ -1,6 +1,5 @@ package lombok.core; -import java.awt.Desktop; import java.net.URI; /** @@ -13,7 +12,9 @@ public class ShowUserHelp { public static void main(String[] args) { boolean browserOpened = false; try { - Desktop.getDesktop().browse(ABOUT_LOMBOK_URL); + //java.awt.Desktop doesn't exist in 1.5, and for IDE's sakes, we may want to work in java1.5 someday, so... + Object desktop = Class.forName("java.awt.Desktop").getMethod("getDesktop").invoke(null); + Class.forName("java.awt.Desktop").getMethod("browse", URI.class).invoke(desktop, ABOUT_LOMBOK_URL); browserOpened = true; } catch ( Exception ignore ) {} |