ClassNameItem.st
author Claus Gittinger <cg@exept.de>
Wed, 05 Jun 2019 14:16:59 +0200
changeset 18805 f6df57c6dbfb
parent 2626 4ee750caddab
child 12123 4bde08cebd48
permissions -rw-r--r--
#BUGFIX by cg class: AbstractFileBrowser changed: #currentFileNameHolder endless loop if file not present.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2626
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     1
"
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     2
 COPYRIGHT (c) 2000 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     3
              All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     4
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     5
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     6
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     8
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
     9
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    10
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    11
"
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    12
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    13
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    14
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    15
HierarchicalItem subclass:#ClassNameItem
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    16
	instanceVariableNames:'revisionInfo'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    17
	classVariableNames:''
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    18
	poolDictionaries:''
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    19
	category:'Interface-Browsers-Support'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    20
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    21
2625
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    22
!ClassNameItem class methodsFor:'documentation'!
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    23
2626
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    24
copyright
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    25
"
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    26
 COPYRIGHT (c) 2000 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    27
              All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    28
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    29
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    30
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    32
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    33
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    34
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    35
"
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    36
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    37
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    38
!
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    39
2625
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    40
documentation
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    41
"
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    42
    This is not yet finished (work in progress) - do not use.
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    43
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    44
    [author:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    45
        Pierre Schwarz (ps@exept.de)
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    46
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    47
    [see also:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    48
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    49
    [instance variables:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    50
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    51
    [class variables:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    52
"
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    53
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    54
! !
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    55
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    56
!ClassNameItem class methodsFor:'image specs'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    57
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    58
icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    59
    "This resource specification was automatically generated
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    60
     by the ImageEditor of ST/X."
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    61
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    62
    "Do not manually edit this!! If it is corrupted,
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    63
     the ImageEditor may not be able to read the specification."
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    64
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    65
    "
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    66
     self icon inspect
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    67
     ImageEditor openOnClass:self andSelector:#icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    68
    "
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    69
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    70
    <resource: #image>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    71
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    72
    ^Icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    73
        constantNamed:#'ClassNameItem icon'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    74
        ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    75
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0L@@ HB@ HB@ HB@ HB@@@@@@@C@0@B@@@@@@@@@@@@@@H@@@@@@@LC@@H@@PDA@PDA@PD@@ @@@@@@@0L@@ @A@PD@
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    76
@@@@@@@@@@@@@@@C@0@B@@DA@P@D@ PBA@HD@ P@@@LC@@H@@@DA@@HD@ PBA@HD@ @@@0L@@ @E@@D@A@HD@@@@@@HD@@@C@0@B@@@E@@@BA@H@@ P@A@H@
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    77
@@LC@@H@@@@E@@PBA@HD@ PBA@@@@0L@@ @@@@@@@ PBA@HD@ PB@@@C@0@B@@P@@@@D@ PBA@HD@ P@@@LC@@H@@ P@@@@@@@@@@@@@@@@@@0L@@ @D@ @@
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    78
@@@@@@@@@@@@@@@C@0@B@@HD@ PBA@HD@@H@@@@@@@LC@@H@A@HD@ PBA@H@@ @@@@@@@0L@@ @@@@@@@@@@@@@B@@@@@@@C@0@B@ HB@ HB@ HB@ H@@@@@
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    79
@@@C@@HB@ HB@ HB@ HB@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 119 124 119 248 252 0 119 124 0 168 168 168 248 252 248]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>O??>O??>O??>O??????????????????????????????????????>O??>O??>O??>O??>O_?>OO?>O') ; yourself); yourself]! !
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    80
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    81
!ClassNameItem methodsFor:'accessing'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    82
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    83
needsChildren
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    84
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    85
    ^false
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    86
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    87
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    88
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    89
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    90
revisionInfo
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    91
    "return the value of the instance variable 'revisionInfo' (automatically generated)"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    92
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    93
    ^ revisionInfo!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    94
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    95
revisionInfo:something
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    96
    "set the value of the instance variable 'revisionInfo' (automatically generated)"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    97
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    98
    revisionInfo := something.! !
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    99
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   100
!ClassNameItem methodsFor:'protocol'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   101
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   102
hasChildren
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   103
"a name class items has no childs
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   104
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   105
<return: Boolean>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   106
"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   107
     ^false
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   108
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   109
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   110
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   111
icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   112
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   113
    ^self class icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   114
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   115
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   116
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   117
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   118
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   119
label
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   120
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   121
    | aStream user recordType fileName date time rev pkgDir clsName cvsRoot theText|
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   122
    aStream := WriteStream on:String new.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   123
    user := revisionInfo at:#user ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   124
    recordType := revisionInfo at:#cvsRecordType ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   125
    fileName := revisionInfo at:#fileName ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   126
    date := revisionInfo at:#date ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   127
    time := revisionInfo at:#time ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   128
    rev := revisionInfo at:#revision ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   129
    pkgDir := revisionInfo at:#directory ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   130
    clsName := revisionInfo at:#className ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   131
    cvsRoot := revisionInfo at:#cvsRoot ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   132
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   133
    ^(Text string:fileName emphasis:#bold),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   134
        (Text string:(String with:Character cr)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   135
        (Text string:recordType),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   136
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   137
        (Text string:(date printString paddedTo:5)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   138
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   139
        (Text string:(time printString paddedTo:5)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   140
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   141
        (Text string:(user printString paddedTo:10)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   142
        (Text string:(String with:Character tab)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   143
        (Text string:(rev decimalPaddedTo:8 and:3 at:$. withLeft:(Character space) right:nil)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   144
        (Text string:(String with:Character tab)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   145
        (Text string:(pkgDir paddedTo:20))        
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   146
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   147
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   148
middleButtonMenu
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   149
"returns the middleButtonMenu or nil if no menu is defined
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   150
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   151
<return: nil>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   152
"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   153
    ^ nil
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   154
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   155
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   156
! !
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   157
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   158
!ClassNameItem class methodsFor:'documentation'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   159
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   160
version
2626
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   161
    ^ '$Header: /cvs/stx/stx/libtool/ClassNameItem.st,v 1.3 2000-02-18 14:08:58 cg Exp $'
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   162
! !