ChangeSet.st
author Claus Gittinger <cg@exept.de>
Wed, 12 Apr 2000 23:40:29 +0200
changeset 924 41c0748bff4e
parent 921 fa4db05c887b
child 930 ca4ce60fea8b
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     1
"
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     2
 COPYRIGHT (c) 1993 by Claus Gittinger
16
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
     3
	      All Rights Reserved
3
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     4
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     5
 This software is furnished under a license and may be used
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     6
 only in accordance with the terms of that license and with the
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     8
 be provided or otherwise made available to, or used by, any
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
     9
 other person.  No title to or ownership of the software is
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
    10
 hereby transferred.
263f814933d4 *** empty log message ***
claus
parents: 0
diff changeset
    11
"
0
470788421600 Initial revision
claus
parents:
diff changeset
    12
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
    13
"{ Package: 'stx:libbasic3' }"
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
    14
0
470788421600 Initial revision
claus
parents:
diff changeset
    15
OrderedCollection subclass:#ChangeSet
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
    16
	instanceVariableNames:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
    17
	classVariableNames:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
    18
	poolDictionaries:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
    19
	category:'System-Changes'
0
470788421600 Initial revision
claus
parents:
diff changeset
    20
!
470788421600 Initial revision
claus
parents:
diff changeset
    21
625
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
    22
!ChangeSet class methodsFor:'documentation'!
9
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    23
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    24
copyright
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    25
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    26
 COPYRIGHT (c) 1993 by Claus Gittinger
16
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
    27
	      All Rights Reserved
9
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    28
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    29
 This software is furnished under a license and may be used
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    30
 only in accordance with the terms of that license and with the
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    32
 be provided or otherwise made available to, or used by, any
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    33
 other person.  No title to or ownership of the software is
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    34
 hereby transferred.
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    35
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    36
!
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    37
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    38
documentation
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    39
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    40
    used in the changes management to keep track of changes
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
    41
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
    42
    [author:]
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
    43
	Claus Gittinger
9
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    44
"
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    45
! !
f5b6ab00bdf6 *** empty log message ***
claus
parents: 3
diff changeset
    46
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    47
!ChangeSet class methodsFor:'instance creation'!
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    48
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    49
forExistingClass:aClass
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    50
    "build a changeSet for some given class.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    51
     That does of course not give deltas, but instead reflects the current
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    52
     state of the given class.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    53
     It is useful in conjunction with the other utility methods,
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    54
     for example, when building patchLists etc."
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    55
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    56
    |changeSet chunk sawExcla lastTimeStamp s change nameSpace|
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    57
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    58
    changeSet := self new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    59
    nameSpace := Smalltalk.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    60
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    61
    "/ first, a classDefinition change ...
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    62
    changeSet addClassDefinitionChangeFor:aClass.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    63
    "/ are there any class-instVars ?
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    64
    aClass class instVarNames size > 0 ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    65
        changeSet addInstVarDefinitionChangeFor:aClass class.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    66
    ].
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    67
    "/ a comment ?
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    68
    aClass comment size > 0 ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    69
        changeSet addClassCommentChangeFor:aClass.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    70
    ].
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    71
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    72
    "/ class methods first ...
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    73
    aClass class methodDictionary keysAndValuesDo:[:sel :mthd |
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    74
        changeSet addMethodChange:mthd in:aClass class. 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    75
    ].
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    76
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    77
    "/ instance methods ...
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    78
    aClass methodDictionary keysAndValuesDo:[:sel :mthd |
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    79
        changeSet addMethodChange:mthd in:aClass.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    80
    ].
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    81
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    82
    ^ changeSet
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    83
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    84
    "
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    85
     ChangeSet forExistingClass:ChangeSet
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    86
    "
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    87
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    88
    "Created: / 16.2.1998 / 12:19:34 / cg"
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    89
    "Modified: / 14.12.1999 / 15:23:16 / cg"
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    90
!
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    91
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    92
fromStream:aStream
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    93
    "build a changeSet from a stream, containing chunks.
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    94
     (i.e. either a classes sourceFile or a change-file).
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    95
     Return the changeSet."
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    96
859
5d50d068c63b keep track of the nameSpace
Claus Gittinger <cg@exept.de>
parents: 857
diff changeset
    97
    |changeSet chunk sawExcla lastTimeStamp s change nameSpace|
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    98
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
    99
    changeSet := self new.
859
5d50d068c63b keep track of the nameSpace
Claus Gittinger <cg@exept.de>
parents: 857
diff changeset
   100
    nameSpace := Smalltalk.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   101
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   102
    [aStream atEnd] whileFalse:[
894
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   103
        aStream skipSeparators.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   104
        sawExcla := aStream peekFor:$!!.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   105
        chunk := aStream nextChunk.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   106
        (chunk notNil and:[chunk notEmpty]) ifTrue:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   107
            Class nameSpaceQuerySignal answer:nameSpace do:[
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   108
                |parser tree ns|
859
5d50d068c63b keep track of the nameSpace
Claus Gittinger <cg@exept.de>
parents: 857
diff changeset
   109
894
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   110
                parser := Parser for:chunk.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   111
                tree := parser 
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   112
                            parseExpressionWithSelf:nil 
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   113
                            notifying:nil 
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   114
                            ignoreErrors:true 
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   115
                            ignoreWarnings:true 
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   116
                            inNameSpace:nameSpace.
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   117
894
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   118
                tree == #Error ifTrue:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   119
                    change := DoItChange new.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   120
                    change source:chunk.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   121
                    changeSet add: change.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   122
                ] ifFalse:[    
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   123
                    (tree notNil and:[tree ~~ #Error]) ifTrue:[
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   124
                        "/ if there is any nameSpace directive in there, extract it.
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   125
                        ((ns := parser currentNameSpace) notNil 
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   126
                        and:[ns ~~ nameSpace]) ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   127
                            "/ self halt.
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   128
                            nameSpace := ns
894
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   129
                        ].
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   130
                        Class nameSpaceQuerySignal answer:nameSpace do:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   131
                            "/
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   132
                            "/ what type of chunk is this ...
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   133
                            "/
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   134
                            tree isConstant ifTrue:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   135
                                (s := tree evaluate) isString ifTrue:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   136
                                    (s startsWith:'---- timestamp ') ifTrue:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   137
                                        lastTimeStamp := s.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   138
                                    ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   139
                                ] ifFalse:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   140
                                    self halt:'unexpected change-chunk'
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   141
                                ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   142
                            ] ifFalse:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   143
                                tree isMessage ifTrue:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   144
                                    (changeSet addFromParseTree:tree andStream:aStream) ifFalse:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   145
                                        change := DoItChange new.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   146
                                        change source:chunk.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   147
                                        changeSet add: change.
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   148
                                    ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   149
                                ] ifFalse:[
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   150
                                    self halt:'unexpected change-chunk'
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   151
                                ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   152
                            ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   153
                        ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   154
                    ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   155
                ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   156
            ]
40292337f043 comment.
Claus Gittinger <cg@exept.de>
parents: 889
diff changeset
   157
        ]
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   158
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   159
    ^ changeSet
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   160
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   161
    "
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   162
     ChangeSet fromStream:('changes' asFilename readStream)
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   163
     ChangeSet fromStream:('patches' asFilename readStream)
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   164
     ChangeSet fromStream:(Object source asString readStream)
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   165
    "
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   166
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   167
    "Created: / 16.2.1998 / 12:19:34 / cg"
859
5d50d068c63b keep track of the nameSpace
Claus Gittinger <cg@exept.de>
parents: 857
diff changeset
   168
    "Modified: / 14.12.1999 / 15:23:16 / cg"
916
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   169
!
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   170
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   171
fromXMLStream:aStream
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   172
    "build a changeSet from an XML stream, containing XML definitions.
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   173
     Return the changeSet."
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   174
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   175
    |changeSet builder nameSpace|
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   176
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   177
    changeSet := self new.
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   178
    nameSpace := Smalltalk.
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   179
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   180
    builder := XML.SourceScannerNodeBuilder new.
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   181
    builder scanFile:aStream
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   182
            do:[:change | changeSet add: change. ].
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   183
    ^ changeSet
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   184
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   185
    "
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   186
     ChangeSet fromXMLStream:('../../goodies/xml-vw/xmlFileInTests/XMLParser.xml' asFilename readStream)
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   187
     ChangeSetBrowser 
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   188
        openOn:(ChangeSet fromXMLStream:('../../goodies/xml-vw/xmlFileInTests/XMLParser.xml' asFilename readStream))
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   189
    "
fff32b43ac7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 901
diff changeset
   190
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   191
! !
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   192
883
1d1fd75b36e5 category renamining
Claus Gittinger <cg@exept.de>
parents: 879
diff changeset
   193
!ChangeSet class methodsFor:'Compatibility - ST80'!
625
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   194
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   195
patches
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   196
    ^ #()
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   197
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   198
    "Created: / 27.10.1997 / 13:52:54 / cg"
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   199
! !
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   200
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   201
!ChangeSet class methodsFor:'queries'!
27
claus
parents: 16
diff changeset
   202
claus
parents: 16
diff changeset
   203
current
claus
parents: 16
diff changeset
   204
    "ST-80 compatibility: return the current changeSet"
claus
parents: 16
diff changeset
   205
claus
parents: 16
diff changeset
   206
    |p|
claus
parents: 16
diff changeset
   207
claus
parents: 16
diff changeset
   208
    (Project notNil and:[(p := Project current) notNil]) ifTrue:[
claus
parents: 16
diff changeset
   209
	^ p changeSet
claus
parents: 16
diff changeset
   210
    ]
claus
parents: 16
diff changeset
   211
claus
parents: 16
diff changeset
   212
    "
claus
parents: 16
diff changeset
   213
     ChangeSet current 
claus
parents: 16
diff changeset
   214
    "
claus
parents: 16
diff changeset
   215
! !
claus
parents: 16
diff changeset
   216
899
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 894
diff changeset
   217
!ChangeSet methodsFor:'Compatibility - ST80'!
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   218
899
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 894
diff changeset
   219
changeClass:aClass
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 894
diff changeset
   220
    "dummy here"
100
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   221
899
7b65d6f2b0f0 more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 894
diff changeset
   222
    "Created: / 4.2.2000 / 18:30:59 / cg"
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   223
!
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   224
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   225
reorganizeSystem
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   226
    "dummy here"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   227
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   228
    "Created: / 6.2.2000 / 20:45:10 / cg"
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   229
! !
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   230
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   231
!ChangeSet methodsFor:'changes management'!
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   232
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   233
addClassCommentChangeFor:aClass
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   234
    "add a classComment change to the receiver"
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   235
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   236
    |newChange|
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   237
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   238
    newChange := ClassCommentChange class:aClass.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   239
    newChange comment:aClass comment.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   240
    self add:newChange
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   241
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   242
    "Modified: 15.7.1996 / 09:27:05 / cg"
100
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   243
!
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   244
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   245
addClassDefinitionChangeFor:aClass
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   246
    "add a classDefinition change to the receiver"
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   247
100
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   248
    |newChange|
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   249
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   250
    newChange := ClassDefinitionChange class:aClass.
787
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   251
    newChange source:aClass definition.
100
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   252
    self add:newChange
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   253
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   254
    "Modified: 15.7.1996 / 09:27:05 / cg"
100
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   255
!
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   256
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   257
addInstVarDefinitionChangeFor:aClass
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   258
    "add an instVarDefinition change to the receiver"
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   259
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   260
    |newChange|
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   261
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   262
    newChange := ClassInstVarDefinitionChange class:aClass.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   263
    newChange source:(aClass name , ' instanceVariableNames:' , aClass instanceVariableString storeString).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   264
    self add:newChange
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   265
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   266
!
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   267
16
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
   268
addMethodCategoryChange:aMethod category:newCategory in:aClass
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   269
    "add a methodCategory change to the receiver"
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   270
16
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
   271
    |newChange|
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
   272
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
   273
    newChange := MethodCategoryChange class:aClass
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   274
				   selector:(aClass selectorAtMethod:aMethod)
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   275
				   category:newCategory.
16
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
   276
    self add:newChange
fcbfbba03d49 *** empty log message ***
claus
parents: 10
diff changeset
   277
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   278
    "Modified: 15.7.1996 / 09:27:15 / cg"
44
claus
parents: 39
diff changeset
   279
!
claus
parents: 39
diff changeset
   280
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   281
addMethodChange:aMethod in:aClass
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   282
    "add a method change to the receiver"
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   283
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   284
    |newChange|
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   285
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   286
    newChange := MethodChange class:aClass
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   287
			   selector:(aClass selectorAtMethod:aMethod)
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   288
			     source:aMethod source
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   289
			   category:aMethod category.
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   290
    self add:newChange
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   291
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   292
    "Modified: 15.7.1996 / 09:27:21 / cg"
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   293
!
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   294
44
claus
parents: 39
diff changeset
   295
addMethodPrivacyChange:aMethod in:aClass
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   296
    "add a methodPrivacy change to the receiver"
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   297
44
claus
parents: 39
diff changeset
   298
    |newChange|
claus
parents: 39
diff changeset
   299
claus
parents: 39
diff changeset
   300
    newChange := MethodPrivacyChange class:aClass
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   301
				   selector:(aClass selectorAtMethod:aMethod)
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   302
				   privacy:aMethod privacy.
44
claus
parents: 39
diff changeset
   303
    self add:newChange
claus
parents: 39
diff changeset
   304
claus
parents: 39
diff changeset
   305
    "Modified: 27.8.1995 / 22:55:22 / claus"
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   306
    "Modified: 15.7.1996 / 09:27:28 / cg"
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   307
!
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   308
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   309
addPrimitiveDefinitionsChangeFor:aClass
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   310
    "add a primitiveDefinitions change to the receiver"
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   311
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   312
    |newChange|
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   313
783
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 781
diff changeset
   314
    newChange := ClassPrimitiveDefinitionsChange new
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   315
			class:aClass name source:aClass primitiveDefinitionsString.
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   316
    self add:newChange
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   317
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   318
    "Modified: 15.7.1996 / 09:27:40 / cg"
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   319
!
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   320
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   321
addPrimitiveFunctionsChangeFor:aClass
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   322
    "add a primitiveFunctions change to the receiver"
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   323
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   324
    |newChange|
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   325
783
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 781
diff changeset
   326
    newChange := ClassPrimitiveFunctionsChange new
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   327
			class:aClass name source:aClass primitiveFunctionsString.
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   328
    self add:newChange
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   329
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   330
    "Modified: 15.7.1996 / 09:27:47 / cg"
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   331
!
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   332
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   333
addPrimitiveVariablesChangeFor:aClass
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   334
    "add a primitiveVariables change to the receiver"
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   335
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   336
    |newChange|
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   337
783
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 781
diff changeset
   338
    newChange := ClassPrimitiveVariablesChange new
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   339
			 class:aClass name source:aClass primitiveVariablesString.
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 102
diff changeset
   340
    self add:newChange
378
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   341
f106015c98a6 commentary
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
   342
    "Modified: 15.7.1996 / 09:27:55 / cg"
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   343
!
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   344
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   345
addRemoveSelectorChange:aSelector in:aClass
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   346
    "add a method-remove change to the receiver"
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   347
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   348
    |newChange|
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   349
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   350
    newChange := MethodRemoveChange 
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   351
			class:aClass
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   352
			selector:aSelector.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   353
    self add:newChange
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   354
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   355
    "Modified: / 27.8.1995 / 22:55:22 / claus"
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   356
    "Modified: / 15.7.1996 / 09:27:28 / cg"
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   357
    "Created: / 16.2.1998 / 12:47:07 / cg"
901
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   358
!
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   359
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   360
addRenameCategoryChangeIn:aClass from:oldCategory to:newCategory
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   361
    "add a category rename change to the receiver"
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   362
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   363
    |newChange|
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   364
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   365
    newChange := MethodCategoryRenameChange class:aClass.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   366
    newChange oldCategoryName:oldCategory newCategoryName:newCategory.
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   367
    self add:newChange
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   368
8fd26c5e8e8f more VW compatibility
Claus Gittinger <cg@exept.de>
parents: 899
diff changeset
   369
    "Modified: / 6.2.2000 / 02:30:30 / cg"
0
470788421600 Initial revision
claus
parents:
diff changeset
   370
! !
470788421600 Initial revision
claus
parents:
diff changeset
   371
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   372
!ChangeSet methodsFor:'misc'!
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   373
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   374
addPatch:nameOfPatch
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   375
    "ignored for now - allows fileIn of ST-80 patch stuff .."
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   376
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   377
    ^ self
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   378
! !
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
   379
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   380
!ChangeSet methodsFor:'private'!
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   381
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   382
addFromParseTree:aTree andStream:aStream
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   383
    "given a parse-tree (from parsing some changes source/chunk),
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   384
     create a change and add it to the changeSet"
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   385
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   386
    |sel className categoryName 
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   387
     methodSource methodSelector change parser
775
04b5618b4477 code cleanup
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   388
     oldName newName priv receiver receiverVarName
859
5d50d068c63b keep track of the nameSpace
Claus Gittinger <cg@exept.de>
parents: 857
diff changeset
   389
     receiverSelector receiverReceiver primSource
5d50d068c63b keep track of the nameSpace
Claus Gittinger <cg@exept.de>
parents: 857
diff changeset
   390
     nameSpace|
5d50d068c63b keep track of the nameSpace
Claus Gittinger <cg@exept.de>
parents: 857
diff changeset
   391
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   392
"/    nameSpace := Class nameSpaceQuerySignal query.
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   393
"/    nameSpace isNil ifTrue:[nameSpace := Smalltalk].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   394
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   395
    sel := aTree selector.
775
04b5618b4477 code cleanup
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   396
    receiver := aTree receiver.
04b5618b4477 code cleanup
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   397
    receiver isMessage ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   398
        receiverSelector := receiver selector.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   399
        receiverReceiver := receiver receiver.
775
04b5618b4477 code cleanup
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   400
    ] ifFalse:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   401
        receiver isVariable ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   402
            receiverVarName := receiver name
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   403
        ]
775
04b5618b4477 code cleanup
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   404
    ].
04b5618b4477 code cleanup
Claus Gittinger <cg@exept.de>
parents: 757
diff changeset
   405
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   406
    (sel == #'methodsFor:'
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   407
    or:[(sel == #'ignoredMethodsFor:')]) ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   408
        (sel == #'ignoredMethodsFor:') ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   409
            priv := #ignored.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   410
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   411
            priv := nil
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   412
        ].
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   413
        (receiver isUnaryMessage 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   414
        and:[receiverSelector == #class]) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   415
            className := (receiverReceiver name) , ' class'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   416
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   417
            className := (receiver name).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   418
        ].
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   419
"/        nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   420
"/            className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   421
"/        ].
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   422
        categoryName := (aTree arguments at:1) evaluate.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   423
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   424
        aStream skipSeparators.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   425
        methodSource := aStream nextChunk.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   426
        [methodSource notEmpty] whileTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   427
            parser := Parser
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   428
                        parseMethodArgAndVarSpecification:methodSource 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   429
                        in:nil 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   430
                        ignoreErrors:true 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   431
                        ignoreWarnings:true
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   432
                        parseBody:false.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   433
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   434
            parser isNil ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   435
                "/ something wierd ...
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   436
                methodSelector := '????'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   437
            ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   438
                methodSelector := parser selector.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   439
            ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   440
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   441
            change := MethodChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   442
            change 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   443
                className:className
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   444
                selector:methodSelector
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   445
                source:methodSource
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   446
                category:categoryName
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   447
                privacy:priv.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   448
            self add: change.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   449
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   450
            aStream skipSeparators.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   451
            methodSource := aStream nextChunk.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   452
        ].
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   453
        ^ true
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   454
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   455
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   456
    sel == #'removeSelector:' ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   457
        (receiver isUnaryMessage 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   458
        and:[receiverSelector == #class]) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   459
            className := (receiverReceiver name) , ' class'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   460
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   461
            className := (receiver name).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   462
        ].
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   463
"/        nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   464
"/            className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   465
"/        ].
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   466
        methodSelector := (aTree arguments at:1) evaluate.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   467
        change := MethodRemoveChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   468
        change 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   469
            className:className
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   470
            selector:methodSelector.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   471
        self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   472
        ^ true
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   473
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   474
787
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   475
    "/ any subclass definiton selector ?
802
f6cfa27d60e0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
   476
    (Behavior definitionSelectors includes:sel)
787
5d49bd054fc2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
   477
    ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   478
        className := (aTree arguments at:1) evaluate.
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   479
"/        nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   480
"/            className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   481
"/        ].
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   482
        change := ClassDefinitionChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   483
        change 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   484
            className:className;
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   485
            source:(aTree printString).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   486
        self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   487
        ^ true
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   488
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   489
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   490
    sel == #'renameCategory:to:' ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   491
        (receiver isUnaryMessage 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   492
        and:[receiverSelector == #class]) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   493
            className := (receiverReceiver name) , ' class'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   494
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   495
            className := (receiver name).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   496
        ].
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   497
"/        nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   498
"/            className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   499
"/        ].
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   500
        change := MethodCategoryRenameChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   501
        change 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   502
            className:className;
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   503
            oldCategoryName:(aTree arguments at:1) evaluate
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   504
            newCategoryName:(aTree arguments at:2) evaluate.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   505
        self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   506
        ^ true
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   507
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   508
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   509
    (sel == #'category:' 
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   510
    or:[sel == #'privacy:']) ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   511
        (receiver isMessage
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   512
        and:[receiverSelector == #'compiledMethodAt:']) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   513
            (receiverReceiver isUnaryMessage 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   514
            and:[receiverReceiver selector == #class]) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   515
                className := (receiverReceiver receiver name) , ' class'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   516
            ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   517
                className := (receiverReceiver name).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   518
            ].
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   519
"/            nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   520
"/                className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   521
"/            ].
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   522
            methodSelector := (receiver arguments at:1) evaluate.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   523
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   524
            sel == #'category:' ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   525
                change := MethodCategoryChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   526
                change 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   527
                    className:className
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   528
                    selector:methodSelector
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   529
                    category:(aTree arguments at:1) evaluate.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   530
            ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   531
                change := MethodPrivacyChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   532
                change 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   533
                    className:className
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   534
                    selector:methodSelector
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   535
                    privacy:(aTree arguments at:1) evaluate.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   536
            ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   537
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   538
            self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   539
            ^ true
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   540
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   541
            self halt:'unexpected change'
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   542
        ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   543
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   544
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   545
    sel == #'comment:' ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   546
        (receiver isUnaryMessage 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   547
        and:[receiverSelector == #class]) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   548
            className := (receiverReceiver name) , ' class'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   549
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   550
            className := (receiver name).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   551
        ].
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   552
"/        nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   553
"/            className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   554
"/        ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   555
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   556
        change := ClassCommentChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   557
        change 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   558
            className:className
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   559
            comment:(aTree arguments at:1) evaluate.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   560
        change source:(aTree printString).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   561
        self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   562
        ^ true
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   563
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   564
798
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   565
    sel == #'instanceVariableNames:' ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   566
        (receiver isUnaryMessage 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   567
        and:[receiverSelector == #class]) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   568
            className := (receiverReceiver name) , ' class'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   569
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   570
            className := (receiver name).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   571
        ].
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   572
"/        nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   573
"/            className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   574
"/        ].
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   575
        change := ClassInstVarDefinitionChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   576
        change className:className.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   577
        change source:(aTree printString).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   578
        self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   579
        ^ true
798
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   580
    ].
999fff0aa0d0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 789
diff changeset
   581
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   582
    sel == #'removeClass:' ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   583
        (receiverVarName == #Smalltalk) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   584
            className := (aTree arguments at:1) name.
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   585
"/            nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   586
"/                className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   587
"/            ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   588
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   589
            change := ClassRemoveChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   590
            change className:className.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   591
            self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   592
            ^ true
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   593
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   594
            self halt
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   595
        ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   596
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   597
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   598
    sel == #'renameClass:to:' ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   599
        (receiverVarName == #Smalltalk) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   600
            oldName := (aTree arguments at:1) name.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   601
            newName := (aTree arguments at:2) evaluate.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   602
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   603
            change := ClassRenameChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   604
            change oldName:oldName newName:newName.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   605
            self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   606
            ^ true
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   607
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   608
            self halt
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   609
        ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   610
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   611
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   612
    sel == #'name:' ifTrue:[
924
41c0748bff4e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   613
        ((receiverVarName == #Namespace) 
41c0748bff4e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   614
	or:[receiverVarName == #NameSpace]) ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   615
            className := (aTree arguments at:1) evaluate.
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   616
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   617
            change := NameSpaceCreationChange new.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   618
            change name:className.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   619
            self add: change.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   620
            ^ true
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   621
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   622
            self halt
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   623
        ].
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   624
    ].
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   625
781
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   626
    (sel == #'primitiveDefinitions'
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   627
    or:[sel == #'primitiveFunctions'
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   628
    or:[sel == #'primitiveVariables']]) ifTrue:[
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   629
        (receiver isUnaryMessage 
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   630
        and:[receiverSelector == #class]) ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   631
            className := (receiverReceiver name) , ' class'.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   632
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   633
            className := (receiver name).
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   634
        ].
921
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   635
"/        nameSpace ~~ Smalltalk ifTrue:[
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   636
"/            className := nameSpace name , '::' , className
fa4db05c887b oops - nameSpace prefix handling needed fix due
Claus Gittinger <cg@exept.de>
parents: 916
diff changeset
   637
"/        ].
781
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   638
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   639
        aStream skipSeparators.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   640
        primSource := aStream nextChunk.
781
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   641
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   642
        sel == #'primitiveDefinitions' ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   643
            change := ClassPrimitiveDefinitionsChange new
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   644
        ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   645
            sel == #'primitiveFunctions' ifTrue:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   646
                change := ClassPrimitiveFunctionsChange new
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   647
            ] ifFalse:[
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   648
                change := ClassPrimitiveVariablesChange new
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   649
            ]
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   650
        ].
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   651
        change class:className source:primSource.
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   652
        self add: change.
781
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   653
889
6b05401d7184 more changes (comments, class-instVars) in the changeSet;
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   654
        ^ true
781
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   655
    ].
d32abf3c57d7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   656
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   657
    ^ false
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   658
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   659
    "Created: / 16.2.1998 / 13:42:40 / cg"
860
4e159afd172a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 859
diff changeset
   660
    "Modified: / 15.12.1999 / 00:29:06 / cg"
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   661
! !
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
   662
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   663
!ChangeSet methodsFor:'utilities'!
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   664
878
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   665
apply
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   666
    "apply all changes in the receivers changeSet"
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   667
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   668
    self do:[:aChange |
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   669
	aChange apply
878
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   670
    ]
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   671
!
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   672
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   673
condenseChangesForClass:aClass package:aPackageSymbol
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   674
    "remove all changes for aClass and aPackageSymbol
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   675
     (i.e. leave methodChanges for other packages"
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   676
887
3cfdf7d2ba89 oops - must care for unloaded/nonExistent/removed/renamed classes
Claus Gittinger <cg@exept.de>
parents: 883
diff changeset
   677
    |changesToRemove className|
878
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   678
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   679
    changesToRemove := OrderedCollection new.
887
3cfdf7d2ba89 oops - must care for unloaded/nonExistent/removed/renamed classes
Claus Gittinger <cg@exept.de>
parents: 883
diff changeset
   680
    className := aClass name.
3cfdf7d2ba89 oops - must care for unloaded/nonExistent/removed/renamed classes
Claus Gittinger <cg@exept.de>
parents: 883
diff changeset
   681
    self do:[:aChange | |chgClass|
3cfdf7d2ba89 oops - must care for unloaded/nonExistent/removed/renamed classes
Claus Gittinger <cg@exept.de>
parents: 883
diff changeset
   682
        aChange className = className ifTrue:[
3cfdf7d2ba89 oops - must care for unloaded/nonExistent/removed/renamed classes
Claus Gittinger <cg@exept.de>
parents: 883
diff changeset
   683
            changesToRemove add:aChange
3cfdf7d2ba89 oops - must care for unloaded/nonExistent/removed/renamed classes
Claus Gittinger <cg@exept.de>
parents: 883
diff changeset
   684
        ]
878
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   685
    ].
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   686
    self removeAll:changesToRemove
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   687
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   688
!
99583ccfe415 *** empty log message ***
ps
parents: 877
diff changeset
   689
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   690
diffSetsAgainst:anotherChangeSet
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   691
    "walk over the receiver and anotherChangeSet,
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   692
     add all changes to one of the tree lists:
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   693
	onlyInReceiver, onlyInArg or changed,
864
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   694
     each being a changeSet containing corresponding changes."
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   695
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   696
    |onlyInReceiver onlyInArg changedMethods
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   697
     indexFromChangedMethodsToA indexFromChangedMethodsToB
864
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   698
     "info" ret|
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   699
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   700
    onlyInReceiver := ChangeSet new.
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   701
    onlyInArg      := ChangeSet new.
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   702
    changedMethods := ChangeSet new.
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   703
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   704
    indexFromChangedMethodsToA := OrderedCollection new.
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   705
    indexFromChangedMethodsToB := OrderedCollection new.
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   706
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   707
    self keysAndValuesDo:[:idxA :aChangeInA |
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   708
	|anyFound ch|
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   709
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   710
	anyFound := false.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   711
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   712
	anotherChangeSet keysAndValuesDo:[:idxB :aChangeInB |
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   713
	    (aChangeInA isForSameAs:aChangeInB) ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   714
		anyFound := true.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   715
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   716
		"/ also in B - is it different ?
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   717
		(aChangeInA sameAs:aChangeInB) ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   718
		    changedMethods add:aChangeInA.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   719
		    indexFromChangedMethodsToA add:idxA.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   720
		    indexFromChangedMethodsToB add:idxB.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   721
		] ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   722
		    aChangeInA isMethodChange ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   723
			aChangeInA methodCategory ~= aChangeInB methodCategory ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   724
			    "/ only the category is different;
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   725
			    "/ make it a MethodCategory changes.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   726
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   727
			    ch := MethodCategoryChange new
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   728
				    className:aChangeInA className
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   729
				    selector:aChangeInA selector
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   730
				    category:aChangeInA methodCategory.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   731
			    self at:idxA put:ch.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   732
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   733
			    ch := MethodCategoryChange new
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   734
				    className:aChangeInB className
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   735
				    selector:aChangeInB selector
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   736
				    category:aChangeInB methodCategory.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   737
			    anotherChangeSet at:idxB put:ch.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   738
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   739
			    changedMethods add:aChangeInA.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   740
			    indexFromChangedMethodsToA add:idxA.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   741
			    indexFromChangedMethodsToB add:idxB.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   742
			]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   743
		    ].
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   744
		]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   745
	    ] ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   746
		(aChangeInA sameAs:aChangeInB) ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   747
		    anyFound := true.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   748
		] ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   749
		]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   750
	    ]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   751
	].
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   752
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   753
	anyFound ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   754
	    onlyInReceiver add:aChangeInA.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   755
	]
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   756
    ].
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   757
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   758
    anotherChangeSet keysAndValuesDo:[:idxB :aChangeInB |
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   759
	|anyFound|
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   760
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   761
	anyFound := false.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   762
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   763
	self do:[:aChangeInA |
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   764
	    |idxM|
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   765
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   766
	    (aChangeInA isForSameAs:aChangeInB) ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   767
		anyFound := true.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   768
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   769
		"/ also in B - is it different ?
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   770
		(aChangeInA sameAs:aChangeInB) ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   771
		    "/ already there ?
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   772
		    idxM := changedMethods findFirst:[:c | c isForSameAs:aChangeInB].
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   773
		    idxM == 0 ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   774
			changedMethods add:aChangeInB.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   775
			indexFromChangedMethodsToB add:idxB.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   776
		    ] ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   777
			indexFromChangedMethodsToB at:idxM put:idxB
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   778
		    ]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   779
		]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   780
	    ] ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   781
		(aChangeInA sameAs:aChangeInB) ifTrue:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   782
		    anyFound := true.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   783
		] ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   784
		]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   785
	    ]
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   786
	].
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   787
	anyFound ifFalse:[
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   788
	    onlyInArg add:aChangeInB.
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   789
	]
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   790
    ].
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   791
864
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   792
"/    info := OrderedCollection new:(changedMethods size).
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   793
"/    changedMethods keysAndValuesDo:[:idx :changedMethod |
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   794
"/        info add:(Array 
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   795
"/                        with:(indexFromChangedMethodsToA at:idx)
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   796
"/                        with:(indexFromChangedMethodsToB at:idx)
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   797
"/                 )
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   798
"/    ].
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   799
    changedMethods := (1 to:changedMethods size) collect:[:idx |
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   800
			|cA cB|
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   801
879
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   802
			cA := self at:(indexFromChangedMethodsToA at:idx).
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   803
			cB := anotherChangeSet at:(indexFromChangedMethodsToB at:idx).
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   804
			Array with:cA with:cB
bfd06666f6c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 878
diff changeset
   805
		      ].
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   806
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   807
    ret := IdentityDictionary new.
864
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   808
"/    ret at:#info           put:info.
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   809
    ret at:#changed        put:changedMethods.
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   810
    ret at:#onlyInReceiver put:onlyInReceiver.
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   811
    ret at:#onlyInArg      put:onlyInArg.
864
4f35b96a799e checkin from browser
ps
parents: 860
diff changeset
   812
    ^ret
857
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   813
! !
0a1a91c94e53 diff utility
Claus Gittinger <cg@exept.de>
parents: 829
diff changeset
   814
625
06f4ed35832b added #patches for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents: 378
diff changeset
   815
!ChangeSet class methodsFor:'documentation'!
100
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   816
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   817
version
924
41c0748bff4e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 921
diff changeset
   818
    ^ '$Header: /cvs/stx/stx/libbasic3/ChangeSet.st,v 1.45 2000-04-12 21:40:29 cg Exp $'
100
d09e51d14901 project changeSet fixes
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
   819
! !