summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-07-24 21:15:33 +0000
committerSilenio Quarti <silenio>2008-07-24 21:15:33 +0000
commit75f25b72d8fefe8e775a1e37639f3a4afc68c73f (patch)
tree5c74c84c05a1e89f17d49e022ed040d761a80fda /bundles
parent1e265b625b66183704723b5d73b18a7a7b4f8605 (diff)
downloadeclipse.platform.swt-75f25b72d8fefe8e775a1e37639f3a4afc68c73f.tar.gz
eclipse.platform.swt-75f25b72d8fefe8e775a1e37639f3a4afc68c73f.tar.xz
eclipse.platform.swt-75f25b72d8fefe8e775a1e37639f3a4afc68c73f.zip
supporting the launcher splash screen
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java5
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java6
2 files changed, 7 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
index 480164e803..75395fdcc3 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
@@ -689,8 +689,9 @@ void createDisplay (DeviceData data) {
OS.class_addMethod(cls, OS.sel_sendEvent_1, proc3, "@:@");
OS.class_addMethod(cls, OS.sel_nextEventMatchingMask_1untilDate_1inMode_1dequeue_1, proc6, "@:i@@B");
OS.objc_registerClassPair(cls);
- application = new NSApplication(OS.objc_msgSend(cls, OS.sel_sharedApplication));
-// application = NSApplication.sharedApplication();
+ application = NSApplication.sharedApplication();
+ OS.object_setClass(application.id, cls);
+// application = new NSApplication(OS.objc_msgSend(cls, OS.sel_sharedApplication));
}
static void deregister (Display display) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
index 2018eb420a..bc80caa543 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
@@ -465,10 +465,12 @@ public Rectangle computeTrim (int x, int y, int width, int height) {
}
void createHandle () {
- state |= CANVAS | HIDDEN;// | GRAB;
+ state |= CANVAS;
if (window != null) {
- view = window.contentView();
+ //TODO - get the content of the foreign window instead of creating it
+ super.createHandle ();
} else {
+ state |= HIDDEN;
window = (NSWindow) new SWTWindow ().alloc ();
int styleMask = OS.NSBorderlessWindowMask;
if ((style & SWT.NO_TRIM) == 0) {