3369 |
3369 |
3370 |box audio javaHome resources component |
3370 |box audio javaHome resources component |
3371 extraFileSecurityChecks extraSocketSecurityChecks |
3371 extraFileSecurityChecks extraSocketSecurityChecks |
3372 supportsJustInTimeCompilation |
3372 supportsJustInTimeCompilation |
3373 javaJustInTimeCompilation javaNativeCodeOptimization |
3373 javaJustInTimeCompilation javaNativeCodeOptimization |
3374 showJavaByteCode| |
3374 showJavaByteCode exceptionDebug| |
3375 |
3375 |
3376 resources := requestor class classResources. |
3376 resources := requestor class classResources. |
3377 |
3377 |
3378 audio := JavaVM audioEnabled asValue. |
3378 audio := JavaVM audioEnabled asValue. |
3379 extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue. |
3379 extraFileSecurityChecks := JavaVM fileOpenConfirmation asValue. |
3383 javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue. |
3383 javaNativeCodeOptimization := ObjectMemory javaNativeCodeOptimization asValue. |
3384 ] ifFalse:[ |
3384 ] ifFalse:[ |
3385 javaJustInTimeCompilation := javaNativeCodeOptimization := false |
3385 javaJustInTimeCompilation := javaNativeCodeOptimization := false |
3386 ]. |
3386 ]. |
3387 showJavaByteCode := JavaMethod forceByteCodeDisplay asValue. |
3387 showJavaByteCode := JavaMethod forceByteCodeDisplay asValue. |
|
3388 exceptionDebug := JavaVM exceptionDebug asValue. |
3388 |
3389 |
3389 javaHome := (Java javaHome ? '') asValue. |
3390 javaHome := (Java javaHome ? '') asValue. |
3390 |
3391 |
3391 box := DialogBox new. |
3392 box := DialogBox new. |
3392 box label:(resources string:'Java'). |
3393 box label:(resources string:'Java'). |
3393 |
3394 |
3394 box addCheckBox:(resources string:'Audio Enabled') on:audio. |
3395 box addCheckBox:(resources string:'Audio Enabled') on:audio. |
3395 box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks. |
3396 box addCheckBox:(resources string:'Confirm file open for write') on:extraFileSecurityChecks. |
3396 box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks. |
3397 box addCheckBox:(resources string:'Confirm socket connect') on:extraSocketSecurityChecks. |
|
3398 box addCheckBox:(resources string:'Debug Exceptions') on:exceptionDebug. |
3397 box addHorizontalLine. |
3399 box addHorizontalLine. |
3398 supportsJustInTimeCompilation ifTrue:[ |
3400 supportsJustInTimeCompilation ifTrue:[ |
3399 box |
3401 box |
3400 addCheckBox:(resources string:'java just in time compilation to machine code') |
3402 addCheckBox:(resources string:'java just in time compilation to machine code') |
3401 on:javaJustInTimeCompilation. |
3403 on:javaJustInTimeCompilation. |
3441 box open. |
3443 box open. |
3442 |
3444 |
3443 box accepted ifTrue:[ |
3445 box accepted ifTrue:[ |
3444 JavaMethod forceByteCodeDisplay:showJavaByteCode value. |
3446 JavaMethod forceByteCodeDisplay:showJavaByteCode value. |
3445 JavaVM audioEnabled:audio value. |
3447 JavaVM audioEnabled:audio value. |
|
3448 JavaVM exceptionDebug:exceptionDebug value. |
3446 JavaVM fileOpenConfirmation: extraFileSecurityChecks value. |
3449 JavaVM fileOpenConfirmation: extraFileSecurityChecks value. |
3447 JavaVM socketConnectConfirmation: extraSocketSecurityChecks value. |
3450 JavaVM socketConnectConfirmation: extraSocketSecurityChecks value. |
3448 javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[ |
3451 javaJustInTimeCompilation value ~~ ObjectMemory javaJustInTimeCompilation ifTrue:[ |
3449 ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value. |
3452 ObjectMemory javaJustInTimeCompilation:javaJustInTimeCompilation value. |
3450 javaJustInTimeCompilation value ifTrue:[ |
3453 javaJustInTimeCompilation value ifTrue:[ |