7446
|
1 |
"{ Package: 'stx:libtool' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Tools }"
|
|
4 |
|
|
5 |
ToDoListEntry subclass:#CompilerWarningToDoListEntry
|
|
6 |
instanceVariableNames:'checkAction className class selector equalityParameter'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Interface-Smalltalk-ToDo'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!CompilerWarningToDoListEntry methodsFor:'accessing'!
|
|
14 |
|
|
15 |
className
|
|
16 |
^ className
|
|
17 |
|
|
18 |
"Created: / 22-10-2006 / 01:39:43 / cg"
|
|
19 |
!
|
|
20 |
|
|
21 |
className:classNameArg selector:selectorArg checkAction:checkActionArg equalityParameter:equalityParameterArg
|
|
22 |
checkAction := checkActionArg.
|
|
23 |
className := classNameArg.
|
|
24 |
selector := selectorArg.
|
|
25 |
equalityParameter := equalityParameterArg.
|
|
26 |
|
|
27 |
"Created: / 22-10-2006 / 01:38:26 / cg"
|
|
28 |
!
|
|
29 |
|
|
30 |
equalityParameter
|
|
31 |
^ equalityParameter
|
|
32 |
|
|
33 |
"Created: / 21-10-2006 / 21:57:01 / cg"
|
|
34 |
!
|
|
35 |
|
|
36 |
methodOrClassName
|
|
37 |
selector isNil ifTrue:[^ className ].
|
|
38 |
^ className,' ',selector
|
|
39 |
|
|
40 |
"Created: / 22-10-2006 / 11:05:21 / cg"
|
|
41 |
!
|
|
42 |
|
|
43 |
problemClass
|
|
44 |
^ Smalltalk classNamed:className
|
|
45 |
|
|
46 |
"Created: / 21-10-2006 / 21:50:38 / cg"
|
|
47 |
"Modified: / 22-10-2006 / 01:39:39 / cg"
|
|
48 |
!
|
|
49 |
|
|
50 |
problemClassName
|
|
51 |
^ className
|
|
52 |
|
|
53 |
"Created: / 22-10-2006 / 01:40:11 / cg"
|
|
54 |
!
|
|
55 |
|
|
56 |
problemMethod
|
|
57 |
|cls|
|
|
58 |
|
|
59 |
selector isNil ifTrue:[^ nil].
|
|
60 |
|
|
61 |
cls := self problemClass.
|
|
62 |
cls isNil ifTrue:[^ nil].
|
|
63 |
|
|
64 |
^ cls compiledMethodAt:selector
|
|
65 |
|
|
66 |
"Created: / 22-10-2006 / 02:42:39 / cg"
|
|
67 |
!
|
|
68 |
|
|
69 |
problemSelector
|
|
70 |
^ selector
|
|
71 |
|
|
72 |
"Created: / 21-10-2006 / 21:50:58 / cg"
|
|
73 |
!
|
|
74 |
|
|
75 |
update:something with:aParameter from:changedObject
|
|
76 |
self revalidate.
|
|
77 |
|
|
78 |
"Created: / 21-10-2006 / 21:28:35 / cg"
|
|
79 |
! !
|
|
80 |
|
|
81 |
!CompilerWarningToDoListEntry methodsFor:'duplicate detection'!
|
|
82 |
|
|
83 |
sameAs:anotherEntry
|
|
84 |
^ anotherEntry sameAsCompilerWarningToDoListEntry:self
|
|
85 |
|
|
86 |
"Created: / 21-10-2006 / 21:38:15 / cg"
|
|
87 |
!
|
|
88 |
|
|
89 |
sameAsCompilerWarningToDoListEntry:anotherEntry
|
|
90 |
anotherEntry problemClassName = className ifFalse:[^ false].
|
|
91 |
anotherEntry problemSelector = selector ifFalse:[^ false].
|
|
92 |
anotherEntry equalityParameter = equalityParameter ifFalse:[^ false].
|
|
93 |
^ true
|
|
94 |
|
|
95 |
"Created: / 21-10-2006 / 21:41:57 / cg"
|
|
96 |
"Modified: / 22-10-2006 / 01:40:03 / cg"
|
|
97 |
! !
|
|
98 |
|
|
99 |
!CompilerWarningToDoListEntry methodsFor:'misc'!
|
|
100 |
|
|
101 |
browse
|
|
102 |
UserPreferences browserClass
|
|
103 |
openInClass:(self problemClass) selector:selector
|
|
104 |
|
|
105 |
"Created: / 22-10-2006 / 01:38:11 / cg"
|
|
106 |
! !
|
|
107 |
|
|
108 |
!CompilerWarningToDoListEntry methodsFor:'validation'!
|
|
109 |
|
|
110 |
checkIfClassIsStillValid
|
|
111 |
className notNil ifTrue:[
|
|
112 |
(Smalltalk classNamed:className) isNil ifTrue:[^ false].
|
|
113 |
].
|
|
114 |
^ true
|
|
115 |
|
|
116 |
"Created: / 21-10-2006 / 21:58:26 / cg"
|
|
117 |
"Modified: / 22-10-2006 / 01:41:53 / cg"
|
|
118 |
!
|
|
119 |
|
|
120 |
checkIfSelectorIsStillValid
|
|
121 |
selector notNil ifTrue:[
|
|
122 |
(self problemClass compiledMethodAt:selector) isNil ifTrue:[^ false].
|
|
123 |
].
|
|
124 |
^ true
|
|
125 |
|
|
126 |
"Created: / 21-10-2006 / 21:58:44 / cg"
|
|
127 |
"Modified: / 22-10-2006 / 01:40:40 / cg"
|
|
128 |
!
|
|
129 |
|
|
130 |
checkIfStillValid
|
|
131 |
self checkIfClassIsStillValid ifFalse:[^ false].
|
|
132 |
self checkIfSelectorIsStillValid ifFalse:[^ false].
|
|
133 |
|
|
134 |
^ (checkAction value:self)
|
|
135 |
|
|
136 |
"Created: / 21-10-2006 / 21:31:27 / cg"
|
|
137 |
"Modified: / 21-10-2006 / 23:10:33 / cg"
|
|
138 |
! !
|
|
139 |
|
|
140 |
!CompilerWarningToDoListEntry class methodsFor:'documentation'!
|
|
141 |
|
|
142 |
version
|
|
143 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CompilerWarningToDoListEntry.st,v 1.1 2006-10-23 08:58:01 cg Exp $'
|
|
144 |
! !
|