NameSpace.st
branchjv
changeset 17966 8b5df02e171f
parent 17938 e2aad1d7c317
child 17976 50c2416f962a
equal deleted inserted replaced
17965:a8a04402986c 17966:8b5df02e171f
   591 ! !
   591 ! !
   592 
   592 
   593 
   593 
   594 !NameSpace class methodsFor:'printing & storing'!
   594 !NameSpace class methodsFor:'printing & storing'!
   595 
   595 
   596 displayString
   596 displayOn:aGCOrStream
       
   597     "Compatibility
       
   598      append a printed desription on some stream (Dolphin,  Squeak)
       
   599      OR:
       
   600      display the receiver in a graphicsContext at 0@0 (ST80).
       
   601      This method allows for any object to be displayed in some view
       
   602      (although the fallBack is to display its printString ...)"
       
   603 
       
   604     "/ what a kludge - Dolphin and Squeak mean: printOn: a stream;
       
   605     "/ ST/X (and some old ST80's) mean: draw-yourself on a GC.
       
   606     aGCOrStream isStream ifFalse:[
       
   607         ^ super displayOn:aGCOrStream.
       
   608     ].
       
   609 
   597     "return a printed represenation - here, a reminder is appended,
   610     "return a printed represenation - here, a reminder is appended,
   598      that this is not a regular class"
   611      that this is not a regular class"
   599 
   612 
   600     self == NameSpace ifTrue:[
   613     self == NameSpace ifTrue:[
   601         ^ super displayString
   614         super displayOn:aGCOrStream.
   602     ].
   615     ] ifFalse:[
   603     ^ self name , ' (* NameSpace *)'
   616         aGCOrStream 
   604 
   617             nextPutAll:self name;
   605     "Created: 8.11.1996 / 21:37:24 / cg"
   618             nextPutAll:' (* NameSpace *)'.
   606     "Modified: 20.12.1996 / 15:11:31 / cg"
   619     ].
   607 ! !
   620 ! !
   608 
   621 
   609 !NameSpace class methodsFor:'private'!
   622 !NameSpace class methodsFor:'private'!
   610 
   623 
   611 setImports: anArrayOrNil
   624 setImports: anArrayOrNil
   719 ! !
   732 ! !
   720 
   733 
   721 !NameSpace class methodsFor:'documentation'!
   734 !NameSpace class methodsFor:'documentation'!
   722 
   735 
   723 version_CVS
   736 version_CVS
   724     ^ '§Header: /cvs/stx/stx/libbasic/NameSpace.st,v 1.73 2012/03/23 10:56:21 cg Exp §'
   737     ^ '§Header: /cvs/stx/stx/libbasic/NameSpace.st,v 1.74 2012/08/03 15:52:51 stefan Exp §'
   725 !
   738 !
   726 
   739 
   727 version_SVN
   740 version_SVN
   728     ^ '$Id: NameSpace.st 10804 2012-04-13 13:18:13Z vranyj1 $'
   741     ^ '$Id: NameSpace.st 10844 2012-09-07 16:24:32Z vranyj1 $'
   729 ! !
   742 ! !