diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-09-06 09:49:14 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-09-06 09:49:14 -0400 |
commit | 904726b3be2bccd3138b183ec66e6878016a6ed0 (patch) | |
tree | ce68e522dc6dbb38d184af1101006148f307c667 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org | |
parent | 572d213ab35a497c10eab2f88d0a1f11c36bb71c (diff) | |
download | eclipse.platform.swt-904726b3be2bccd3138b183ec66e6878016a6ed0.tar.gz eclipse.platform.swt-904726b3be2bccd3138b183ec66e6878016a6ed0.tar.xz eclipse.platform.swt-904726b3be2bccd3138b183ec66e6878016a6ed0.zip |
Bug 387338 - Cocoa: [New SWT style required]single click only bring a
window to the top but do not take effective for the click object
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org')
3 files changed, 11 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras index 2038c03f8a..3372577a18 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras @@ -3992,6 +3992,9 @@ <method selector="mouseDownCanMoveWindow" swt_gen="true"> <retval swt_gen="true"></retval> </method> + <method selector="needsPanelToBecomeKey" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> <method selector="registerForDraggedTypes:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -4683,6 +4686,7 @@ <enum name="NSAlphaFirstBitmapFormat" swt_gen="true"></enum> <enum name="NSAlphaNonpremultipliedBitmapFormat" swt_gen="true"></enum> <enum name="NSAlternateKeyMask" swt_gen="true"></enum> + <enum name="NSAppKitDefined" swt_gen="true"></enum> <enum name="NSApplicationDefined" swt_gen="true"></enum> <enum name="NSApplicationDelegateReplySuccess" swt_gen="true"></enum> <enum name="NSAtTop" swt_gen="true"></enum> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java index fd70c7f9bb..7bfb67fc9f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -211,6 +211,10 @@ public boolean mouseDownCanMoveWindow() { return OS.objc_msgSend_bool(this.id, OS.sel_mouseDownCanMoveWindow); } +public boolean needsPanelToBecomeKey() { + return OS.objc_msgSend_bool(this.id, OS.sel_needsPanelToBecomeKey); +} + public void registerForDraggedTypes(NSArray newTypes) { OS.objc_msgSend(this.id, OS.sel_registerForDraggedTypes_, newTypes != null ? newTypes.id : 0); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index 85c7e05db6..dadc558f17 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -1551,6 +1551,7 @@ public static final int /*long*/ sel_moveUp_ = sel_registerName("moveUp:"); public static final int /*long*/ sel_mutableCopy = sel_registerName("mutableCopy"); public static final int /*long*/ sel_mutableString = sel_registerName("mutableString"); public static final int /*long*/ sel_name = sel_registerName("name"); +public static final int /*long*/ sel_needsPanelToBecomeKey = sel_registerName("needsPanelToBecomeKey"); public static final int /*long*/ sel_nextEventMatchingMask_untilDate_inMode_dequeue_ = sel_registerName("nextEventMatchingMask:untilDate:inMode:dequeue:"); public static final int /*long*/ sel_nextObject = sel_registerName("nextObject"); public static final int /*long*/ sel_nextState = sel_registerName("nextState"); @@ -2289,6 +2290,7 @@ public static final int NSAlertThirdButtonReturn = 1002; public static final int NSAlphaFirstBitmapFormat = 1; public static final int NSAlphaNonpremultipliedBitmapFormat = 2; public static final int NSAlternateKeyMask = 524288; +public static final int NSAppKitDefined = 13; public static final int NSApplicationDefined = 15; public static final int NSApplicationDelegateReplySuccess = 0; public static final int NSAtTop = 2; |