ClassCategoryChange.st
author Claus Gittinger <cg@exept.de>
Mon, 20 Aug 2018 10:11:25 +0200
changeset 4346 6604af2f1554
parent 3958 3b20c3b856c7
child 3960 3343243e9f6e
permissions -rw-r--r--
#OTHER by cg class: FileBasedSourceCodeManager class removed: #version_FileRepository
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1984
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     1
"
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     2
 COPYRIGHT (c) 2002 by eXept Software AG
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     3
              All Rights Reserved
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     4
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     5
 This software is furnished under a license and may be used
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     6
 only in accordance with the terms of that license and with the
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     8
 be provided or otherwise made available to, or used by, any
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     9
 other person.  No title to or ownership of the software is
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    10
 hereby transferred.
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    11
"
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic3' }"
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
3958
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
    14
"{ NameSpace: Smalltalk }"
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
    15
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ClassChange subclass:#ClassCategoryChange
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'category'
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'System-Changes'
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
1984
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    23
!ClassCategoryChange class methodsFor:'documentation'!
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    24
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    25
copyright
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    26
"
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    27
 COPYRIGHT (c) 2002 by eXept Software AG
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    28
              All Rights Reserved
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    29
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    30
 This software is furnished under a license and may be used
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    31
 only in accordance with the terms of that license and with the
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    33
 be provided or otherwise made available to, or used by, any
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    34
 other person.  No title to or ownership of the software is
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    35
 hereby transferred.
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    36
"
2166
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    37
!
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    38
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    39
documentation
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    40
"
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    41
    A changed class category
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    42
"
1984
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    43
! !
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!ClassCategoryChange methodsFor:'accessing'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
category
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    ^ category
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
category:aCategory
3436
35ed9c4f4591 class: ClassCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2619
diff changeset
    52
    category := aCategory
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
className:clsName category:aCategoryString
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    className := clsName.
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    category := aCategoryString
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!ClassCategoryChange methodsFor:'comparing'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
isForSameAs:changeB
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    "return true, if the given change represents a change for the same
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
     thingy as the receiver (i.e. same method, same definition etc.)."
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    changeB isClassCategoryChange ifFalse:[^ false].   
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    ^ className = changeB className
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
sameAs:changeB
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    "return true, if the given change represents the same change as the receiver."
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    changeB isClassCategoryChange ifFalse:[^ false].
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    className = changeB className ifFalse:[^ false].
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    ^ category = changeB category 
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
source
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "synthesize the changes source"
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    ^ className , ' category: ' , category storeString
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
!ClassCategoryChange methodsFor:'printing & storing'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
printOn:aStream
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    "append a user printed representation of the receiver to aStream.
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
     The format is suitable for a human - not meant to be read back."
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
3958
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
    90
    aStream 
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
    91
        nextPutAll:className; 
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
    92
        nextPutAll:' category:';
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
    93
        nextPutAll:(category storeString)
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
printWithoutClassNameOn:aStream
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    (className endsWith:' class') ifTrue:[
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
        aStream nextPutAll:'class '
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    ].
3958
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
   100
    aStream nextPutAll:'category:'.
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
   101
    aStream nextPutAll:category storeString
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
3495
01df061539ab category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents: 3436
diff changeset
   104
!ClassCategoryChange methodsFor:'testing'!
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
isClassCategoryChange
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    ^ true
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
2619
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   110
!ClassCategoryChange methodsFor:'visiting'!
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   111
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   112
acceptChangeVisitor:aVisitor
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   113
    ^ aVisitor visitClassCategoryChange:self.
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   114
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   115
    "Created: / 25-11-2011 / 17:12:41 / cg"
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   116
! !
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   117
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
!ClassCategoryChange class methodsFor:'documentation'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
version
3958
3b20c3b856c7 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3495
diff changeset
   121
    ^ '$Header$'
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
! !
3436
35ed9c4f4591 class: ClassCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2619
diff changeset
   123