diff options
author | Silenio Quarti <silenio> | 2006-05-24 18:52:59 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2006-05-24 18:52:59 +0000 |
commit | 5fda137801f2b3efe3d55523905860f4f4ea39ec (patch) | |
tree | 38a7e7d4830ae4507bf769cf3797778d9331c206 | |
parent | a78bd8c86782ece101e5688eb120f603ed56824f (diff) | |
download | eclipse.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.java | 6 |
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]"); } |