View | Details | Raw Unified | Return to bug 201154 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse SWT PI/carbon/library/os.c (+16 lines)
Lines 129-134 Link Here
129
}
129
}
130
#endif
130
#endif
131
131
132
#ifndef NO_AEGetParamDesc
133
JNIEXPORT jint JNICALL OS_NATIVE(AEGetParamDesc)
134
	(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jobject arg3)
135
{
136
	AEDesc _arg3, *lparg3=NULL;
137
	jint rc = 0;
138
	OS_NATIVE_ENTER(env, that, AEGetParamDesc_FUNC);
139
	if (arg3) if ((lparg3 = getAEDescFields(env, arg3, &_arg3)) == NULL) goto fail;
140
	rc = (jint)AEGetParamDesc((const AppleEvent *)arg0, (AEKeyword)arg1, (DescType)arg2, (AEDesc *)lparg3);
141
fail:
142
	if (arg3 && lparg3) setAEDescFields(env, arg3, lparg3);
143
	OS_NATIVE_EXIT(env, that, AEGetParamDesc_FUNC);
144
	return rc;
145
}
146
#endif
147
132
#ifndef NO_AEInstallEventHandler
148
#ifndef NO_AEInstallEventHandler
133
JNIEXPORT jint JNICALL OS_NATIVE(AEInstallEventHandler)
149
JNIEXPORT jint JNICALL OS_NATIVE(AEInstallEventHandler)
134
	(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jboolean arg4)
150
	(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jboolean arg4)
(-)Eclipse SWT PI/carbon/library/os_stats.c (-2 / +3 lines)
Lines 14-21 Link Here
14
14
15
#ifdef NATIVE_STATS
15
#ifdef NATIVE_STATS
16
16
17
int OS_nativeFunctionCount = 999;
17
int OS_nativeFunctionCount = 1000;
18
int OS_nativeFunctionCallCount[999];
18
int OS_nativeFunctionCallCount[1000];
19
char * OS_nativeFunctionNames[] = {
19
char * OS_nativeFunctionNames[] = {
20
	"AECoerceDesc",
20
	"AECoerceDesc",
21
	"AECountItems",
21
	"AECountItems",
Lines 23-28 Link Here
23
	"AEDisposeDesc",
23
	"AEDisposeDesc",
24
	"AEGetDescData",
24
	"AEGetDescData",
25
	"AEGetNthPtr",
25
	"AEGetNthPtr",
26
	"AEGetParamDesc",
26
	"AEInstallEventHandler",
27
	"AEInstallEventHandler",
27
	"AEProcessAppleEvent",
28
	"AEProcessAppleEvent",
28
	"ATSFontActivateFromFileSpecification",
29
	"ATSFontActivateFromFileSpecification",
(-)Eclipse SWT PI/carbon/library/os_stats.h (+1 lines)
Lines 31-36 Link Here
31
	AEDisposeDesc_FUNC,
31
	AEDisposeDesc_FUNC,
32
	AEGetDescData_FUNC,
32
	AEGetDescData_FUNC,
33
	AEGetNthPtr_FUNC,
33
	AEGetNthPtr_FUNC,
34
	AEGetParamDesc_FUNC,
34
	AEInstallEventHandler_FUNC,
35
	AEInstallEventHandler_FUNC,
35
	AEProcessAppleEvent_FUNC,
36
	AEProcessAppleEvent_FUNC,
36
	ATSFontActivateFromFileSpecification_FUNC,
37
	ATSFontActivateFromFileSpecification_FUNC,
(-)Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java (+10 lines)
Lines 62-67 Link Here
62
	public static final int kAESmallSystemFontChanged = ('s'<<24) + ('s'<<16) + ('f'<<8) + 'n';
62
	public static final int kAESmallSystemFontChanged = ('s'<<24) + ('s'<<16) + ('f'<<8) + 'n';
63
	public static final int kAEViewsFontChanged = ('v'<<24) + ('f'<<16) + ('n'<<8) + 't';
63
	public static final int kAEViewsFontChanged = ('v'<<24) + ('f'<<16) + ('n'<<8) + 't';
64
	public static final int kAEQuitApplication = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't';
64
	public static final int kAEQuitApplication = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't';
65
	public static final int kAEOpenDocuments = ('o' << 24) + ('d' << 16) + ('o' << 8) + 'c';
66
	public static final int keyDirectObject = ('-' << 24) + ('-' << 16) + ('-' << 8) + '-';
67
	public static final int typeAEList = ('l' << 24) + ('i' << 16) + ('s' << 8) + 't';
65
	public static final int kCoreEventClass = ('a'<<24) + ('e'<<16) + ('v'<<8) + 't';
68
	public static final int kCoreEventClass = ('a'<<24) + ('e'<<16) + ('v'<<8) + 't';
66
	public static final int kAlertCautionAlert = 2;
69
	public static final int kAlertCautionAlert = 2;
67
	public static final int kAlertCautionIcon = ('c'<<24) + ('a'<<16) + ('u'<<8) + 't';
70
	public static final int kAlertCautionIcon = ('c'<<24) + ('a'<<16) + ('u'<<8) + 't';
Lines 1131-1136 Link Here
1131
 */
1134
 */
1132
public static final native int AEGetNthPtr(AEDesc theAEDescList, int index, int desiredType, int[] theAEKeyword, int[] typeCode, int dataPtr, int maximumSize, int[] actualSize);
1135
public static final native int AEGetNthPtr(AEDesc theAEDescList, int index, int desiredType, int[] theAEKeyword, int[] typeCode, int dataPtr, int maximumSize, int[] actualSize);
1133
/**
1136
/**
1137
 * @param theAppleEvent cast=(const AppleEvent *)
1138
 * @param theAEKeyword cast=(AEKeyword)
1139
 * @param desiredType cast=(DescType)
1140
 * @param result cast=(AEDesc *)
1141
 */
1142
public static final native int AEGetParamDesc (int theAppleEvent, int theAEKeyword, int desiredType, AEDesc result);
1143
/**
1134
 * @param theAEEventClass cast=(AEEventClass)
1144
 * @param theAEEventClass cast=(AEEventClass)
1135
 * @param theAEEventID cast=(AEEventID)
1145
 * @param theAEEventID cast=(AEEventID)
1136
 * @param handler cast=(AEEventHandlerUPP)
1146
 * @param handler cast=(AEEventHandlerUPP)
(-)Eclipse SWT PI/cocoa/library/os.c (-1 / +36 lines)
Lines 1547-1553 Link Here
1547
	jint rc = 0;
1547
	jint rc = 0;
1548
	OS_NATIVE_ENTER(env, that, CGGetDisplaysWithRect_FUNC);
1548
	OS_NATIVE_ENTER(env, that, CGGetDisplaysWithRect_FUNC);
1549
	if (arg0) if ((lparg0 = getCGRectFields(env, arg0, &_arg0)) == NULL) goto fail;
1549
	if (arg0) if ((lparg0 = getCGRectFields(env, arg0, &_arg0)) == NULL) goto fail;
1550
	rc = (jint)CGGetDisplaysWithRect(*lparg0, (CGDisplayCount)arg1, (CGDirectDisplayID*)arg2, (CGDisplayCount*)arg3);
1550
	rc = (jint)CGGetDisplaysWithRect(*lparg0, (uint32_t)arg1, (CGDirectDisplayID*)arg2, (uint32_t*)arg3);
1551
fail:
1551
fail:
1552
	if (arg0 && lparg0) setCGRectFields(env, arg0, lparg0);
1552
	if (arg0 && lparg0) setCGRectFields(env, arg0, lparg0);
1553
	OS_NATIVE_EXIT(env, that, CGGetDisplaysWithRect_FUNC);
1553
	OS_NATIVE_EXIT(env, that, CGGetDisplaysWithRect_FUNC);
Lines 7535-7540 Link Here
7535
}
7535
}
7536
#endif
7536
#endif
7537
7537
7538
#ifndef NO_objc_1msgSend__JJJJII
7539
JNIEXPORT jlong JNICALL OS_NATIVE(objc_1msgSend__JJJJII)
7540
	(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jlong arg2, jlong arg3, jint arg4, jint arg5)
7541
{
7542
	jlong rc = 0;
7543
	OS_NATIVE_ENTER(env, that, objc_1msgSend__JJJJII_FUNC);
7544
	rc = (jlong)((jlong (*)(jlong, jlong, jlong, jlong, jint, jint))objc_msgSend)(arg0, arg1, arg2, arg3, arg4, arg5);
7545
	OS_NATIVE_EXIT(env, that, objc_1msgSend__JJJJII_FUNC);
7546
	return rc;
7547
}
7548
#endif
7549
7538
#ifndef NO_objc_1msgSend__JJ_3I
7550
#ifndef NO_objc_1msgSend__JJ_3I
7539
JNIEXPORT jlong JNICALL OS_NATIVE(objc_1msgSend__JJ_3I)
7551
JNIEXPORT jlong JNICALL OS_NATIVE(objc_1msgSend__JJ_3I)
7540
	(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jintArray arg2)
7552
	(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jintArray arg2)
Lines 8318-8323 Link Here
8318
}
8330
}
8319
#endif
8331
#endif
8320
8332
8333
#if (!defined(NO_objc_1msgSend_1bool__IIIZ) && !defined(JNI64)) || (!defined(NO_objc_1msgSend_1bool__JJJZ) && defined(JNI64))
8334
#ifndef JNI64
8335
JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__IIIZ)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jboolean arg3)
8336
#else
8337
JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__JJJZ)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jboolean arg3)
8338
#endif
8339
{
8340
	jboolean rc = 0;
8341
#ifndef JNI64
8342
	OS_NATIVE_ENTER(env, that, objc_1msgSend_1bool__IIIZ_FUNC);
8343
#else
8344
	OS_NATIVE_ENTER(env, that, objc_1msgSend_1bool__JJJZ_FUNC);
8345
#endif
8346
	rc = (jboolean)((BOOL (*)(jintLong, jintLong, jintLong, jboolean))objc_msgSend_bool)(arg0, arg1, arg2, arg3);
8347
#ifndef JNI64
8348
	OS_NATIVE_EXIT(env, that, objc_1msgSend_1bool__IIIZ_FUNC);
8349
#else
8350
	OS_NATIVE_EXIT(env, that, objc_1msgSend_1bool__JJJZ_FUNC);
8351
#endif
8352
	return rc;
8353
}
8354
#endif
8355
8321
#if (!defined(NO_objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2) && !defined(JNI64)) || (!defined(NO_objc_1msgSend_1bool__JJLorg_eclipse_swt_internal_cocoa_NSPoint_2) && defined(JNI64))
8356
#if (!defined(NO_objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2) && !defined(JNI64)) || (!defined(NO_objc_1msgSend_1bool__JJLorg_eclipse_swt_internal_cocoa_NSPoint_2) && defined(JNI64))
8322
#ifndef JNI64
8357
#ifndef JNI64
8323
JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jobject arg2)
8358
JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jobject arg2)
(-)Eclipse SWT PI/cocoa/library/os_stats.c (-2 / +8 lines)
Lines 14-21 Link Here
14
14
15
#ifdef NATIVE_STATS
15
#ifdef NATIVE_STATS
16
16
17
int OS_nativeFunctionCount = 532;
17
int OS_nativeFunctionCount = 534;
18
int OS_nativeFunctionCallCount[532];
18
int OS_nativeFunctionCallCount[534];
19
char * OS_nativeFunctionNames[] = {
19
char * OS_nativeFunctionNames[] = {
20
	"ATSFontActivateFromFileReference",
20
	"ATSFontActivateFromFileReference",
21
	"AcquireRootMenu",
21
	"AcquireRootMenu",
Lines 846-851 Link Here
846
#endif
846
#endif
847
	"objc_1msgSend__JJFD",
847
	"objc_1msgSend__JJFD",
848
	"objc_1msgSend__JJI",
848
	"objc_1msgSend__JJI",
849
	"objc_1msgSend__JJJJII",
849
	"objc_1msgSend__JJ_3I",
850
	"objc_1msgSend__JJ_3I",
850
	"objc_1msgSend__JJ_3JJJ",
851
	"objc_1msgSend__JJ_3JJJ",
851
#ifndef JNI64
852
#ifndef JNI64
Lines 980-985 Link Here
980
	"objc_1msgSend_1bool__JJJLorg_eclipse_swt_internal_cocoa_NSSize_2Z",
981
	"objc_1msgSend_1bool__JJJLorg_eclipse_swt_internal_cocoa_NSSize_2Z",
981
#endif
982
#endif
982
#ifndef JNI64
983
#ifndef JNI64
984
	"objc_1msgSend_1bool__IIIZ",
985
#else
986
	"objc_1msgSend_1bool__JJJZ",
987
#endif
988
#ifndef JNI64
983
	"objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2",
989
	"objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2",
984
#else
990
#else
985
	"objc_1msgSend_1bool__JJLorg_eclipse_swt_internal_cocoa_NSPoint_2",
991
	"objc_1msgSend_1bool__JJLorg_eclipse_swt_internal_cocoa_NSPoint_2",
(-)Eclipse SWT PI/cocoa/library/os_stats.h (+6 lines)
Lines 854-859 Link Here
854
#endif
854
#endif
855
	objc_1msgSend__JJFD_FUNC,
855
	objc_1msgSend__JJFD_FUNC,
856
	objc_1msgSend__JJI_FUNC,
856
	objc_1msgSend__JJI_FUNC,
857
	objc_1msgSend__JJJJII_FUNC,
857
	objc_1msgSend__JJ_3I_FUNC,
858
	objc_1msgSend__JJ_3I_FUNC,
858
	objc_1msgSend__JJ_3JJJ_FUNC,
859
	objc_1msgSend__JJ_3JJJ_FUNC,
859
#ifndef JNI64
860
#ifndef JNI64
Lines 988-993 Link Here
988
	objc_1msgSend_1bool__JJJLorg_eclipse_swt_internal_cocoa_NSSize_2Z_FUNC,
989
	objc_1msgSend_1bool__JJJLorg_eclipse_swt_internal_cocoa_NSSize_2Z_FUNC,
989
#endif
990
#endif
990
#ifndef JNI64
991
#ifndef JNI64
992
	objc_1msgSend_1bool__IIIZ_FUNC,
993
#else
994
	objc_1msgSend_1bool__JJJZ_FUNC,
995
#endif
996
#ifndef JNI64
991
	objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2_FUNC,
997
	objc_1msgSend_1bool__IILorg_eclipse_swt_internal_cocoa_NSPoint_2_FUNC,
992
#else
998
#else
993
	objc_1msgSend_1bool__JJLorg_eclipse_swt_internal_cocoa_NSPoint_2_FUNC,
999
	objc_1msgSend_1bool__JJLorg_eclipse_swt_internal_cocoa_NSPoint_2_FUNC,
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras (-215 / +244 lines)
Lines 151-156 Link Here
151
	<enum name="NSAlphaNonpremultipliedBitmapFormat" swt_gen="true"></enum>
151
	<enum name="NSAlphaNonpremultipliedBitmapFormat" swt_gen="true"></enum>
152
	<enum name="NSAlternateKeyMask" swt_gen="true"></enum>
152
	<enum name="NSAlternateKeyMask" swt_gen="true"></enum>
153
	<enum name="NSApplicationDefined" swt_gen="true"></enum>
153
	<enum name="NSApplicationDefined" swt_gen="true"></enum>
154
	<enum name="NSApplicationDelegateReplySuccess" swt_gen="true"></enum>
154
	<enum name="NSAtTop" swt_gen="true"></enum>
155
	<enum name="NSAtTop" swt_gen="true"></enum>
155
	<enum name="NSBackingStoreBuffered" swt_gen="true"></enum>
156
	<enum name="NSBackingStoreBuffered" swt_gen="true"></enum>
156
	<enum name="NSBackspaceCharacter" swt_gen="true"></enum>
157
	<enum name="NSBackspaceCharacter" swt_gen="true"></enum>
Lines 523-528 Link Here
523
			<arg name="flag" swt_gen="true"></arg>
524
			<arg name="flag" swt_gen="true"></arg>
524
			<retval swt_gen="true"></retval>
525
			<retval swt_gen="true"></retval>
525
		</method>
526
		</method>
527
		<method selector="replyToOpenOrPrint:" swt_gen="true">
528
			<arg name="reply" swt_gen="true"></arg>
529
			<retval swt_gen="true"></retval>
530
		</method>
526
		<method selector="run" swt_gen="true">
531
		<method selector="run" swt_gen="true">
527
			<retval swt_gen="true"></retval>
532
			<retval swt_gen="true"></retval>
528
		</method>
533
		</method>
Lines 2256-2261 Link Here
2256
			<arg name="attribute" swt_gen="true"></arg>
2261
			<arg name="attribute" swt_gen="true"></arg>
2257
			<retval swt_gen="true"></retval>
2262
			<retval swt_gen="true"></retval>
2258
		</method>
2263
		</method>
2264
		<method selector="application:openFile:" swt_gen="true">
2265
			<arg name="sender" swt_gen="true"></arg>
2266
			<arg name="filename" swt_gen="true"></arg>
2267
			<retval swt_gen="true"></retval>
2268
		</method>
2269
		<method selector="application:openFileWithoutUI:" swt_gen="true">
2270
			<arg name="sender" swt_gen="true"></arg>
2271
			<arg name="filename" swt_gen="true"></arg>
2272
			<retval swt_gen="true"></retval>
2273
		</method>
2274
		<method selector="application:openFiles:" swt_gen="true">
2275
			<arg name="sender" swt_gen="true"></arg>
2276
			<arg name="filenames" swt_gen="true"></arg>
2277
			<retval swt_gen="true"></retval>
2278
		</method>
2279
		<method selector="applicationOpenUntitledFile:" swt_gen="true">
2280
			<arg name="sender" swt_gen="true"></arg>
2281
			<retval swt_gen="true"></retval>
2282
		</method>
2283
		<method selector="applicationShouldHandleReopen:hasVisibleWindows:" swt_gen="true">
2284
			<arg name="sender" swt_gen="true"></arg>
2285
			<arg name="flag" swt_gen="true"></arg>
2286
			<retval swt_gen="true"></retval>
2287
		</method>
2259
		<method selector="draggedImage:endedAt:operation:" swt_gen="true" swt_gen_super_msgSend="true">
2288
		<method selector="draggedImage:endedAt:operation:" swt_gen="true" swt_gen_super_msgSend="true">
2260
			<arg name="image" swt_gen="true"></arg>
2289
			<arg name="image" swt_gen="true"></arg>
2261
			<arg name="screenPoint" swt_gen="true"></arg>
2290
			<arg name="screenPoint" swt_gen="true"></arg>
Lines 3316-3322 Link Here
3316
	</class>
3345
	</class>
3317
	<class name="NSTableView" swt_gen="mixed" swt_superclass="NSControl">
3346
	<class name="NSTableView" swt_gen="mixed" swt_superclass="NSControl">
3318
		<method selector="addTableColumn:" swt_gen="true">
3347
		<method selector="addTableColumn:" swt_gen="true">
3319
			<arg name="column" swt_gen="true"></arg>
3348
			<arg name="tableColumn"></arg>
3320
			<retval swt_gen="true"></retval>
3349
			<retval swt_gen="true"></retval>
3321
		</method>
3350
		</method>
3322
		<method selector="allowsColumnReordering" swt_gen="true">
3351
		<method selector="allowsColumnReordering" swt_gen="true">
Lines 3384-3390 Link Here
3384
			<retval swt_gen="true"></retval>
3413
			<retval swt_gen="true"></retval>
3385
		</method>
3414
		</method>
3386
		<method selector="moveColumn:toColumn:" swt_gen="true">
3415
		<method selector="moveColumn:toColumn:" swt_gen="true">
3387
			<arg name="column" swt_gen="true"></arg>
3416
			<arg name="oldIndex"></arg>
3388
			<arg name="newIndex" swt_gen="true"></arg>
3417
			<arg name="newIndex" swt_gen="true"></arg>
3389
			<retval swt_gen="true"></retval>
3418
			<retval swt_gen="true"></retval>
3390
		</method>
3419
		</method>
Lines 3412-3418 Link Here
3412
			<retval swt_gen="true"></retval>
3441
			<retval swt_gen="true"></retval>
3413
		</method>
3442
		</method>
3414
		<method selector="removeTableColumn:" swt_gen="true">
3443
		<method selector="removeTableColumn:" swt_gen="true">
3415
			<arg name="column" swt_gen="true"></arg>
3444
			<arg name="tableColumn"></arg>
3416
			<retval swt_gen="true"></retval>
3445
			<retval swt_gen="true"></retval>
3417
		</method>
3446
		</method>
3418
		<method selector="rowAtPoint:" swt_gen="true">
3447
		<method selector="rowAtPoint:" swt_gen="true">
Lines 3491-3502 Link Here
3491
			<retval swt_gen="true"></retval>
3520
			<retval swt_gen="true"></retval>
3492
		</method>
3521
		</method>
3493
		<method selector="setHighlightedTableColumn:" swt_gen="true">
3522
		<method selector="setHighlightedTableColumn:" swt_gen="true">
3494
			<arg name="tc" swt_gen="true"></arg>
3523
			<arg name="tableColumn"></arg>
3495
			<retval swt_gen="true"></retval>
3524
			<retval swt_gen="true"></retval>
3496
		</method>
3525
		</method>
3497
		<method selector="setIndicatorImage:inTableColumn:" swt_gen="true">
3526
		<method selector="setIndicatorImage:inTableColumn:" swt_gen="true">
3498
			<arg name="anImage" swt_gen="true"></arg>
3527
			<arg name="anImage" swt_gen="true"></arg>
3499
			<arg name="tc" swt_gen="true"></arg>
3528
			<arg name="tableColumn"></arg>
3500
			<retval swt_gen="true"></retval>
3529
			<retval swt_gen="true"></retval>
3501
		</method>
3530
		</method>
3502
		<method selector="setIntercellSpacing:" swt_gen="true">
3531
		<method selector="setIntercellSpacing:" swt_gen="true">
Lines 4028-4034 Link Here
4028
			<retval swt_gen="true"></retval>
4057
			<retval swt_gen="true"></retval>
4029
		</method>
4058
		</method>
4030
		<method selector="drawRect:" swt_gen="true" swt_gen_custom_callback="true">
4059
		<method selector="drawRect:" swt_gen="true" swt_gen_custom_callback="true">
4031
			<arg name="rect" swt_gen="true"></arg>
4060
			<arg name="dirtyRect"></arg>
4032
			<retval swt_gen="true"></retval>
4061
			<retval swt_gen="true"></retval>
4033
		</method>
4062
		</method>
4034
		<method selector="endDocument" swt_gen="true">
4063
		<method selector="endDocument" swt_gen="true">
Lines 4543-4583 Link Here
4543
			<arg name="attribute" swt_gen="true"></arg>
4572
			<arg name="attribute" swt_gen="true"></arg>
4544
		</method>
4573
		</method>
4545
	</informal_protocol>
4574
	</informal_protocol>
4546
	<informal_protocol name="NSApplicationDelegate" swt_gen="mixed">
4547
		<method selector="applicationShouldTerminate:" swt_gen="true">
4548
			<arg name="sender" swt_gen="true"></arg>
4549
		</method>
4550
	</informal_protocol>
4551
	<informal_protocol name="NSApplicationNotifications" swt_gen="mixed">
4552
		<method selector="applicationDidBecomeActive:" swt_gen="true">
4553
			<arg name="notification" swt_gen="true"></arg>
4554
		</method>
4555
		<method selector="applicationDidFinishLaunching:" swt_gen="true">
4556
			<arg name="notification" swt_gen="true"></arg>
4557
		</method>
4558
		<method selector="applicationDidResignActive:" swt_gen="true">
4559
			<arg name="notification" swt_gen="true"></arg>
4560
		</method>
4561
		<method selector="applicationWillFinishLaunching:" swt_gen="true">
4562
			<arg name="notification" swt_gen="true"></arg>
4563
		</method>
4564
		<method selector="applicationWillTerminate:" swt_gen="true">
4565
			<arg name="notification" swt_gen="true"></arg>
4566
		</method>
4567
	</informal_protocol>
4568
	<informal_protocol name="NSColorPanelResponderMethod" swt_gen="true">
4575
	<informal_protocol name="NSColorPanelResponderMethod" swt_gen="true">
4569
		<method selector="changeColor:" swt_gen="true">
4576
		<method selector="changeColor:" swt_gen="true">
4570
			<arg name="sender" swt_gen="true"></arg>
4577
			<arg name="sender" swt_gen="true"></arg>
4571
		</method>
4578
		</method>
4572
	</informal_protocol>
4579
	</informal_protocol>
4573
	<informal_protocol name="NSComboBoxNotifications" swt_gen="mixed">
4574
		<method selector="comboBoxSelectionDidChange:" swt_gen="true">
4575
			<arg name="notification" swt_gen="true"></arg>
4576
		</method>
4577
		<method selector="comboBoxWillDismiss:" swt_gen="true">
4578
			<arg name="notification" swt_gen="true"></arg>
4579
		</method>
4580
	</informal_protocol>
4581
	<informal_protocol name="NSDraggingDestination" swt_gen="mixed">
4580
	<informal_protocol name="NSDraggingDestination" swt_gen="mixed">
4582
		<method selector="draggingEnded:" swt_gen="true">
4581
		<method selector="draggingEnded:" swt_gen="true">
4583
			<arg name="sender" swt_gen="true"></arg>
4582
			<arg name="sender" swt_gen="true"></arg>
Lines 4616-4858 Link Here
4616
			<arg name="sender" swt_gen="true"></arg>
4615
			<arg name="sender" swt_gen="true"></arg>
4617
		</method>
4616
		</method>
4618
	</informal_protocol>
4617
	</informal_protocol>
4618
	<informal_protocol name="NSOutlineViewNotifications" swt_gen="mixed">
4619
		<method selector="outlineViewColumnDidMove:" swt_gen="true">
4620
			<arg name="notification" swt_gen="true"></arg>
4621
		</method>
4622
		<method selector="outlineViewColumnDidResize:" swt_gen="true">
4623
			<arg name="notification" swt_gen="true"></arg>
4624
		</method>
4625
		<method selector="outlineViewItemDidExpand:" swt_gen="true">
4626
			<arg name="notification" swt_gen="true"></arg>
4627
		</method>
4628
		<method selector="outlineViewSelectionDidChange:" swt_gen="true">
4629
			<arg name="notification" swt_gen="true"></arg>
4630
		</method>
4631
		<method selector="outlineViewSelectionIsChanging:" swt_gen="true">
4632
			<arg name="notification" swt_gen="true"></arg>
4633
		</method>
4634
	</informal_protocol>
4635
	<informal_protocol name="NSPasteboardOwner" swt_gen="mixed">
4636
		<method selector="pasteboard:provideDataForType:" swt_gen="true">
4637
			<arg name="sender" swt_gen="true"></arg>
4638
			<arg name="type" swt_gen="true"></arg>
4639
		</method>
4640
	</informal_protocol>
4641
	<informal_protocol name="NSTextDelegate" swt_gen="mixed">
4642
		<method selector="textDidChange:" swt_gen="true">
4643
			<arg name="notification" swt_gen="true"></arg>
4644
		</method>
4645
		<method selector="textDidEndEditing:" swt_gen="true">
4646
			<arg name="notification" swt_gen="true"></arg>
4647
		</method>
4648
	</informal_protocol>
4649
	<informal_protocol name="NSToolTipOwner" swt_gen="true">
4650
		<method selector="view:stringForToolTip:point:userData:" swt_gen="true" swt_gen_custom_callback="true">
4651
			<arg name="view" swt_gen="true"></arg>
4652
			<arg name="tag" swt_gen="true"></arg>
4653
			<arg name="point" swt_gen="true"></arg>
4654
			<arg name="data" swt_gen="true"></arg>
4655
		</method>
4656
	</informal_protocol>
4657
	<class name="NSSecureTextField" swt_gen="true" swt_superclass="NSTextField"></class>
4619
	<informal_protocol name="NSMenuDelegate" swt_gen="mixed">
4658
	<informal_protocol name="NSMenuDelegate" swt_gen="mixed">
4620
		<method selector="menu:willHighlightItem:" swt_gen="true">
4659
		<method selector="menuNeedsUpdate:" swt_gen="true">
4621
			<arg name="menu" swt_gen="true"></arg>
4660
			<arg name="menu" swt_gen="true"></arg>
4622
			<arg name="item" swt_gen="true"></arg>
4623
		</method>
4661
		</method>
4624
		<method selector="menuDidClose:" swt_gen="true">
4662
		<method selector="menuDidClose:" swt_gen="true">
4625
			<arg name="menu" swt_gen="true"></arg>
4663
			<arg name="menu" swt_gen="true"></arg>
4626
		</method>
4664
		</method>
4627
		<method selector="menuNeedsUpdate:" swt_gen="true">
4665
		<method selector="menu:willHighlightItem:" swt_gen="true">
4628
			<arg name="menu" swt_gen="true"></arg>
4666
			<arg name="menu" swt_gen="true"></arg>
4667
			<arg name="item" swt_gen="true"></arg>
4629
		</method>
4668
		</method>
4630
		<method selector="menuWillOpen:" swt_gen="true">
4669
		<method selector="menuWillOpen:" swt_gen="true">
4631
			<arg name="menu" swt_gen="true"></arg>
4670
			<arg name="menu" swt_gen="true"></arg>
4632
		</method>
4671
		</method>
4633
	</informal_protocol>
4672
	</informal_protocol>
4634
	<informal_protocol name="NSOutlineViewDataSource" swt_gen="mixed">
4673
	<informal_protocol name="NSOutlineViewDataSource" swt_gen="mixed">
4635
		<method selector="outlineView:acceptDrop:item:childIndex:" swt_gen="true">
4674
		<method selector="outlineView:numberOfChildrenOfItem:" swt_gen="true">
4636
			<arg name="outlineView" swt_gen="true"></arg>
4637
			<arg name="info" swt_gen="true"></arg>
4638
			<arg name="item" swt_gen="true"></arg>
4675
			<arg name="item" swt_gen="true"></arg>
4639
			<arg name="index" swt_gen="true"></arg>
4640
		</method>
4641
		<method selector="outlineView:child:ofItem:" swt_gen="true">
4642
			<arg name="outlineView" swt_gen="true"></arg>
4676
			<arg name="outlineView" swt_gen="true"></arg>
4643
			<arg name="index" swt_gen="true"></arg>
4644
			<arg name="item" swt_gen="true"></arg>
4645
		</method>
4677
		</method>
4646
		<method selector="outlineView:isItemExpandable:" swt_gen="true">
4678
		<method selector="outlineView:writeItems:toPasteboard:" swt_gen="true">
4679
			<arg name="items" swt_gen="true"></arg>
4680
			<arg name="pasteboard" swt_gen="true"></arg>
4647
			<arg name="outlineView" swt_gen="true"></arg>
4681
			<arg name="outlineView" swt_gen="true"></arg>
4648
			<arg name="item" swt_gen="true"></arg>
4649
		</method>
4682
		</method>
4650
		<method selector="outlineView:numberOfChildrenOfItem:" swt_gen="true">
4683
		<method selector="outlineView:setObjectValue:forTableColumn:byItem:" swt_gen="true">
4651
			<arg name="outlineView" swt_gen="true"></arg>
4652
			<arg name="item" swt_gen="true"></arg>
4684
			<arg name="item" swt_gen="true"></arg>
4653
		</method>
4685
			<arg name="object" swt_gen="true"></arg>
4654
		<method selector="outlineView:objectValueForTableColumn:byItem:" swt_gen="true">
4655
			<arg name="outlineView" swt_gen="true"></arg>
4686
			<arg name="outlineView" swt_gen="true"></arg>
4656
			<arg name="tableColumn" swt_gen="true"></arg>
4687
			<arg name="tableColumn" swt_gen="true"></arg>
4657
			<arg name="item" swt_gen="true"></arg>
4658
		</method>
4688
		</method>
4659
		<method selector="outlineView:setObjectValue:forTableColumn:byItem:" swt_gen="true">
4689
		<method selector="outlineView:validateDrop:proposedItem:proposedChildIndex:" swt_gen="true">
4660
			<arg name="outlineView" swt_gen="true"></arg>
4690
			<arg name="index" swt_gen="true"></arg>
4661
			<arg name="object" swt_gen="true"></arg>
4662
			<arg name="tableColumn" swt_gen="true"></arg>
4663
			<arg name="item" swt_gen="true"></arg>
4691
			<arg name="item" swt_gen="true"></arg>
4692
			<arg name="info" swt_gen="true"></arg>
4693
			<arg name="outlineView" swt_gen="true"></arg>
4664
		</method>
4694
		</method>
4665
		<method selector="outlineView:validateDrop:proposedItem:proposedChildIndex:" swt_gen="true">
4695
		<method selector="outlineView:child:ofItem:" swt_gen="true">
4666
			<arg name="outlineView" swt_gen="true"></arg>
4696
			<arg name="outlineView" swt_gen="true"></arg>
4667
			<arg name="info" swt_gen="true"></arg>
4668
			<arg name="item" swt_gen="true"></arg>
4697
			<arg name="item" swt_gen="true"></arg>
4669
			<arg name="index" swt_gen="true"></arg>
4698
			<arg name="index" swt_gen="true"></arg>
4670
		</method>
4699
		</method>
4671
		<method selector="outlineView:writeItems:toPasteboard:" swt_gen="true">
4700
		<method selector="outlineView:objectValueForTableColumn:byItem:" swt_gen="true">
4672
			<arg name="outlineView" swt_gen="true"></arg>
4673
			<arg name="items" swt_gen="true"></arg>
4674
			<arg name="pasteboard" swt_gen="true"></arg>
4675
		</method>
4676
	</informal_protocol>
4677
	<informal_protocol name="NSOutlineViewDelegate" swt_gen="mixed">
4678
		<method selector="outlineView:didClickTableColumn:" swt_gen="true">
4679
			<arg name="outlineView" swt_gen="true"></arg>
4701
			<arg name="outlineView" swt_gen="true"></arg>
4702
			<arg name="item" swt_gen="true"></arg>
4680
			<arg name="tableColumn" swt_gen="true"></arg>
4703
			<arg name="tableColumn" swt_gen="true"></arg>
4681
		</method>
4704
		</method>
4682
		<method selector="outlineView:shouldCollapseItem:" swt_gen="true">
4705
		<method selector="outlineView:isItemExpandable:" swt_gen="true">
4683
			<arg name="outlineView" swt_gen="true"></arg>
4684
			<arg name="item" swt_gen="true"></arg>
4706
			<arg name="item" swt_gen="true"></arg>
4685
		</method>
4686
		<method selector="outlineView:shouldExpandItem:" swt_gen="true">
4687
			<arg name="outlineView" swt_gen="true"></arg>
4707
			<arg name="outlineView" swt_gen="true"></arg>
4688
			<arg name="item" swt_gen="true"></arg>
4689
		</method>
4708
		</method>
4690
		<method selector="outlineView:willDisplayCell:forTableColumn:item:" swt_gen="true">
4709
		<method selector="outlineView:acceptDrop:item:childIndex:" swt_gen="true">
4691
			<arg name="outlineView" swt_gen="true"></arg>
4710
			<arg name="index" swt_gen="true"></arg>
4692
			<arg name="cell" swt_gen="true"></arg>
4693
			<arg name="tableColumn" swt_gen="true"></arg>
4694
			<arg name="item" swt_gen="true"></arg>
4711
			<arg name="item" swt_gen="true"></arg>
4695
		</method>
4712
			<arg name="outlineView" swt_gen="true"></arg>
4696
	</informal_protocol>
4713
			<arg name="info" swt_gen="true"></arg>
4697
	<informal_protocol name="NSOutlineViewNotifications" swt_gen="mixed">
4698
		<method selector="outlineViewColumnDidMove:" swt_gen="true">
4699
			<arg name="notification" swt_gen="true"></arg>
4700
		</method>
4701
		<method selector="outlineViewColumnDidResize:" swt_gen="true">
4702
			<arg name="notification" swt_gen="true"></arg>
4703
		</method>
4704
		<method selector="outlineViewItemDidExpand:" swt_gen="true">
4705
			<arg name="notification" swt_gen="true"></arg>
4706
		</method>
4707
		<method selector="outlineViewSelectionDidChange:" swt_gen="true">
4708
			<arg name="notification" swt_gen="true"></arg>
4709
		</method>
4710
		<method selector="outlineViewSelectionIsChanging:" swt_gen="true">
4711
			<arg name="notification" swt_gen="true"></arg>
4712
		</method>
4713
	</informal_protocol>
4714
	<informal_protocol name="NSPasteboardOwner" swt_gen="mixed">
4715
		<method selector="pasteboard:provideDataForType:" swt_gen="true">
4716
			<arg name="sender" swt_gen="true"></arg>
4717
			<arg name="type" swt_gen="true"></arg>
4718
		</method>
4719
	</informal_protocol>
4720
	<informal_protocol name="NSSavePanelDelegate" swt_gen="mixed">
4721
		<method selector="panel:shouldShowFilename:" swt_gen="true">
4722
			<arg name="sender" swt_gen="true"></arg>
4723
			<arg name="filename" swt_gen="true"></arg>
4724
		</method>
4725
	</informal_protocol>
4726
	<informal_protocol name="NSTabViewDelegate" swt_gen="mixed">
4727
		<method selector="tabView:didSelectTabViewItem:" swt_gen="true">
4728
			<arg name="tabView" swt_gen="true"></arg>
4729
			<arg name="tabViewItem" swt_gen="true"></arg>
4730
		</method>
4731
		<method selector="tabView:shouldSelectTabViewItem:" swt_gen="true">
4732
			<arg name="tabView" swt_gen="true"></arg>
4733
			<arg name="tabViewItem" swt_gen="true"></arg>
4734
		</method>
4735
		<method selector="tabView:willSelectTabViewItem:" swt_gen="true">
4736
			<arg name="tabView" swt_gen="true"></arg>
4737
			<arg name="tabViewItem" swt_gen="true"></arg>
4738
		</method>
4714
		</method>
4739
	</informal_protocol>
4715
	</informal_protocol>
4740
	<informal_protocol name="NSTableDataSource" swt_gen="mixed">
4716
	<informal_protocol name="NSTableDataSource" swt_gen="mixed">
4741
		<method selector="numberOfRowsInTableView:" swt_gen="true">
4717
		<method selector="numberOfRowsInTableView:" swt_gen="true">
4742
			<arg name="tableView" swt_gen="true"></arg>
4718
			<arg name="tableView" swt_gen="true"></arg>
4743
		</method>
4719
		</method>
4744
		<method selector="tableView:acceptDrop:row:dropOperation:" swt_gen="true">
4720
		<method selector="tableView:setObjectValue:forTableColumn:row:" swt_gen="true">
4745
			<arg name="tableView" swt_gen="true"></arg>
4746
			<arg name="info" swt_gen="true"></arg>
4747
			<arg name="row" swt_gen="true"></arg>
4721
			<arg name="row" swt_gen="true"></arg>
4748
			<arg name="dropOperation" swt_gen="true"></arg>
4722
			<arg name="object" swt_gen="true"></arg>
4723
			<arg name="tableView" swt_gen="true"></arg>
4724
			<arg name="tableColumn" swt_gen="true"></arg>
4725
		</method>
4726
		<method selector="tableView:writeRowsWithIndexes:toPasteboard:" swt_gen="true">
4727
			<arg name="pboard" swt_gen="true"></arg>
4728
			<arg name="tableView" swt_gen="true"></arg>
4729
			<arg name="rowIndexes" swt_gen="true"></arg>
4749
		</method>
4730
		</method>
4750
		<method selector="tableView:objectValueForTableColumn:row:" swt_gen="true">
4731
		<method selector="tableView:objectValueForTableColumn:row:" swt_gen="true">
4732
			<arg name="row" swt_gen="true"></arg>
4751
			<arg name="tableView" swt_gen="true"></arg>
4733
			<arg name="tableView" swt_gen="true"></arg>
4752
			<arg name="tableColumn" swt_gen="true"></arg>
4734
			<arg name="tableColumn" swt_gen="true"></arg>
4753
			<arg name="row" swt_gen="true"></arg>
4754
		</method>
4735
		</method>
4755
		<method selector="tableView:setObjectValue:forTableColumn:row:" swt_gen="true">
4736
		<method selector="tableView:acceptDrop:row:dropOperation:" swt_gen="true">
4737
			<arg name="dropOperation" swt_gen="true"></arg>
4738
			<arg name="info" swt_gen="true"></arg>
4756
			<arg name="tableView" swt_gen="true"></arg>
4739
			<arg name="tableView" swt_gen="true"></arg>
4757
			<arg name="object" swt_gen="true"></arg>
4758
			<arg name="tableColumn" swt_gen="true"></arg>
4759
			<arg name="row" swt_gen="true"></arg>
4740
			<arg name="row" swt_gen="true"></arg>
4760
		</method>
4741
		</method>
4761
		<method selector="tableView:validateDrop:proposedRow:proposedDropOperation:" swt_gen="true">
4742
		<method selector="tableView:validateDrop:proposedRow:proposedDropOperation:" swt_gen="true">
4762
			<arg name="tableView" swt_gen="true"></arg>
4743
			<arg name="tableView" swt_gen="true"></arg>
4763
			<arg name="info" swt_gen="true"></arg>
4764
			<arg name="row" swt_gen="true"></arg>
4744
			<arg name="row" swt_gen="true"></arg>
4745
			<arg name="info" swt_gen="true"></arg>
4765
			<arg name="dropOperation" swt_gen="true"></arg>
4746
			<arg name="dropOperation" swt_gen="true"></arg>
4766
		</method>
4747
		</method>
4767
		<method selector="tableView:writeRowsWithIndexes:toPasteboard:" swt_gen="true">
4768
			<arg name="tableView" swt_gen="true"></arg>
4769
			<arg name="rowIndexes" swt_gen="true"></arg>
4770
			<arg name="pboard" swt_gen="true"></arg>
4771
		</method>
4772
	</informal_protocol>
4748
	</informal_protocol>
4773
	<informal_protocol name="NSTableViewDelegate" swt_gen="mixed">
4749
	<informal_protocol name="NSTextInput" swt_gen="true">
4774
		<method selector="tableView:didClickTableColumn:" swt_gen="true">
4750
		<method selector="hasMarkedText" swt_gen="true"></method>
4775
			<arg name="tableView" swt_gen="true"></arg>
4751
		<method selector="insertText:" swt_gen="true">
4776
			<arg name="tableColumn" swt_gen="true"></arg>
4752
			<arg name="aString" swt_gen="true"></arg>
4777
		</method>
4753
		</method>
4778
		<method selector="tableView:shouldEditTableColumn:row:" swt_gen="true">
4754
		<method selector="unmarkText" swt_gen="true"></method>
4779
			<arg name="tableView" swt_gen="true"></arg>
4755
		<method selector="selectedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
4780
			<arg name="tableColumn" swt_gen="true"></arg>
4756
		<method selector="characterIndexForPoint:" swt_gen="true" swt_gen_custom_callback="true">
4781
			<arg name="row" swt_gen="true"></arg>
4757
			<arg name="thePoint" swt_gen="true"></arg>
4782
		</method>
4758
		</method>
4783
		<method selector="tableView:willDisplayCell:forTableColumn:row:" swt_gen="true">
4759
		<method selector="firstRectForCharacterRange:" swt_gen="true" swt_gen_custom_callback="true">
4784
			<arg name="tableView" swt_gen="true"></arg>
4760
			<arg name="theRange" swt_gen="true"></arg>
4785
			<arg name="cell" swt_gen="true"></arg>
4761
		</method>
4786
			<arg name="tableColumn" swt_gen="true"></arg>
4762
		<method selector="validAttributesForMarkedText" swt_gen="true"></method>
4787
			<arg name="row" swt_gen="true"></arg>
4763
		<method selector="attributedSubstringFromRange:" swt_gen="true" swt_gen_custom_callback="true">
4764
			<arg name="theRange" swt_gen="true"></arg>
4765
		</method>
4766
		<method selector="setMarkedText:selectedRange:" swt_gen="true" swt_gen_custom_callback="true">
4767
			<arg name="selRange" swt_gen="true"></arg>
4768
			<arg name="aString" swt_gen="true"></arg>
4788
		</method>
4769
		</method>
4770
		<method selector="markedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
4789
	</informal_protocol>
4771
	</informal_protocol>
4790
	<informal_protocol name="NSTableViewNotifications" swt_gen="true">
4772
	<informal_protocol name="NSApplicationDelegate" swt_gen="mixed">
4791
		<method selector="tableViewColumnDidMove:" swt_gen="true">
4773
		<method selector="applicationShouldTerminate:" swt_gen="true">
4792
			<arg name="notification" swt_gen="true"></arg>
4774
			<arg name="sender" swt_gen="true"></arg>
4793
		</method>
4775
		</method>
4794
		<method selector="tableViewColumnDidResize:" swt_gen="true">
4776
	</informal_protocol>
4777
	<informal_protocol name="NSApplicationNotifications" swt_gen="mixed">
4778
		<method selector="applicationDidResignActive:" swt_gen="true">
4795
			<arg name="notification" swt_gen="true"></arg>
4779
			<arg name="notification" swt_gen="true"></arg>
4796
		</method>
4780
		</method>
4797
		<method selector="tableViewSelectionDidChange:" swt_gen="true">
4781
		<method selector="applicationWillFinishLaunching:" swt_gen="true">
4798
			<arg name="notification" swt_gen="true"></arg>
4782
			<arg name="notification" swt_gen="true"></arg>
4799
		</method>
4783
		</method>
4800
		<method selector="tableViewSelectionIsChanging:" swt_gen="true">
4784
		<method selector="applicationDidBecomeActive:" swt_gen="true">
4801
			<arg name="notification" swt_gen="true"></arg>
4785
			<arg name="notification" swt_gen="true"></arg>
4802
		</method>
4786
		</method>
4803
	</informal_protocol>
4787
		<method selector="applicationDidFinishLaunching:" swt_gen="true">
4804
	<informal_protocol name="NSTextDelegate" swt_gen="mixed">
4805
		<method selector="textDidChange:" swt_gen="true">
4806
			<arg name="notification" swt_gen="true"></arg>
4788
			<arg name="notification" swt_gen="true"></arg>
4807
		</method>
4789
		</method>
4808
		<method selector="textDidEndEditing:" swt_gen="true">
4790
		<method selector="applicationWillTerminate:" swt_gen="true">
4809
			<arg name="notification" swt_gen="true"></arg>
4791
			<arg name="notification" swt_gen="true"></arg>
4810
		</method>
4792
		</method>
4811
	</informal_protocol>
4793
	</informal_protocol>
4812
	<informal_protocol name="NSTextViewDelegate" swt_gen="mixed">
4794
	<informal_protocol name="NSToolbarNotifications" swt_gen="true">
4813
		<method selector="textView:clickedOnLink:atIndex:" swt_gen="true">
4795
		<method selector="toolbarWillAddItem:" swt_gen="true">
4814
			<arg name="textView" swt_gen="true"></arg>
4815
			<arg name="link" swt_gen="true"></arg>
4816
			<arg name="charIndex" swt_gen="true"></arg>
4817
		</method>
4818
		<method selector="textView:willChangeSelectionFromCharacterRange:toCharacterRange:" swt_gen="true" swt_gen_custom_callback="true">
4819
			<arg name="textView" swt_gen="true"></arg>
4820
			<arg name="oldSelectedCharRange" swt_gen="true"></arg>
4821
			<arg name="newSelectedCharRange" swt_gen="true"></arg>
4822
		</method>
4823
		<method selector="textViewDidChangeSelection:" swt_gen="true">
4824
			<arg name="notification" swt_gen="true"></arg>
4796
			<arg name="notification" swt_gen="true"></arg>
4825
		</method>
4797
		</method>
4826
	</informal_protocol>
4798
		<method selector="toolbarDidRemoveItem:" swt_gen="true">
4827
	<informal_protocol name="NSToolTipOwner" swt_gen="true">
4799
			<arg name="notification" swt_gen="true"></arg>
4828
		<method selector="view:stringForToolTip:point:userData:" swt_gen="true" swt_gen_custom_callback="true">
4829
			<arg name="view" swt_gen="true"></arg>
4830
			<arg name="tag" swt_gen="true"></arg>
4831
			<arg name="point" swt_gen="true"></arg>
4832
			<arg name="data" swt_gen="true"></arg>
4833
		</method>
4800
		</method>
4834
	</informal_protocol>
4801
	</informal_protocol>
4835
	<informal_protocol name="NSToolbarDelegate" swt_gen="true">
4802
	<informal_protocol name="NSTableViewNotifications" swt_gen="true">
4836
		<method selector="toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:" swt_gen="true">
4803
		<method selector="tableViewColumnDidResize:" swt_gen="true">
4837
			<arg name="toolbar" swt_gen="true"></arg>
4804
			<arg name="notification" swt_gen="true"></arg>
4838
			<arg name="itemIdentifier" swt_gen="true"></arg>
4839
			<arg name="flag" swt_gen="true"></arg>
4840
		</method>
4841
		<method selector="toolbarAllowedItemIdentifiers:" swt_gen="true">
4842
			<arg name="toolbar" swt_gen="true"></arg>
4843
		</method>
4844
		<method selector="toolbarDefaultItemIdentifiers:" swt_gen="true">
4845
			<arg name="toolbar" swt_gen="true"></arg>
4846
		</method>
4805
		</method>
4847
		<method selector="toolbarSelectableItemIdentifiers:" swt_gen="true">
4806
		<method selector="tableViewSelectionIsChanging:" swt_gen="true">
4848
			<arg name="toolbar" swt_gen="true"></arg>
4807
			<arg name="notification" swt_gen="true"></arg>
4849
		</method>
4808
		</method>
4850
	</informal_protocol>
4809
		<method selector="tableViewSelectionDidChange:" swt_gen="true">
4851
	<informal_protocol name="NSToolbarNotifications" swt_gen="true">
4852
		<method selector="toolbarDidRemoveItem:" swt_gen="true">
4853
			<arg name="notification" swt_gen="true"></arg>
4810
			<arg name="notification" swt_gen="true"></arg>
4854
		</method>
4811
		</method>
4855
		<method selector="toolbarWillAddItem:" swt_gen="true">
4812
		<method selector="tableViewColumnDidMove:" swt_gen="true">
4856
			<arg name="notification" swt_gen="true"></arg>
4813
			<arg name="notification" swt_gen="true"></arg>
4857
		</method>
4814
		</method>
4858
	</informal_protocol>
4815
	</informal_protocol>
Lines 4862-4911 Link Here
4862
		</method>
4819
		</method>
4863
	</informal_protocol>
4820
	</informal_protocol>
4864
	<informal_protocol name="NSWindowNotifications" swt_gen="mixed">
4821
	<informal_protocol name="NSWindowNotifications" swt_gen="mixed">
4865
		<method selector="windowDidBecomeKey:" swt_gen="true">
4822
		<method selector="windowDidResize:" swt_gen="true">
4866
			<arg name="notification" swt_gen="true"></arg>
4823
			<arg name="notification" swt_gen="true"></arg>
4867
		</method>
4824
		</method>
4868
		<method selector="windowDidDeminiaturize:" swt_gen="true">
4825
		<method selector="windowWillClose:" swt_gen="true">
4869
			<arg name="notification" swt_gen="true"></arg>
4826
			<arg name="notification" swt_gen="true"></arg>
4870
		</method>
4827
		</method>
4871
		<method selector="windowDidMiniaturize:" swt_gen="true">
4828
		<method selector="windowDidMiniaturize:" swt_gen="true">
4872
			<arg name="notification" swt_gen="true"></arg>
4829
			<arg name="notification" swt_gen="true"></arg>
4873
		</method>
4830
		</method>
4831
		<method selector="windowDidBecomeKey:" swt_gen="true">
4832
			<arg name="notification" swt_gen="true"></arg>
4833
		</method>
4834
		<method selector="windowDidDeminiaturize:" swt_gen="true">
4835
			<arg name="notification" swt_gen="true"></arg>
4836
		</method>
4874
		<method selector="windowDidMove:" swt_gen="true">
4837
		<method selector="windowDidMove:" swt_gen="true">
4875
			<arg name="notification" swt_gen="true"></arg>
4838
			<arg name="notification" swt_gen="true"></arg>
4876
		</method>
4839
		</method>
4877
		<method selector="windowDidResignKey:" swt_gen="true">
4840
		<method selector="windowDidResignKey:" swt_gen="true">
4878
			<arg name="notification" swt_gen="true"></arg>
4841
			<arg name="notification" swt_gen="true"></arg>
4879
		</method>
4842
		</method>
4880
		<method selector="windowDidResize:" swt_gen="true">
4843
	</informal_protocol>
4844
	<informal_protocol name="NSTableViewDelegate" swt_gen="mixed">
4845
		<method selector="tableView:willDisplayCell:forTableColumn:row:" swt_gen="true">
4846
			<arg name="row" swt_gen="true"></arg>
4847
			<arg name="cell" swt_gen="true"></arg>
4848
			<arg name="tableView" swt_gen="true"></arg>
4849
			<arg name="tableColumn" swt_gen="true"></arg>
4850
		</method>
4851
		<method selector="tableView:didClickTableColumn:" swt_gen="true">
4852
			<arg name="tableView" swt_gen="true"></arg>
4853
			<arg name="tableColumn" swt_gen="true"></arg>
4854
		</method>
4855
		<method selector="tableView:shouldEditTableColumn:row:" swt_gen="true">
4856
			<arg name="tableColumn" swt_gen="true"></arg>
4857
			<arg name="row" swt_gen="true"></arg>
4858
			<arg name="tableView" swt_gen="true"></arg>
4859
		</method>
4860
	</informal_protocol>
4861
	<informal_protocol name="NSTabViewDelegate" swt_gen="mixed">
4862
		<method selector="tabView:willSelectTabViewItem:" swt_gen="true">
4863
			<arg name="tabView" swt_gen="true"></arg>
4864
			<arg name="tabViewItem" swt_gen="true"></arg>
4865
		</method>
4866
		<method selector="tabView:shouldSelectTabViewItem:" swt_gen="true">
4867
			<arg name="tabViewItem" swt_gen="true"></arg>
4868
			<arg name="tabView" swt_gen="true"></arg>
4869
		</method>
4870
		<method selector="tabView:didSelectTabViewItem:" swt_gen="true">
4871
			<arg name="tabViewItem" swt_gen="true"></arg>
4872
			<arg name="tabView" swt_gen="true"></arg>
4873
		</method>
4874
	</informal_protocol>
4875
	<informal_protocol name="NSToolbarDelegate" swt_gen="true">
4876
		<method selector="toolbarAllowedItemIdentifiers:" swt_gen="true">
4877
			<arg name="toolbar" swt_gen="true"></arg>
4878
		</method>
4879
		<method selector="toolbarDefaultItemIdentifiers:" swt_gen="true">
4880
			<arg name="toolbar" swt_gen="true"></arg>
4881
		</method>
4882
		<method selector="toolbarSelectableItemIdentifiers:" swt_gen="true">
4883
			<arg name="toolbar" swt_gen="true"></arg>
4884
		</method>
4885
		<method selector="toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:" swt_gen="true">
4886
			<arg name="itemIdentifier" swt_gen="true"></arg>
4887
			<arg name="toolbar" swt_gen="true"></arg>
4888
			<arg name="flag" swt_gen="true"></arg>
4889
		</method>
4890
	</informal_protocol>
4891
	<informal_protocol name="NSComboBoxNotifications" swt_gen="mixed">
4892
		<method selector="comboBoxWillDismiss:" swt_gen="true">
4881
			<arg name="notification" swt_gen="true"></arg>
4893
			<arg name="notification" swt_gen="true"></arg>
4882
		</method>
4894
		</method>
4883
		<method selector="windowWillClose:" swt_gen="true">
4895
		<method selector="comboBoxSelectionDidChange:" swt_gen="true">
4884
			<arg name="notification" swt_gen="true"></arg>
4896
			<arg name="notification" swt_gen="true"></arg>
4885
		</method>
4897
		</method>
4886
	</informal_protocol>
4898
	</informal_protocol>
4887
	<class name="NSSecureTextField" swt_gen="true" swt_superclass="NSTextField"></class>
4899
	<informal_protocol name="NSTextViewDelegate" swt_gen="mixed">
4888
	<informal_protocol name="NSTextInput" swt_gen="true">
4900
		<method selector="textViewDidChangeSelection:" swt_gen="true">
4889
		<method selector="markedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
4901
			<arg name="notification" swt_gen="true"></arg>
4890
		<method selector="insertText:" swt_gen="true">
4891
			<arg name="aString" swt_gen="true"></arg>
4892
		</method>
4902
		</method>
4893
		<method selector="unmarkText" swt_gen="true"></method>
4903
		<method selector="textView:clickedOnLink:atIndex:" swt_gen="true">
4894
		<method selector="hasMarkedText" swt_gen="true"></method>
4904
			<arg name="charIndex" swt_gen="true"></arg>
4895
		<method selector="validAttributesForMarkedText" swt_gen="true"></method>
4905
			<arg name="textView" swt_gen="true"></arg>
4896
		<method selector="characterIndexForPoint:" swt_gen="true" swt_gen_custom_callback="true">
4906
			<arg name="link" swt_gen="true"></arg>
4897
			<arg name="thePoint" swt_gen="true"></arg>
4898
		</method>
4907
		</method>
4899
		<method selector="attributedSubstringFromRange:" swt_gen="true" swt_gen_custom_callback="true">
4908
		<method selector="textView:willChangeSelectionFromCharacterRange:toCharacterRange:" swt_gen="true" swt_gen_custom_callback="true">
4900
			<arg name="theRange" swt_gen="true"></arg>
4909
			<arg name="oldSelectedCharRange" swt_gen="true"></arg>
4910
			<arg name="textView" swt_gen="true"></arg>
4911
			<arg name="newSelectedCharRange" swt_gen="true"></arg>
4901
		</method>
4912
		</method>
4902
		<method selector="selectedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
4913
	</informal_protocol>
4903
		<method selector="setMarkedText:selectedRange:" swt_gen="true" swt_gen_custom_callback="true">
4914
	<informal_protocol name="NSSavePanelDelegate" swt_gen="mixed">
4904
			<arg name="selRange" swt_gen="true"></arg>
4915
		<method selector="panel:shouldShowFilename:" swt_gen="true">
4905
			<arg name="aString" swt_gen="true"></arg>
4916
			<arg name="filename" swt_gen="true"></arg>
4917
			<arg name="sender" swt_gen="true"></arg>
4906
		</method>
4918
		</method>
4907
		<method selector="firstRectForCharacterRange:" swt_gen="true" swt_gen_custom_callback="true">
4919
	</informal_protocol>
4908
			<arg name="theRange" swt_gen="true"></arg>
4920
	<informal_protocol name="NSOutlineViewDelegate" swt_gen="mixed">
4921
		<method selector="outlineView:willDisplayCell:forTableColumn:item:" swt_gen="true">
4922
			<arg name="outlineView" swt_gen="true"></arg>
4923
			<arg name="cell" swt_gen="true"></arg>
4924
			<arg name="item" swt_gen="true"></arg>
4925
			<arg name="tableColumn" swt_gen="true"></arg>
4926
		</method>
4927
		<method selector="outlineView:shouldCollapseItem:" swt_gen="true">
4928
			<arg name="outlineView" swt_gen="true"></arg>
4929
			<arg name="item" swt_gen="true"></arg>
4930
		</method>
4931
		<method selector="outlineView:didClickTableColumn:" swt_gen="true">
4932
			<arg name="outlineView" swt_gen="true"></arg>
4933
			<arg name="tableColumn" swt_gen="true"></arg>
4934
		</method>
4935
		<method selector="outlineView:shouldExpandItem:" swt_gen="true">
4936
			<arg name="item" swt_gen="true"></arg>
4937
			<arg name="outlineView" swt_gen="true"></arg>
4909
		</method>
4938
		</method>
4910
	</informal_protocol>
4939
	</informal_protocol>
4911
</signatures>
4940
</signatures>
(-)Eclipse (+16 lines)
Added Link Here
1
package org.eclipse.swt.internal.cocoa;
2
3
public class AppleEventDelegate extends NSObject {
4
5
	public AppleEventDelegate() {
6
	}
7
8
	public AppleEventDelegate(int id) {
9
		super(id);
10
	}
11
12
	public AppleEventDelegate(id id) {
13
		super(id);
14
	}
15
16
}
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras (-11 / +11 lines)
Lines 57-72 Link Here
57
		<arg name="height" swt_gen="true"></arg>
57
		<arg name="height" swt_gen="true"></arg>
58
		<arg name="bitsPerComponent" swt_gen="true"></arg>
58
		<arg name="bitsPerComponent" swt_gen="true"></arg>
59
		<arg name="bytesPerRow" swt_gen="true"></arg>
59
		<arg name="bytesPerRow" swt_gen="true"></arg>
60
		<arg name="colorspace" swt_gen="true"></arg>
60
		<arg name="space"></arg>
61
		<arg name="bitmapInfo" swt_gen="true"></arg>
61
		<arg name="bitmapInfo" swt_gen="true"></arg>
62
		<retval swt_gen="true"></retval>
62
		<retval swt_gen="true"></retval>
63
	</function>
63
	</function>
64
	<function name="CGBitmapContextCreateImage" swt_gen="true">
64
	<function name="CGBitmapContextCreateImage" swt_gen="true">
65
		<arg name="c" swt_gen="true"></arg>
65
		<arg name="context"></arg>
66
		<retval swt_gen="true"></retval>
66
		<retval swt_gen="true"></retval>
67
	</function>
67
	</function>
68
	<function name="CGBitmapContextGetData" swt_gen="true">
68
	<function name="CGBitmapContextGetData" swt_gen="true">
69
		<arg name="c" swt_gen="true"></arg>
69
		<arg name="context"></arg>
70
		<retval swt_gen="true"></retval>
70
		<retval swt_gen="true"></retval>
71
	</function>
71
	</function>
72
	<function name="CGColorCreate" swt_gen="true">
72
	<function name="CGColorCreate" swt_gen="true">
Lines 115-126 Link Here
115
		<arg name="mode" swt_gen="true"></arg>
115
		<arg name="mode" swt_gen="true"></arg>
116
	</function>
116
	</function>
117
	<function name="CGContextSetFillColor" swt_gen="true">
117
	<function name="CGContextSetFillColor" swt_gen="true">
118
		<arg name="c" swt_gen="true"></arg>
118
		<arg name="context"></arg>
119
		<arg name="components" swt_gen="true" swt_java_type="float[]" swt_java_type64="double[]"></arg>
119
		<arg name="components" swt_gen="true" swt_java_type="float[]" swt_java_type64="double[]"></arg>
120
	</function>
120
	</function>
121
	<function name="CGContextSetFillColorSpace" swt_gen="true">
121
	<function name="CGContextSetFillColorSpace" swt_gen="true">
122
		<arg name="c" swt_gen="true"></arg>
122
		<arg name="context"></arg>
123
		<arg name="colorspace" swt_gen="true"></arg>
123
		<arg name="space"></arg>
124
	</function>
124
	</function>
125
	<function name="CGContextSetLineCap" swt_gen="true">
125
	<function name="CGContextSetLineCap" swt_gen="true">
126
		<arg name="c" swt_gen="true"></arg>
126
		<arg name="c" swt_gen="true"></arg>
Lines 145-151 Link Here
145
		<arg name="limit" swt_gen="true"></arg>
145
		<arg name="limit" swt_gen="true"></arg>
146
	</function>
146
	</function>
147
	<function name="CGContextSetShouldAntialias" swt_gen="true">
147
	<function name="CGContextSetShouldAntialias" swt_gen="true">
148
		<arg name="c" swt_gen="true"></arg>
148
		<arg name="context"></arg>
149
		<arg name="shouldAntialias" swt_gen="true"></arg>
149
		<arg name="shouldAntialias" swt_gen="true"></arg>
150
	</function>
150
	</function>
151
	<function name="CGContextSetTextDrawingMode" swt_gen="true">
151
	<function name="CGContextSetTextDrawingMode" swt_gen="true">
Lines 209-215 Link Here
209
		<retval swt_gen="true"></retval>
209
		<retval swt_gen="true"></retval>
210
	</function>
210
	</function>
211
	<function name="CGEnableEventStateCombining" swt_gen="true">
211
	<function name="CGEnableEventStateCombining" swt_gen="true">
212
		<arg name="doCombineState" swt_gen="true"></arg>
212
		<arg name="combineState"></arg>
213
		<retval swt_gen="true"></retval>
213
		<retval swt_gen="true"></retval>
214
	</function>
214
	</function>
215
	<function name="CGEventCreateKeyboardEvent" swt_gen="true">
215
	<function name="CGEventCreateKeyboardEvent" swt_gen="true">
Lines 235-242 Link Here
235
	<function name="CGGetDisplaysWithRect" swt_gen="true">
235
	<function name="CGGetDisplaysWithRect" swt_gen="true">
236
		<arg name="rect" swt_gen="true"></arg>
236
		<arg name="rect" swt_gen="true"></arg>
237
		<arg name="maxDisplays" swt_gen="true"></arg>
237
		<arg name="maxDisplays" swt_gen="true"></arg>
238
		<arg name="dspys" swt_gen="true"></arg>
238
		<arg name="displays"></arg>
239
		<arg name="dspyCnt" swt_gen="true"></arg>
239
		<arg name="matchingDisplayCount"></arg>
240
		<retval swt_gen="true"></retval>
240
		<retval swt_gen="true"></retval>
241
	</function>
241
	</function>
242
	<function name="CGImageCreate" swt_gen="true">
242
	<function name="CGImageCreate" swt_gen="true">
Lines 245-251 Link Here
245
		<arg name="bitsPerComponent" swt_gen="true"></arg>
245
		<arg name="bitsPerComponent" swt_gen="true"></arg>
246
		<arg name="bitsPerPixel" swt_gen="true"></arg>
246
		<arg name="bitsPerPixel" swt_gen="true"></arg>
247
		<arg name="bytesPerRow" swt_gen="true"></arg>
247
		<arg name="bytesPerRow" swt_gen="true"></arg>
248
		<arg name="colorspace" swt_gen="true"></arg>
248
		<arg name="space"></arg>
249
		<arg name="bitmapInfo" swt_gen="true"></arg>
249
		<arg name="bitmapInfo" swt_gen="true"></arg>
250
		<arg name="provider" swt_gen="true"></arg>
250
		<arg name="provider" swt_gen="true"></arg>
251
		<arg name="decode" swt_gen="true"></arg>
251
		<arg name="decode" swt_gen="true"></arg>
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras (+12 lines)
Lines 68-73 Link Here
68
			<retval swt_gen="true" swt_java_type="NSAppleEventDescriptor"></retval>
68
			<retval swt_gen="true" swt_java_type="NSAppleEventDescriptor"></retval>
69
		</method>
69
		</method>
70
	</class>
70
	</class>
71
	<class name="NSAppleEventManager" swt_gen="mixed">
72
		<method selector="setEventHandler:andSelector:forEventClass:andEventID:" swt_gen="true">
73
			<arg name="handler" swt_gen="true"></arg>
74
			<arg name="handleEventSelector" swt_gen="true"></arg>
75
			<arg name="eventClass" swt_gen="true"></arg>
76
			<arg name="eventID" swt_gen="true"></arg>
77
			<retval swt_gen="true"></retval>
78
		</method>
79
		<method class_method="true" selector="sharedAppleEventManager" swt_gen="true">
80
			<retval swt_gen="true"></retval>
81
		</method>
82
	</class>
71
	<class name="NSArray" swt_gen="mixed">
83
	<class name="NSArray" swt_gen="mixed">
72
		<method class_method="true" selector="array" swt_gen="true">
84
		<method class_method="true" selector="array" swt_gen="true">
73
			<retval swt_gen="true" swt_java_type="NSArray"></retval>
85
			<retval swt_gen="true" swt_java_type="NSArray"></retval>
(-)Eclipse (+36 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *    IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.internal.cocoa;
12
13
public class NSAppleEventManager extends NSObject {
14
15
public NSAppleEventManager() {
16
	super();
17
}
18
19
public NSAppleEventManager(int /*long*/ id) {
20
	super(id);
21
}
22
23
public NSAppleEventManager(id id) {
24
	super(id);
25
}
26
27
public void setEventHandler(id handler, int /*long*/ handleEventSelector, int eventClass, int eventID) {
28
	OS.objc_msgSend(this.id, OS.sel_setEventHandler_andSelector_forEventClass_andEventID_, handler != null ? handler.id : 0, handleEventSelector, eventClass, eventID);
29
}
30
31
public static NSAppleEventManager sharedAppleEventManager() {
32
	int /*long*/ result = OS.objc_msgSend(OS.class_NSAppleEventManager, OS.sel_sharedAppleEventManager);
33
	return result != 0 ? new NSAppleEventManager(result) : null;
34
}
35
36
}
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSApplication.java (+4 lines)
Lines 89-94 Link Here
89
	OS.objc_msgSend(this.id, OS.sel_postEvent_atStart_, event != null ? event.id : 0, flag);
89
	OS.objc_msgSend(this.id, OS.sel_postEvent_atStart_, event != null ? event.id : 0, flag);
90
}
90
}
91
91
92
public void replyToOpenOrPrint(int /*long*/ reply) {
93
	OS.objc_msgSend(this.id, OS.sel_replyToOpenOrPrint_, reply);
94
}
95
92
public void run() {
96
public void run() {
93
	OS.objc_msgSend(this.id, OS.sel_run);
97
	OS.objc_msgSend(this.id, OS.sel_run);
94
}
98
}
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java (+20 lines)
Lines 38-43 Link Here
38
	return OS.objc_msgSend_bool(this.id, OS.sel_accessibilitySetOverrideValue_forAttribute_, value != null ? value.id : 0, attribute != null ? attribute.id : 0);
38
	return OS.objc_msgSend_bool(this.id, OS.sel_accessibilitySetOverrideValue_forAttribute_, value != null ? value.id : 0, attribute != null ? attribute.id : 0);
39
}
39
}
40
40
41
public boolean application(NSApplication sender, NSString filename) {
42
	return OS.objc_msgSend_bool(this.id, OS.sel_application_openFile_, sender != null ? sender.id : 0, filename != null ? filename.id : 0);
43
}
44
45
public boolean application(id sender, NSString filename) {
46
	return OS.objc_msgSend_bool(this.id, OS.sel_application_openFileWithoutUI_, sender != null ? sender.id : 0, filename != null ? filename.id : 0);
47
}
48
49
public void application(NSApplication sender, NSArray filenames) {
50
	OS.objc_msgSend(this.id, OS.sel_application_openFiles_, sender != null ? sender.id : 0, filenames != null ? filenames.id : 0);
51
}
52
53
public boolean applicationOpenUntitledFile(NSApplication sender) {
54
	return OS.objc_msgSend_bool(this.id, OS.sel_applicationOpenUntitledFile_, sender != null ? sender.id : 0);
55
}
56
57
public boolean applicationShouldHandleReopen(NSApplication sender, boolean flag) {
58
	return OS.objc_msgSend_bool(this.id, OS.sel_applicationShouldHandleReopen_hasVisibleWindows_, sender != null ? sender.id : 0, flag);
59
}
60
41
public void draggedImage(NSImage image, NSPoint screenPoint, int /*long*/ operation) {
61
public void draggedImage(NSImage image, NSPoint screenPoint, int /*long*/ operation) {
42
	OS.objc_msgSend(this.id, OS.sel_draggedImage_endedAt_operation_, image != null ? image.id : 0, screenPoint, operation);
62
	OS.objc_msgSend(this.id, OS.sel_draggedImage_endedAt_operation_, image != null ? image.id : 0, screenPoint, operation);
43
}
63
}
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTableView.java (-6 / +6 lines)
Lines 24-31 Link Here
24
	super(id);
24
	super(id);
25
}
25
}
26
26
27
public void addTableColumn(NSTableColumn column) {
27
public void addTableColumn(NSTableColumn tableColumn) {
28
	OS.objc_msgSend(this.id, OS.sel_addTableColumn_, column != null ? column.id : 0);
28
	OS.objc_msgSend(this.id, OS.sel_addTableColumn_, tableColumn != null ? tableColumn.id : 0);
29
}
29
}
30
30
31
public boolean allowsColumnReordering() {
31
public boolean allowsColumnReordering() {
Lines 99-106 Link Here
99
	return OS.objc_msgSend_bool(this.id, OS.sel_isRowSelected_, row);
99
	return OS.objc_msgSend_bool(this.id, OS.sel_isRowSelected_, row);
100
}
100
}
101
101
102
public void moveColumn(int /*long*/ column, int /*long*/ newIndex) {
102
public void moveColumn(int /*long*/ oldIndex, int /*long*/ newIndex) {
103
	OS.objc_msgSend(this.id, OS.sel_moveColumn_toColumn_, column, newIndex);
103
	OS.objc_msgSend(this.id, OS.sel_moveColumn_toColumn_, oldIndex, newIndex);
104
}
104
}
105
105
106
public void noteNumberOfRowsChanged() {
106
public void noteNumberOfRowsChanged() {
Lines 135-142 Link Here
135
	OS.objc_msgSend(this.id, OS.sel_reloadData);
135
	OS.objc_msgSend(this.id, OS.sel_reloadData);
136
}
136
}
137
137
138
public void removeTableColumn(NSTableColumn column) {
138
public void removeTableColumn(NSTableColumn tableColumn) {
139
	OS.objc_msgSend(this.id, OS.sel_removeTableColumn_, column != null ? column.id : 0);
139
	OS.objc_msgSend(this.id, OS.sel_removeTableColumn_, tableColumn != null ? tableColumn.id : 0);
140
}
140
}
141
141
142
public int /*long*/ rowAtPoint(NSPoint point) {
142
public int /*long*/ rowAtPoint(NSPoint point) {
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSView.java (-2 / +2 lines)
Lines 150-157 Link Here
150
	OS.objc_msgSend(this.id, OS.sel_dragImage_at_offset_event_pasteboard_source_slideBack_, anImage != null ? anImage.id : 0, viewLocation, initialOffset, event != null ? event.id : 0, pboard != null ? pboard.id : 0, sourceObj != null ? sourceObj.id : 0, slideFlag);
150
	OS.objc_msgSend(this.id, OS.sel_dragImage_at_offset_event_pasteboard_source_slideBack_, anImage != null ? anImage.id : 0, viewLocation, initialOffset, event != null ? event.id : 0, pboard != null ? pboard.id : 0, sourceObj != null ? sourceObj.id : 0, slideFlag);
151
}
151
}
152
152
153
public void drawRect(NSRect rect) {
153
public void drawRect(NSRect dirtyRect) {
154
	OS.objc_msgSend(this.id, OS.sel_drawRect_, rect);
154
	OS.objc_msgSend(this.id, OS.sel_drawRect_, dirtyRect);
155
}
155
}
156
156
157
public void endDocument() {
157
public void endDocument() {
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java (-21 / +35 lines)
Lines 462-467 Link Here
462
public static final int /*long*/ class_NSAffineTransform = objc_getClass("NSAffineTransform");
462
public static final int /*long*/ class_NSAffineTransform = objc_getClass("NSAffineTransform");
463
public static final int /*long*/ class_NSAlert = objc_getClass("NSAlert");
463
public static final int /*long*/ class_NSAlert = objc_getClass("NSAlert");
464
public static final int /*long*/ class_NSAppleEventDescriptor = objc_getClass("NSAppleEventDescriptor");
464
public static final int /*long*/ class_NSAppleEventDescriptor = objc_getClass("NSAppleEventDescriptor");
465
public static final int /*long*/ class_NSAppleEventManager = objc_getClass("NSAppleEventManager");
465
public static final int /*long*/ class_NSApplication = objc_getClass("NSApplication");
466
public static final int /*long*/ class_NSApplication = objc_getClass("NSApplication");
466
public static final int /*long*/ class_NSArray = objc_getClass("NSArray");
467
public static final int /*long*/ class_NSArray = objc_getClass("NSArray");
467
public static final int /*long*/ class_NSAssertionHandler = objc_getClass("NSAssertionHandler");
468
public static final int /*long*/ class_NSAssertionHandler = objc_getClass("NSAssertionHandler");
Lines 704-712 Link Here
704
public static final int /*long*/ sel_appendBezierPathWithRect_ = sel_registerName("appendBezierPathWithRect:");
705
public static final int /*long*/ sel_appendBezierPathWithRect_ = sel_registerName("appendBezierPathWithRect:");
705
public static final int /*long*/ sel_appendBezierPathWithRoundedRect_xRadius_yRadius_ = sel_registerName("appendBezierPathWithRoundedRect:xRadius:yRadius:");
706
public static final int /*long*/ sel_appendBezierPathWithRoundedRect_xRadius_yRadius_ = sel_registerName("appendBezierPathWithRoundedRect:xRadius:yRadius:");
706
public static final int /*long*/ sel_appendString_ = sel_registerName("appendString:");
707
public static final int /*long*/ sel_appendString_ = sel_registerName("appendString:");
708
public static final int /*long*/ sel_application_openFile_ = sel_registerName("application:openFile:");
709
public static final int /*long*/ sel_application_openFileWithoutUI_ = sel_registerName("application:openFileWithoutUI:");
710
public static final int /*long*/ sel_application_openFiles_ = sel_registerName("application:openFiles:");
707
public static final int /*long*/ sel_applicationDidBecomeActive_ = sel_registerName("applicationDidBecomeActive:");
711
public static final int /*long*/ sel_applicationDidBecomeActive_ = sel_registerName("applicationDidBecomeActive:");
708
public static final int /*long*/ sel_applicationDidFinishLaunching_ = sel_registerName("applicationDidFinishLaunching:");
712
public static final int /*long*/ sel_applicationDidFinishLaunching_ = sel_registerName("applicationDidFinishLaunching:");
709
public static final int /*long*/ sel_applicationDidResignActive_ = sel_registerName("applicationDidResignActive:");
713
public static final int /*long*/ sel_applicationDidResignActive_ = sel_registerName("applicationDidResignActive:");
714
public static final int /*long*/ sel_applicationOpenUntitledFile_ = sel_registerName("applicationOpenUntitledFile:");
715
public static final int /*long*/ sel_applicationShouldHandleReopen_hasVisibleWindows_ = sel_registerName("applicationShouldHandleReopen:hasVisibleWindows:");
710
public static final int /*long*/ sel_applicationShouldTerminate_ = sel_registerName("applicationShouldTerminate:");
716
public static final int /*long*/ sel_applicationShouldTerminate_ = sel_registerName("applicationShouldTerminate:");
711
public static final int /*long*/ sel_applicationWillFinishLaunching_ = sel_registerName("applicationWillFinishLaunching:");
717
public static final int /*long*/ sel_applicationWillFinishLaunching_ = sel_registerName("applicationWillFinishLaunching:");
712
public static final int /*long*/ sel_applicationWillTerminate_ = sel_registerName("applicationWillTerminate:");
718
public static final int /*long*/ sel_applicationWillTerminate_ = sel_registerName("applicationWillTerminate:");
Lines 1365-1370 Link Here
1365
public static final int /*long*/ sel_removeTemporaryAttribute_forCharacterRange_ = sel_registerName("removeTemporaryAttribute:forCharacterRange:");
1371
public static final int /*long*/ sel_removeTemporaryAttribute_forCharacterRange_ = sel_registerName("removeTemporaryAttribute:forCharacterRange:");
1366
public static final int /*long*/ sel_removeTrackingArea_ = sel_registerName("removeTrackingArea:");
1372
public static final int /*long*/ sel_removeTrackingArea_ = sel_registerName("removeTrackingArea:");
1367
public static final int /*long*/ sel_replaceCharactersInRange_withString_ = sel_registerName("replaceCharactersInRange:withString:");
1373
public static final int /*long*/ sel_replaceCharactersInRange_withString_ = sel_registerName("replaceCharactersInRange:withString:");
1374
public static final int /*long*/ sel_replyToOpenOrPrint_ = sel_registerName("replyToOpenOrPrint:");
1368
public static final int /*long*/ sel_representation = sel_registerName("representation");
1375
public static final int /*long*/ sel_representation = sel_registerName("representation");
1369
public static final int /*long*/ sel_representations = sel_registerName("representations");
1376
public static final int /*long*/ sel_representations = sel_registerName("representations");
1370
public static final int /*long*/ sel_request = sel_registerName("request");
1377
public static final int /*long*/ sel_request = sel_registerName("request");
Lines 1523-1528 Link Here
1523
public static final int /*long*/ sel_setEditable_ = sel_registerName("setEditable:");
1530
public static final int /*long*/ sel_setEditable_ = sel_registerName("setEditable:");
1524
public static final int /*long*/ sel_setEnabled_ = sel_registerName("setEnabled:");
1531
public static final int /*long*/ sel_setEnabled_ = sel_registerName("setEnabled:");
1525
public static final int /*long*/ sel_setEnabled_forSegment_ = sel_registerName("setEnabled:forSegment:");
1532
public static final int /*long*/ sel_setEnabled_forSegment_ = sel_registerName("setEnabled:forSegment:");
1533
public static final int /*long*/ sel_setEventHandler_andSelector_forEventClass_andEventID_ = sel_registerName("setEventHandler:andSelector:forEventClass:andEventID:");
1526
public static final int /*long*/ sel_setFill = sel_registerName("setFill");
1534
public static final int /*long*/ sel_setFill = sel_registerName("setFill");
1527
public static final int /*long*/ sel_setFillColor_ = sel_registerName("setFillColor:");
1535
public static final int /*long*/ sel_setFillColor_ = sel_registerName("setFillColor:");
1528
public static final int /*long*/ sel_setFireDate_ = sel_registerName("setFireDate:");
1536
public static final int /*long*/ sel_setFireDate_ = sel_registerName("setFireDate:");
Lines 1684-1689 Link Here
1684
public static final int /*long*/ sel_setWindingRule_ = sel_registerName("setWindingRule:");
1692
public static final int /*long*/ sel_setWindingRule_ = sel_registerName("setWindingRule:");
1685
public static final int /*long*/ sel_setWorksWhenModal_ = sel_registerName("setWorksWhenModal:");
1693
public static final int /*long*/ sel_setWorksWhenModal_ = sel_registerName("setWorksWhenModal:");
1686
public static final int /*long*/ sel_setWraps_ = sel_registerName("setWraps:");
1694
public static final int /*long*/ sel_setWraps_ = sel_registerName("setWraps:");
1695
public static final int /*long*/ sel_sharedAppleEventManager = sel_registerName("sharedAppleEventManager");
1687
public static final int /*long*/ sel_sharedApplication = sel_registerName("sharedApplication");
1696
public static final int /*long*/ sel_sharedApplication = sel_registerName("sharedApplication");
1688
public static final int /*long*/ sel_sharedColorPanel = sel_registerName("sharedColorPanel");
1697
public static final int /*long*/ sel_sharedColorPanel = sel_registerName("sharedColorPanel");
1689
public static final int /*long*/ sel_sharedFontManager = sel_registerName("sharedFontManager");
1698
public static final int /*long*/ sel_sharedFontManager = sel_registerName("sharedFontManager");
Lines 1895-1900 Link Here
1895
public static final int NSAlphaNonpremultipliedBitmapFormat = 2;
1904
public static final int NSAlphaNonpremultipliedBitmapFormat = 2;
1896
public static final int NSAlternateKeyMask = 524288;
1905
public static final int NSAlternateKeyMask = 524288;
1897
public static final int NSApplicationDefined = 15;
1906
public static final int NSApplicationDefined = 15;
1907
public static final int NSApplicationDelegateReplySuccess = 0;
1898
public static final int NSAtTop = 2;
1908
public static final int NSAtTop = 2;
1899
public static final int NSBackingStoreBuffered = 2;
1909
public static final int NSBackingStoreBuffered = 2;
1900
public static final int NSBackspaceCharacter = 8;
1910
public static final int NSBackspaceCharacter = 8;
Lines 2687-2704 Link Here
2687
 * @param height cast=(size_t)
2697
 * @param height cast=(size_t)
2688
 * @param bitsPerComponent cast=(size_t)
2698
 * @param bitsPerComponent cast=(size_t)
2689
 * @param bytesPerRow cast=(size_t)
2699
 * @param bytesPerRow cast=(size_t)
2690
 * @param colorspace cast=(CGColorSpaceRef)
2700
 * @param space cast=(CGColorSpaceRef)
2691
 * @param bitmapInfo cast=(CGBitmapInfo)
2701
 * @param bitmapInfo cast=(CGBitmapInfo)
2692
 */
2702
 */
2693
public static final native int /*long*/ CGBitmapContextCreate(int /*long*/ data, int /*long*/ width, int /*long*/ height, int /*long*/ bitsPerComponent, int /*long*/ bytesPerRow, int /*long*/ colorspace, int bitmapInfo);
2703
public static final native int /*long*/ CGBitmapContextCreate(int /*long*/ data, int /*long*/ width, int /*long*/ height, int /*long*/ bitsPerComponent, int /*long*/ bytesPerRow, int /*long*/ space, int bitmapInfo);
2694
/**
2704
/**
2695
 * @param c cast=(CGContextRef)
2705
 * @param context cast=(CGContextRef)
2696
 */
2706
 */
2697
public static final native int /*long*/ CGBitmapContextCreateImage(int /*long*/ c);
2707
public static final native int /*long*/ CGBitmapContextCreateImage(int /*long*/ context);
2698
/**
2708
/**
2699
 * @param c cast=(CGContextRef)
2709
 * @param context cast=(CGContextRef)
2700
 */
2710
 */
2701
public static final native int /*long*/ CGBitmapContextGetData(int /*long*/ c);
2711
public static final native int /*long*/ CGBitmapContextGetData(int /*long*/ context);
2702
/**
2712
/**
2703
 * @param space cast=(CGColorSpaceRef)
2713
 * @param space cast=(CGColorSpaceRef)
2704
 * @param components cast=(CGFloat*)
2714
 * @param components cast=(CGFloat*)
Lines 2753-2767 Link Here
2753
 */
2763
 */
2754
public static final native void CGContextSetBlendMode(int /*long*/ context, int mode);
2764
public static final native void CGContextSetBlendMode(int /*long*/ context, int mode);
2755
/**
2765
/**
2756
 * @param c cast=(CGContextRef)
2766
 * @param context cast=(CGContextRef)
2757
 * @param components cast=(CGFloat*)
2767
 * @param components cast=(CGFloat*)
2758
 */
2768
 */
2759
public static final native void CGContextSetFillColor(int /*long*/ c, float[] /*double[]*/ components);
2769
public static final native void CGContextSetFillColor(int /*long*/ context, float[] /*double[]*/ components);
2760
/**
2770
/**
2761
 * @param c cast=(CGContextRef)
2771
 * @param context cast=(CGContextRef)
2762
 * @param colorspace cast=(CGColorSpaceRef)
2772
 * @param space cast=(CGColorSpaceRef)
2763
 */
2773
 */
2764
public static final native void CGContextSetFillColorSpace(int /*long*/ c, int /*long*/ colorspace);
2774
public static final native void CGContextSetFillColorSpace(int /*long*/ context, int /*long*/ space);
2765
/**
2775
/**
2766
 * @param c cast=(CGContextRef)
2776
 * @param c cast=(CGContextRef)
2767
 * @param cap cast=(CGLineCap)
2777
 * @param cap cast=(CGLineCap)
Lines 2790-2799 Link Here
2790
 */
2800
 */
2791
public static final native void CGContextSetMiterLimit(int /*long*/ c, float /*double*/ limit);
2801
public static final native void CGContextSetMiterLimit(int /*long*/ c, float /*double*/ limit);
2792
/**
2802
/**
2793
 * @param c cast=(CGContextRef)
2803
 * @param context cast=(CGContextRef)
2794
 * @param shouldAntialias cast=(_Bool)
2804
 * @param shouldAntialias cast=(_Bool)
2795
 */
2805
 */
2796
public static final native void CGContextSetShouldAntialias(int /*long*/ c, boolean shouldAntialias);
2806
public static final native void CGContextSetShouldAntialias(int /*long*/ context, boolean shouldAntialias);
2797
/**
2807
/**
2798
 * @param c cast=(CGContextRef)
2808
 * @param c cast=(CGContextRef)
2799
 * @param mode cast=(CGTextDrawingMode)
2809
 * @param mode cast=(CGTextDrawingMode)
Lines 2856-2864 Link Here
2856
 */
2866
 */
2857
public static final native int /*long*/ CGDisplayPixelsWide(int display);
2867
public static final native int /*long*/ CGDisplayPixelsWide(int display);
2858
/**
2868
/**
2859
 * @param doCombineState cast=(boolean_t)
2869
 * @param combineState cast=(boolean_t)
2860
 */
2870
 */
2861
public static final native int CGEnableEventStateCombining(int doCombineState);
2871
public static final native int CGEnableEventStateCombining(int combineState);
2862
/**
2872
/**
2863
 * @param source cast=(CGEventSourceRef)
2873
 * @param source cast=(CGEventSourceRef)
2864
 * @param virtualKey cast=(CGKeyCode)
2874
 * @param virtualKey cast=(CGKeyCode)
Lines 2883-2907 Link Here
2883
public static final native void CGEventPost(int tap, int /*long*/ event);
2893
public static final native void CGEventPost(int tap, int /*long*/ event);
2884
/**
2894
/**
2885
 * @param rect flags=struct
2895
 * @param rect flags=struct
2886
 * @param maxDisplays cast=(CGDisplayCount)
2896
 * @param maxDisplays cast=(uint32_t)
2887
 * @param dspys cast=(CGDirectDisplayID*)
2897
 * @param displays cast=(CGDirectDisplayID*)
2888
 * @param dspyCnt cast=(CGDisplayCount*)
2898
 * @param matchingDisplayCount cast=(uint32_t*)
2889
 */
2899
 */
2890
public static final native int CGGetDisplaysWithRect(CGRect rect, int maxDisplays, int /*long*/ dspys, int /*long*/ dspyCnt);
2900
public static final native int CGGetDisplaysWithRect(CGRect rect, int maxDisplays, int /*long*/ displays, int /*long*/ matchingDisplayCount);
2891
/**
2901
/**
2892
 * @param width cast=(size_t)
2902
 * @param width cast=(size_t)
2893
 * @param height cast=(size_t)
2903
 * @param height cast=(size_t)
2894
 * @param bitsPerComponent cast=(size_t)
2904
 * @param bitsPerComponent cast=(size_t)
2895
 * @param bitsPerPixel cast=(size_t)
2905
 * @param bitsPerPixel cast=(size_t)
2896
 * @param bytesPerRow cast=(size_t)
2906
 * @param bytesPerRow cast=(size_t)
2897
 * @param colorspace cast=(CGColorSpaceRef)
2907
 * @param space cast=(CGColorSpaceRef)
2898
 * @param bitmapInfo cast=(CGBitmapInfo)
2908
 * @param bitmapInfo cast=(CGBitmapInfo)
2899
 * @param provider cast=(CGDataProviderRef)
2909
 * @param provider cast=(CGDataProviderRef)
2900
 * @param decode cast=(CGFloat*)
2910
 * @param decode cast=(CGFloat*)
2901
 * @param shouldInterpolate cast=(_Bool)
2911
 * @param shouldInterpolate cast=(_Bool)
2902
 * @param intent cast=(CGColorRenderingIntent)
2912
 * @param intent cast=(CGColorRenderingIntent)
2903
 */
2913
 */
2904
public static final native int /*long*/ CGImageCreate(int /*long*/ width, int /*long*/ height, int /*long*/ bitsPerComponent, int /*long*/ bitsPerPixel, int /*long*/ bytesPerRow, int /*long*/ colorspace, int bitmapInfo, int /*long*/ provider, int /*long*/ decode, boolean shouldInterpolate, int intent);
2914
public static final native int /*long*/ CGImageCreate(int /*long*/ width, int /*long*/ height, int /*long*/ bitsPerComponent, int /*long*/ bitsPerPixel, int /*long*/ bytesPerRow, int /*long*/ space, int bitmapInfo, int /*long*/ provider, int /*long*/ decode, boolean shouldInterpolate, int intent);
2905
/**
2915
/**
2906
 * @param image cast=(CGImageRef)
2916
 * @param image cast=(CGImageRef)
2907
 */
2917
 */
Lines 3179-3184 Link Here
3179
 */
3189
 */
3180
public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, NSSize arg1, boolean arg2);
3190
public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, NSSize arg1, boolean arg2);
3181
/** @method flags=cast */
3191
/** @method flags=cast */
3192
public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, boolean arg1);
3193
/** @method flags=cast */
3182
public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1);
3194
public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1);
3183
/** @method flags=cast */
3195
/** @method flags=cast */
3184
public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2);
3196
public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2);
Lines 3460-3465 Link Here
3460
/** @method flags=cast */
3472
/** @method flags=cast */
3461
public static final native long objc_msgSend(long id, long sel, int[] arg0);
3473
public static final native long objc_msgSend(long id, long sel, int[] arg0);
3462
/** @method flags=cast */
3474
/** @method flags=cast */
3475
public static final native long objc_msgSend(long id, long sel, long arg0, long arg1, int arg2, int arg3);
3476
/** @method flags=cast */
3463
public static final native long objc_msgSend(long id, long sel, long[] arg0, long arg1, long arg2);
3477
public static final native long objc_msgSend(long id, long sel, long[] arg0, long arg1, long arg2);
3464
/** @method flags=cast */
3478
/** @method flags=cast */
3465
public static final native void objc_msgSend_stret(NSAffineTransformStruct result, int /*long*/ id, int /*long*/ sel);
3479
public static final native void objc_msgSend_stret(NSAffineTransformStruct result, int /*long*/ id, int /*long*/ sel);
(-)Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/WebKitFull.bridgesupport.extras (-4 / +4 lines)
Lines 413-429 Link Here
413
			<arg name="sender" swt_gen="true"></arg>
413
			<arg name="sender" swt_gen="true"></arg>
414
		</method>
414
		</method>
415
	</informal_protocol>
415
	</informal_protocol>
416
	<informal_protocol name="WebDocumentRepresentation" swt_gen="true">
417
		<method selector="documentSource" swt_gen="true"></method>
418
	</informal_protocol>
416
	<informal_protocol name="WebOpenPanelResultListener" swt_gen="true">
419
	<informal_protocol name="WebOpenPanelResultListener" swt_gen="true">
417
		<method selector="chooseFilename:" swt_gen="true">
420
		<method selector="chooseFilename:" swt_gen="true">
418
			<arg name="theRange" swt_gen="true"></arg>
421
			<arg name="theRange" swt_gen="true"></arg>
419
		</method>
422
		</method>
420
	</informal_protocol>
423
	</informal_protocol>
421
	<informal_protocol name="WebDocumentRepresentation" swt_gen="true">
422
		<method selector="documentSource" swt_gen="true"></method>
423
	</informal_protocol>
424
	<informal_protocol name="WebPolicyDecisionListener" swt_gen="true">
424
	<informal_protocol name="WebPolicyDecisionListener" swt_gen="true">
425
		<method selector="ignore" swt_gen="true"></method>
425
		<method selector="use" swt_gen="true"></method>
426
		<method selector="use" swt_gen="true"></method>
426
		<method selector="download" swt_gen="true"></method>
427
		<method selector="download" swt_gen="true"></method>
427
		<method selector="ignore" swt_gen="true"></method>
428
	</informal_protocol>
428
	</informal_protocol>
429
</signatures>
429
</signatures>
(-)Eclipse SWT PI/gtk/library/os.c (+73 lines)
Lines 567-572 Link Here
567
}
567
}
568
#endif
568
#endif
569
569
570
#ifndef NO_GdkEventProperty_1sizeof
571
JNIEXPORT jint JNICALL OS_NATIVE(GdkEventProperty_1sizeof)
572
	(JNIEnv *env, jclass that)
573
{
574
	jint rc = 0;
575
	OS_NATIVE_ENTER(env, that, GdkEventProperty_1sizeof_FUNC);
576
	rc = (jint)GdkEventProperty_sizeof();
577
	OS_NATIVE_EXIT(env, that, GdkEventProperty_1sizeof_FUNC);
578
	return rc;
579
}
580
#endif
581
570
#ifndef NO_GdkEventScroll_1sizeof
582
#ifndef NO_GdkEventScroll_1sizeof
571
JNIEXPORT jint JNICALL OS_NATIVE(GdkEventScroll_1sizeof)
583
JNIEXPORT jint JNICALL OS_NATIVE(GdkEventScroll_1sizeof)
572
	(JNIEnv *env, jclass that)
584
	(JNIEnv *env, jclass that)
Lines 1795-1800 Link Here
1795
}
1807
}
1796
#endif
1808
#endif
1797
1809
1810
#ifndef NO__1XGetWindowProperty
1811
JNIEXPORT jintLong JNICALL OS_NATIVE(_1XGetWindowProperty)
1812
	(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jlong arg3, jlong arg4, jboolean arg5, jintLong arg6, jintLongArray arg7, jintLongArray arg8, jlongArray arg9, jlongArray arg10, jintLongArray arg11)
1813
{
1814
	jintLong *lparg7=NULL;
1815
	jintLong *lparg8=NULL;
1816
	jlong *lparg9=NULL;
1817
	jlong *lparg10=NULL;
1818
	jintLong *lparg11=NULL;
1819
	jintLong rc = 0;
1820
	OS_NATIVE_ENTER(env, that, _1XGetWindowProperty_FUNC);
1821
	if (arg7) if ((lparg7 = (*env)->GetIntLongArrayElements(env, arg7, NULL)) == NULL) goto fail;
1822
	if (arg8) if ((lparg8 = (*env)->GetIntLongArrayElements(env, arg8, NULL)) == NULL) goto fail;
1823
	if (arg9) if ((lparg9 = (*env)->GetLongArrayElements(env, arg9, NULL)) == NULL) goto fail;
1824
	if (arg10) if ((lparg10 = (*env)->GetLongArrayElements(env, arg10, NULL)) == NULL) goto fail;
1825
	if (arg11) if ((lparg11 = (*env)->GetIntLongArrayElements(env, arg11, NULL)) == NULL) goto fail;
1826
	rc = (jintLong)XGetWindowProperty((Display *)arg0, (Window)arg1, (Atom)arg2, arg3, arg4, arg5, (Atom)arg6, (Atom*)lparg7, (int *)lparg8, (unsigned long *)lparg9, (unsigned long *)lparg10, (unsigned char **)lparg11);
1827
fail:
1828
	if (arg11 && lparg11) (*env)->ReleaseIntLongArrayElements(env, arg11, lparg11, 0);
1829
	if (arg10 && lparg10) (*env)->ReleaseLongArrayElements(env, arg10, lparg10, 0);
1830
	if (arg9 && lparg9) (*env)->ReleaseLongArrayElements(env, arg9, lparg9, 0);
1831
	if (arg8 && lparg8) (*env)->ReleaseIntLongArrayElements(env, arg8, lparg8, 0);
1832
	if (arg7 && lparg7) (*env)->ReleaseIntLongArrayElements(env, arg7, lparg7, 0);
1833
	OS_NATIVE_EXIT(env, that, _1XGetWindowProperty_FUNC);
1834
	return rc;
1835
}
1836
#endif
1837
1798
#ifndef NO__1XInternAtom
1838
#ifndef NO__1XInternAtom
1799
JNIEXPORT jintLong JNICALL OS_NATIVE(_1XInternAtom)
1839
JNIEXPORT jintLong JNICALL OS_NATIVE(_1XInternAtom)
1800
	(JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jboolean arg2)
1840
	(JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jboolean arg2)
Lines 2158-2163 Link Here
2158
}
2198
}
2159
#endif
2199
#endif
2160
2200
2201
#ifndef NO__1XSetSelectionOwner
2202
JNIEXPORT jintLong JNICALL OS_NATIVE(_1XSetSelectionOwner)
2203
	(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jint arg3)
2204
{
2205
	jintLong rc = 0;
2206
	OS_NATIVE_ENTER(env, that, _1XSetSelectionOwner_FUNC);
2207
	rc = (jintLong)XSetSelectionOwner((Display *)arg0, (Atom)arg1, arg2, (Time)arg3);
2208
	OS_NATIVE_EXIT(env, that, _1XSetSelectionOwner_FUNC);
2209
	return rc;
2210
}
2211
#endif
2212
2161
#ifndef NO__1XSetTransientForHint
2213
#ifndef NO__1XSetTransientForHint
2162
JNIEXPORT jint JNICALL OS_NATIVE(_1XSetTransientForHint)
2214
JNIEXPORT jint JNICALL OS_NATIVE(_1XSetTransientForHint)
2163
	(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2)
2215
	(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2)
Lines 18475-18480 Link Here
18475
}
18527
}
18476
#endif
18528
#endif
18477
18529
18530
#if (!defined(NO_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2I) && !defined(JNI64)) || (!defined(NO_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2J) && defined(JNI64))
18531
#ifndef JNI64
18532
JNIEXPORT void JNICALL OS_NATIVE(memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2I)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1)
18533
#else
18534
JNIEXPORT void JNICALL OS_NATIVE(memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2J)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1)
18535
#endif
18536
{
18537
#ifndef JNI64
18538
	OS_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2I_FUNC);
18539
#else
18540
	OS_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2J_FUNC);
18541
#endif
18542
	if (arg0) setGdkEventPropertyFields(env, arg0, (GdkEventProperty *)arg1);
18543
#ifndef JNI64
18544
	OS_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2I_FUNC);
18545
#else
18546
	OS_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2J_FUNC);
18547
#endif
18548
}
18549
#endif
18550
18478
#if (!defined(NO_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II) && !defined(JNI64)) || (!defined(NO_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2JJ) && defined(JNI64))
18551
#if (!defined(NO_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II) && !defined(JNI64)) || (!defined(NO_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2JJ) && defined(JNI64))
18479
#ifndef JNI64
18552
#ifndef JNI64
18480
JNIEXPORT void JNICALL OS_NATIVE(memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1, jintLong arg2)
18553
JNIEXPORT void JNICALL OS_NATIVE(memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1, jintLong arg2)
(-)Eclipse SWT PI/gtk/library/os_stats.c (-2 / +10 lines)
Lines 18-25 Link Here
18
18
19
#ifdef NATIVE_STATS
19
#ifdef NATIVE_STATS
20
20
21
int OS_nativeFunctionCount = 1329;
21
int OS_nativeFunctionCount = 1333;
22
int OS_nativeFunctionCallCount[1329];
22
int OS_nativeFunctionCallCount[1333];
23
char * OS_nativeFunctionNames[] = {
23
char * OS_nativeFunctionNames[] = {
24
#ifndef JNI64
24
#ifndef JNI64
25
	"Call__IIII",
25
	"Call__IIII",
Lines 75-80 Link Here
75
	"GdkEventFocus_1sizeof",
75
	"GdkEventFocus_1sizeof",
76
	"GdkEventKey_1sizeof",
76
	"GdkEventKey_1sizeof",
77
	"GdkEventMotion_1sizeof",
77
	"GdkEventMotion_1sizeof",
78
	"GdkEventProperty_1sizeof",
78
	"GdkEventScroll_1sizeof",
79
	"GdkEventScroll_1sizeof",
79
	"GdkEventVisibility_1sizeof",
80
	"GdkEventVisibility_1sizeof",
80
	"GdkEventWindowState_1sizeof",
81
	"GdkEventWindowState_1sizeof",
Lines 177-182 Link Here
177
	"_1XFlush",
178
	"_1XFlush",
178
	"_1XFree",
179
	"_1XFree",
179
	"_1XGetSelectionOwner",
180
	"_1XGetSelectionOwner",
181
	"_1XGetWindowProperty",
180
	"_1XInternAtom",
182
	"_1XInternAtom",
181
	"_1XKeysymToKeycode",
183
	"_1XKeysymToKeycode",
182
	"_1XListProperties",
184
	"_1XListProperties",
Lines 196-201 Link Here
196
	"_1XSetErrorHandler",
198
	"_1XSetErrorHandler",
197
	"_1XSetIOErrorHandler",
199
	"_1XSetIOErrorHandler",
198
	"_1XSetInputFocus",
200
	"_1XSetInputFocus",
201
	"_1XSetSelectionOwner",
199
	"_1XSetTransientForHint",
202
	"_1XSetTransientForHint",
200
	"_1XSynchronize",
203
	"_1XSynchronize",
201
	"_1XTestFakeButtonEvent",
204
	"_1XTestFakeButtonEvent",
Lines 1566-1571 Link Here
1566
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventMotion_2JJ",
1569
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventMotion_2JJ",
1567
#endif
1570
#endif
1568
#ifndef JNI64
1571
#ifndef JNI64
1572
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2I",
1573
#else
1574
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2J",
1575
#endif
1576
#ifndef JNI64
1569
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II",
1577
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II",
1570
#else
1578
#else
1571
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2JJ",
1579
	"memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2JJ",
(-)Eclipse SWT PI/gtk/library/os_stats.h (+8 lines)
Lines 83-88 Link Here
83
	GdkEventFocus_1sizeof_FUNC,
83
	GdkEventFocus_1sizeof_FUNC,
84
	GdkEventKey_1sizeof_FUNC,
84
	GdkEventKey_1sizeof_FUNC,
85
	GdkEventMotion_1sizeof_FUNC,
85
	GdkEventMotion_1sizeof_FUNC,
86
	GdkEventProperty_1sizeof_FUNC,
86
	GdkEventScroll_1sizeof_FUNC,
87
	GdkEventScroll_1sizeof_FUNC,
87
	GdkEventVisibility_1sizeof_FUNC,
88
	GdkEventVisibility_1sizeof_FUNC,
88
	GdkEventWindowState_1sizeof_FUNC,
89
	GdkEventWindowState_1sizeof_FUNC,
Lines 185-190 Link Here
185
	_1XFlush_FUNC,
186
	_1XFlush_FUNC,
186
	_1XFree_FUNC,
187
	_1XFree_FUNC,
187
	_1XGetSelectionOwner_FUNC,
188
	_1XGetSelectionOwner_FUNC,
189
	_1XGetWindowProperty_FUNC,
188
	_1XInternAtom_FUNC,
190
	_1XInternAtom_FUNC,
189
	_1XKeysymToKeycode_FUNC,
191
	_1XKeysymToKeycode_FUNC,
190
	_1XListProperties_FUNC,
192
	_1XListProperties_FUNC,
Lines 204-209 Link Here
204
	_1XSetErrorHandler_FUNC,
206
	_1XSetErrorHandler_FUNC,
205
	_1XSetIOErrorHandler_FUNC,
207
	_1XSetIOErrorHandler_FUNC,
206
	_1XSetInputFocus_FUNC,
208
	_1XSetInputFocus_FUNC,
209
	_1XSetSelectionOwner_FUNC,
207
	_1XSetTransientForHint_FUNC,
210
	_1XSetTransientForHint_FUNC,
208
	_1XSynchronize_FUNC,
211
	_1XSynchronize_FUNC,
209
	_1XTestFakeButtonEvent_FUNC,
212
	_1XTestFakeButtonEvent_FUNC,
Lines 1574-1579 Link Here
1574
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventMotion_2JJ_FUNC,
1577
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventMotion_2JJ_FUNC,
1575
#endif
1578
#endif
1576
#ifndef JNI64
1579
#ifndef JNI64
1580
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2I_FUNC,
1581
#else
1582
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventProperty_2J_FUNC,
1583
#endif
1584
#ifndef JNI64
1577
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II_FUNC,
1585
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2II_FUNC,
1578
#else
1586
#else
1579
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2JJ_FUNC,
1587
	memmove__Lorg_eclipse_swt_internal_gtk_GdkEventScroll_2JJ_FUNC,
(-)Eclipse SWT PI/gtk/library/os_structs.c (+46 lines)
Lines 711-716 Link Here
711
}
711
}
712
#endif
712
#endif
713
713
714
#ifndef NO_GdkEventProperty
715
typedef struct GdkEventProperty_FID_CACHE {
716
	int cached;
717
	jclass clazz;
718
	jfieldID window, send_event, atom, time, state;
719
} GdkEventProperty_FID_CACHE;
720
721
GdkEventProperty_FID_CACHE GdkEventPropertyFc;
722
723
void cacheGdkEventPropertyFields(JNIEnv *env, jobject lpObject)
724
{
725
	if (GdkEventPropertyFc.cached) return;
726
	cacheGdkEventFields(env, lpObject);
727
	GdkEventPropertyFc.clazz = (*env)->GetObjectClass(env, lpObject);
728
	GdkEventPropertyFc.window = (*env)->GetFieldID(env, GdkEventPropertyFc.clazz, "window", I_J);
729
	GdkEventPropertyFc.send_event = (*env)->GetFieldID(env, GdkEventPropertyFc.clazz, "send_event", "B");
730
	GdkEventPropertyFc.atom = (*env)->GetFieldID(env, GdkEventPropertyFc.clazz, "atom", I_J);
731
	GdkEventPropertyFc.time = (*env)->GetFieldID(env, GdkEventPropertyFc.clazz, "time", "I");
732
	GdkEventPropertyFc.state = (*env)->GetFieldID(env, GdkEventPropertyFc.clazz, "state", "I");
733
	GdkEventPropertyFc.cached = 1;
734
}
735
736
GdkEventProperty *getGdkEventPropertyFields(JNIEnv *env, jobject lpObject, GdkEventProperty *lpStruct)
737
{
738
	if (!GdkEventPropertyFc.cached) cacheGdkEventPropertyFields(env, lpObject);
739
	getGdkEventFields(env, lpObject, (GdkEvent *)lpStruct);
740
	lpStruct->window = (GdkWindow *)(*env)->GetIntLongField(env, lpObject, GdkEventPropertyFc.window);
741
	lpStruct->send_event = (gint8)(*env)->GetByteField(env, lpObject, GdkEventPropertyFc.send_event);
742
	lpStruct->atom = (GdkAtom)(*env)->GetIntLongField(env, lpObject, GdkEventPropertyFc.atom);
743
	lpStruct->time = (guint32)(*env)->GetIntField(env, lpObject, GdkEventPropertyFc.time);
744
	lpStruct->state = (guint)(*env)->GetIntField(env, lpObject, GdkEventPropertyFc.state);
745
	return lpStruct;
746
}
747
748
void setGdkEventPropertyFields(JNIEnv *env, jobject lpObject, GdkEventProperty *lpStruct)
749
{
750
	if (!GdkEventPropertyFc.cached) cacheGdkEventPropertyFields(env, lpObject);
751
	setGdkEventFields(env, lpObject, (GdkEvent *)lpStruct);
752
	(*env)->SetIntLongField(env, lpObject, GdkEventPropertyFc.window, (jintLong)lpStruct->window);
753
	(*env)->SetByteField(env, lpObject, GdkEventPropertyFc.send_event, (jbyte)lpStruct->send_event);
754
	(*env)->SetIntLongField(env, lpObject, GdkEventPropertyFc.atom, (jintLong)lpStruct->atom);
755
	(*env)->SetIntField(env, lpObject, GdkEventPropertyFc.time, (jint)lpStruct->time);
756
	(*env)->SetIntField(env, lpObject, GdkEventPropertyFc.state, (jint)lpStruct->state);
757
}
758
#endif
759
714
#ifndef NO_GdkEventScroll
760
#ifndef NO_GdkEventScroll
715
typedef struct GdkEventScroll_FID_CACHE {
761
typedef struct GdkEventScroll_FID_CACHE {
716
	int cached;
762
	int cached;
(-)Eclipse SWT PI/gtk/library/os_structs.h (+12 lines)
Lines 183-188 Link Here
183
#define GdkEventMotion_sizeof() 0
183
#define GdkEventMotion_sizeof() 0
184
#endif
184
#endif
185
185
186
#ifndef NO_GdkEventProperty
187
void cacheGdkEventPropertyFields(JNIEnv *env, jobject lpObject);
188
GdkEventProperty *getGdkEventPropertyFields(JNIEnv *env, jobject lpObject, GdkEventProperty *lpStruct);
189
void setGdkEventPropertyFields(JNIEnv *env, jobject lpObject, GdkEventProperty *lpStruct);
190
#define GdkEventProperty_sizeof() sizeof(GdkEventProperty)
191
#else
192
#define cacheGdkEventPropertyFields(a,b)
193
#define getGdkEventPropertyFields(a,b,c) NULL
194
#define setGdkEventPropertyFields(a,b,c)
195
#define GdkEventProperty_sizeof() 0
196
#endif
197
186
#ifndef NO_GdkEventScroll
198
#ifndef NO_GdkEventScroll
187
void cacheGdkEventScrollFields(JNIEnv *env, jobject lpObject);
199
void cacheGdkEventScrollFields(JNIEnv *env, jobject lpObject);
188
GdkEventScroll *getGdkEventScrollFields(JNIEnv *env, jobject lpObject, GdkEventScroll *lpStruct);
200
GdkEventScroll *getGdkEventScrollFields(JNIEnv *env, jobject lpObject, GdkEventScroll *lpStruct);
(-)Eclipse (+29 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2009 IBM Corporation and others. All rights reserved.
3
 * The contents of this file are made available under the terms
4
 * of the GNU Lesser General Public License (LGPL) Version 2.1 that
5
 * accompanies this distribution (lgpl-v21.txt).  The LGPL is also
6
 * available at http://www.gnu.org/licenses/lgpl.html.  If the version
7
 * of the LGPL at http://www.gnu.org is different to the version of
8
 * the LGPL accompanying this distribution and there is any conflict
9
 * between the two license versions, the terms of the LGPL accompanying
10
 * this distribution shall govern.
11
 * 
12
 * Contributors:
13
 *     IBM Corporation - initial API and implementation
14
 *******************************************************************************/
15
package org.eclipse.swt.internal.gtk;
16
17
public class GdkEventProperty extends GdkEvent {
18
	/** @field cast=(GdkWindow *) */
19
	public int /*long*/ window;
20
	/** @field cast=(gint8) */
21
	public byte send_event;
22
	/** @field cast=(GdkAtom) */
23
	public int /*long*/ atom;
24
	/** @field cast=(guint32) */
25
	public int time;
26
	/** @field cast=(guint) */
27
	public int state;
28
	public static final int sizeof = OS.GdkEventProperty_sizeof();
29
}
(-)Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java (+49 lines)
Lines 38-43 Link Here
38
	}
38
	}
39
39
40
	/** Constants */
40
	/** Constants */
41
	public static final int /*long*/ AnyPropertyType = 0;
41
	public static final int ATK_RELATION_LABELLED_BY = 4;
42
	public static final int ATK_RELATION_LABELLED_BY = 4;
42
	public static final int G_SIGNAL_MATCH_DATA = 1 << 4;
43
	public static final int G_SIGNAL_MATCH_DATA = 1 << 4;
43
	public static final int G_SIGNAL_MATCH_ID = 1 << 0;
44
	public static final int G_SIGNAL_MATCH_ID = 1 << 0;
Lines 200-205 Link Here
200
	public static final int GDK_POINTER_MOTION_HINT_MASK = 0x8;
201
	public static final int GDK_POINTER_MOTION_HINT_MASK = 0x8;
201
	public static final int GDK_POINTER_MOTION_MASK = 0x4;
202
	public static final int GDK_POINTER_MOTION_MASK = 0x4;
202
	public static final int GDK_PROPERTY_NOTIFY = 16;
203
	public static final int GDK_PROPERTY_NOTIFY = 16;
204
	public static final int GDK_PROPERTY_CHANGE_MASK = 1 << 16;
203
	public static final int GDK_Page_Down = 0xff56;
205
	public static final int GDK_Page_Down = 0xff56;
204
	public static final int GDK_Page_Up = 0xff55;
206
	public static final int GDK_Page_Up = 0xff55;
205
	public static final int GDK_Pause = 0xff13;
207
	public static final int GDK_Pause = 0xff13;
Lines 471-476 Link Here
471
	public static final byte[] popup_menu = ascii("popup-menu");
473
	public static final byte[] popup_menu = ascii("popup-menu");
472
	public static final byte[] populate_popup = ascii("populate-popup");
474
	public static final byte[] populate_popup = ascii("populate-popup");
473
	public static final byte[] preedit_changed = ascii("preedit-changed");
475
	public static final byte[] preedit_changed = ascii("preedit-changed");
476
	public static final byte[] property_notify_event = ascii("property-notify-event");
474
	public static final byte[] realize = ascii("realize");
477
	public static final byte[] realize = ascii("realize");
475
	public static final byte[] row_activated = ascii("row-activated");
478
	public static final byte[] row_activated = ascii("row-activated");
476
	public static final byte[] row_changed = ascii("row-changed");
479
	public static final byte[] row_changed = ascii("row-changed");
Lines 560-565 Link Here
560
public static final native int GdkEventFocus_sizeof();
563
public static final native int GdkEventFocus_sizeof();
561
public static final native int GdkEventKey_sizeof();
564
public static final native int GdkEventKey_sizeof();
562
public static final native int GdkEventMotion_sizeof();
565
public static final native int GdkEventMotion_sizeof();
566
public static final native int GdkEventProperty_sizeof();
563
public static final native int GdkEventScroll_sizeof();
567
public static final native int GdkEventScroll_sizeof();
564
public static final native int GdkEventVisibility_sizeof();
568
public static final native int GdkEventVisibility_sizeof();
565
public static final native int GdkEventWindowState_sizeof();
569
public static final native int GdkEventWindowState_sizeof();
Lines 838-843 Link Here
838
/**
842
/**
839
 * @param display cast=(Display *)
843
 * @param display cast=(Display *)
840
 * @param selection cast=(Atom)
844
 * @param selection cast=(Atom)
845
 * @param owner cast=(Window)
846
 * @param time cast=(Time)
847
 */
848
public static final native int /*long*/ _XSetSelectionOwner(int /*long*/ display, int /*long*/ selection, int /*long*/ window, int time);
849
public static final int /*long*/ XSetSelectionOwner(int /*long*/ display, int /*long*/ selection, int /*long*/ window, int time) {
850
	lock.lock();
851
	try {
852
		return _XSetSelectionOwner(display, selection, window, time);
853
	} finally {
854
		lock.unlock();
855
	}
856
}
857
/**
858
 * @param display cast=(Display *)
859
 * @param selection cast=(Atom)
841
 */
860
 */
842
public static final native int /*long*/ _XGetSelectionOwner(int /*long*/ display, int /*long*/ selection);
861
public static final native int /*long*/ _XGetSelectionOwner(int /*long*/ display, int /*long*/ selection);
843
public static final int /*long*/ XGetSelectionOwner(int /*long*/ display, int /*long*/ selection) {
862
public static final int /*long*/ XGetSelectionOwner(int /*long*/ display, int /*long*/ selection) {
Lines 848-853 Link Here
848
		lock.unlock();
867
		lock.unlock();
849
	}
868
	}
850
}
869
}
870
871
/**
872
 * @param display cast=(Display *)
873
 * @param window cast=(Window)
874
 * @param property cast=(Atom)
875
 * @param req_type cast=(Atom)
876
 * @param actual_type_return cast=(Atom*)
877
 * @param actual_format_return cast=(Atom*)
878
 * @param actual_format_return cast=(int *)
879
 * @param nitems_return cast=(unsigned long *)
880
 * @param bytes_after_return cast=(unsigned long *)
881
 * @param prop_return cast=(unsigned char **)
882
 */
883
public static final native int /*long*/ _XGetWindowProperty(int /*long*/ display, int /*long*/ window, int /*long*/ property, long offset, long length, boolean delete, int /*long*/ req_type, int /*long*/ [] actual_type_return, int /*long*/ [] actual_format_return , long[] nitems_return, long[] bytes_after_return, int /*long*/ [] prop_return);
884
public static final int /*long*/ XGetWindowProperty(
885
		int /*long*/ display, int /*long*/ window, int /*long*/ property, long offset, long length, boolean delete, int /*long*/ req_type, int /*long*/ [] actual_type_return, int /*long*/ [] actual_format_return, long[] nitems_return, long[] bytes_after_return, int /*long*/ [] prop_return) {
886
	lock.lock();
887
	try {
888
		return _XGetWindowProperty(display, window, property, offset, length, delete, req_type, actual_type_return, actual_format_return , nitems_return, bytes_after_return, prop_return);
889
	} finally {
890
		lock.unlock();
891
	}
892
}
893
894
851
/**
895
/**
852
 * @param display cast=(Display *)
896
 * @param display cast=(Display *)
853
 * @param name cast=(char *)
897
 * @param name cast=(char *)
Lines 13439-13444 Link Here
13439
/**
13483
/**
13440
 * @param dest cast=(void *),flags=no_in
13484
 * @param dest cast=(void *),flags=no_in
13441
 * @param src cast=(const void *)
13485
 * @param src cast=(const void *)
13486
 */
13487
public static final native void memmove(GdkEventProperty dest, int /*long*/ src);
13488
/**
13489
 * @param dest cast=(void *),flags=no_in
13490
 * @param src cast=(const void *)
13442
 * @param size cast=(size_t)
13491
 * @param size cast=(size_t)
13443
 */
13492
 */
13444
public static final native void memmove(GdkDragContext dest, int /*long*/ src, int /*long*/ size);
13493
public static final native void memmove(GdkDragContext dest, int /*long*/ src, int /*long*/ size);
(-)Eclipse SWT PI/win32/library/make_win32.mak (-1 / +1 lines)
Lines 68-74 Link Here
68
	/I"$(JAVA_HOME)\include" /I"$(JAVA_HOME)\include\win32" /I.
68
	/I"$(JAVA_HOME)\include" /I"$(JAVA_HOME)\include\win32" /I.
69
RCFLAGS = $(rcflags) $(rcvars) $(RCFLAGS) -DSWT_FILE_VERSION=\"$(maj_ver).$(min_ver)\" -DSWT_COMMA_VERSION=$(comma_ver)
69
RCFLAGS = $(rcflags) $(rcvars) $(RCFLAGS) -DSWT_FILE_VERSION=\"$(maj_ver).$(min_ver)\" -DSWT_COMMA_VERSION=$(comma_ver)
70
70
71
all: make_swt make_awt make_gdip make_wgl $(XULRUNNER_MAKE)
71
all: make_swt 
72
72
73
xpcom_custom.obj: xpcom_custom.cpp
73
xpcom_custom.obj: xpcom_custom.cpp
74
	cl $(MOZILLACFLAGS) xpcom_custom.cpp
74
	cl $(MOZILLACFLAGS) xpcom_custom.cpp
(-)Eclipse SWT PI/win32/library/os.c (+64 lines)
Lines 2418-2423 Link Here
2418
}
2418
}
2419
#endif
2419
#endif
2420
2420
2421
#ifndef NO_DuplicateHandle
2422
JNIEXPORT jboolean JNICALL OS_NATIVE(DuplicateHandle)
2423
	(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jintLongArray arg3, jint arg4, jboolean arg5, jint arg6)
2424
{
2425
	jintLong *lparg3=NULL;
2426
	jboolean rc = 0;
2427
	OS_NATIVE_ENTER(env, that, DuplicateHandle_FUNC);
2428
	if (arg3) if ((lparg3 = (*env)->GetIntLongArrayElements(env, arg3, NULL)) == NULL) goto fail;
2429
	rc = (jboolean)DuplicateHandle((HANDLE)arg0, (HANDLE)arg1, (HANDLE)arg2, (LPHANDLE)lparg3, (DWORD)arg4, arg5, (DWORD)arg6);
2430
fail:
2431
	if (arg3 && lparg3) (*env)->ReleaseIntLongArrayElements(env, arg3, lparg3, 0);
2432
	OS_NATIVE_EXIT(env, that, DuplicateHandle_FUNC);
2433
	return rc;
2434
}
2435
#endif
2436
2421
#ifndef NO_DwmEnableBlurBehindWindow
2437
#ifndef NO_DwmEnableBlurBehindWindow
2422
JNIEXPORT jint JNICALL OS_NATIVE(DwmEnableBlurBehindWindow)
2438
JNIEXPORT jint JNICALL OS_NATIVE(DwmEnableBlurBehindWindow)
2423
	(JNIEnv *env, jclass that, jintLong arg0, jobject arg1)
2439
	(JNIEnv *env, jclass that, jintLong arg0, jobject arg1)
Lines 3710-3715 Link Here
3710
}
3726
}
3711
#endif
3727
#endif
3712
3728
3729
#ifndef NO_GetCurrentProcess
3730
JNIEXPORT jintLong JNICALL OS_NATIVE(GetCurrentProcess)
3731
	(JNIEnv *env, jclass that)
3732
{
3733
	jintLong rc = 0;
3734
	OS_NATIVE_ENTER(env, that, GetCurrentProcess_FUNC);
3735
	rc = (jintLong)GetCurrentProcess();
3736
	OS_NATIVE_EXIT(env, that, GetCurrentProcess_FUNC);
3737
	return rc;
3738
}
3739
#endif
3740
3713
#ifndef NO_GetCurrentProcessId
3741
#ifndef NO_GetCurrentProcessId
3714
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentProcessId)
3742
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentProcessId)
3715
	(JNIEnv *env, jclass that)
3743
	(JNIEnv *env, jclass that)
Lines 8191-8196 Link Here
8191
}
8219
}
8192
#endif
8220
#endif
8193
8221
8222
#ifndef NO_MapViewOfFile
8223
JNIEXPORT jintLong JNICALL OS_NATIVE(MapViewOfFile)
8224
	(JNIEnv *env, jclass that, jintLong arg0, jint arg1, jint arg2, jint arg3, jint arg4)
8225
{
8226
	jintLong rc = 0;
8227
	OS_NATIVE_ENTER(env, that, MapViewOfFile_FUNC);
8228
	rc = (jintLong)MapViewOfFile((HANDLE)arg0, (DWORD)arg1, (DWORD)arg2, (DWORD)arg3, arg4);
8229
	OS_NATIVE_EXIT(env, that, MapViewOfFile_FUNC);
8230
	return rc;
8231
}
8232
#endif
8233
8194
#ifndef NO_MapVirtualKeyA
8234
#ifndef NO_MapVirtualKeyA
8195
JNIEXPORT jint JNICALL OS_NATIVE(MapVirtualKeyA)
8235
JNIEXPORT jint JNICALL OS_NATIVE(MapVirtualKeyA)
8196
	(JNIEnv *env, jclass that, jint arg0, jint arg1)
8236
	(JNIEnv *env, jclass that, jint arg0, jint arg1)
Lines 11510-11515 Link Here
11510
}
11550
}
11511
#endif
11551
#endif
11512
11552
11553
#ifndef NO_OpenProcess
11554
JNIEXPORT jintLong JNICALL OS_NATIVE(OpenProcess)
11555
	(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jint arg2)
11556
{
11557
	jintLong rc = 0;
11558
	OS_NATIVE_ENTER(env, that, OpenProcess_FUNC);
11559
	rc = (jintLong)OpenProcess((DWORD)arg0, arg1, (DWORD)arg2);
11560
	OS_NATIVE_EXIT(env, that, OpenProcess_FUNC);
11561
	return rc;
11562
}
11563
#endif
11564
11513
#ifndef NO_OpenThemeData
11565
#ifndef NO_OpenThemeData
11514
JNIEXPORT jintLong JNICALL OS_NATIVE(OpenThemeData)
11566
JNIEXPORT jintLong JNICALL OS_NATIVE(OpenThemeData)
11515
	(JNIEnv *env, jclass that, jintLong arg0, jcharArray arg1)
11567
	(JNIEnv *env, jclass that, jintLong arg0, jcharArray arg1)
Lines 16790-16795 Link Here
16790
}
16842
}
16791
#endif
16843
#endif
16792
16844
16845
#ifndef NO_UnmapViewOfFile
16846
JNIEXPORT jboolean JNICALL OS_NATIVE(UnmapViewOfFile)
16847
	(JNIEnv *env, jclass that, jintLong arg0)
16848
{
16849
	jboolean rc = 0;
16850
	OS_NATIVE_ENTER(env, that, UnmapViewOfFile_FUNC);
16851
	rc = (jboolean)UnmapViewOfFile((LPCVOID)arg0);
16852
	OS_NATIVE_EXIT(env, that, UnmapViewOfFile_FUNC);
16853
	return rc;
16854
}
16855
#endif
16856
16793
#ifndef NO_UnregisterClassA
16857
#ifndef NO_UnregisterClassA
16794
JNIEXPORT jboolean JNICALL OS_NATIVE(UnregisterClassA)
16858
JNIEXPORT jboolean JNICALL OS_NATIVE(UnregisterClassA)
16795
	(JNIEnv *env, jclass that, jbyteArray arg0, jintLong arg1)
16859
	(JNIEnv *env, jclass that, jbyteArray arg0, jintLong arg1)
(-)Eclipse SWT PI/win32/library/os_stats.c (-2 / +7 lines)
Lines 14-21 Link Here
14
14
15
#ifdef NATIVE_STATS
15
#ifdef NATIVE_STATS
16
16
17
int OS_nativeFunctionCount = 979;
17
int OS_nativeFunctionCount = 984;
18
int OS_nativeFunctionCallCount[979];
18
int OS_nativeFunctionCallCount[984];
19
char * OS_nativeFunctionNames[] = {
19
char * OS_nativeFunctionNames[] = {
20
	"ACCEL_1sizeof",
20
	"ACCEL_1sizeof",
21
	"ACTCTX_1sizeof",
21
	"ACTCTX_1sizeof",
Lines 181-186 Link Here
181
	"DrawThemeIcon",
181
	"DrawThemeIcon",
182
	"DrawThemeParentBackground",
182
	"DrawThemeParentBackground",
183
	"DrawThemeText",
183
	"DrawThemeText",
184
	"DuplicateHandle",
184
	"DwmEnableBlurBehindWindow",
185
	"DwmEnableBlurBehindWindow",
185
	"DwmExtendFrameIntoClientArea",
186
	"DwmExtendFrameIntoClientArea",
186
	"EMREXTCREATEFONTINDIRECTW_1sizeof",
187
	"EMREXTCREATEFONTINDIRECTW_1sizeof",
Lines 257-262 Link Here
257
	"GetClipboardFormatNameW",
258
	"GetClipboardFormatNameW",
258
	"GetComboBoxInfo",
259
	"GetComboBoxInfo",
259
	"GetCurrentObject",
260
	"GetCurrentObject",
261
	"GetCurrentProcess",
260
	"GetCurrentProcessId",
262
	"GetCurrentProcessId",
261
	"GetCurrentThreadId",
263
	"GetCurrentThreadId",
262
	"GetCursor",
264
	"GetCursor",
Lines 630-635 Link Here
630
	"MONITORINFO_1sizeof",
632
	"MONITORINFO_1sizeof",
631
	"MOUSEINPUT_1sizeof",
633
	"MOUSEINPUT_1sizeof",
632
	"MSG_1sizeof",
634
	"MSG_1sizeof",
635
	"MapViewOfFile",
633
	"MapVirtualKeyA",
636
	"MapVirtualKeyA",
634
	"MapVirtualKeyW",
637
	"MapVirtualKeyW",
635
#ifndef JNI64
638
#ifndef JNI64
Lines 1154-1159 Link Here
1154
	"OleInitialize",
1157
	"OleInitialize",
1155
	"OleUninitialize",
1158
	"OleUninitialize",
1156
	"OpenClipboard",
1159
	"OpenClipboard",
1160
	"OpenProcess",
1157
	"OpenThemeData",
1161
	"OpenThemeData",
1158
	"PAINTSTRUCT_1sizeof",
1162
	"PAINTSTRUCT_1sizeof",
1159
	"PANOSE_1sizeof",
1163
	"PANOSE_1sizeof",
Lines 1734-1739 Link Here
1734
	"TreeView_1GetItemRect",
1738
	"TreeView_1GetItemRect",
1735
	"UDACCEL_1sizeof",
1739
	"UDACCEL_1sizeof",
1736
	"UnhookWindowsHookEx",
1740
	"UnhookWindowsHookEx",
1741
	"UnmapViewOfFile",
1737
	"UnregisterClassA",
1742
	"UnregisterClassA",
1738
	"UnregisterClassW",
1743
	"UnregisterClassW",
1739
	"UpdateLayeredWindow",
1744
	"UpdateLayeredWindow",
(-)Eclipse SWT PI/win32/library/os_stats.h (+5 lines)
Lines 189-194 Link Here
189
	DrawThemeIcon_FUNC,
189
	DrawThemeIcon_FUNC,
190
	DrawThemeParentBackground_FUNC,
190
	DrawThemeParentBackground_FUNC,
191
	DrawThemeText_FUNC,
191
	DrawThemeText_FUNC,
192
	DuplicateHandle_FUNC,
192
	DwmEnableBlurBehindWindow_FUNC,
193
	DwmEnableBlurBehindWindow_FUNC,
193
	DwmExtendFrameIntoClientArea_FUNC,
194
	DwmExtendFrameIntoClientArea_FUNC,
194
	EMREXTCREATEFONTINDIRECTW_1sizeof_FUNC,
195
	EMREXTCREATEFONTINDIRECTW_1sizeof_FUNC,
Lines 265-270 Link Here
265
	GetClipboardFormatNameW_FUNC,
266
	GetClipboardFormatNameW_FUNC,
266
	GetComboBoxInfo_FUNC,
267
	GetComboBoxInfo_FUNC,
267
	GetCurrentObject_FUNC,
268
	GetCurrentObject_FUNC,
269
	GetCurrentProcess_FUNC,
268
	GetCurrentProcessId_FUNC,
270
	GetCurrentProcessId_FUNC,
269
	GetCurrentThreadId_FUNC,
271
	GetCurrentThreadId_FUNC,
270
	GetCursor_FUNC,
272
	GetCursor_FUNC,
Lines 638-643 Link Here
638
	MONITORINFO_1sizeof_FUNC,
640
	MONITORINFO_1sizeof_FUNC,
639
	MOUSEINPUT_1sizeof_FUNC,
641
	MOUSEINPUT_1sizeof_FUNC,
640
	MSG_1sizeof_FUNC,
642
	MSG_1sizeof_FUNC,
643
	MapViewOfFile_FUNC,
641
	MapVirtualKeyA_FUNC,
644
	MapVirtualKeyA_FUNC,
642
	MapVirtualKeyW_FUNC,
645
	MapVirtualKeyW_FUNC,
643
#ifndef JNI64
646
#ifndef JNI64
Lines 1162-1167 Link Here
1162
	OleInitialize_FUNC,
1165
	OleInitialize_FUNC,
1163
	OleUninitialize_FUNC,
1166
	OleUninitialize_FUNC,
1164
	OpenClipboard_FUNC,
1167
	OpenClipboard_FUNC,
1168
	OpenProcess_FUNC,
1165
	OpenThemeData_FUNC,
1169
	OpenThemeData_FUNC,
1166
	PAINTSTRUCT_1sizeof_FUNC,
1170
	PAINTSTRUCT_1sizeof_FUNC,
1167
	PANOSE_1sizeof_FUNC,
1171
	PANOSE_1sizeof_FUNC,
Lines 1742-1747 Link Here
1742
	TreeView_1GetItemRect_FUNC,
1746
	TreeView_1GetItemRect_FUNC,
1743
	UDACCEL_1sizeof_FUNC,
1747
	UDACCEL_1sizeof_FUNC,
1744
	UnhookWindowsHookEx_FUNC,
1748
	UnhookWindowsHookEx_FUNC,
1749
	UnmapViewOfFile_FUNC,
1745
	UnregisterClassA_FUNC,
1750
	UnregisterClassA_FUNC,
1746
	UnregisterClassW_FUNC,
1751
	UnregisterClassW_FUNC,
1747
	UpdateLayeredWindow_FUNC,
1752
	UpdateLayeredWindow_FUNC,
(-)Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java (-1 / +35 lines)
Lines 670-676 Link Here
670
	public static final int FCONTROL = 0x8;
670
	public static final int FCONTROL = 0x8;
671
	public static final int FE_FONTSMOOTHINGCLEARTYPE = 0x0002;
671
	public static final int FE_FONTSMOOTHINGCLEARTYPE = 0x0002;
672
	public static final int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21;
672
	public static final int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21;
673
	public static final int FILE_ATTRIBUTE_NORMAL = 0x00000080; 
673
	public static final int FILE_ATTRIBUTE_NORMAL = 0x00000080;
674
	public static final int FILE_MAP_READ = 4;
674
	public static final int FNERR_INVALIDFILENAME = 0x3002;
675
	public static final int FNERR_INVALIDFILENAME = 0x3002;
675
	public static final int FNERR_BUFFERTOOSMALL = 0x3003;
676
	public static final int FNERR_BUFFERTOOSMALL = 0x3003;
676
	public static final int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100;
677
	public static final int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100;
Lines 6612-6615 Link Here
6612
public static final native int /*long*/ WindowFromPoint (POINT lpPoint);
6613
public static final native int /*long*/ WindowFromPoint (POINT lpPoint);
6613
/** @param string cast=(const wchar_t *) */
6614
/** @param string cast=(const wchar_t *) */
6614
public static final native int wcslen (int /*long*/ string);
6615
public static final native int wcslen (int /*long*/ string);
6616
6617
/** @param hFileMappingObject cast=(HANDLE) 
6618
 *  @param dwDesiredAccess cast=(DWORD)
6619
 *  @param dwFileOffsetHigh cast=(DWORD)
6620
 *  @param dwFileOffsetLow cast=(DWORD)
6621
 */
6622
public static final native int /*long*/ MapViewOfFile(int /*long*/ hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumberOfBytesToMap);
6623
/** @param lpBaseAddress cast=(LPCVOID) */
6624
public static final native boolean UnmapViewOfFile(int /*long*/ lpBaseAddress);
6625
6626
public static final int PROCESS_DUP_HANDLE = 0x0040;
6627
public static final int PROCESS_VM_READ = 0x0010;
6628
public static final int DUPLICATE_SAME_ACCESS = 2;
6629
6630
/**
6631
 * @param dwDesiredAccess cast=(DWORD)
6632
 * @param dwProcessId cast=(DWORD)
6633
 */
6634
public static final native int /*long*/ OpenProcess(int dwDesiredAccess, boolean bInheritHandle, int dwProcessId);
6635
6636
public static final native int /*long*/ GetCurrentProcess();
6637
6638
/**
6639
 * @param hSourceProcessHandle cast=(HANDLE) 
6640
 * @param hSourceHandle cast=(HANDLE) 
6641
 * @param hTargetProcessHandle cast=(HANDLE) 
6642
 * @param lpTargetHandle cast=(LPHANDLE)
6643
 * @param dwDesiredAccess cast=(DWORD) 
6644
 * @param dwOptions cast=(DWORD) 
6645
 */
6646
public static final native boolean DuplicateHandle(int /*long*/ hSourceProcessHandle, int /*long*/ hSourceHandle, int /*long*/ hTargetProcessHandle,
6647
		int /*long*/ [] lpTargetHandle, int dwDesiredAccess, boolean b, int dwOptions);
6648
6615
}
6649
}
(-)Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java (-20 / +87 lines)
Lines 22-27 Link Here
22
import org.eclipse.swt.internal.carbon.HICommand;
22
import org.eclipse.swt.internal.carbon.HICommand;
23
import org.eclipse.swt.internal.carbon.Rect;
23
import org.eclipse.swt.internal.carbon.Rect;
24
import org.eclipse.swt.internal.carbon.RGBColor;
24
import org.eclipse.swt.internal.carbon.RGBColor;
25
import org.eclipse.swt.internal.carbon.AEDesc;
25
import org.eclipse.swt.internal.cocoa.*;
26
import org.eclipse.swt.internal.cocoa.*;
26
27
27
import org.eclipse.swt.*;
28
import org.eclipse.swt.*;
Lines 106-121 Link Here
106
 * @noextend This class is not intended to be subclassed by clients.
107
 * @noextend This class is not intended to be subclassed by clients.
107
 */
108
 */
108
public class Display extends Device {
109
public class Display extends Device {
109
	
110
	final static int SWT_CLASS = 'S' << 24 | 'W' << 16 | 'T' << 8 | '-';
111
	final static int SWT_OPEN_FILE_KIND = 1;
112
	final static int SWT_OPEN_FILE_PARAM = 'o' << 24 | 'd' << 16 | 'o' << 8 | 'c';
113
110
	/* Windows and Events */
114
	/* Windows and Events */
111
	Event [] eventQueue;
115
	Event [] eventQueue;
112
	Callback actionCallback, appleEventCallback, clockCallback, commandCallback, controlCallback, accessibilityCallback, appearanceCallback;
116
	Callback actionCallback, appleEventCallback, clockCallback, commandCallback, controlCallback, accessibilityCallback, appearanceCallback;
113
	Callback drawItemCallback, itemDataCallback, itemNotificationCallback, itemCompareCallback, searchCallback, trayItemCallback;
117
	Callback drawItemCallback, itemDataCallback, itemNotificationCallback, itemCompareCallback, searchCallback, trayItemCallback;
114
	Callback hitTestCallback, keyboardCallback, menuCallback, mouseHoverCallback, helpCallback, observerCallback, sourceCallback;
118
	Callback hitTestCallback, keyboardCallback, menuCallback, mouseHoverCallback, helpCallback, observerCallback, sourceCallback;
115
	Callback mouseCallback, trackingCallback, windowCallback, colorCallback, textInputCallback, releaseCallback, coreEventCallback, pollingCallback;
119
	Callback mouseCallback, trackingCallback, windowCallback, colorCallback, textInputCallback, releaseCallback, coreEventCallback;
120
	Callback pollingCallback, launcherCallback;
116
	int actionProc, appleEventProc, clockProc, commandProc, controlProc, appearanceProc, accessibilityProc;
121
	int actionProc, appleEventProc, clockProc, commandProc, controlProc, appearanceProc, accessibilityProc;
117
	int drawItemProc, itemDataProc, itemNotificationProc, itemCompareProc, helpProc, searchProc, trayItemProc;
122
	int drawItemProc, itemDataProc, itemNotificationProc, itemCompareProc, helpProc, searchProc, trayItemProc;
118
	int hitTestProc, keyboardProc, menuProc, mouseHoverProc, observerProc, sourceProc;
123
	int hitTestProc, keyboardProc, menuProc, mouseHoverProc, observerProc, sourceProc, launcherProc;
119
	int mouseProc, trackingProc, windowProc, colorProc, textInputProc, releaseProc, coreEventProc, pollingProc;
124
	int mouseProc, trackingProc, windowProc, colorProc, textInputProc, releaseProc, coreEventProc, pollingProc;
120
	EventTable eventTable, filterTable;
125
	EventTable eventTable, filterTable;
121
	int queue, runLoop, runLoopSource, runLoopObserver, lastModifiers, lastState, lastX, lastY;
126
	int queue, runLoop, runLoopSource, runLoopObserver, lastModifiers, lastState, lastX, lastY;
Lines 900-920 Link Here
900
}
905
}
901
906
902
int coreEventProc (int theAppleEvent, int reply, int handlerRefcon) {
907
int coreEventProc (int theAppleEvent, int reply, int handlerRefcon) {
903
	if (!disposing) {
908
	switch(handlerRefcon) {
904
		Event event = new Event ();
909
		case OS.kAEOpenDocuments:
905
		sendEvent (SWT.Close, event);
910
			AEDesc docList = new AEDesc();
906
		if (event.doit) {
911
			int[] count = new int[1];
907
			dispose ();
912
		    OS.AEGetParamDesc(theAppleEvent, OS.keyDirectObject, OS.typeAEList, docList);
908
			/*
913
			OS.AECountItems(docList, count);
909
			* When the application is closing, no SWT program can continue
914
			for(int index = 1; index <= count[0]; index++) {
910
			* to run.  In order to avoid running code after the display has
915
				int [] theAEKeyword = new int [1];
911
			* been disposed, exit from Java.
916
				int [] typeCode = new int [1];
912
			*/
917
				int maximumSize = 80; // size of FSRef
913
			/* This code is intentionally commented */
918
				int dataPtr = OS.NewPtr (maximumSize);
914
//			System.exit (0);
919
				int [] actualSize = new int [1];
915
		} else {
920
				int status = OS.AEGetNthPtr (docList, 1, OS.typeFSRef, theAEKeyword, typeCode, dataPtr, maximumSize, actualSize);
916
			return OS.userCanceledErr;
921
				if (status == OS.noErr && typeCode [0] == OS.typeFSRef) {
917
		}
922
					byte [] fsRef = new byte [actualSize [0]];
923
					OS.memmove (fsRef, dataPtr, actualSize [0]);
924
					int dirUrl = OS.CFURLCreateFromFSRef (OS.kCFAllocatorDefault, fsRef);
925
					int dirString = OS.CFURLCopyFileSystemPath(dirUrl, OS.kCFURLPOSIXPathStyle);
926
					OS.CFRelease (dirUrl);						
927
					int length = OS.CFStringGetLength (dirString);
928
					char [] buffer= new char [length];
929
					CFRange range = new CFRange ();
930
					range.length = length;
931
					OS.CFStringGetCharacters (dirString, range, buffer);
932
					String string = new String(buffer);
933
					Event event = new Event();
934
					event.type = SWT.OpenDoc;
935
					event.text = string;
936
					postEvent(event);
937
				}
938
				OS.DisposePtr (dataPtr);
939
		    }
940
		    OS.AEDisposeDesc(docList);
941
			break;
942
		case OS.kAEQuitApplication:
943
			if (!disposing) {
944
				Event event = new Event ();
945
				sendEvent (SWT.Close, event);
946
				if (event.doit) {
947
					dispose ();
948
					/*
949
					* When the application is closing, no SWT program can continue
950
					* to run.  In order to avoid running code after the display has
951
					* been disposed, exit from Java.
952
					*/
953
					/* This code is intentionally commented */
954
		//			System.exit (0);
955
				} else {
956
					return OS.userCanceledErr;
957
				}
958
			}
959
			break;
918
	}
960
	}
919
	return OS.noErr;
961
	return OS.noErr;
920
}
962
}
Lines 2209-2214 Link Here
2209
	pollingCallback = new Callback (this, "pollingProc", 2);
2251
	pollingCallback = new Callback (this, "pollingProc", 2);
2210
	pollingProc = pollingCallback.getAddress ();
2252
	pollingProc = pollingCallback.getAddress ();
2211
	if (pollingProc == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
2253
	if (pollingProc == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
2254
	launcherCallback = new Callback (this, "launcherProc", 3);
2255
	launcherProc = launcherCallback.getAddress ();
2256
	if (launcherProc == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
2212
2257
2213
	/* Install Event Handlers */
2258
	/* Install Event Handlers */
2214
	int[] mask1 = new int[] {
2259
	int[] mask1 = new int[] {
Lines 2231-2237 Link Here
2231
		OS.kEventClassAppleEvent, OS.kEventAppleEvent,
2276
		OS.kEventClassAppleEvent, OS.kEventAppleEvent,
2232
	};
2277
	};
2233
	OS.InstallEventHandler (appTarget, appleEventProc, mask3.length / 2, mask3, 0, null);
2278
	OS.InstallEventHandler (appTarget, appleEventProc, mask3.length / 2, mask3, 0, null);
2234
	OS.AEInstallEventHandler(OS.kCoreEventClass, OS.kAEQuitApplication, coreEventProc, 0, false);
2279
	OS.AEInstallEventHandler(OS.kCoreEventClass, OS.kAEQuitApplication, coreEventProc, OS.kAEQuitApplication, false);
2235
2280
2236
	int [] mask4 = new int[] {
2281
	int [] mask4 = new int[] {
2237
		OS.kEventClassKeyboard, OS.kEventRawKeyDown,
2282
		OS.kEventClassKeyboard, OS.kEventRawKeyDown,
Lines 2253-2259 Link Here
2253
	OS.AEInstallEventHandler (OS.kAppearanceEventClass, OS.kAESmallSystemFontChanged, appearanceProc, 0, false);
2298
	OS.AEInstallEventHandler (OS.kAppearanceEventClass, OS.kAESmallSystemFontChanged, appearanceProc, 0, false);
2254
	OS.AEInstallEventHandler (OS.kAppearanceEventClass, OS.kAESystemFontChanged, appearanceProc, 0, false);
2299
	OS.AEInstallEventHandler (OS.kAppearanceEventClass, OS.kAESystemFontChanged, appearanceProc, 0, false);
2255
	OS.AEInstallEventHandler (OS.kAppearanceEventClass, OS.kAEViewsFontChanged, appearanceProc, 0, false);
2300
	OS.AEInstallEventHandler (OS.kAppearanceEventClass, OS.kAEViewsFontChanged, appearanceProc, 0, false);
2256
2301
	
2302
	int[] mask6 = new int[] {
2303
			SWT_CLASS, SWT_OPEN_FILE_KIND,
2304
		};
2305
	OS.InstallEventHandler (appTarget, launcherProc, mask6.length / 2, mask6, 0, null);
2306
	OS.AEInstallEventHandler(OS.kCoreEventClass, OS.kAEOpenDocuments, coreEventProc, OS.kAEOpenDocuments, false);
2307
	
2257
	int mode = OS.kCFRunLoopCommonModes ();
2308
	int mode = OS.kCFRunLoopCommonModes ();
2258
	int activities = OS.kCFRunLoopBeforeWaiting;
2309
	int activities = OS.kCFRunLoopBeforeWaiting;
2259
	runLoopObserver = OS.CFRunLoopObserverCreate (OS.kCFAllocatorDefault, activities, true, 0, observerProc, 0);
2310
	runLoopObserver = OS.CFRunLoopObserverCreate (OS.kCFAllocatorDefault, activities, true, 0, observerProc, 0);
Lines 2477-2482 Link Here
2477
	return 0;
2528
	return 0;
2478
}
2529
}
2479
2530
2531
int launcherProc (int nextHandler, int theEvent, int userData) {
2532
	int [] stringRef = new int [1];
2533
	OS.GetEventParameter (theEvent, SWT_OPEN_FILE_PARAM, OS.typeCFStringRef, null, 4, null, stringRef);
2534
	int length = 0;
2535
	if (stringRef [0] != 0) length = OS.CFStringGetLength (stringRef [0]);
2536
	char [] buffer= new char [length];
2537
	CFRange range = new CFRange ();
2538
	range.length = length;
2539
	OS.CFStringGetCharacters (stringRef [0], range, buffer);
2540
	String filePath = new String(buffer);
2541
	Event event = new Event();
2542
	event.type = SWT.OpenDoc;
2543
	event.text = filePath;
2544
	postEvent(event);
2545
	return OS.noErr;
2546
}
2480
/**
2547
/**
2481
 * Generate a low level system event.
2548
 * Generate a low level system event.
2482
 * 
2549
 * 
(-)Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java (-1 / +37 lines)
Lines 165-171 Link Here
165
	// the following Callbacks are never freed
165
	// the following Callbacks are never freed
166
	static Callback windowCallback2, windowCallback3, windowCallback4, windowCallback5, windowCallback6;
166
	static Callback windowCallback2, windowCallback3, windowCallback4, windowCallback5, windowCallback6;
167
	static Callback dialogCallback3, dialogCallback4, dialogCallback5;
167
	static Callback dialogCallback3, dialogCallback4, dialogCallback5;
168
	static Callback applicationCallback2, applicationCallback3, applicationCallback6;
168
	static Callback applicationCallback2, applicationCallback3, applicationCallback4, applicationCallback6;
169
	
169
	
170
	/* Display Shutdown */
170
	/* Display Shutdown */
171
	Runnable [] disposeList;
171
	Runnable [] disposeList;
Lines 840-845 Link Here
840
		applicationCallback3 = new Callback(clazz, "applicationProc", 3);
840
		applicationCallback3 = new Callback(clazz, "applicationProc", 3);
841
		int /*long*/ proc3 = applicationCallback3.getAddress();
841
		int /*long*/ proc3 = applicationCallback3.getAddress();
842
		if (proc3 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
842
		if (proc3 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
843
		applicationCallback4 = new Callback(clazz, "applicationProc", 4);
844
		int /*long*/ proc4 = applicationCallback4.getAddress();
845
		if (proc4 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
843
		applicationCallback6 = new Callback(clazz, "applicationProc", 6);
846
		applicationCallback6 = new Callback(clazz, "applicationProc", 6);
844
		int /*long*/ proc6 = applicationCallback6.getAddress();
847
		int /*long*/ proc6 = applicationCallback6.getAddress();
845
		if (proc6 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
848
		if (proc6 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
Lines 857-862 Link Here
857
		int /*long*/ appProc3 = applicationCallback3.getAddress();
860
		int /*long*/ appProc3 = applicationCallback3.getAddress();
858
		if (appProc3 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
861
		if (appProc3 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
859
		cls = OS.objc_allocateClassPair(OS.class_NSObject, className, 0);
862
		cls = OS.objc_allocateClassPair(OS.class_NSObject, className, 0);
863
		int /*long*/ appProc4 = applicationCallback4.getAddress();
864
		if (appProc4 == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
865
		cls = OS.objc_allocateClassPair(OS.class_NSObject, className, 0);
860
		OS.class_addMethod(cls, OS.sel_applicationWillFinishLaunching_, appProc3, "@:@");
866
		OS.class_addMethod(cls, OS.sel_applicationWillFinishLaunching_, appProc3, "@:@");
861
		OS.class_addMethod(cls, OS.sel_terminate_, appProc3, "@:@");
867
		OS.class_addMethod(cls, OS.sel_terminate_, appProc3, "@:@");
862
		OS.class_addMethod(cls, OS.sel_quitRequested_, appProc3, "@:@");
868
		OS.class_addMethod(cls, OS.sel_quitRequested_, appProc3, "@:@");
Lines 866-871 Link Here
866
		OS.class_addMethod(cls, OS.sel_unhideAllApplications_, appProc3, "@:@");
872
		OS.class_addMethod(cls, OS.sel_unhideAllApplications_, appProc3, "@:@");
867
		OS.class_addMethod(cls, OS.sel_applicationDidBecomeActive_, appProc3, "@:@");
873
		OS.class_addMethod(cls, OS.sel_applicationDidBecomeActive_, appProc3, "@:@");
868
		OS.class_addMethod(cls, OS.sel_applicationDidResignActive_, appProc3, "@:@");
874
		OS.class_addMethod(cls, OS.sel_applicationDidResignActive_, appProc3, "@:@");
875
		OS.class_addMethod(cls, OS.sel_application_openFile_, appProc4, "@:@B");
876
		OS.class_addMethod(cls, OS.sel_application_openFiles_, appProc4, "@:@@");
877
		OS.class_addMethod(cls, OS.sel_applicationShouldHandleReopen_hasVisibleWindows_, appProc4, "@:@B");
869
		OS.objc_registerClassPair(cls);
878
		OS.objc_registerClassPair(cls);
870
	}
879
	}
871
	if (!isEmbedded) {
880
	if (!isEmbedded) {
Lines 4561-4566 Link Here
4561
	return 0;
4570
	return 0;
4562
}
4571
}
4563
4572
4573
static int /*long*/ applicationProc(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1) {
4574
	Display display = getCurrent();
4575
	if (sel == OS.sel_application_openFile_) {
4576
		String file = new NSString(arg1).getString();
4577
		Event event = new Event();
4578
		event.type = SWT.OpenDoc;
4579
		event.text = file;
4580
		display.postEvent(event);
4581
		return 1;
4582
	} else if (sel == OS.sel_application_openFiles_) {
4583
		NSArray files = new NSArray(arg1);
4584
		int /*long*/ count = files.count();
4585
		for (int i=0; i<count; i++) {
4586
			String file = new NSString(files.objectAtIndex(i)).getString();
4587
			Event event = new Event();
4588
			event.type = SWT.OpenDoc;
4589
			event.text = file;
4590
			display.postEvent(event);
4591
		}
4592
		new NSApplication(arg0).replyToOpenOrPrint(OS.NSApplicationDelegateReplySuccess);
4593
	} 
4594
	else if (sel == OS.sel_applicationShouldHandleReopen_hasVisibleWindows_) {
4595
		return 1;
4596
	}
4597
	return 0;
4598
}
4599
4564
static int /*long*/ applicationProc(int /*long*/ id, int /*long*/sel, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3) {
4600
static int /*long*/ applicationProc(int /*long*/ id, int /*long*/sel, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3) {
4565
	//TODO optimize getting the display
4601
	//TODO optimize getting the display
4566
	Display display = getCurrent ();
4602
	Display display = getCurrent ();
(-)Eclipse SWT/common/org/eclipse/swt/SWT.java (+10 lines)
Lines 700-705 Link Here
700
	 */
700
	 */
701
	public static final int Skin = 45;
701
	public static final int Skin = 45;
702
	
702
	
703
	/**
704
	 * The open file event type (value is 46).
705
	 * 
706
	 * <p>
707
	 * This event is sent when SWT receives notification that a file 
708
	 * should be opened.
709
	 * </p>
710
	 */
711
	public static final int OpenDoc = 46;
712
	
703
	/* Event Details */
713
	/* Event Details */
704
	
714
	
705
	/**
715
	/**
(-)Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java (-10 / +63 lines)
Lines 235-244 Link Here
235
	Callback allChildrenCallback;
235
	Callback allChildrenCallback;
236
236
237
	/* Settings callbacks */
237
	/* Settings callbacks */
238
	int /*long*/ styleSetProc;
238
	int /*long*/ signalProc;
239
	Callback styleSetCallback;
239
	Callback signalCallback;
240
	int /*long*/ shellHandle;
240
	int /*long*/ shellHandle;
241
	boolean settingsChanged, runSettings;
241
	boolean settingsChanged, runSettings;
242
	static final int STYLE_SET = 1;
243
	static final int PROPERTY_NOTIFY = 2;
242
	
244
	
243
	/* Entry focus behaviour */
245
	/* Entry focus behaviour */
244
	boolean entrySelectOnFocus;
246
	boolean entrySelectOnFocus;
Lines 997-1002 Link Here
997
	filterProc = filterCallback.getAddress ();
999
	filterProc = filterCallback.getAddress ();
998
	if (filterProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
1000
	if (filterProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
999
	OS.gdk_window_add_filter  (0, filterProc, 0);
1001
	OS.gdk_window_add_filter  (0, filterProc, 0);
1002
1003
	int /*long*/ xWindow = OS.gdk_x11_drawable_get_xid (OS.GTK_WIDGET_WINDOW (shellHandle));
1004
	byte[] atomName = Converter.wcsToMbcs (null, "SWT_Window_" + APP_NAME, true); //$NON-NLS-1$
1005
	int /*long*/ atom = OS.XInternAtom (OS.GDK_DISPLAY (), atomName, false);
1006
	OS.XSetSelectionOwner (OS.GDK_DISPLAY (), atom, xWindow, OS.CurrentTime);
1007
	OS.XGetSelectionOwner (OS.GDK_DISPLAY (), atom);
1008
1009
	signalCallback = new Callback (this, "signalProc", 3); //$NON-NLS-1$
1010
	signalProc = signalCallback.getAddress ();
1011
	if (signalProc == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
1012
	OS.gtk_widget_add_events (shellHandle, OS.GDK_PROPERTY_CHANGE_MASK);
1013
	OS.g_signal_connect (shellHandle, OS.property_notify_event, signalProc, PROPERTY_NOTIFY);
1000
}
1014
}
1001
1015
1002
Image createImage (String name) {
1016
Image createImage (String name) {
Lines 2566-2575 Link Here
2566
}
2580
}
2567
2581
2568
void initializeSystemSettings () {
2582
void initializeSystemSettings () {
2569
	styleSetCallback = new Callback (this, "styleSetProc", 3); //$NON-NLS-1$
2583
	OS.g_signal_connect (shellHandle, OS.style_set, signalProc, STYLE_SET);
2570
	styleSetProc = styleSetCallback.getAddress ();
2571
	if (styleSetProc == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
2572
	OS.g_signal_connect (shellHandle, OS.style_set, styleSetProc, 0);
2573
	
2584
	
2574
	/*
2585
	/*
2575
	* Feature in GTK.  Despite the fact that the
2586
	* Feature in GTK.  Despite the fact that the
Lines 3332-3339 Link Here
3332
	shellHandle = 0;
3343
	shellHandle = 0;
3333
	
3344
	
3334
	/* Dispose the settings callback */
3345
	/* Dispose the settings callback */
3335
	styleSetCallback.dispose(); styleSetCallback = null;
3346
	signalCallback.dispose(); signalCallback = null;
3336
	styleSetProc = 0;
3347
	signalProc = 0;
3337
3348
3338
	/* Dispose subclass */
3349
	/* Dispose subclass */
3339
	if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) {
3350
	if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) {
Lines 4128-4135 Link Here
4128
	return widget.shellMapProc (handle, arg0, user_data);
4139
	return widget.shellMapProc (handle, arg0, user_data);
4129
}
4140
}
4130
4141
4131
int /*long*/ styleSetProc (int /*long*/ gobject, int /*long*/ arg1, int /*long*/ user_data) {
4142
int /*long*/ signalProc (int /*long*/ gobject, int /*long*/ arg1, int /*long*/ user_data) {
4132
	settingsChanged = true;
4143
	switch(user_data) {
4144
		case STYLE_SET:
4145
			settingsChanged = true;
4146
			break;
4147
		case PROPERTY_NOTIFY:
4148
			GdkEventProperty gdkEvent = new GdkEventProperty ();
4149
			OS.memmove (gdkEvent, arg1);
4150
			if (gdkEvent.type == OS.GDK_PROPERTY_NOTIFY) {
4151
				byte[] name = Converter.wcsToMbcs (null, "org.eclipse.swt.filePath.message", true); //$NON-NLS-1$
4152
				int /*long*/ atom = OS.gdk_x11_atom_to_xatom (OS.gdk_atom_intern (name, true));
4153
				if (atom == OS.gdk_x11_atom_to_xatom (gdkEvent.atom)) {
4154
					int /*long*/ xWindow = OS.gdk_x11_drawable_get_xid (OS.GTK_WIDGET_WINDOW( shellHandle));
4155
					int /*long*/ [] type = new int /*long*/ [1];
4156
					int /*long*/ [] format = new int /*long*/ [1];
4157
					long [] nitems = new long [1];
4158
					long [] bytes_after = new long [1];
4159
					int /*long*/ [] data = new int /*long*/ [1];
4160
					OS.XGetWindowProperty (OS.GDK_DISPLAY (), xWindow, atom, 0l, -1l, true, OS.AnyPropertyType,
4161
							type, format, nitems, bytes_after, data);
4162
					
4163
					if (nitems [0] > 0) {
4164
						byte [] buffer = new byte [(int)/*64*/nitems [0]];
4165
						OS.memmove(buffer, data [0], buffer.length);
4166
						OS.XFree (data [0]);
4167
						char[] chars = Converter.mbcsToWcs(null, buffer);
4168
						String string = new String (chars);
4169
						
4170
						int lastIndex = 0;
4171
						int index = string.indexOf (':');
4172
						while (index != -1) {
4173
							String file = string.substring (lastIndex, index);
4174
							Event event = new Event ();
4175
							event.type = SWT.OpenDoc;
4176
							event.text = file;
4177
							postEvent (event);
4178
							lastIndex = index+1;
4179
							index = string.indexOf(':', lastIndex);
4180
						}
4181
					}
4182
				}
4183
			}
4184
			break;
4185
	}
4133
	return 0;
4186
	return 0;
4134
}
4187
}
4135
4188
(-)Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java (-3 / +42 lines)
Lines 109-121 Link Here
109
	 */
109
	 */
110
	public MSG msg = new MSG ();
110
	public MSG msg = new MSG ();
111
	
111
	
112
	static String APP_NAME;
113
	
112
	/* Windows and Events */
114
	/* Windows and Events */
113
	Event [] eventQueue;
115
	Event [] eventQueue;
114
	Callback windowCallback;
116
	Callback windowCallback;
115
	int /*long*/ windowProc;
117
	int /*long*/ windowProc;
116
	int threadId;
118
	int threadId;
117
	TCHAR windowClass, windowShadowClass, windowOwnDCClass;
119
	TCHAR windowClass, windowShadowClass, windowOwnDCClass;
118
	static int WindowClassCount;
120
	static int WindowClassCount = 1000;
119
	static final String WindowName = "SWT_Window"; //$NON-NLS-1$
121
	static final String WindowName = "SWT_Window"; //$NON-NLS-1$
120
	static final String WindowShadowName = "SWT_WindowShadow"; //$NON-NLS-1$
122
	static final String WindowShadowName = "SWT_WindowShadow"; //$NON-NLS-1$
121
	static final String WindowOwnDCName = "SWT_WindowOwnDC"; //$NON-NLS-1$
123
	static final String WindowOwnDCName = "SWT_WindowOwnDC"; //$NON-NLS-1$
Lines 389-394 Link Here
389
	static int SWT_TASKBARCREATED;
391
	static int SWT_TASKBARCREATED;
390
	static int SWT_RESTORECARET;
392
	static int SWT_RESTORECARET;
391
	static int DI_GETDRAGIMAGE;
393
	static int DI_GETDRAGIMAGE;
394
	static int SWT_OPENDOC;
392
	
395
	
393
	/* Workaround for Adobe Reader 7.0 */
396
	/* Workaround for Adobe Reader 7.0 */
394
	int hitCount;
397
	int hitCount;
Lines 2569-2575 Link Here
2569
	windowShadowClass = new TCHAR (0, WindowShadowName + WindowClassCount, true);
2572
	windowShadowClass = new TCHAR (0, WindowShadowName + WindowClassCount, true);
2570
	windowOwnDCClass = new TCHAR (0, WindowOwnDCName + WindowClassCount, true);
2573
	windowOwnDCClass = new TCHAR (0, WindowOwnDCName + WindowClassCount, true);
2571
	WindowClassCount++;
2574
	WindowClassCount++;
2572
2575
	
2573
	/* Register the SWT window class */
2576
	/* Register the SWT window class */
2574
	int /*long*/ hHeap = OS.GetProcessHeap ();
2577
	int /*long*/ hHeap = OS.GetProcessHeap ();
2575
	int /*long*/ hInstance = OS.GetModuleHandle (null);
2578
	int /*long*/ hInstance = OS.GetModuleHandle (null);
Lines 2632-2637 Link Here
2632
		0,
2635
		0,
2633
		hInstance,
2636
		hInstance,
2634
		null);
2637
		null);
2638
	String title = "SWT_Window_"+APP_NAME;
2639
	OS.SetWindowText(hwndMessage, new TCHAR(0, title, true));
2635
	messageCallback = new Callback (this, "messageProc", 4); //$NON-NLS-1$
2640
	messageCallback = new Callback (this, "messageProc", 4); //$NON-NLS-1$
2636
	messageProc = messageCallback.getAddress ();
2641
	messageProc = messageCallback.getAddress ();
2637
	if (messageProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
2642
	if (messageProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
Lines 2657-2662 Link Here
2657
	SWT_TASKBARCREATED = OS.RegisterWindowMessage (new TCHAR (0, "TaskbarCreated", true)); //$NON-NLS-1$
2662
	SWT_TASKBARCREATED = OS.RegisterWindowMessage (new TCHAR (0, "TaskbarCreated", true)); //$NON-NLS-1$
2658
	SWT_RESTORECARET = OS.RegisterWindowMessage (new TCHAR (0, "SWT_RESTORECARET", true)); //$NON-NLS-1$
2663
	SWT_RESTORECARET = OS.RegisterWindowMessage (new TCHAR (0, "SWT_RESTORECARET", true)); //$NON-NLS-1$
2659
	DI_GETDRAGIMAGE = OS.RegisterWindowMessage (new TCHAR (0, "ShellGetDragImage", true)); //$NON-NLS-1$
2664
	DI_GETDRAGIMAGE = OS.RegisterWindowMessage (new TCHAR (0, "ShellGetDragImage", true)); //$NON-NLS-1$
2665
	SWT_OPENDOC = OS.RegisterWindowMessage(new TCHAR (0, "SWT_OPENDOC", true)); //$NON-NLS-1$
2660
2666
2661
	/* Initialize OLE */
2667
	/* Initialize OLE */
2662
	if (!OS.IsWinCE) OS.OleInitialize (0);
2668
	if (!OS.IsWinCE) OS.OleInitialize (0);
Lines 3195-3205 Link Here
3195
					}
3201
					}
3196
				}
3202
				}
3197
			}
3203
			}
3204
			if ((int)/*64*/msg == SWT_OPENDOC) {
3205
				String filename = getSharedData((int)/*64*/wParam, (int)/*64*/lParam);
3206
				Event event = new Event();
3207
				event.type = SWT.OpenDoc;
3208
				event.text = filename;
3209
				postEvent(event);
3210
			}
3198
		}
3211
		}
3199
	}
3212
	}
3200
	return OS.DefWindowProc (hwnd, (int)/*64*/msg, wParam, lParam);
3213
	return OS.DefWindowProc (hwnd, (int)/*64*/msg, wParam, lParam);
3201
}
3214
}
3202
3215
3216
String getSharedData(int pid, int  handle) {
3217
	String id = Integer.toHexString(pid)+"_"+Integer.toHexString(handle);
3218
	int /*long*/ [] mapHandle = new int /*long*/ [1];
3219
	if (pid == OS.GetCurrentProcessId()) {
3220
		mapHandle[0] = handle;
3221
	} else {
3222
		int /*long*/ processHandle = OS.OpenProcess(OS.PROCESS_VM_READ|OS.PROCESS_DUP_HANDLE, false, pid);
3223
		if (processHandle == 0) return null;
3224
		OS.DuplicateHandle(processHandle, handle, OS.GetCurrentProcess(), mapHandle, OS.DUPLICATE_SAME_ACCESS, false, OS.DUPLICATE_SAME_ACCESS);
3225
		OS.CloseHandle(processHandle);
3226
	}
3227
	
3228
	int /*long*/ sharedData = OS.MapViewOfFile(mapHandle[0], OS.FILE_MAP_READ, 0, 0, 0);
3229
	if (sharedData == 0) return null;
3230
	int length = OS.IsUnicode ? OS.wcslen (sharedData) : OS.strlen (sharedData);
3231
	TCHAR buffer = new TCHAR (0, length);
3232
	int byteCount = buffer.length () * TCHAR.sizeof;
3233
	OS.MoveMemory (buffer, sharedData, byteCount);
3234
	String result = buffer.toString (0, length);
3235
	OS.UnmapViewOfFile(sharedData);
3236
	if (handle != mapHandle[0]) {
3237
		OS.CloseHandle(mapHandle[0]);
3238
	}
3239
	return result;
3240
}
3241
3203
int /*long*/ monitorEnumProc (int /*long*/ hmonitor, int /*long*/ hdc, int /*long*/ lprcMonitor, int /*long*/ dwData) {
3242
int /*long*/ monitorEnumProc (int /*long*/ hmonitor, int /*long*/ hdc, int /*long*/ lprcMonitor, int /*long*/ dwData) {
3204
	if (monitorCount >= monitors.length) {
3243
	if (monitorCount >= monitors.length) {
3205
		Monitor[] newMonitors = new Monitor [monitors.length + 4];
3244
		Monitor[] newMonitors = new Monitor [monitors.length + 4];
Lines 4272-4278 Link Here
4272
 * @param name the new app name or <code>null</code>
4311
 * @param name the new app name or <code>null</code>
4273
 */
4312
 */
4274
public static void setAppName (String name) {
4313
public static void setAppName (String name) {
4275
	/* Do nothing */
4314
	APP_NAME = name;
4276
}
4315
}
4277
4316
4278
void setModalDialog (Dialog modalDailog) {
4317
void setModalDialog (Dialog modalDailog) {

Return to bug 201154