Class.st
changeset 6723 51ed366a10b1
parent 6703 ffea6ebb676d
child 6731 630b8b5260cc
equal deleted inserted replaced
6722:8388292bc41d 6723:51ed366a10b1
   360 
   360 
   361     "Created: 20.6.1997 / 17:18:14 / cg"
   361     "Created: 20.6.1997 / 17:18:14 / cg"
   362     "Modified: 20.6.1997 / 17:18:26 / cg"
   362     "Modified: 20.6.1997 / 17:18:26 / cg"
   363 !
   363 !
   364 
   364 
   365 isStartableWithMain
   365 rename:newName
   366     "return true, if this is an application class,
   366     "same as renameTo: - for ST80 compatibility"
   367      which can be started via #main"
   367 
   368 
   368     ^ Smalltalk renameClass:self to:newName.
   369     ^ self theMetaclass includesSelector:#main
   369 "/    ^ self renameTo:newName
   370 
   370 
   371     "Created: / 2.11.2001 / 09:37:01 / cg"
   371     "Created: / 18.6.1998 / 22:08:45 / cg"
   372     "Modified: / 2.11.2001 / 09:48:05 / cg"
   372 ! !
   373 !
   373 
       
   374 !Class methodsFor:'Compatibility - VW'!
   374 
   375 
   375 isVisualStartable
   376 isVisualStartable
   376     "return true, if this is an application class,
   377     "return true, if this is an application class,
   377      which can be started via #open"
   378      which can be started via #open"
   378 
   379 
   379     ^ false
   380     ^ false
   380 
   381 
   381     "Created: / 27.10.1997 / 16:42:05 / cg"
   382     "Created: / 27.10.1997 / 16:42:05 / cg"
   382 !
       
   383 
       
   384 rename:newName
       
   385     "same as renameTo: - for ST80 compatibility"
       
   386 
       
   387     ^ Smalltalk renameClass:self to:newName.
       
   388 "/    ^ self renameTo:newName
       
   389 
       
   390     "Created: / 18.6.1998 / 22:08:45 / cg"
       
   391 ! !
   383 ! !
   392 
   384 
   393 !Class methodsFor:'accessing'!
   385 !Class methodsFor:'accessing'!
   394 
   386 
   395 addClassVarName:aString
   387 addClassVarName:aString
  3580      Class new isBehavior    
  3572      Class new isBehavior    
  3581      Class new isClass
  3573      Class new isClass
  3582     "
  3574     "
  3583 !
  3575 !
  3584 
  3576 
       
  3577 isStartableWithMain
       
  3578     "return true, if this is an application class,
       
  3579      which can be started via #main"
       
  3580 
       
  3581     ^ self theMetaclass includesSelector:#main
       
  3582 
       
  3583     "Created: / 2.11.2001 / 09:37:01 / cg"
       
  3584     "Modified: / 2.11.2001 / 09:48:05 / cg"
       
  3585 !
       
  3586 
  3585 rootsOfTheWorld
  3587 rootsOfTheWorld
  3586     "return a collection of classes which have a nil superclass"
  3588     "return a collection of classes which have a nil superclass"
  3587 
  3589 
  3588     |set|
  3590     |set|
  3589 
  3591 
  4706 ! !
  4708 ! !
  4707 
  4709 
  4708 !Class class methodsFor:'documentation'!
  4710 !Class class methodsFor:'documentation'!
  4709 
  4711 
  4710 version
  4712 version
  4711     ^ '$Header: /cvs/stx/stx/libbasic/Class.st,v 1.415 2002-08-02 06:37:48 stefan Exp $'
  4713     ^ '$Header: /cvs/stx/stx/libbasic/Class.st,v 1.416 2002-08-16 11:49:35 cg Exp $'
  4712 ! !
  4714 ! !