ClassNameItem.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 29 Aug 2013 21:55:45 +0100
branchjv
changeset 13469 544e7ced18a0
parent 12650 e0f607754b9a
child 15950 23be8cf85415
permissions -rw-r--r--
Added *Redo* menu item to CodeViwq's context menu (eclipse style)
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
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    14
HierarchicalItem subclass:#ClassNameItem
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    15
	instanceVariableNames:'revisionInfo'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    16
	classVariableNames:''
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    17
	poolDictionaries:''
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    18
	category:'Interface-Browsers-Support'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    19
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    20
2625
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    21
!ClassNameItem class methodsFor:'documentation'!
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    22
2626
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    23
copyright
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    24
"
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    25
 COPYRIGHT (c) 2000 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    26
              All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    27
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    28
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    29
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    31
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    32
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    33
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
    34
"
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
2625
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    39
documentation
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    40
"
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    41
    This is not yet finished (work in progress) - do not use.
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
    [author:]
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    44
        Pierre Schwarz (ps@exept.de)
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    45
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    46
    [see also:]
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
    [instance variables:]
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
    [class 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
d70f0361a027 doc; halts removed
Claus Gittinger <cg@exept.de>
parents: 2613
diff changeset
    53
! !
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    54
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    55
!ClassNameItem class methodsFor:'image specs'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    56
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    57
icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    58
    "This resource specification was automatically generated
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    59
     by the ImageEditor of ST/X."
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    60
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    61
    "Do not manually edit this!! If it is corrupted,
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    62
     the ImageEditor may not be able to read the specification."
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    63
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    64
    "
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    65
     self icon inspect
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    66
     ImageEditor openOnClass:self andSelector:#icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    67
    "
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    68
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    69
    <resource: #image>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    70
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    71
    ^Icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    72
        constantNamed:#'ClassNameItem icon'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    73
        ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    74
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0L@@ HB@ HB@ HB@ HB@@@@@@@C@0@B@@@@@@@@@@@@@@H@@@@@@@LC@@H@@PDA@PDA@PD@@ @@@@@@@0L@@ @A@PD@
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    75
@@@@@@@@@@@@@@@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
    76
@@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
    77
@@@@@@@@@@@@@@@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
    78
@@@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
    79
! !
2613
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
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    93
    ^ revisionInfo
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    94
!
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    95
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    96
revisionInfo:something
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    97
    "set the value of the instance variable 'revisionInfo' (automatically generated)"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
    98
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
    99
    revisionInfo := something.
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   100
! !
2613
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   101
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   102
!ClassNameItem methodsFor:'protocol'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   103
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   104
hasChildren
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   105
"a name class items has no childs
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   106
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   107
<return: Boolean>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   108
"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   109
     ^false
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   110
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   111
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   112
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   113
icon
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   114
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   115
    ^self class icon
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
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   120
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   121
label
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   122
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   123
    | aStream user recordType fileName date time rev pkgDir clsName cvsRoot theText|
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   124
    aStream := WriteStream on:String new.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   125
    user := revisionInfo at:#user ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   126
    recordType := revisionInfo at:#cvsRecordType ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   127
    fileName := revisionInfo at:#fileName ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   128
    date := revisionInfo at:#date ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   129
    time := revisionInfo at:#time ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   130
    rev := revisionInfo at:#revision ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   131
    pkgDir := revisionInfo at:#directory ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   132
    clsName := revisionInfo at:#className ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   133
    cvsRoot := revisionInfo at:#cvsRoot ifAbsent:'?'.
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   134
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   135
    ^(Text string:fileName emphasis:#bold),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   136
        (Text string:(String with:Character cr)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   137
        (Text string:recordType),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   138
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   139
        (Text string:(date printString paddedTo:5)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   140
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   141
        (Text string:(time printString paddedTo:5)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   142
        (Text string:' '),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   143
        (Text string:(user printString paddedTo:10)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   144
        (Text string:(String with:Character tab)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   145
        (Text string:(rev decimalPaddedTo:8 and:3 at:$. withLeft:(Character space) right:nil)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   146
        (Text string:(String with:Character tab)),
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   147
        (Text string:(pkgDir paddedTo:20))        
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   148
!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   149
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   150
middleButtonMenu
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   151
"returns the middleButtonMenu or nil if no menu is defined
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   152
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   153
<return: nil>
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   154
"
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   155
    ^ nil
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   156
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   157
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   158
! !
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   159
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   160
!ClassNameItem class methodsFor:'documentation'!
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   161
4dd07aefaf20 initial checkin
ps
parents:
diff changeset
   162
version
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   163
    ^ '$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
   164
!
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   165
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   166
version_HG
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
    ^ '$Changeset: <not expanded> $'
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   169
! !
12650
e0f607754b9a Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12125
diff changeset
   170