author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 03 Dec 2012 17:37:49 +0000 | |
branch | jv |
changeset 12311 | 5791eff52dd4 |
parent 12308 | 5d9291c0fc27 |
child 12314 | 0cbf76168690 |
permissions | -rw-r--r-- |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
COPYRIGHT (c) 2000 by eXept Software AG |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
3 |
All Rights Reserved |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
4 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
This software is furnished under a license and may be used |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
only in accordance with the terms of that license and with the |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
inclusion of the above copyright notice. This software may not |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
be provided or otherwise made available to, or used by, any |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
other person. No title to or ownership of the software is |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
hereby transferred. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
"{ Package: 'stx:libtool' }" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
14 |
"{ NameSpace: Tools }" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
15 |
|
12311 | 16 |
BrowserList subclass:#MethodList |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
instanceVariableNames:'classes selectedMethodNameIndices methodList lastSelectedMethods |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
browserNameList variableFilter filterClassVars updateProcess |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
lastShowClass lastShowCategory lastShowClassFirst |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
showMethodInheritance lastMethodClass lastMethodClassesSubclasses |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
21 |
classAndSelectorsRedefinedBySubclassesOfClass showClass |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
22 |
showMethodComplexity showMethodTypeIcon |
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
23 |
showImageResourceMethodsImages showSyntheticMethods' |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
classVariableNames:'ShowComplexityValue' |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
poolDictionaries:'' |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
category:'Interface-Browsers-New' |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
!MethodList class methodsFor:'documentation'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
copyright |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
COPYRIGHT (c) 2000 by eXept Software AG |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
34 |
All Rights Reserved |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
This software is furnished under a license and may be used |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
37 |
only in accordance with the terms of that license and with the |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
inclusion of the above copyright notice. This software may not |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
be provided or otherwise made available to, or used by, any |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
40 |
other person. No title to or ownership of the software is |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
41 |
hereby transferred. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
" |
12308 | 43 |
! |
44 |
||
45 |
documentation |
|
46 |
" |
|
47 |
I implement the method list in the new system browser |
|
48 |
" |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
50 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
!MethodList class methodsFor:'interface specs'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
52 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
53 |
singleMethodWindowSpec |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
54 |
"This resource specification was automatically generated |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
55 |
by the UIPainter of ST/X." |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
56 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
57 |
"Do not manually edit this!! If it is corrupted, |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
58 |
the UIPainter may not be able to read the specification." |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
59 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
60 |
" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
61 |
UIPainter new openOnClass:MethodList andSelector:#singleMethodWindowSpec |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
62 |
MethodList new openInterface:#singleMethodWindowSpec |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
63 |
" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
<resource: #canvas> |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
66 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
67 |
^ |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
68 |
#(#FullSpec |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
69 |
#name: #singleMethodWindowSpec |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
70 |
#window: |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
71 |
#(#WindowSpec |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
72 |
#label: 'SingleSelectorList' |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
73 |
#name: 'SingleSelectorList' |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
74 |
#min: #(#Point 0 0) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
75 |
#max: #(#Point 1024 721) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
76 |
#bounds: #(#Rectangle 12 22 312 322) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
77 |
) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
78 |
#component: |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
79 |
#(#SpecCollection |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
80 |
#collection: #( |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
81 |
#(#LabelSpec |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
82 |
#label: 'MethodName' |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
83 |
#name: 'MethodLabel' |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
84 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 25 0) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
85 |
#translateLabel: true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
86 |
#labelChannel: #methodLabelHolder |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
87 |
#menu: #menuHolder |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
88 |
) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
89 |
) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
90 |
|
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
91 |
) |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
92 |
) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
93 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
94 |
"Modified: / 1.3.2000 / 20:50:15 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
95 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
96 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
97 |
windowSpec |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
98 |
"This resource specification was automatically generated |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
99 |
by the UIPainter of ST/X." |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
100 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
101 |
"Do not manually edit this!! If it is corrupted, |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
102 |
the UIPainter may not be able to read the specification." |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
103 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
UIPainter new openOnClass:Tools::MethodList andSelector:#windowSpec |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
Tools::MethodList new openInterface:#windowSpec |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
107 |
Tools::MethodList open |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
<resource: #canvas> |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
112 |
^ |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
113 |
#(FullSpec |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
114 |
name: windowSpec |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
115 |
window: |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
116 |
(WindowSpec |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
117 |
label: 'SelectorList' |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
118 |
name: 'SelectorList' |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
119 |
min: (Point 0 0) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
120 |
bounds: (Rectangle 0 0 300 300) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
121 |
) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
122 |
component: |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
(SpecCollection |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
124 |
collection: ( |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
125 |
(SequenceViewSpec |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
126 |
name: 'List' |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
127 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
128 |
tabable: true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
129 |
model: selectedMethodNameIndices |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
130 |
menu: menuHolder |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
131 |
hasHorizontalScrollBar: true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
132 |
hasVerticalScrollBar: true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
133 |
miniScrollerHorizontal: true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
134 |
isMultiSelect: true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
135 |
valueChangeSelector: selectionChangedByClick |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
136 |
useIndex: true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
137 |
sequenceList: browserNameList |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
138 |
doubleClickChannel: doubleClickChannel |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
139 |
properties: |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
140 |
(PropertyListDictionary |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
141 |
canDropSelector: canDropContext: |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
142 |
dragArgument: nil |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
143 |
dropArgument: nil |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
144 |
dropSelector: doDropContext: |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
145 |
) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
146 |
) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
147 |
) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
148 |
|
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
149 |
) |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
150 |
) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
151 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
152 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
153 |
!MethodList class methodsFor:'plugIn spec'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
154 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
155 |
aspectSelectors |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
156 |
"This resource specification was automatically generated |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
157 |
by the UIPainter of ST/X." |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
158 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
159 |
"Do not manually edit this. If it is corrupted, |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
160 |
the UIPainter may not be able to read the specification." |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
161 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
162 |
"Return a description of exported aspects; |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
163 |
these can be connected to aspects of an embedding application |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
164 |
(if this app is embedded in a subCanvas)." |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
165 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
166 |
^ #( |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
167 |
#(doubleClickChannel action) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
168 |
#filterClassVars |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
169 |
#forceGeneratorTrigger |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
170 |
#immediateUpdate |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
171 |
#inGeneratorHolder |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
172 |
#menuHolder |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
173 |
#methodCategoryHolder |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
174 |
#packageFilter |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
175 |
#selectedMethods |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
176 |
#selectionChangeCondition |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
177 |
#showCoverageInformation |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
178 |
#showImageResourceMethodsImages |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
179 |
#showMethodComplexity |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
180 |
#showMethodInheritance |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
181 |
#showMethodTypeIcon |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
182 |
#sortBy |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
183 |
#updateTrigger |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
184 |
#variableFilter |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
185 |
#showSyntheticMethods |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
186 |
). |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
187 |
|
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
188 |
"Modified: / 13-04-2012 / 16:11:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
189 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
190 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
191 |
!MethodList methodsFor:'aspects'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
192 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
193 |
browserNameList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
194 |
browserNameList isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
195 |
browserNameList := List new. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
196 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
197 |
^ browserNameList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
198 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
199 |
"Modified: / 31.1.2000 / 00:42:44 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
200 |
"Created: / 5.2.2000 / 22:38:32 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
201 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
202 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
203 |
defaultSlaveModeValue |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
204 |
^ false. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
205 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
206 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
207 |
filterClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
208 |
filterClassVars isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
209 |
filterClassVars := false asValue. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
210 |
filterClassVars addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
211 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
212 |
^ filterClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
213 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
214 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
215 |
filterClassVars:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
216 |
filterClassVars notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
217 |
filterClassVars removeDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
218 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
219 |
filterClassVars := aValueHolder. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
220 |
filterClassVars notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
221 |
filterClassVars addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
222 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
223 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
224 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
225 |
methodLabelHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
226 |
^ self pseudoListLabelHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
227 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
228 |
"Created: / 1.3.2000 / 20:50:07 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
229 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
230 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
231 |
methodList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
232 |
^ methodList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
233 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
234 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
235 |
selectedMethodNameIndices |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
236 |
selectedMethodNameIndices isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
237 |
selectedMethodNameIndices := ValueHolder new. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
238 |
selectedMethodNameIndices addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
239 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
240 |
^ selectedMethodNameIndices. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
241 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
242 |
"Modified: / 5.2.2000 / 00:31:48 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
243 |
"Created: / 5.2.2000 / 22:59:31 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
244 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
245 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
246 |
selectedMethods |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
247 |
^ self selectionHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
248 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
249 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
250 |
selectedMethods:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
251 |
^ self selectionHolder:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
252 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
253 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
254 |
showImageResourceMethodsImages |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
255 |
showImageResourceMethodsImages isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
256 |
showImageResourceMethodsImages := false asValue. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
257 |
showImageResourceMethodsImages addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
258 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
259 |
^ showImageResourceMethodsImages |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
260 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
261 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
262 |
showImageResourceMethodsImages:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
263 |
showImageResourceMethodsImages notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
264 |
showImageResourceMethodsImages removeDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
265 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
266 |
showImageResourceMethodsImages := aValueHolder. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
267 |
showImageResourceMethodsImages notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
268 |
showImageResourceMethodsImages addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
269 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
270 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
271 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
272 |
showMethodComplexity |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
273 |
showMethodComplexity isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
274 |
showMethodComplexity := false asValue. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
275 |
showMethodComplexity addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
276 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
277 |
^ showMethodComplexity |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
278 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
279 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
280 |
showMethodComplexity:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
281 |
showMethodComplexity notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
282 |
showMethodComplexity removeDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
283 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
284 |
showMethodComplexity := aValueHolder. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
285 |
showMethodComplexity notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
286 |
showMethodComplexity addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
287 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
288 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
289 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
290 |
showMethodInheritance |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
291 |
showMethodInheritance isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
292 |
showMethodInheritance := false asValue. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
293 |
showMethodInheritance addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
294 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
295 |
^ showMethodInheritance |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
296 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
297 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
298 |
showMethodInheritance:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
299 |
showMethodInheritance notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
300 |
showMethodInheritance removeDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
301 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
302 |
showMethodInheritance := aValueHolder. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
303 |
showMethodInheritance notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
304 |
showMethodInheritance addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
305 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
306 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
307 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
308 |
showMethodTypeIcon |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
309 |
showMethodTypeIcon isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
310 |
showMethodTypeIcon := true asValue. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
311 |
showMethodTypeIcon addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
312 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
313 |
^ showMethodTypeIcon |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
314 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
315 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
316 |
showMethodTypeIcon:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
317 |
showMethodTypeIcon notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
318 |
showMethodTypeIcon removeDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
319 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
320 |
showMethodTypeIcon := aValueHolder. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
321 |
showMethodTypeIcon notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
322 |
showMethodTypeIcon addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
323 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
324 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
325 |
|
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
326 |
showSyntheticMethods |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
327 |
showSyntheticMethods isNil ifTrue:[ |
12308 | 328 |
showSyntheticMethods := false asValue. |
329 |
showSyntheticMethods addDependent:self |
|
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
330 |
]. |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
331 |
^ showSyntheticMethods |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
332 |
|
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
333 |
"Created: / 13-04-2012 / 16:03:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
334 |
! |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
335 |
|
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
336 |
showSyntheticMethods:aValueHolder |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
337 |
showSyntheticMethods notNil ifTrue:[ |
12308 | 338 |
showSyntheticMethods removeDependent:self |
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
339 |
]. |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
340 |
showSyntheticMethods := aValueHolder. |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
341 |
showSyntheticMethods notNil ifTrue:[ |
12308 | 342 |
showSyntheticMethods addDependent:self |
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
343 |
]. |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
344 |
|
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
345 |
"Created: / 13-04-2012 / 16:03:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
346 |
! |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
347 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
348 |
variableFilter |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
349 |
variableFilter isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
350 |
variableFilter := nil asValue. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
351 |
variableFilter addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
352 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
353 |
^ variableFilter |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
354 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
355 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
356 |
variableFilter:aValueHolder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
357 |
variableFilter notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
358 |
variableFilter removeDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
359 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
360 |
variableFilter := aValueHolder. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
361 |
variableFilter notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
362 |
variableFilter addDependent:self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
363 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
364 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
365 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
366 |
!MethodList methodsFor:'change & update'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
367 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
368 |
delayedUpdate:something with:aParameter from:changedObject |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
369 |
|cls sel oldMethod newMethod methods newSelection |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
370 |
selectionHolder selection needSelectionChange| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
371 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
372 |
selectionHolder := self selectedMethods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
373 |
selection := selectionHolder value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
374 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
375 |
changedObject == Smalltalk ifTrue:[ |
12308 | 376 |
classes notNil ifTrue:[ |
377 |
something == #classDefinition ifTrue:[ |
|
378 |
cls := aParameter. |
|
379 |
(classes contains:[:aClass | aClass name == cls name]) ifFalse:[ |
|
380 |
^ self "/ I dont care for that class |
|
381 |
]. |
|
382 |
classes := classes collect:[:eachClass | eachClass isMeta ifTrue:[ |
|
383 |
(Smalltalk at:eachClass theNonMetaclass name) class |
|
384 |
] ifFalse:[ |
|
385 |
Smalltalk at:eachClass name |
|
386 |
] |
|
387 |
]. |
|
388 |
self invalidateList. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
389 |
"/ self updateList. |
12308 | 390 |
^ self. |
391 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
392 |
|
12308 | 393 |
something == #methodCategory ifTrue:[ |
394 |
"/ ignore here - methodCategoryList will tell me if required |
|
395 |
^ self |
|
396 |
]. |
|
397 |
(something == #classOrganization |
|
398 |
or:[ something == #methodCategoryAdded |
|
399 |
or:[ something == #methodCategoryRemoved |
|
400 |
or:[ something == #methodCategoriesRemoved |
|
401 |
or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[ |
|
402 |
"/ ignore here - methodCategoryList will tell me if required |
|
403 |
^ self |
|
404 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
405 |
|
12308 | 406 |
(something == #methodInClass |
407 |
or:[something == #methodCoverageInfo]) ifTrue:[ |
|
408 |
"/ a method has been added/changed |
|
409 |
cls := aParameter at:1. |
|
410 |
(classes includesIdentical:cls) ifTrue:[ |
|
411 |
sel := aParameter at:2. |
|
412 |
oldMethod := aParameter at:3. |
|
413 |
newMethod := cls compiledMethodAt:sel. |
|
414 |
(oldMethod notNil and:[newMethod notNil]) ifTrue:[ |
|
415 |
"a method was changed & acccepted; |
|
416 |
No need for a rescan of the methodDictionary; |
|
417 |
however, ensure that the refs to the old method are updated |
|
418 |
" |
|
419 |
methods := selection. |
|
420 |
methods size > 0 ifTrue:[ |
|
421 |
(methods includesIdentical:oldMethod) ifTrue:[ |
|
422 |
needSelectionChange := true. |
|
423 |
] |
|
424 |
]. |
|
425 |
methodList replaceAllIdentical:oldMethod with:newMethod. |
|
426 |
lastSelectedMethods notNil ifTrue:[ |
|
427 |
lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
428 |
]. |
|
429 |
methods size > 0 ifTrue:[ |
|
430 |
methods := methods asOrderedCollection. |
|
431 |
methods replaceAllIdentical:oldMethod with:newMethod. |
|
432 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
433 |
|
12308 | 434 |
needSelectionChange == true ifTrue:[ |
435 |
selectionHolder setValue:methods. |
|
436 |
"/ self enqueueDelayedMethodsSelectionChanged. |
|
437 |
"/ need this to inform my browser that method was changed |
|
438 |
"/ by someone else. |
|
439 |
selectionHolder changed. |
|
440 |
]. |
|
441 |
"/JV@2011-07-22: Update always - I need to see immediately that |
|
442 |
"/the method has changed. Also, add/remove breakpoint etc. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
443 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
444 |
"/ (variableFilter value size > 0 |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
445 |
"/ or:[oldMethod package ~= newMethod package |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
446 |
"/ or:[oldMethod resources ~= newMethod resources |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
447 |
"/ or:[showMethodComplexity value == true]]]) |
12308 | 448 |
self autoUpdateOnChange ifTrue:[ |
449 |
"/ only update that method's entry |
|
450 |
self updateListEntryFor:newMethod. |
|
451 |
"/ sigh - must invalidate |
|
452 |
"/ self invalidateList. |
|
453 |
]. |
|
454 |
^ self. |
|
455 |
]. |
|
456 |
"/ method was added - update the methodList |
|
457 |
"/ Q: is this needed (methodCategoryList should send me a new inGenerator) |
|
458 |
self invalidateList. |
|
459 |
]. |
|
460 |
^ self. |
|
461 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
462 |
|
12308 | 463 |
something == #methodInClassRemoved ifTrue:[ |
464 |
cls := aParameter at:1. |
|
465 |
(classes includesIdentical:cls) ifTrue:[ |
|
466 |
sel := aParameter at:2. |
|
467 |
"/ method was removed - update the methodList |
|
468 |
"/ Q: is this needed (methodCategoryList should send me a new inGenerator) |
|
469 |
self invalidateList. |
|
470 |
]. |
|
471 |
^ self. |
|
472 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
473 |
|
12308 | 474 |
something == #methodCoverageInfo ifTrue:[ |
475 |
"/ already checked if it is one of my classes |
|
476 |
self updateListEntryFor:aParameter. |
|
12262 | 477 |
"/ self enqueueDelayedUpdateList. |
478 |
"/ listValid == true ifTrue:[ |
|
479 |
"/ self invalidateList. |
|
480 |
"/ ]. |
|
12308 | 481 |
^ self. |
482 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
483 |
|
12308 | 484 |
(something == #methodTrap |
485 |
or:[ something == #lastTestRunResult |
|
486 |
or:[ something == #privacyOfMethod ]]) ifTrue:[ |
|
487 |
cls := aParameter at:1. |
|
488 |
sel := aParameter at:2. |
|
489 |
(classes includesIdentical:cls) ifFalse:[ ^ self]. |
|
12254 | 490 |
|
12308 | 491 |
newMethod := cls compiledMethodAt:sel. |
492 |
newMethod isNil ifTrue:[ |
|
493 |
self invalidateList. |
|
494 |
^ self |
|
495 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
496 |
|
12308 | 497 |
((something == #privacyOfMethod) or:[something == #lastTestRunResult]) ifTrue:[ |
498 |
self updateListEntryFor:newMethod. |
|
499 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
500 |
|
12308 | 501 |
(something == #methodTrap) ifTrue:[ |
502 |
newMethod isWrapped ifTrue:[ |
|
503 |
oldMethod := newMethod originalMethod |
|
504 |
] ifFalse:[ |
|
505 |
selection size > 0 ifTrue:[ |
|
506 |
oldMethod := selection detect:[:each | each isWrapped and:[each originalMethod == newMethod]] ifNone:nil. |
|
507 |
] |
|
508 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
509 |
|
12308 | 510 |
selection size > 0 ifTrue:[ |
511 |
(selection includesIdentical:oldMethod) ifTrue:[ |
|
512 |
needSelectionChange := true. |
|
513 |
] |
|
514 |
]. |
|
515 |
methodList replaceAllIdentical:oldMethod with:newMethod. |
|
516 |
lastSelectedMethods notNil ifTrue:[ |
|
517 |
lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
518 |
]. |
|
519 |
selection size > 0 ifTrue:[ |
|
520 |
selection := selection asOrderedCollection. |
|
521 |
selection replaceAllIdentical:oldMethod with:newMethod. |
|
522 |
]. |
|
523 |
needSelectionChange == true ifTrue:[ |
|
524 |
selectionHolder changed. |
|
525 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
526 |
|
12308 | 527 |
"/ actually, could just change that single item ... |
528 |
"/ ... might be cheaper, if list is huge. |
|
529 |
"/ only update that methods entry |
|
530 |
self updateListEntryFor:newMethod. |
|
531 |
"/ self invalidateList. |
|
532 |
]. |
|
533 |
^ self |
|
534 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
535 |
|
12308 | 536 |
(something == #projectOrganization |
537 |
or:[something == #lastTestRunResult]) ifTrue:[ |
|
538 |
aParameter notNil ifTrue:[ |
|
539 |
cls := aParameter at:1. |
|
540 |
cls notNil ifTrue:[ |
|
541 |
((classes includesIdentical:cls theNonMetaclass) |
|
542 |
or:[(classes includesIdentical:cls theMetaclass)]) ifTrue:[ |
|
543 |
self invalidateList. |
|
544 |
]. |
|
545 |
]. |
|
546 |
] ifFalse:[ |
|
547 |
self invalidateList. |
|
548 |
]. |
|
549 |
^ self |
|
550 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
551 |
|
12308 | 552 |
"/ everything else is ignored |
553 |
"/ self halt. |
|
554 |
]. |
|
555 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
556 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
557 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
558 |
"/ something == #organization ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
559 |
"/self halt:'no longer'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
560 |
"/^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
561 |
"/ "/ a methods cateory has changed |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
562 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
563 |
"/ aParameter isSymbol ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
564 |
"/ "/ a method with a new category |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
565 |
"/ (self methodList includesIdentical:(changedObject compiledMethodAt:aParameter)) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
566 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
567 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
568 |
"/ ^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
569 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
570 |
"/ "/ a new category (no method yet) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
571 |
"/ self invalidateList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
572 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
573 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
574 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
575 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
576 |
"/ something == #methodDictionary ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
577 |
"/self halt:'no longer'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
578 |
"/^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
579 |
"/ "/ a method has been added/removed |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
580 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
581 |
"/ aParameter isArray ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
582 |
"/ sel := aParameter at:1. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
583 |
"/ oldMethod := aParameter at:2. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
584 |
"/ newMethod := changedObject compiledMethodAt:sel. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
585 |
"/ oldMethod notNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
586 |
"/ "a method was changed & acccepted; |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
587 |
"/ No need for a rescan of the methodDictionary; |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
588 |
"/ however, ensure that the refs to the old method are updated |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
589 |
"/ " |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
590 |
"/ methods := selection. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
591 |
"/ methods size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
592 |
"/ (methods includesIdentical:oldMethod) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
593 |
"/ needSelectionChange := true. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
594 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
595 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
596 |
"/ methodList replaceAllIdentical:oldMethod with:newMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
597 |
"/ lastSelectedMethods notNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
598 |
"/ lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
599 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
600 |
"/ methods size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
601 |
"/ methods := methods asOrderedCollection. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
602 |
"/ methods replaceAllIdentical:oldMethod with:newMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
603 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
604 |
"/ needSelectionChange == true ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
605 |
"/ selectionHolder setValue:methods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
606 |
"/ selectionHolder changed. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
607 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
608 |
"/ ^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
609 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
610 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
611 |
"/ "/ class has changed must update the methodList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
612 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
613 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
614 |
"/ ^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
615 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
616 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
617 |
"/ something == #projectOrganization ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
618 |
"/ ((classes includesIdentical:changedObject theNonMetaclass) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
619 |
"/ or:[(classes includesIdentical:changedObject theMetaclass)]) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
620 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
621 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
622 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
623 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
624 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
625 |
changedObject == sortBy ifTrue:[ |
12308 | 626 |
listValid ~~ true ifTrue:[ "/ could be nil |
627 |
inGeneratorHolder value isNil ifTrue:[ |
|
628 |
"/ ok, no need to react on that one |
|
629 |
"/ (will invalidate anyway, once I have more info at hand) |
|
630 |
^ self |
|
631 |
]. |
|
632 |
]. |
|
633 |
self invalidateList. |
|
634 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
635 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
636 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
637 |
(changedObject == variableFilter |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
638 |
or:[changedObject == filterClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
639 |
or:[changedObject == showMethodInheritance |
12308 | 640 |
or:[changedObject == showMethodComplexity]]]) ifTrue:[ |
641 |
self invalidateList. |
|
642 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
643 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
644 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
645 |
changedObject == selectedMethodNameIndices ifTrue:[ |
12308 | 646 |
newSelection := self selectedMethodNameIndices value collect:[:idx | methodList at:idx]. |
647 |
newSelection ~= selection ifTrue:[ |
|
648 |
selectionHolder value:newSelection. |
|
649 |
lastSelectedMethods := newSelection. |
|
650 |
lastSelectedMethods notNil ifTrue:[ |
|
651 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
|
652 |
]. |
|
653 |
] ifFalse:[ |
|
654 |
"/ a reselect - force update |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
655 |
"/ selection size == 1 ifTrue:[ |
12308 | 656 |
selectionHolder setValue:newSelection. |
657 |
selectionHolder changed:#value. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
658 |
"/ ]. |
12308 | 659 |
]. |
660 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
661 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
662 |
changedObject == selectionHolder ifTrue:[ |
12308 | 663 |
self selectedMethodsChanged. |
664 |
lastSelectedMethods := selectionHolder value. |
|
665 |
lastSelectedMethods notNil ifTrue:[ |
|
666 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
|
667 |
]. |
|
668 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
669 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
670 |
"/ something == #methodTrap ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
671 |
"/self halt:'no longer'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
672 |
"/^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
673 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
674 |
"/ newMethod := changedObject compiledMethodAt:aParameter. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
675 |
"/ newMethod isNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
676 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
677 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
678 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
679 |
"/ newMethod isWrapped ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
680 |
"/ oldMethod := newMethod originalMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
681 |
"/ ] ifFalse:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
682 |
"/ selection size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
683 |
"/ oldMethod := selection detect:[:each | each isWrapped and:[each originalMethod == newMethod]] ifNone:nil. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
684 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
685 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
686 |
"/ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
687 |
"/ selection size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
688 |
"/ (selection includesIdentical:oldMethod) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
689 |
"/ needSelectionChange := true. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
690 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
691 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
692 |
"/"/ methodList replaceAllIdentical:oldMethod with:newMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
693 |
"/ lastSelectedMethods notNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
694 |
"/ lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
695 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
696 |
"/ selection size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
697 |
"/ selection := selection asOrderedCollection. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
698 |
"/ selection replaceAllIdentical:oldMethod with:newMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
699 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
700 |
"/ needSelectionChange == true ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
701 |
"/ selectionHolder changed. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
702 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
703 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
704 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
705 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
706 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
707 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
708 |
super delayedUpdate:something with:aParameter from:changedObject |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
709 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
710 |
"Created: / 05-02-2000 / 13:42:14 / cg" |
12308 | 711 |
"Modified: / 22-07-2011 / 18:12:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12262 | 712 |
"Modified: / 05-06-2012 / 23:47:15 / cg" |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
713 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
714 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
715 |
selectedMethodsChanged |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
716 |
"the set of selected methods has changed; |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
717 |
update the selection-index collection (for the selectionInListView)" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
718 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
719 |
|indices methods reverseMap |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
720 |
selectedMethodsHolder selectedMethods selectedMethodNameIndicesHolder| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
721 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
722 |
methods := methodList ? #(). |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
723 |
methods size == 0 ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
724 |
"/ this may happen during early startup, |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
725 |
"/ when invoked with a preset methodSelection, |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
726 |
"/ and the methodGenerator has not yet been setup |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
727 |
"/ to not clobber the selection, defer the update |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
728 |
"/ until the methodList arrives ... |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
729 |
^ self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
730 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
731 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
732 |
selectedMethodsHolder := self selectedMethods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
733 |
selectedMethods := selectedMethodsHolder value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
734 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
735 |
"/ check if all is selected (likely) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
736 |
((selectedMethods size == methodList size) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
737 |
and:[selectedMethods = methodList]) ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
738 |
indices := (1 to:selectedMethods size) |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
739 |
] ifFalse:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
740 |
selectedMethods size > 100 ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
741 |
"/ check if all is selected (likely) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
742 |
((selectedMethods size == methodList size) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
743 |
and:[selectedMethods = methodList]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
744 |
indices := (1 to:selectedMethods size) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
745 |
] ifFalse:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
746 |
"/ for big collections, generate a reverse map |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
747 |
reverseMap := IdentityDictionary new. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
748 |
methods keysAndValuesDo:[:idx :mthd | reverseMap at:mthd put:idx]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
749 |
indices := selectedMethods collect:[:eachSelectedMethod | |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
750 |
reverseMap at:eachSelectedMethod ifAbsent:0 |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
751 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
752 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
753 |
] ifFalse:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
754 |
indices := (selectedMethods ? #()) collect:[:eachSelectedMethod | |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
755 |
methods identityIndexOf:eachSelectedMethod. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
756 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
757 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
758 |
indices := indices select:[:idx | idx ~= 0]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
759 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
760 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
761 |
selectedMethodNameIndicesHolder := self selectedMethodNameIndices. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
762 |
selectedMethodNameIndicesHolder value ~= indices ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
763 |
selectedMethodNameIndicesHolder value:indices. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
764 |
] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
765 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
766 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
767 |
selectionChanged |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
768 |
|methods| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
769 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
770 |
methods := ((self selectedMethodNameIndices value) ? #()) collect:[:idx | methodList at:idx]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
771 |
methods notEmpty ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
772 |
lastSelectedMethods := methods asOrderedCollection. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
773 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
774 |
"/ to allow reselect, change my valueHolder, even if the same collection |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
775 |
"/ self selectedMethods value ~= methods ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
776 |
self selectedMethods value:methods |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
777 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
778 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
779 |
"Created: / 5.2.2000 / 13:42:14 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
780 |
"Modified: / 5.2.2000 / 23:32:20 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
781 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
782 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
783 |
selectionChangedByClick |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
784 |
"we are not interested in that - get another notification |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
785 |
via the changed valueHolder" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
786 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
787 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
788 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
789 |
update:something with:aParameter from:changedObject |
12308 | 790 |
|cls mthd mustFlushInheritanceInfo| |
791 |
||
792 |
mustFlushInheritanceInfo := true. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
793 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
794 |
"/ some can be ignored immediately |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
795 |
changedObject == Smalltalk ifTrue:[ |
12308 | 796 |
classes isNil ifTrue:[ |
797 |
^ self. |
|
798 |
]. |
|
799 |
something isNil ifTrue:[ |
|
800 |
"/ self halt "/ huh - Smalltalk changed - so what ? |
|
801 |
^ self. |
|
802 |
]. |
|
803 |
something == #classComment ifTrue:[ |
|
804 |
^ self. |
|
805 |
]. |
|
806 |
something == #classVariables ifTrue:[ |
|
807 |
^ self. |
|
808 |
]. |
|
809 |
something == #organization ifTrue:[ |
|
810 |
^ self. |
|
811 |
]. |
|
812 |
something == #methodCategory ifTrue:[ |
|
813 |
"/ ignore here - methodCategoryList will tell me if required |
|
814 |
^ self |
|
815 |
]. |
|
816 |
(something == #classOrganization |
|
817 |
or:[ something == #methodCategoryAdded |
|
818 |
or:[ something == #methodCategoryRemoved |
|
819 |
or:[ something == #methodCategoriesRemoved |
|
820 |
or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[ |
|
821 |
"/ ignore here - methodCategoryList will tell me if required |
|
822 |
^ self |
|
823 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
824 |
|
12308 | 825 |
something == #methodCoverageInfo ifTrue:[ |
826 |
self showCoverageInformation value ifFalse:[^ self]. |
|
827 |
mthd := aParameter. |
|
828 |
(classes notNil and:[classes includesIdentical:mthd mclass]) ifFalse:[ |
|
829 |
^ self "/ I don't care for that class |
|
830 |
]. |
|
831 |
mustFlushInheritanceInfo := false. |
|
832 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
833 |
|
12308 | 834 |
(something == #methodTrap |
835 |
or:[ something == #methodPrivacy |
|
836 |
or:[ something == #lastTestRunResult] ]) ifTrue:[ |
|
837 |
cls := aParameter at:1. |
|
838 |
(classes includesIdentical:cls) ifFalse:[ |
|
839 |
^ self "/ I dont care for that class |
|
840 |
]. |
|
841 |
self window shown ifFalse:[ |
|
842 |
"JV@2011-11-17: Do not break the dependency here, |
|
843 |
because then the window won't get updates once |
|
844 |
deiconified -> leads to confusing behavior (browser |
|
845 |
shows obsolete info)" |
|
846 |
"/changedObject removeDependent:self. "/ ????? |
|
847 |
self invalidateList. |
|
848 |
^ self |
|
849 |
]. |
|
850 |
mustFlushInheritanceInfo := false. |
|
851 |
]. |
|
852 |
something == #newClass ifTrue:[ |
|
853 |
^ self. |
|
854 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
855 |
|
12308 | 856 |
(something == #methodInClass |
857 |
or:[ something == #methodInClassRemoved ]) ifTrue:[ |
|
858 |
|sel| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
859 |
|
12308 | 860 |
sel := aParameter second. |
861 |
(methodList contains:[:mthd | mthd selector = sel]) ifFalse:[ |
|
862 |
mustFlushInheritanceInfo := false. |
|
863 |
]. |
|
864 |
]. |
|
865 |
||
866 |
mustFlushInheritanceInfo ifTrue:[ |
|
867 |
"/ as the organisation changes, flush my remembered redefinition-cache-info |
|
868 |
classAndSelectorsRedefinedBySubclassesOfClass := nil. |
|
869 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
870 |
|
12308 | 871 |
something == #classDefinition ifTrue:[ |
872 |
cls := aParameter. |
|
873 |
(classes contains:[:aClass | aClass name == cls name]) ifFalse:[ |
|
874 |
^ self "/ I dont care for that class |
|
875 |
]. |
|
876 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
|
877 |
^ self. |
|
878 |
]. |
|
879 |
something == #classRemove ifTrue:[ |
|
880 |
^ self. |
|
881 |
]. |
|
882 |
something == #classRename ifTrue:[ |
|
883 |
^ self. |
|
884 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
885 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
886 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
887 |
"/ these must lead to immediate update of the selectedMethods collection |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
888 |
"/ (otherwise, that collection might be updated too late, leading to |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
889 |
"/ an obsolete methods code being shown by the codeView. |
12308 | 890 |
(something == #methodInClass |
891 |
or:[ something == #methodCoverageInfo ]) ifTrue:[ |
|
892 |
"/ as the organisation changes, flush my remembered redefinition-cache-info |
|
893 |
classAndSelectorsRedefinedBySubclassesOfClass := nil. |
|
894 |
cls := aParameter at:1. |
|
895 |
(classes includesIdentical:cls) ifFalse:[ |
|
896 |
^ self "/ I dont care for that class |
|
897 |
]. |
|
898 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
|
899 |
^ self |
|
900 |
]. |
|
901 |
||
902 |
something == #coverageInfo ifTrue:[ |
|
903 |
listValid == true ifTrue:[ |
|
904 |
self enqueueDelayedUpdateList |
|
905 |
]. |
|
906 |
^ self. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
907 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
908 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
909 |
something == #methodInClassRemoved ifTrue:[ |
12308 | 910 |
cls := aParameter at:1. |
911 |
(classes includesIdentical:cls) ifFalse:[ |
|
912 |
^ self "/ I dont care for that class |
|
913 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
914 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
915 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
916 |
super update:something with:aParameter from:changedObject |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
917 |
|
12308 | 918 |
"Modified: / 17-11-2011 / 19:22:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12262 | 919 |
"Modified: / 05-06-2012 / 23:41:50 / cg" |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
920 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
921 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
922 |
!MethodList methodsFor:'drag & drop'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
923 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
924 |
canDropContext:aDropContext |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
925 |
|methods| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
926 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
927 |
aDropContext sourceWidget == aDropContext targetWidget ifTrue:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
928 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
929 |
methods := aDropContext dropObjects collect:[:obj | obj theObject]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
930 |
(methods conform:[:aMethod | aMethod isMethod]) ifFalse:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
931 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
932 |
self masterApplication theSingleSelectedClass isNil ifTrue:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
933 |
^ true |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
934 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
935 |
"Modified: / 13-09-2006 / 11:43:54 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
936 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
937 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
938 |
doDropContext:aDropContext |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
939 |
|methods browser| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
940 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
941 |
methods := aDropContext dropObjects collect:[:aDropObject | aDropObject theObject]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
942 |
(methods conform:[:something | something isMethod]) ifFalse:[^ self]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
943 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
944 |
browser := self masterApplication. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
945 |
aDropContext dragType == DropContext dragTypeCopy ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
946 |
browser |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
947 |
copyMethods:methods |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
948 |
toClass:(browser theSingleSelectedClass). |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
949 |
] ifFalse:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
950 |
browser |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
951 |
moveMethods:methods |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
952 |
toClass:(browser theSingleSelectedClass). |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
953 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
954 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
955 |
"Modified: / 13-09-2006 / 11:43:44 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
956 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
957 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
958 |
!MethodList methodsFor:'private'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
959 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
960 |
isMethodToBeShown:aMethod |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
961 |
"invoked, when we get a change for aMethod which was previously not |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
962 |
in the list (for example, if I show a filtered list). |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
963 |
Check if that single method is to be shown now. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
964 |
Used to speed up update for senders/string/implementors lists" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
965 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
966 |
|generator| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
967 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
968 |
generator := inGeneratorHolder value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
969 |
generator isNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
970 |
^ false |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
971 |
]. |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
972 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
973 |
"/ generator generates nil-selector entries |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
974 |
"/ to pass multiple-class and multiple-protocol info |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
975 |
|
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
976 |
generator do:[:cls :cat :sel :mthd | |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
977 |
mthd == aMethod ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
978 |
(mthd isSynthetic not or:[self showSyntheticMethods value]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
979 |
sel notNil ifTrue:[ |
12265 | 980 |
"/ cg: no longer filter those... |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
981 |
"/ (packageFilter value isNil |
12265 | 982 |
"/ or:[ packageFilter value includes:mthd package ]) ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
983 |
^ true |
12265 | 984 |
"/ ] |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
985 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
986 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
987 |
^ false |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
988 |
] |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
989 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
990 |
^ false |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
991 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
992 |
"Created: / 17-08-2011 / 15:03:34 / cg" |
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
993 |
"Modified: / 13-04-2012 / 17:57:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
994 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
995 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
996 |
listOfMethodNames |
12308 | 997 |
|methods entries selectorBag newNameList allClasses newClasses |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
998 |
allCategories "allSelectors" |
12308 | 999 |
generator doShowClass doShowClassFirst doShowCategory enforceClassAndProtocolInList |
12125 | 1000 |
theMethod sortByClass anyMethodToWatch mclass |
12308 | 1001 |
packageFilterValue nameListEntryForExtensions |
1002 |
suppressInheritanceInfoNow startTime| |
|
1003 |
||
1004 |
suppressInheritanceInfoNow := (showMethodInheritance value ? true) not. |
|
1005 |
startTime := Timestamp now. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1006 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1007 |
generator := inGeneratorHolder value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1008 |
generator isNil ifTrue:[ |
12308 | 1009 |
^ #() |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1010 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1011 |
allClasses := IdentitySet new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1012 |
allCategories := IdentitySet new. |
12308 | 1013 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1014 |
"/ allSelectors := Set new. |
12308 | 1015 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1016 |
newClasses := IdentitySet new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1017 |
selectorBag := Bag new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1018 |
entries := OrderedCollection new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1019 |
enforceClassAndProtocolInList := false. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1020 |
anyMethodToWatch := false. |
12265 | 1021 |
"/ no longer filter those |
1022 |
"/ packageFilterValue := packageFilter value. |
|
12125 | 1023 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1024 |
"/ generator generates nil-selector entries |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1025 |
"/ to pass multiple-class and multiple-protocol info |
12308 | 1026 |
nameListEntryForExtensions := self class nameListEntryForExtensions. |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1027 |
|
12125 | 1028 |
generator do:[:cls :cat :sel :mthd | |
12308 | 1029 |
|categoryIsExtensionsPseudoCategory| |
12125 | 1030 |
|
12308 | 1031 |
categoryIsExtensionsPseudoCategory := (cat = nameListEntryForExtensions). |
12125 | 1032 |
|
12308 | 1033 |
(cls isNil and:[ cat isNil and:[ sel isNil ] ]) ifTrue:[ |
1034 |
enforceClassAndProtocolInList := true |
|
1035 |
] ifFalse:[ |
|
1036 |
cls notNil ifTrue:[ |
|
1037 |
allClasses add:cls. |
|
1038 |
]. |
|
1039 |
"/ cat notNil ifTrue:[ |
|
1040 |
"/ allCategories add:cat. |
|
1041 |
"/ ]. |
|
1042 |
"/ JV: Filter method through package filter |
|
1043 |
"/ but not, if it is an extension method and we are showing extensions |
|
1044 |
(mthd notNil |
|
12311 | 1045 |
and:[ (mthd isSynthetic not or:[ self showSyntheticMethods value ]) |
12308 | 1046 |
and:[ sel notNil ]] |
1047 |
) ifTrue:[ |
|
1048 |
(packageFilterValue isNil |
|
1049 |
or:[ (packageFilterValue includes:mthd package) |
|
1050 |
or:[ categoryIsExtensionsPseudoCategory and:[ mthd isExtension] ]] |
|
1051 |
) ifTrue:[ |
|
1052 |
entries add:(Array with:cls with:sel with:mthd). |
|
1053 |
selectorBag add:sel. |
|
1054 |
newClasses add:cls. |
|
1055 |
||
1056 |
allCategories add:mthd category. |
|
1057 |
"/ allSelectors add:sel. |
|
1058 |
] |
|
1059 |
] |
|
1060 |
]. |
|
1061 |
(mthd notNil and:[ mthd isWrapped ]) ifTrue:[ |
|
1062 |
(mthd isTiming or:[ mthd isCounting or:[ mthd isCountingMemoryUsage ] ]) ifTrue:[ |
|
1063 |
anyMethodToWatch := true |
|
1064 |
] |
|
1065 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1066 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1067 |
showMethodInheritance value ~~ false ifTrue:[ |
12308 | 1068 |
"/ collect redefinition information once (big speedup for #methodIsRedefinedbelow) |
1069 |
classAndSelectorsRedefinedBySubclassesOfClass isNil ifTrue:[ |
|
1070 |
classAndSelectorsRedefinedBySubclassesOfClass := IdentityDictionary new. |
|
1071 |
]. |
|
1072 |
allClasses do:[:cls | |
|
1073 |
|d| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1074 |
|
12308 | 1075 |
d := classAndSelectorsRedefinedBySubclassesOfClass. |
1076 |
(d notNil and:[ (d includesKey:cls) not ]) ifTrue:[ |
|
1077 |
cls isLoaded ifTrue:[ |
|
1078 |
d at:cls put:(self setOfAllSelectorsImplementedBelow:cls) |
|
1079 |
] |
|
1080 |
] |
|
1081 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1082 |
]. |
12308 | 1083 |
|
1084 |
"/ multiple classes must: add the className for some |
|
1085 |
||
1086 |
doShowClass := enforceClassAndProtocolInList or:[ allClasses size > 1 ]. |
|
1087 |
||
1088 |
"/ multiple categories: must add the categorie for some |
|
1089 |
||
1090 |
doShowCategory := enforceClassAndProtocolInList or:[ allCategories size > 1 ]. |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1091 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1092 |
doShowClassFirst := doShowClass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1093 |
doShowClassFirst := doShowClass and:[ sortBy value == #class ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1094 |
sortBy value == false ifTrue:[ |
12308 | 1095 |
"/ do not sort |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1096 |
] ifFalse:[ |
12308 | 1097 |
(doShowClass not and:[ sortBy value == #class ]) ifTrue:[ |
1098 |
"/ multiple classes must add the className for some |
|
1099 |
"/ check, if doShowClass must be enforced |
|
1100 |
entries do:[:entry | |
|
1101 |
|cls sel mthd s needClass| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1102 |
|
12308 | 1103 |
cls := entry at:1. |
1104 |
sel := entry at:2. |
|
1105 |
mthd := entry at:3. |
|
1106 |
doShowClass ifFalse:[ |
|
1107 |
doShowClass := (selectorBag occurrencesOf:sel) > 1 |
|
1108 |
]. |
|
1109 |
]. |
|
1110 |
]. |
|
1111 |
sortByClass := doShowClass and:[ sortBy value == #class ]. |
|
1112 |
sortByClass ifTrue:[ |
|
1113 |
entries |
|
1114 |
sort:[:a :b | |
|
1115 |
|nmA nmB clsNmA clsNmB nsNmA nsNmB| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1116 |
|
12308 | 1117 |
clsNmA := (a at:1) name. |
1118 |
clsNmB := (b at:1) name. |
|
1119 |
clsNmA = clsNmB ifTrue:[ |
|
1120 |
nmA := (a at:2) asSymbol selector. |
|
1121 |
nmB := (b at:2) asSymbol selector. |
|
1122 |
nmA = nmB ifTrue:[ |
|
1123 |
nsNmA := (a at:3) nameSpaceName. |
|
1124 |
nsNmB := (b at:3) nameSpaceName. |
|
1125 |
nsNmA < nsNmB |
|
1126 |
] ifFalse:[ nmA < nmB ] |
|
1127 |
] ifFalse:[ |
|
1128 |
clsNmA < clsNmB |
|
1129 |
] |
|
1130 |
]. |
|
1131 |
] ifFalse:[ |
|
1132 |
sortBy value == #category ifTrue:[ |
|
1133 |
entries |
|
1134 |
sort:[:a :b | |
|
1135 |
|nmA nmB catA catB clsNmA clsNmB nsNmA nsNmB| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1136 |
|
12308 | 1137 |
catA := (a at:3) category. |
1138 |
catB := (b at:3) category. |
|
1139 |
catA = catB ifTrue:[ |
|
1140 |
nmA := (a at:2) asSymbol selector. |
|
1141 |
nmB := (b at:2) asSymbol selector. |
|
1142 |
nmA = nmB ifTrue:[ |
|
1143 |
clsNmA := (a at:1) name. |
|
1144 |
clsNmB := (b at:1) name. |
|
1145 |
clsNmA = clsNmB ifTrue:[ |
|
1146 |
nsNmA := (a at:3) nameSpaceName. |
|
1147 |
nsNmB := (b at:3) nameSpaceName. |
|
1148 |
nsNmA < nsNmB |
|
1149 |
] ifFalse:[ |
|
1150 |
clsNmA < clsNmB |
|
1151 |
] |
|
1152 |
] ifFalse:[ nmA < nmB ] |
|
1153 |
] ifFalse:[ |
|
1154 |
catA < catB |
|
1155 |
] |
|
1156 |
]. |
|
1157 |
] ifFalse:[ |
|
1158 |
entries |
|
1159 |
sort:[:a :b | |
|
1160 |
|nmA nmB clsNmA clsNmB nsNmA nsNmB| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1161 |
|
12308 | 1162 |
nmA := (a at:2) asSymbol selector. |
1163 |
nmB := (b at:2) asSymbol selector. |
|
1164 |
nmA = nmB ifTrue:[ |
|
1165 |
clsNmA := (a at:1) name. |
|
1166 |
clsNmB := (b at:1) name. |
|
1167 |
clsNmA = clsNmB ifTrue:[ |
|
1168 |
nsNmA := (a at:3) nameSpaceName. |
|
1169 |
nsNmB := (b at:3) nameSpaceName. |
|
1170 |
nsNmA < nsNmB |
|
1171 |
] ifFalse:[ |
|
1172 |
clsNmA < clsNmB |
|
1173 |
] |
|
1174 |
] ifFalse:[ nmA < nmB ] |
|
1175 |
]. |
|
1176 |
]. |
|
1177 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1178 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1179 |
methods := OrderedCollection new:(entries size). |
12308 | 1180 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1181 |
"/ first generate the new methodList, and see if it is different ... |
12308 | 1182 |
|
1183 |
entries do:[:entry | |
|
1184 |
|sel mthd| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1185 |
|
12308 | 1186 |
mthd := entry at:3. |
1187 |
methods add:mthd. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1188 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1189 |
false "methodList = methods" "does not care for changed icons" ifTrue:[ |
12308 | 1190 |
"/ same list |
1191 |
newNameList := self browserNameList. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1192 |
] ifFalse:[ |
12308 | 1193 |
newNameList := OrderedCollection new:(entries size). |
1194 |
||
1195 |
"/ multiple classes must add the className for some |
|
1196 |
||
1197 |
entries do:[:entry | |
|
1198 |
|cls sel mthd s needClass| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1199 |
|
12308 | 1200 |
cls := entry at:1. |
1201 |
sel := entry at:2. |
|
1202 |
mthd := entry at:3. |
|
1203 |
needClass := doShowClass. |
|
1204 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1205 |
"/ needClass ifFalse:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1206 |
"/ needClass := (selectorBag occurrencesOf:sel) > 1 |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1207 |
"/ ]. |
12308 | 1208 |
(suppressInheritanceInfoNow not |
1209 |
and:[ (Timestamp now deltaFrom:startTime) > 3 seconds ]) ifTrue:[ |
|
1210 |
suppressInheritanceInfoNow := true. |
|
1211 |
]. |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1212 |
|
12308 | 1213 |
s := self |
1214 |
listEntryForMethod:mthd |
|
1215 |
selector:sel |
|
1216 |
class:cls |
|
1217 |
showClass:needClass |
|
1218 |
showCategory:doShowCategory |
|
1219 |
classFirst:doShowClassFirst |
|
1220 |
suppressInheritanceInfo:suppressInheritanceInfoNow. |
|
1221 |
||
1222 |
newNameList add:s. |
|
1223 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1224 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1225 |
self makeIndependent. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1226 |
classes := newClasses. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1227 |
self makeDependent. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1228 |
methodList := methods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1229 |
methods size == 1 ifTrue:[ |
12308 | 1230 |
theMethod := methods first. |
1231 |
mclass := theMethod mclass. |
|
1232 |
mclass isNil ifTrue:[ |
|
1233 |
theMethod isWrapped ifTrue:[ |
|
1234 |
theMethod := theMethod originalMethod. |
|
1235 |
mclass := theMethod mclass. |
|
1236 |
]. |
|
1237 |
]. |
|
1238 |
self methodLabelHolder value:(mclass isNil |
|
1239 |
ifTrue:[ ('???' , ' ' , '???') ] |
|
1240 |
ifFalse:[ (mclass name , ' ' , theMethod selector) ]) |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1241 |
]. |
12308 | 1242 |
"/ anyMethodToWatch ifTrue:[ |
1243 |
"/ self startWatchProcess. |
|
1244 |
"/ ] ifFalse:[ |
|
1245 |
"/ self stopWatchProcess. |
|
1246 |
"/ ]. |
|
1247 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1248 |
"/ remember these, in case of an incremental (single method only) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1249 |
"/ update in the future. |
12308 | 1250 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1251 |
lastShowClass := doShowClass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1252 |
lastShowClassFirst := doShowClassFirst. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1253 |
lastShowCategory := doShowCategory. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1254 |
^ newNameList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1255 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1256 |
"Created: / 05-02-2000 / 22:43:40 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1257 |
"Modified: / 24-08-2010 / 20:34:09 / Jan Vrany <enter your email here>" |
12265 | 1258 |
"Modified: / 20-07-2012 / 20:00:58 / cg" |
12311 | 1259 |
"Modified: / 03-12-2012 / 17:37:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1260 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1261 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1262 |
makeDependent |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1263 |
Smalltalk addDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1264 |
"/ ChangeSet addDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1265 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1266 |
"Modified: / 10-11-2006 / 17:57:01 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1267 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1268 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1269 |
makeIndependent |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1270 |
Smalltalk removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1271 |
"/ ChangeSet removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1272 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1273 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1274 |
method:mthd includesModsOfClassVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1275 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1276 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1277 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1278 |
method:mthd includesModsOfInstanceVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1279 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedInstVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1280 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1281 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1282 |
method:mthd includesRefsToClassVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1283 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1284 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1285 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1286 |
method:mthd includesRefsToInstanceVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1287 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedInstVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1288 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1289 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1290 |
method:mthd includesRefsToVariable:variablesToHighLight askParserWith:querySelector |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1291 |
|cls src parser usedVars anyVarNameAccessable| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1292 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1293 |
cls := mthd mclass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1294 |
cls isNil ifTrue:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1295 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1296 |
anyVarNameAccessable := cls allInstVarNames includesAny:variablesToHighLight. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1297 |
anyVarNameAccessable ifFalse:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1298 |
anyVarNameAccessable := cls theNonMetaclass allClassVarNames includesAny:variablesToHighLight. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1299 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1300 |
anyVarNameAccessable ifFalse:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1301 |
"/ no need to parse |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1302 |
^ false |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1303 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1304 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1305 |
src := mthd source. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1306 |
src notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1307 |
" |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1308 |
before doing a slow parse, quickly scan the |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1309 |
methods source for the variables name ... |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1310 |
" |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1311 |
(variablesToHighLight contains:[:varName | (src findString:varName) ~~ 0]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1312 |
parser := Parser |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1313 |
parseMethod:src |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1314 |
in:cls |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1315 |
ignoreErrors:true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1316 |
ignoreWarnings:true. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1317 |
(parser notNil and:[parser ~~ #Error]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1318 |
usedVars := parser perform:querySelector. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1319 |
(usedVars includesAny:variablesToHighLight) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1320 |
ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1321 |
^ true |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1322 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1323 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1324 |
] |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1325 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1326 |
^ false |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1327 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1328 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1329 |
methodIsInheritedFromAbove:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1330 |
|mClass| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1331 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1332 |
mClass := aMethod mclass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1333 |
(mClass notNil and:[mClass superclass notNil]) ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1334 |
^ (mClass superclass whichClassIncludesSelector:aMethod selector) notNil. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1335 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1336 |
^ false |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1337 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1338 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1339 |
methodIsRedefinedBelow:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1340 |
|mclass subClasses setOfRedefinedSelectors| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1341 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1342 |
mclass := aMethod mclass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1343 |
mclass isNil ifTrue:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1344 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1345 |
"/ if possible, make use of info prepared by listOfMethodNames |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1346 |
classAndSelectorsRedefinedBySubclassesOfClass notNil |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1347 |
ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1348 |
setOfRedefinedSelectors := classAndSelectorsRedefinedBySubclassesOfClass at:mclass ifAbsent:nil. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1349 |
setOfRedefinedSelectors notNil ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1350 |
^ setOfRedefinedSelectors includes:aMethod selector |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1351 |
] |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1352 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1353 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1354 |
lastMethodClass == mclass ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1355 |
subClasses := lastMethodClassesSubclasses |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1356 |
] ifFalse:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1357 |
subClasses := aMethod mclass allSubclasses. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1358 |
lastMethodClassesSubclasses := subClasses. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1359 |
lastMethodClass := mclass. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1360 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1361 |
^ subClasses contains:[:cls | cls includesSelector:aMethod selector]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1362 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1363 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1364 |
redefinedOrInheritedIconFor:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1365 |
|inherited redefined subclassResponsibility| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1366 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1367 |
inherited := self methodIsInheritedFromAbove:aMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1368 |
redefined := self methodIsRedefinedBelow:aMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1369 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1370 |
inherited ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1371 |
redefined ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1372 |
^ self methodInheritedFromAboveAndRedefinedBelowIcon. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1373 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1374 |
^ self methodInheritedFromAboveIcon. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1375 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1376 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1377 |
subclassResponsibility := aMethod sends:#subclassResponsibility. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1378 |
redefined ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1379 |
subclassResponsibility ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1380 |
^ self methodIsSubclassResponsibilityAndRedefinedBelowIcon. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1381 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1382 |
^ self methodRedefinedBelowIcon. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1383 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1384 |
subclassResponsibility ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1385 |
^ self methodIsSubclassResponsibilityIcon. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1386 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1387 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1388 |
^ self methodEmptyInheritedIcon |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1389 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1390 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1391 |
release |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1392 |
super release. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1393 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1394 |
filterClassVars removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1395 |
selectedMethodNameIndices removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1396 |
showMethodInheritance removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1397 |
variableFilter removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1398 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1399 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1400 |
resourceIconForMethod:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1401 |
^ SystemBrowser resourceIconForMethod:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1402 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1403 |
"Modified: / 17-08-2006 / 09:09:01 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1404 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1405 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1406 |
setOfAllSelectorsImplementedBelow:aClass |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1407 |
|set| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1408 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1409 |
set := IdentitySet new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1410 |
aClass allSubclassesDo:[:eachSubclass | |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1411 |
set addAll:(eachSubclass methodDictionary keys). |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1412 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1413 |
^ set |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1414 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1415 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1416 |
updateList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1417 |
|prevSelection newList newSelection newSelIdx reverseMap sameContents newListSize oldListSize |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1418 |
prevClasses methodSet selectedMethodsHolder| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1419 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1420 |
selectedMethodsHolder := self selectedMethods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1421 |
prevSelection := selectedMethodsHolder value ? #(). |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1422 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1423 |
prevClasses := classes ifNil:[ #() ] ifNotNil:[ classes copy ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1424 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1425 |
oldListSize := self browserNameList size. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1426 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1427 |
self topApplication withWaitCursorDo:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1428 |
newList := self listOfMethodNames. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1429 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1430 |
newListSize := newList size. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1431 |
sameContents := self updateListFor:newList. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1432 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1433 |
sameContents ifFalse:[ |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1434 |
"/ self browserNameList value:newList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1435 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1436 |
(prevSelection size == 0 |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1437 |
and:[selectedMethodsHolder value size ~~ 0]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1438 |
"/ this happens during early startup time, |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1439 |
"/ when the selection is already (pre-)set, |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1440 |
"/ and the methodList is generated the first time |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1441 |
"/ (i.e. when opened with preset selection |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1442 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1443 |
"/ do not clobber the selection in this case. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1444 |
prevSelection := selectedMethodsHolder value. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1445 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1446 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1447 |
(methodList size == 0 or:[prevSelection size == 0]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1448 |
newSelection := #() |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1449 |
] ifFalse:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1450 |
methodSet := methodList. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1451 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1452 |
"/ inclusion test is much faster with sets, if the number of items is large |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1453 |
methodList size > 30 ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1454 |
"/ however, only if its worth building the set ... |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1455 |
prevSelection size > 5 ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1456 |
methodSet := methodSet asIdentitySet. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1457 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1458 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1459 |
newSelection := prevSelection select:[:item | methodSet includesIdentical:item]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1460 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1461 |
newSelection size > 0 ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1462 |
newSelection size > 100 ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1463 |
"/ need selection indices - might be expensive if done straight forward... |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1464 |
reverseMap := IdentityDictionary new. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1465 |
methodList keysAndValuesDo:[:idx :mthd | reverseMap at:mthd put:idx]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1466 |
newSelIdx := newSelection collect:[:mthd | reverseMap at:mthd]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1467 |
] ifFalse:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1468 |
newSelIdx := newSelection collect:[:mthd | methodList identityIndexOf:mthd] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1469 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1470 |
"/ self halt. |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1471 |
"/ force change (for dependents) |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1472 |
newSelIdx ~= selectedMethodNameIndices value ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1473 |
selectedMethodNameIndices value:newSelIdx. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1474 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1475 |
] ifFalse:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1476 |
lastSelectedMethods := selectedMethodsHolder value. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1477 |
lastSelectedMethods notNil ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1478 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1479 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1480 |
selectedMethodNameIndices value size > 0 ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1481 |
selectedMethodNameIndices value:#(). |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1482 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1483 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1484 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1485 |
newSelection ~= prevSelection ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1486 |
self selectionChanged. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1487 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1488 |
] ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1489 |
"/ same list - but classes might have changed |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1490 |
"/ that is the case, if the class selection has been changed, |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1491 |
"/ to another class which has the same categories. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1492 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1493 |
(prevClasses size ~= classes size |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1494 |
or:[prevClasses asOrderedCollection ~= (classes ? #()) asOrderedCollection ]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1495 |
(newListSize > 0 or:[oldListSize > 0]) ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1496 |
self selectionChanged. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1497 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1498 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1499 |
] |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1500 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1501 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1502 |
"Modified: / 05-03-2007 / 16:07:24 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1503 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1504 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1505 |
updateListEntryFor:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1506 |
"update my list for a single method. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1507 |
(used when a single methods package, code or whatever changes, and a full udpate |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1508 |
would be too slow)" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1509 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1510 |
|s idx| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1511 |
|
12308 | 1512 |
s := self |
1513 |
listEntryForMethod:aMethod |
|
1514 |
selector:aMethod selector |
|
1515 |
class:aMethod mclass |
|
1516 |
showClass:lastShowClass |
|
1517 |
showCategory:lastShowCategory |
|
1518 |
classFirst:lastShowClassFirst |
|
1519 |
suppressInheritanceInfo:false. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1520 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1521 |
idx := methodList identityIndexOf:aMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1522 |
idx == 0 ifTrue:[ |
12308 | 1523 |
aMethod isWrapped ifTrue:[ |
1524 |
idx := methodList identityIndexOf:aMethod originalMethod. |
|
1525 |
idx == 0 ifTrue:[ |
|
1526 |
"/ aMethod (wrapped) has changed its status, but is not in the list. |
|
1527 |
^ self. |
|
1528 |
]. |
|
1529 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1530 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1531 |
idx == 0 ifTrue:[ |
12308 | 1532 |
"/ method was not previously shown; try to avoid a full update |
1533 |
(self isMethodToBeShown:aMethod) ifTrue:[ |
|
1534 |
self invalidateList |
|
1535 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1536 |
] ifFalse:[ |
12308 | 1537 |
self browserNameList at:idx put:s. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1538 |
] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1539 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1540 |
"Modified: / 17-08-2011 / 15:05:02 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1541 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1542 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1543 |
!MethodList methodsFor:'private-presentation'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1544 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1545 |
colorForCoverageInformationOfMethod:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1546 |
aMethod isInstrumented ifFalse:[^ nil]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1547 |
aMethod category = 'documentation' ifTrue:[^ nil]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1548 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1549 |
aMethod hasBeenCalled ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1550 |
aMethod haveAllBlocksBeenExecuted ifTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1551 |
^ UserPreferences current colorForInstrumentedFullyCoveredCode |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1552 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1553 |
^ UserPreferences current colorForInstrumentedPartiallyCoveredCode |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1554 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1555 |
^ UserPreferences current colorForInstrumentedNeverCalledCode |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1556 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1557 |
"Created: / 30-04-2010 / 11:53:38 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1558 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1559 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1560 |
listEntryForMethod:aMethod selector:selector class:cls showClass:showClass showCategory:showCategory classFirst:showClassFirst |
12308 | 1561 |
"answer a method list entry |
1562 |
gimmics: |
|
1563 |
adding a little image to breakPointed methods, |
|
1564 |
inheritance indicators, |
|
1565 |
highlight accessors of variable" |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1566 |
|
12308 | 1567 |
^ self |
1568 |
listEntryForMethod:aMethod |
|
1569 |
selector:selector |
|
1570 |
class:cls |
|
1571 |
showClass:showClass showCategory:showCategory |
|
1572 |
classFirst:showClassFirst |
|
1573 |
suppressInheritanceInfo:false |
|
1574 |
! |
|
1575 |
||
1576 |
listEntryForMethod:aMethod selector:selector class:cls showClass:showClass showCategory:showCategory classFirst:showClassFirst suppressInheritanceInfo:suppressInheritanceInfo |
|
1577 |
"answer a method list entry |
|
1578 |
gimmics: |
|
1579 |
adding a little image to breakPointed methods, |
|
1580 |
inheritance indicators, |
|
1581 |
highlight accessors of variable" |
|
1582 |
||
1583 |
|s icn variablesToHighlight classVarsToHighLight |
|
1584 |
doHighLight doHighLightRed clr emp cat l redefIcon |
|
1585 |
metrics complexity complexityString complexityIcon mark lastResultOrNil| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1586 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1587 |
aMethod isNil ifTrue:[ |
12308 | 1588 |
"/ a non-existing (pseudo) method (such as required protocol) |
1589 |
^ selector colorizeAllWith:Color red. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1590 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1591 |
|
12308 | 1592 |
showClassFirst ifTrue:[ |
1593 |
s := aMethod printStringForBrowserWithSelector:selector allBold inClass:cls. |
|
1594 |
s := cls nameInBrowser , ' ' , s |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1595 |
] ifFalse:[ |
12308 | 1596 |
s := aMethod printStringForBrowserWithSelector:selector inClass:cls. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1597 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1598 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1599 |
"/ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1600 |
"/ wrap icons (i.e. break- or trace points) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1601 |
"/ have higher prio ... |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1602 |
"/ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1603 |
(aMethod notNil and:[aMethod isWrapped]) ifTrue:[ |
12308 | 1604 |
(s endsWith:' !!') ifTrue:[ |
1605 |
s := s copyWithoutLast:2 |
|
1606 |
]. |
|
1607 |
aMethod isBreakpointed ifTrue:[ |
|
1608 |
icn := self stopIcon |
|
1609 |
] ifFalse:[ |
|
1610 |
aMethod isTimed ifTrue:[ |
|
1611 |
icn := self timeIcon |
|
1612 |
] ifFalse:[ |
|
1613 |
icn := self traceIcon |
|
1614 |
] |
|
1615 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1616 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1617 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1618 |
icn isNil ifTrue:[ |
12308 | 1619 |
self showImageResourceMethodsImages value ~~ false ifTrue:[ |
1620 |
(aMethod hasImageResource) ifTrue:[ |
|
1621 |
aMethod mclass isMeta ifTrue:[ |
|
1622 |
icn := aMethod valueWithReceiver:nil arguments:nil . |
|
1623 |
]. |
|
1624 |
]. |
|
1625 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1626 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1627 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1628 |
icn isNil ifTrue:[ |
12308 | 1629 |
showMethodTypeIcon value ~~ false ifTrue:[ |
1630 |
icn := self resourceIconForMethod:aMethod. |
|
1631 |
]. |
|
1632 |
icn isNil ifTrue:[ |
|
1633 |
aMethod isProtected ifTrue:[ |
|
1634 |
icn := self protectedMethodIcon |
|
1635 |
] ifFalse:[ |
|
1636 |
aMethod isPrivate ifTrue:[ |
|
1637 |
icn := self privateMethodIcon |
|
1638 |
] ifFalse:[ |
|
1639 |
(aMethod isIgnored) ifTrue:[ |
|
1640 |
icn := self ignoredMethodIcon |
|
1641 |
] ifFalse:[ |
|
1642 |
(aMethod isJavaMethod and:[aMethod isAbstract]) ifTrue:[ |
|
1643 |
icn := self abstractMethodIcon |
|
1644 |
] |
|
1645 |
] |
|
1646 |
] |
|
1647 |
]. |
|
1648 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1649 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1650 |
icn isNil ifTrue:[ |
12308 | 1651 |
(selector startsWith:'test') ifTrue:[ |
1652 |
((cls isSubclassOf:TestCase) |
|
1653 |
and:[cls isAbstract not]) ifTrue:[ |
|
1654 |
"JV@2011-11-17: Show thumbs even if not all test were run" |
|
1655 |
||
1656 |
lastResultOrNil := cls rememberedOutcomeFor:selector. |
|
1657 |
lastResultOrNil notNil ifTrue:[ |
|
1658 |
(lastResultOrNil result == TestResult statePass) ifTrue:[ |
|
1659 |
icn := SystemBrowser testCasePassedIcon |
|
1660 |
] ifFalse:[ |
|
1661 |
((lastResultOrNil result == TestResult stateError) |
|
1662 |
or:[ (lastResultOrNil result == TestResult stateFail) ]) ifTrue:[ |
|
1663 |
icn := SystemBrowser testCaseFailedIcon |
|
1664 |
] |
|
1665 |
] |
|
1666 |
]. |
|
1667 |
]. |
|
1668 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1669 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1670 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1671 |
showClass ifTrue:[ |
12308 | 1672 |
showClassFirst ifFalse:[ |
1673 |
s := s , ' [' , cls name allBold , ']'. |
|
1674 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1675 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1676 |
showCategory ifTrue:[ |
12308 | 1677 |
cat := aMethod category. |
1678 |
cat notNil ifTrue:[ |
|
1679 |
s := s , ' {' , (cat "asText allItalic" colorizeAllWith:Color grey), '}' |
|
1680 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1681 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1682 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1683 |
self showCoverageInformation value ifTrue:[ |
12308 | 1684 |
clr := self colorForCoverageInformationOfMethod:aMethod. |
1685 |
clr notNil ifTrue:[ |
|
1686 |
s := self colorize:s with:(#color->clr). |
|
1687 |
"/ aMethod isInstrumented ifTrue:[ |
|
1688 |
"/ icn := self instrumentationIcon |
|
1689 |
"/ ]. |
|
1690 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1691 |
] ifFalse:[ |
12308 | 1692 |
(ChangeSet current includesChangeForClass:cls selector:selector) ifTrue:[ |
1693 |
mark := self class markForBeingInChangeList. |
|
1694 |
"/ mark := self colorizeForChangedCode:mark. |
|
1695 |
s := s , mark. |
|
1696 |
"/ cg: I dont know why this was disabled - it is req'd to |
|
1697 |
"/ see changed methods in a method list (implementors...) |
|
1698 |
s := self colorizeForChangedCode:s. |
|
1699 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1700 |
|
12308 | 1701 |
(SmallTeam notNil and:[SmallTeam includesChangeForClass:cls selector:selector]) ifTrue:[ |
1702 |
s := (self colorizeForChangedCodeInSmallTeam:'!! '),s |
|
1703 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1704 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1705 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1706 |
variablesToHighlight := variableFilter value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1707 |
variablesToHighlight size > 0 ifTrue:[ |
12308 | 1708 |
classVarsToHighLight := filterClassVars value. |
1709 |
classVarsToHighLight ifTrue:[ |
|
1710 |
doHighLight := self method:aMethod includesRefsToClassVariable:variablesToHighlight. |
|
1711 |
doHighLight ifTrue:[ |
|
1712 |
doHighLightRed := self method:aMethod includesModsOfClassVariable:variablesToHighlight. |
|
1713 |
]. |
|
1714 |
] ifFalse:[ |
|
1715 |
doHighLight := self method:aMethod includesRefsToInstanceVariable:variablesToHighlight. |
|
1716 |
doHighLight ifTrue:[ |
|
1717 |
doHighLightRed := self method:aMethod includesModsOfInstanceVariable:variablesToHighlight |
|
1718 |
] |
|
1719 |
]. |
|
1720 |
doHighLight ifTrue:[ |
|
1721 |
s := s allBold. |
|
1722 |
doHighLightRed ifTrue:[ |
|
1723 |
emp := (UserPreferences current emphasisForWrittenVariable) |
|
1724 |
] ifFalse:[ |
|
1725 |
emp := (UserPreferences current emphasisForReadVariable) |
|
1726 |
]. |
|
1727 |
s := s emphasisAllAdd:emp |
|
1728 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1729 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1730 |
|
12308 | 1731 |
(showMethodComplexity value == true |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1732 |
and:[ OOM::MethodMetrics notNil ]) ifTrue:[ |
12308 | 1733 |
icn isNil ifTrue:[ |
1734 |
metrics := OOM::MethodMetrics forMethod:aMethod. |
|
1735 |
complexity := metrics complexity ? 0. |
|
1736 |
complexityIcon := OOM::MethodMetrics iconForComplexity:complexity. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1737 |
|
12308 | 1738 |
ShowComplexityValue == true ifTrue:[ |
1739 |
complexityString := '{' , complexity printString , '}'. |
|
1740 |
s := complexityString , ' ' , s. |
|
1741 |
]. |
|
1742 |
"/ icn := icn ? complexityIcon. |
|
1743 |
s := LabelAndIcon icon:complexityIcon string:s. |
|
1744 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1745 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1746 |
|
12308 | 1747 |
(showMethodInheritance value ? true) ifTrue:[ |
1748 |
suppressInheritanceInfo ifTrue:[ |
|
1749 |
redefIcon := self methodEmptyInheritedIcon. |
|
1750 |
] ifFalse:[ |
|
1751 |
redefIcon := self redefinedOrInheritedIconFor:aMethod. |
|
1752 |
]. |
|
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
1753 |
]. |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
1754 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1755 |
(icn notNil or:[redefIcon notNil]) ifTrue:[ |
12308 | 1756 |
"/eXept version |
1757 |
"/l := LabelAndIcon icon:redefIcon string:s. |
|
1758 |
"/l image:icn. |
|
1759 |
"/JV: |
|
1760 |
l := LabelAndIcon icon:icn string:s. |
|
1761 |
l image:redefIcon. |
|
1762 |
icn isNil ifTrue:[l offset: 13]. |
|
1763 |
l gap:1. |
|
1764 |
^ l |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1765 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1766 |
^ s |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1767 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1768 |
"Created: / 22-10-1996 / 19:51:00 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1769 |
"Modified: / 15-08-2009 / 13:13:32 / Jan Vrany <vranyj1@fel.cvut.cz>" |
12308 | 1770 |
"Modified: / 17-11-2011 / 20:51:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12205 | 1771 |
"Modified: / 07-03-2012 / 19:06:09 / cg" |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1772 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1773 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1774 |
!MethodList methodsFor:'private-watching'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1775 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1776 |
startWatchProcess |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1777 |
updateProcess notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1778 |
^ self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1779 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1780 |
updateProcess := [ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1781 |
[true] whileTrue:[ |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1782 |
Delay waitForSeconds:1. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1783 |
self enqueueDelayedUpdateList |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1784 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1785 |
] fork. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1786 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1787 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1788 |
stopWatchProcess |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1789 |
|p| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1790 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1791 |
(p := updateProcess) notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1792 |
updateProcess := nil. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1793 |
p terminate |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1794 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1795 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1796 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1797 |
!MethodList methodsFor:'setup'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1798 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1799 |
postBuildWith:aBuilder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1800 |
|methodListView| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1801 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1802 |
super postBuildWith:aBuilder. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1803 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1804 |
methodListView := aBuilder componentAt:'List'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1805 |
methodListView notNil ifTrue:[ |
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1806 |
methodListView allowDrag:true. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1807 |
methodListView dragObjectConverter:[:obj | |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1808 |
|nm method idx| |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1809 |
|
12298
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1810 |
nm := obj theObject asString string string. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1811 |
idx := browserNameList value findFirst:[:item | item string string = nm]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1812 |
method := methodList value at:idx. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1813 |
DropObject newMethod:method. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1814 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1815 |
] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1816 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1817 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1818 |
!MethodList class methodsFor:'documentation'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1819 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1820 |
version |
12311 | 1821 |
^ '$Id: Tools__MethodList.st 8077 2012-12-03 17:37:49Z vranyj1 $' |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1822 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1823 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1824 |
version_CVS |
12308 | 1825 |
^ '§Header: /cvs/stx/stx/libtool/Tools_MethodList.st,v 1.74 2012/11/07 23:04:35 cg Exp §' |
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1826 |
! |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1827 |
|
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1828 |
version_SVN |
12311 | 1829 |
^ '$Id: Tools__MethodList.st 8077 2012-12-03 17:37:49Z vranyj1 $' |
12125 | 1830 |
! ! |