diff options
author | Sven Gothel <[email protected]> | 2012-03-26 15:16:34 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-26 15:16:34 +0200 |
commit | e9e61421ef6009e6788998c471d1d3d30aaefea6 (patch) | |
tree | 4f27d46398b5c00f5d27985308f1e2b86dcf7fdb /src/java/com/jogamp/common/util | |
parent | e2abb9583faf4b3dac6094fcd311475777528b8e (diff) |
Platform: Add AWT_AVAILABLE 'knowledge'; RunnableExecutor: Add AWTEDT impl. / API doc cleanup; DynamicLibraryBundle: Add getDefaultRunnableExecutor()
Diffstat (limited to 'src/java/com/jogamp/common/util')
-rw-r--r-- | src/java/com/jogamp/common/util/ReflectionUtil.java | 9 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/RunnableExecutor.java | 4 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/VersionUtil.java | 4 |
3 files changed, 12 insertions, 5 deletions
diff --git a/src/java/com/jogamp/common/util/ReflectionUtil.java b/src/java/com/jogamp/common/util/ReflectionUtil.java index db98d6e..f6b9efb 100644 --- a/src/java/com/jogamp/common/util/ReflectionUtil.java +++ b/src/java/com/jogamp/common/util/ReflectionUtil.java @@ -46,6 +46,11 @@ public final class ReflectionUtil { public static final boolean DEBUG = Debug.debug("ReflectionUtil"); + public static class AWTNames { + public static final String ComponentClass = "java.awt.Component" ; + public static final String GraphicsEnvironmentClass = "java.awt.GraphicsEnvironment"; + public static final String isHeadlessMethod = "isHeadless"; + } private static final Class<?>[] zeroTypes = new Class[0]; /** @@ -261,11 +266,11 @@ public final class ReflectionUtil { } public static boolean isAWTComponent(Object target) { - return instanceOf(target, "java.awt.Component"); + return instanceOf(target, AWTNames.ComponentClass); } public static boolean isAWTComponent(Class<?> clazz) { - return instanceOf(clazz, "java.awt.Component"); + return instanceOf(clazz, AWTNames.ComponentClass); } /** diff --git a/src/java/com/jogamp/common/util/RunnableExecutor.java b/src/java/com/jogamp/common/util/RunnableExecutor.java index 7e6289b..7bf9685 100644 --- a/src/java/com/jogamp/common/util/RunnableExecutor.java +++ b/src/java/com/jogamp/common/util/RunnableExecutor.java @@ -28,8 +28,8 @@ package com.jogamp.common.util; public interface RunnableExecutor { - /** {@link RunnableExecutor} implementation simply invoking {@link Runnable#run()}, - * i.e. on the current thread at the time of calling {@link #invoke(boolean, Runnable)}. + /** This {@link RunnableExecutor} implementation simply invokes {@link Runnable#run()} + * on the current thread. */ public static final RunnableExecutor currentThreadExecutor = new CurrentThreadExecutor(); diff --git a/src/java/com/jogamp/common/util/VersionUtil.java b/src/java/com/jogamp/common/util/VersionUtil.java index 30b23f2..4d2d0f2 100644 --- a/src/java/com/jogamp/common/util/VersionUtil.java +++ b/src/java/com/jogamp/common/util/VersionUtil.java @@ -69,7 +69,9 @@ public class VersionUtil { // JVM/JRE sb.append("Platform: Java Version: ").append(Platform.getJavaVersion()).append(", VM: ").append(Platform.getJavaVMName()); sb.append(", Runtime: ").append(Platform.getJavaRuntimeName()).append(Platform.getNewline()); - sb.append("Platform: Java Vendor: ").append(Platform.getJavaVendor()).append(", ").append(Platform.getJavaVendorURL()).append(", is JavaSE: ").append(Platform.isJavaSE()); + sb.append("Platform: Java Vendor: ").append(Platform.getJavaVendor()).append(", ").append(Platform.getJavaVendorURL()); + sb.append(", is JavaSE: ").append(Platform.isJavaSE()); + sb.append(", AWT enabled: ").append(Platform.AWT_AVAILABLE); sb.append(Platform.getNewline()).append(SEPERATOR); return sb; |