< prev index next >

modules/graphics/src/main/native-glass/mac/GlassWindow.m

Print this page




 603         jWindowClass = (*env)->NewGlobalRef(env, jClass);
 604     }
 605 
 606     if (jMenuBarDelegateClass == NULL)
 607     {
 608         jMenuBarDelegateClass = (*env)->NewGlobalRef(env, [GlassHelper ClassForName:"com.sun.glass.ui.mac.MacMenuBarDelegate" withEnv:env]);
 609     }
 610 
 611     if (jViewClass == NULL)
 612     {
 613         jViewClass = (*env)->NewGlobalRef(env, [GlassHelper ClassForName:"com.sun.glass.ui.View" withEnv:env]);
 614     }
 615 
 616     if (jScreenClass == NULL)
 617     {
 618         jScreenClass = (*env)->NewGlobalRef(env, [GlassHelper ClassForName:"com.sun.glass.ui.Screen" withEnv:env]);
 619     }
 620 
 621     if (jWindowNotifyMove == NULL)
 622     {
 623         jWindowNotifyMove = (*env)->GetMethodID(env, jWindowClass, "notifyMove", "(II)V");
 624         if ((*env)->ExceptionCheck(env)) return;
 625     }
 626 
 627     if (jWindowNotifyResize == NULL)
 628     {
 629         jWindowNotifyResize = (*env)->GetMethodID(env, jWindowClass, "notifyResize", "(III)V");
 630         if ((*env)->ExceptionCheck(env)) return;
 631     }
 632 
 633     if (jWindowNotifyMoveToAnotherScreen == NULL)
 634     {
 635         jWindowNotifyMoveToAnotherScreen = (*env)->GetMethodID(env, jWindowClass, "notifyMoveToAnotherScreen", "(Lcom/sun/glass/ui/Screen;)V");
 636         if ((*env)->ExceptionCheck(env)) return;
 637     }
 638 
 639     if (jWindowNotifyClose == NULL)
 640     {
 641         jWindowNotifyClose = (*env)->GetMethodID(env, jWindowClass, "notifyClose", "()V");
 642         if ((*env)->ExceptionCheck(env)) return;
 643     }




 603         jWindowClass = (*env)->NewGlobalRef(env, jClass);
 604     }
 605 
 606     if (jMenuBarDelegateClass == NULL)
 607     {
 608         jMenuBarDelegateClass = (*env)->NewGlobalRef(env, [GlassHelper ClassForName:"com.sun.glass.ui.mac.MacMenuBarDelegate" withEnv:env]);
 609     }
 610 
 611     if (jViewClass == NULL)
 612     {
 613         jViewClass = (*env)->NewGlobalRef(env, [GlassHelper ClassForName:"com.sun.glass.ui.View" withEnv:env]);
 614     }
 615 
 616     if (jScreenClass == NULL)
 617     {
 618         jScreenClass = (*env)->NewGlobalRef(env, [GlassHelper ClassForName:"com.sun.glass.ui.Screen" withEnv:env]);
 619     }
 620 
 621     if (jWindowNotifyMove == NULL)
 622     {
 623         jWindowNotifyMove = (*env)->GetMethodID(env, jWindowClass, "notifyMove", "(IIZ)V");
 624         if ((*env)->ExceptionCheck(env)) return;
 625     }
 626 
 627     if (jWindowNotifyResize == NULL)
 628     {
 629         jWindowNotifyResize = (*env)->GetMethodID(env, jWindowClass, "notifyResize", "(III)V");
 630         if ((*env)->ExceptionCheck(env)) return;
 631     }
 632 
 633     if (jWindowNotifyMoveToAnotherScreen == NULL)
 634     {
 635         jWindowNotifyMoveToAnotherScreen = (*env)->GetMethodID(env, jWindowClass, "notifyMoveToAnotherScreen", "(Lcom/sun/glass/ui/Screen;)V");
 636         if ((*env)->ExceptionCheck(env)) return;
 637     }
 638 
 639     if (jWindowNotifyClose == NULL)
 640     {
 641         jWindowNotifyClose = (*env)->GetMethodID(env, jWindowClass, "notifyClose", "()V");
 642         if ((*env)->ExceptionCheck(env)) return;
 643     }


< prev index next >