summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2006-05-24 18:52:59 +0000
committerSilenio Quarti <silenio>2006-05-24 18:52:59 +0000
commit5fda137801f2b3efe3d55523905860f4f4ea39ec (patch)
tree38a7e7d4830ae4507bf769cf3797778d9331c206
parenta78bd8c86782ece101e5688eb120f603ed56824f (diff)
downloadeclipse.platform.swt-5fda137801f2b3efe3d55523905860f4f4ea39ec.tar.gz
eclipse.platform.swt-5fda137801f2b3efe3d55523905860f4f4ea39ec.tar.xz
eclipse.platform.swt-5fda137801f2b3efe3d55523905860f4f4ea39ec.zip
143482 - CHIViewEmbeddedFrame not found in Eclipse
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT AWT/carbon/org/eclipse/swt/awt/SWT_AWT.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/carbon/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/carbon/org/eclipse/swt/awt/SWT_AWT.java
index 48b5169ba6..e5557b0bd3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT AWT/carbon/org/eclipse/swt/awt/SWT_AWT.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/carbon/org/eclipse/swt/awt/SWT_AWT.java
@@ -99,7 +99,11 @@ public static Frame new_Frame(final Composite parent) {
Class clazz = null;
try {
String className = embeddedFrameClass != null ? embeddedFrameClass : "apple.awt.CHIViewEmbeddedFrame";
- clazz = Class.forName(className);
+ if (embeddedFrameClass == null) {
+ clazz = Class.forName(className, true, ClassLoader.getSystemClassLoader());
+ } else {
+ clazz = Class.forName(className);
+ }
} catch (Throwable e) {
SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e, " [need SWT compatibility pack from Apple]");
}