519 (*env)->ExceptionClear(env); 520 } 521 } 522 } else { 523 */ 524 static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView"); 525 static JNF_MEMBER_CACHE(jm_deliverWindowDidExposeEvent, jc_CPlatformView, "deliverWindowDidExposeEvent", "()V"); 526 527 jobject jlocal = (*env)->NewLocalRef(env, m_cPlatformView); 528 if (!(*env)->IsSameObject(env, jlocal, NULL)) { 529 JNFCallVoidMethod(env, jlocal, jm_deliverWindowDidExposeEvent); 530 (*env)->DeleteLocalRef(env, jlocal); 531 } 532 /* 533 } 534 */ 535 } 536 } 537 538 -(BOOL) isCodePointInUnicodeBlockNeedingIMEvent: (unichar) codePoint { 539 if ((codePoint >= 0x3000) && (codePoint <= 0x303F)) { 540 // Code point is in 'CJK Symbols and Punctuation' Unicode block. 541 return YES; 542 } 543 return NO; 544 } 545 546 // NSAccessibility support 547 - (jobject)awtComponent:(JNIEnv*)env 548 { 549 static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView"); 550 static JNF_MEMBER_CACHE(jf_Peer, jc_CPlatformView, "peer", "Lsun/lwawt/LWWindowPeer;"); 551 if ((env == NULL) || (m_cPlatformView == NULL)) { 552 NSLog(@"Apple AWT : Error AWTView:awtComponent given bad parameters."); 553 if (env != NULL) 554 { 555 JNFDumpJavaStack(env); 556 } 557 return NULL; 558 } 559 560 jobject peer = NULL; | 519 (*env)->ExceptionClear(env); 520 } 521 } 522 } else { 523 */ 524 static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView"); 525 static JNF_MEMBER_CACHE(jm_deliverWindowDidExposeEvent, jc_CPlatformView, "deliverWindowDidExposeEvent", "()V"); 526 527 jobject jlocal = (*env)->NewLocalRef(env, m_cPlatformView); 528 if (!(*env)->IsSameObject(env, jlocal, NULL)) { 529 JNFCallVoidMethod(env, jlocal, jm_deliverWindowDidExposeEvent); 530 (*env)->DeleteLocalRef(env, jlocal); 531 } 532 /* 533 } 534 */ 535 } 536 } 537 538 -(BOOL) isCodePointInUnicodeBlockNeedingIMEvent: (unichar) codePoint { 539 if (((codePoint >= 0x3000) && (codePoint <= 0x303F)) || 540 ((codePoint >= 0xFF00) && (codePoint <= 0xFFEF))) { 541 // Code point is in 'CJK Symbols and Punctuation' or 542 // 'Halfwidth and Fullwidth Forms' Unicode block. 543 return YES; 544 } 545 return NO; 546 } 547 548 // NSAccessibility support 549 - (jobject)awtComponent:(JNIEnv*)env 550 { 551 static JNF_CLASS_CACHE(jc_CPlatformView, "sun/lwawt/macosx/CPlatformView"); 552 static JNF_MEMBER_CACHE(jf_Peer, jc_CPlatformView, "peer", "Lsun/lwawt/LWWindowPeer;"); 553 if ((env == NULL) || (m_cPlatformView == NULL)) { 554 NSLog(@"Apple AWT : Error AWTView:awtComponent given bad parameters."); 555 if (env != NULL) 556 { 557 JNFDumpJavaStack(env); 558 } 559 return NULL; 560 } 561 562 jobject peer = NULL; |