ClassInstVarDefinitionChange.st
author Claus Gittinger <cg@exept.de>
Thu, 05 Mar 2020 11:17:28 +0100
changeset 4561 eace75531554
parent 3695 e3c9970df253
child 3838 474d8ec95b33
permissions -rw-r--r--
#UI_ENHANCEMENT by cg class: SourceCodeManagerUtilities changed: #compareClassWithRepository:askForRevision: typos: genitive of class is class's - not classes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
798
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     1
"
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     3
              All Rights Reserved
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     4
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     5
 This software is furnished under a license and may be used
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     6
 only in accordance with the terms of that license and with the
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     8
 be provided or otherwise made available to, or used by, any
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
     9
 other person.  No title to or ownership of the software is
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    10
 hereby transferred.
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    11
"
957
54dade11e57f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 891
diff changeset
    12
"{ Package: 'stx:libbasic3' }"
54dade11e57f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 891
diff changeset
    13
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
ClassChange subclass:#ClassInstVarDefinitionChange
2621
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    15
	instanceVariableNames:'classInstVarNames'
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'System-Changes'
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
798
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    21
!ClassInstVarDefinitionChange class methodsFor:'documentation'!
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    22
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    23
copyright
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    24
"
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    25
 COPYRIGHT (c) 1999 by eXept Software AG
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    26
              All Rights Reserved
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    27
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    28
 This software is furnished under a license and may be used
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    29
 only in accordance with the terms of that license and with the
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    31
 be provided or otherwise made available to, or used by, any
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    32
 other person.  No title to or ownership of the software is
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    33
 hereby transferred.
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    34
"
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    35
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 797
diff changeset
    36
! !
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
2621
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    38
!ClassInstVarDefinitionChange methodsFor:'accessing'!
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    39
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    40
classInstVarNames
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    41
    ^ classInstVarNames
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    42
!
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    43
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    44
classInstVarNames:something
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    45
    classInstVarNames := something.
3459
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    46
!
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    47
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    48
delta
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    49
    | ns changeClass |
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    50
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    51
    "/ Must enforce current namespace because caller (such as Workspace!!!!!!) enforces
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    52
    "/ the namespace wia NameSpaceQuerySignal. Therefore for classes not in Smalltalk.
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    53
    "/ `self changeClass` will always return nil, sigh.
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    54
    ns := nameSpaceName notNil ifTrue:[(NameSpace name: nameSpaceName)] ifFalse:[nil].
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    55
    Class nameSpaceQuerySignal answer: nil do:[
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    56
        changeClass := self changeClass.
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    57
        changeClass isNil ifTrue:[^#+].
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    58
    ].
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    59
3695
e3c9970df253 class: ClassInstVarDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 3504
diff changeset
    60
    ^ self classInstVarNames = changeClass instanceVariableNames ifTrue:[#'='] ifFalse:[#'~']
3459
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    61
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
    62
    "Created: / 13-11-2013 / 17:58:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2621
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    63
! !
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
    64
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
!ClassInstVarDefinitionChange methodsFor:'comparing'!
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
isForSameAs:changeB
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    "return true, if the given change represents a change for the same
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
     thingy as the receiver (i.e. same method, same definition etc.)."
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    changeB isClassInstVarDefinitionChange ifFalse:[^ false].   
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    ^ className = changeB className
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
!
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
sameAs:changeB
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    "return true, if the given change represents the same change as the receiver."
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    (self isForSameAs:changeB) ifFalse:[^ false].
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    ^ self sameSourceAs:changeB
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
! !
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
962
3821ab69b939 category change
Claus Gittinger <cg@exept.de>
parents: 957
diff changeset
    86
!ClassInstVarDefinitionChange methodsFor:'printing & storing'!
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
printOn:aStream
891
1e13b370d6d7 printing fixed
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
    89
    "/ aStream nextPutAll:className; nextPutAll:' instanceVariableNames:'
2045
3557b7c36af0 changed #printOn:
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    90
    aStream nextPutAll:source string
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
! !
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
3504
76978397c0f4 category change for isXXX testers;
Claus Gittinger <cg@exept.de>
parents: 3459
diff changeset
    95
!ClassInstVarDefinitionChange methodsFor:'testing'!
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
isClassInstVarDefinitionChange
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    ^ true
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
! !
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
2621
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   103
!ClassInstVarDefinitionChange methodsFor:'visiting'!
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   104
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   105
acceptChangeVisitor:aVisitor
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   106
    ^ aVisitor visitClassInstVarDefinitionChange:self.
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   107
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   108
    "Created: / 25-11-2011 / 17:13:30 / cg"
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   109
! !
f24a15b5d9b9 visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2045
diff changeset
   110
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
!ClassInstVarDefinitionChange class methodsFor:'documentation'!
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
version
3695
e3c9970df253 class: ClassInstVarDefinitionChange
Claus Gittinger <cg@exept.de>
parents: 3504
diff changeset
   114
    ^ '$Header: /cvs/stx/stx/libbasic3/ClassInstVarDefinitionChange.st,v 1.10 2014-12-29 20:35:51 cg Exp $'
797
67738477acda initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
! !
3459
503659017666 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 2621
diff changeset
   116