BrowserView.st
changeset 481 7a550399e2aa
parent 480 c1b167926f12
child 484 7680e95d51cb
equal deleted inserted replaced
480:c1b167926f12 481:7a550399e2aa
  4626 methodDecompile
  4626 methodDecompile
  4627     "decompile the current methods bytecodes.
  4627     "decompile the current methods bytecodes.
  4628      The Decompiler is delivered as an extra, and not normally
  4628      The Decompiler is delivered as an extra, and not normally
  4629      avaliable with the system."
  4629      avaliable with the system."
  4630 
  4630 
       
  4631     |s|
       
  4632 
  4631     self checkMethodSelected ifFalse:[^ self].
  4633     self checkMethodSelected ifFalse:[^ self].
  4632     Decompiler notNil ifTrue:[
  4634     self checkSelectionChangeAllowed ifFalse:[^ self].
  4633 	Autoload autoloadFailedSignal handle:[:ex |
  4635 
  4634 	    ex return
  4636     s := '' writeStream.
  4635 	] do:[
  4637     (currentMethod decompileTo:s) ifFalse:[
  4636 	    Decompiler autoload.
  4638         self warn:'No decompiler available'.
  4637 	].
  4639     ].
  4638     ].
  4640     codeView contents:s contents.
  4639     Decompiler isLoaded ifFalse:[
  4641     codeView modified:false.
  4640 	Smalltalk 
  4642     codeView acceptAction:nil.
  4641 	    fileIn:'/phys/clam/claus/work/libcomp/not_delivered/Decomp.st'
  4643     codeView explainAction:nil.
  4642 	    logged:false.
  4644 
  4643     ].
  4645     "Modified: 16.4.1996 / 20:35:05 / cg"
  4644     Decompiler isLoaded ifFalse:[
       
  4645 	^ self warn:'No decompiler available'.
       
  4646     ].
       
  4647 
       
  4648     Decompiler decompile:currentMethod.
       
  4649 !
  4646 !
  4650 
  4647 
  4651 methodFileOut
  4648 methodFileOut
  4652     "file out the current method"
  4649     "file out the current method"
  4653 
  4650 
  6987 ! !
  6984 ! !
  6988 
  6985 
  6989 !BrowserView class methodsFor:'documentation'!
  6986 !BrowserView class methodsFor:'documentation'!
  6990 
  6987 
  6991 version
  6988 version
  6992     ^ '$Header: /cvs/stx/stx/libtool/BrowserView.st,v 1.124 1996-04-16 18:18:27 cg Exp $'
  6989     ^ '$Header: /cvs/stx/stx/libtool/BrowserView.st,v 1.125 1996-04-16 18:45:52 cg Exp $'
  6993 ! !
  6990 ! !
  6994 BrowserView initialize!
  6991 BrowserView initialize!