MethodCategoryChange.st
author Claus Gittinger <cg@exept.de>
Tue, 22 Aug 2000 21:57:35 +0200
changeset 957 54dade11e57f
parent 852 1acd7d3ed3fc
child 964 64282b5e5c48
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25
claus
parents: 15
diff changeset
     1
"
claus
parents: 15
diff changeset
     2
 COPYRIGHT (c) 1993 by Claus Gittinger
claus
parents: 15
diff changeset
     3
	       All Rights Reserved
claus
parents: 15
diff changeset
     4
claus
parents: 15
diff changeset
     5
 This software is furnished under a license and may be used
claus
parents: 15
diff changeset
     6
 only in accordance with the terms of that license and with the
claus
parents: 15
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
claus
parents: 15
diff changeset
     8
 be provided or otherwise made available to, or used by, any
claus
parents: 15
diff changeset
     9
 other person.  No title to or ownership of the software is
claus
parents: 15
diff changeset
    10
 hereby transferred.
claus
parents: 15
diff changeset
    11
"
15
639ae882da27 Initial revision
claus
parents:
diff changeset
    12
957
54dade11e57f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
    13
"{ Package: 'stx:libbasic3' }"
54dade11e57f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
    14
15
639ae882da27 Initial revision
claus
parents:
diff changeset
    15
MethodChange subclass:#MethodCategoryChange
852
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    16
	instanceVariableNames:''
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    17
	classVariableNames:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    18
	poolDictionaries:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    19
	category:'System-Changes'
15
639ae882da27 Initial revision
claus
parents:
diff changeset
    20
!
639ae882da27 Initial revision
claus
parents:
diff changeset
    21
25
claus
parents: 15
diff changeset
    22
!MethodCategoryChange class methodsFor:'documentation'!
claus
parents: 15
diff changeset
    23
claus
parents: 15
diff changeset
    24
copyright
claus
parents: 15
diff changeset
    25
"
claus
parents: 15
diff changeset
    26
 COPYRIGHT (c) 1993 by Claus Gittinger
claus
parents: 15
diff changeset
    27
	       All Rights Reserved
claus
parents: 15
diff changeset
    28
claus
parents: 15
diff changeset
    29
 This software is furnished under a license and may be used
claus
parents: 15
diff changeset
    30
 only in accordance with the terms of that license and with the
claus
parents: 15
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
claus
parents: 15
diff changeset
    32
 be provided or otherwise made available to, or used by, any
claus
parents: 15
diff changeset
    33
 other person.  No title to or ownership of the software is
claus
parents: 15
diff changeset
    34
 hereby transferred.
claus
parents: 15
diff changeset
    35
"
claus
parents: 15
diff changeset
    36
!
claus
parents: 15
diff changeset
    37
45
claus
parents: 39
diff changeset
    38
documentation
claus
parents: 39
diff changeset
    39
"
claus
parents: 39
diff changeset
    40
    instances represent method-category changes (as done in the browser). 
claus
parents: 39
diff changeset
    41
    They are typically held in a ChangeSet.
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    42
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    43
    [author:]
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    44
        Claus Gittinger
45
claus
parents: 39
diff changeset
    45
"
25
claus
parents: 15
diff changeset
    46
! !
claus
parents: 15
diff changeset
    47
15
639ae882da27 Initial revision
claus
parents:
diff changeset
    48
!MethodCategoryChange class methodsFor:'instance creation'!
639ae882da27 Initial revision
claus
parents:
diff changeset
    49
639ae882da27 Initial revision
claus
parents:
diff changeset
    50
class:cls selector:sel category:cat 
639ae882da27 Initial revision
claus
parents:
diff changeset
    51
    ^ self basicNew class:cls selector:sel category:cat
639ae882da27 Initial revision
claus
parents:
diff changeset
    52
639ae882da27 Initial revision
claus
parents:
diff changeset
    53
639ae882da27 Initial revision
claus
parents:
diff changeset
    54
! !
639ae882da27 Initial revision
claus
parents:
diff changeset
    55
639ae882da27 Initial revision
claus
parents:
diff changeset
    56
!MethodCategoryChange methodsFor:'accessing'!
639ae882da27 Initial revision
claus
parents:
diff changeset
    57
639ae882da27 Initial revision
claus
parents:
diff changeset
    58
class:cls selector:sel category:cat
639ae882da27 Initial revision
claus
parents:
diff changeset
    59
    className := cls name.
639ae882da27 Initial revision
claus
parents:
diff changeset
    60
    selector := sel.
852
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    61
    methodCategory := cat
15
639ae882da27 Initial revision
claus
parents:
diff changeset
    62
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
    63
!
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
    64
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    65
className:clsName selector:sel category:cat
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    66
    className := clsName.
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    67
    selector := sel.
852
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    68
    methodCategory := cat
654
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    69
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    70
    "Created: / 16.2.1998 / 14:14:16 / cg"
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    71
!
edeb63d98088 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    72
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
    73
source
852
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    74
    ^ '(' , className , ' compiledMethodAt:#' , selector , ') category:' , methodCategory storeString
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    75
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    76
! !
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    77
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    78
!MethodCategoryChange methodsFor:'applying'!
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    79
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    80
apply
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    81
    "apply the change"
85
c354e2f81394 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 68
diff changeset
    82
852
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    83
    |cls mthd|
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    84
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    85
    cls := self changeClass.
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    86
    mthd := self changeMethod.
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    87
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    88
    mthd category:methodCategory asSymbol.
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    89
    cls changed:#organization with:self changeSelector.
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    90
    mthd changed:#category.
1acd7d3ed3fc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    91
    cls addChangeRecordForMethodCategory:mthd category:methodCategory.
15
639ae882da27 Initial revision
claus
parents:
diff changeset
    92
! !
639ae882da27 Initial revision
claus
parents:
diff changeset
    93
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    94
!MethodCategoryChange class methodsFor:'documentation'!
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    95
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    96
version
957
54dade11e57f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
    97
    ^ '$Header: /cvs/stx/stx/libbasic3/MethodCategoryChange.st,v 1.11 2000-08-22 19:57:29 cg Exp $'
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 85
diff changeset
    98
! !