ClassNameItem.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 19 Jul 2017 09:42:32 +0200
branchjv
changeset 17619 edb119820fcb
parent 15950 23be8cf85415
permissions -rw-r--r--
Issue #154: Set window style using `#beToolWindow` to indicate that the minirunner window is kind of support tool rather than some X11 specific code (which does not work on Windows of course) See https://swing.fit.cvut.cz/projects/stx-jv/ticket/154
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
"
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    12
"{ Package: 'stx:libtool' }"
2626
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    13
15950
23be8cf85415 Bugfix in merge tool.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12650
diff changeset
    14
"{ NameSpace: Smalltalk }"
23be8cf85415 Bugfix in merge tool.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12650
diff changeset
    15
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    16
HierarchicalItem subclass:#ClassNameItem
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    17
	instanceVariableNames:'revisionInfo'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    18
	classVariableNames:''
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    19
	poolDictionaries:''
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    20
	category:'Interface-Browsers-Support'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    21
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    22
2625
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    23
!ClassNameItem class methodsFor:'documentation'!
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    24
2626
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    25
copyright
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    26
"
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    27
 COPYRIGHT (c) 2000 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    28
              All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    29
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    30
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    31
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    33
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    34
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    35
 hereby transferred.
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
!
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    40
2625
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    41
documentation
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    42
"
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    43
    This is not yet finished (work in progress) - do not use.
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    44
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    45
    [author:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    46
        Pierre Schwarz (ps@exept.de)
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    47
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    48
    [see also:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    49
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    50
    [instance variables:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    51
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    52
    [class variables:]
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
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    55
! !
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    56
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    57
!ClassNameItem class methodsFor:'image specs'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    58
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    59
icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    60
    "This resource specification was automatically generated
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    61
     by the ImageEditor of ST/X."
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    62
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    63
    "Do not manually edit this!! If it is corrupted,
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    64
     the ImageEditor may not be able to read the specification."
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    65
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    66
    "
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    67
     self icon inspect
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    68
     ImageEditor openOnClass:self andSelector:#icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    69
    "
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    70
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    71
    <resource: #image>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    72
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    73
    ^Icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    74
        constantNamed:#'ClassNameItem icon'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    75
        ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    76
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0L@@ HB@ HB@ HB@ HB@@@@@@@C@0@B@@@@@@@@@@@@@@H@@@@@@@LC@@H@@PDA@PDA@PD@@ @@@@@@@0L@@ @A@PD@
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    77
@@@@@@@@@@@@@@@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
    78
@@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
    79
@@@@@@@@@@@@@@@C@0@B@@HD@ PBA@HD@@H@@@@@@@LC@@H@A@HD@ PBA@H@@ @@@@@@@0L@@ @@@@@@@@@@@@@B@@@@@@@C@0@B@ HB@ HB@ HB@ H@@@@@
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    80
@@@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]
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    81
! !
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    82
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    83
!ClassNameItem methodsFor:'accessing'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    84
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    85
needsChildren
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    86
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    87
    ^false
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    88
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    89
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    90
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    91
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    92
revisionInfo
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    93
    "return the value of the instance variable 'revisionInfo' (automatically generated)"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    94
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    95
    ^ revisionInfo
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    96
!
2613
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
    "set the value of the instance variable 'revisionInfo' (automatically generated)"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   100
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   101
    revisionInfo := something.
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   102
! !
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   103
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   104
!ClassNameItem methodsFor:'protocol'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   105
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   106
hasChildren
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   107
"a name class items has no childs
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   108
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   109
<return: Boolean>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   110
"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   111
     ^false
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   112
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   113
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   114
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   115
icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   116
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   117
    ^self class icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   118
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   119
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   120
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   121
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   122
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   123
label
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   124
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   125
    | aStream user recordType fileName date time rev pkgDir clsName cvsRoot theText|
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   126
    aStream := WriteStream on:String new.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   127
    user := revisionInfo at:#user ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   128
    recordType := revisionInfo at:#cvsRecordType ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   129
    fileName := revisionInfo at:#fileName ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   130
    date := revisionInfo at:#date ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   131
    time := revisionInfo at:#time ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   132
    rev := revisionInfo at:#revision ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   133
    pkgDir := revisionInfo at:#directory ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   134
    clsName := revisionInfo at:#className ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   135
    cvsRoot := revisionInfo at:#cvsRoot ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   136
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   137
    ^(Text string:fileName emphasis:#bold),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   138
        (Text string:(String with:Character cr)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   139
        (Text string:recordType),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   140
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   141
        (Text string:(date printString paddedTo:5)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   142
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   143
        (Text string:(time printString paddedTo:5)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   144
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   145
        (Text string:(user printString paddedTo:10)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   146
        (Text string:(String with:Character tab)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   147
        (Text string:(rev decimalPaddedTo:8 and:3 at:$. withLeft:(Character space) right:nil)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   148
        (Text string:(String with:Character tab)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   149
        (Text string:(pkgDir paddedTo:20))        
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   150
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   151
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   152
middleButtonMenu
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   153
"returns the middleButtonMenu or nil if no menu is defined
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   154
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   155
<return: nil>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   156
"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   157
    ^ nil
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   158
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   159
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   160
! !
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   161
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   162
!ClassNameItem class methodsFor:'documentation'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   163
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   164
version
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   165
    ^ '$Header: /cvs/stx/stx/libtool/ClassNameItem.st,v 1.3 2000/02/18 14:08:58 cg Exp $'
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   166
!
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   167
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   168
version_HG
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   169
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   170
    ^ '$Changeset: <not expanded> $'
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   171
! !
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   172