Launcher.st
changeset 1987 f1a91528fe70
parent 1984 234c397b8b00
child 1997 c91eb672447c
equal deleted inserted replaced
1986:13a04854ab04 1987:f1a91528fe70
  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:[
  3456         ].
  3459         ].
  3457     ].
  3460     ].
  3458     box destroy
  3461     box destroy
  3459 
  3462 
  3460     "Created: / 18.7.1998 / 22:32:58 / cg"
  3463     "Created: / 18.7.1998 / 22:32:58 / cg"
  3461     "Modified: / 16.12.1998 / 13:09:06 / cg"
  3464     "Modified: / 27.1.1999 / 20:16:03 / cg"
  3462 !
  3465 !
  3463 
  3466 
  3464 keyboardSettingsFor:requestor 
  3467 keyboardSettingsFor:requestor 
  3465     "open a dialog on keyboard related settings"
  3468     "open a dialog on keyboard related settings"
  3466 
  3469 
  5949 ! !
  5952 ! !
  5950 
  5953 
  5951 !Launcher class methodsFor:'documentation'!
  5954 !Launcher class methodsFor:'documentation'!
  5952 
  5955 
  5953 version
  5956 version
  5954     ^ '$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.397 1999-01-23 14:20:04 cg Exp $'
  5957     ^ '$Header: /cvs/stx/stx/libtool/Launcher.st,v 1.398 1999-01-29 15:15:10 cg Exp $'
  5955 ! !
  5958 ! !