author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 10 Apr 2013 11:56:26 +0200 | |
branch | jv |
changeset 12652 | e5f95ff2fedf |
parent 12650 | e0f607754b9a |
child 12802 | e9592b72949a |
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 |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
369 |
|cls clsName sel oldMethod newMethod methods newSelection |
12123
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. |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
379 |
clsName := cls name. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
380 |
(classes contains:[:aClass | aClass name = clsName]) ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
381 |
^ self "/ I don't care for that class |
12308 | 382 |
]. |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
383 |
classes := classes collect:[:eachClass | (Smalltalk classNamed:eachClass name) ]. |
12308 | 384 |
self invalidateList. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
385 |
"/ self updateList. |
12308 | 386 |
^ self. |
387 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
388 |
|
12308 | 389 |
something == #methodCategory ifTrue:[ |
390 |
"/ ignore here - methodCategoryList will tell me if required |
|
391 |
^ self |
|
392 |
]. |
|
393 |
(something == #classOrganization |
|
394 |
or:[ something == #methodCategoryAdded |
|
395 |
or:[ something == #methodCategoryRemoved |
|
396 |
or:[ something == #methodCategoriesRemoved |
|
397 |
or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[ |
|
398 |
"/ ignore here - methodCategoryList will tell me if required |
|
399 |
^ self |
|
400 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
401 |
|
12308 | 402 |
(something == #methodInClass |
403 |
or:[something == #methodCoverageInfo]) ifTrue:[ |
|
404 |
"/ a method has been added/changed |
|
405 |
cls := aParameter at:1. |
|
406 |
(classes includesIdentical:cls) ifTrue:[ |
|
407 |
sel := aParameter at:2. |
|
408 |
oldMethod := aParameter at:3. |
|
409 |
newMethod := cls compiledMethodAt:sel. |
|
410 |
(oldMethod notNil and:[newMethod notNil]) ifTrue:[ |
|
411 |
"a method was changed & acccepted; |
|
412 |
No need for a rescan of the methodDictionary; |
|
413 |
however, ensure that the refs to the old method are updated |
|
414 |
" |
|
415 |
methods := selection. |
|
416 |
methods size > 0 ifTrue:[ |
|
417 |
(methods includesIdentical:oldMethod) ifTrue:[ |
|
418 |
needSelectionChange := true. |
|
419 |
] |
|
420 |
]. |
|
421 |
methodList replaceAllIdentical:oldMethod with:newMethod. |
|
422 |
lastSelectedMethods notNil ifTrue:[ |
|
423 |
lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
424 |
]. |
|
425 |
methods size > 0 ifTrue:[ |
|
426 |
methods := methods asOrderedCollection. |
|
427 |
methods replaceAllIdentical:oldMethod with:newMethod. |
|
428 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
429 |
|
12308 | 430 |
needSelectionChange == true ifTrue:[ |
431 |
selectionHolder setValue:methods. |
|
432 |
"/ self enqueueDelayedMethodsSelectionChanged. |
|
433 |
"/ need this to inform my browser that method was changed |
|
434 |
"/ by someone else. |
|
435 |
selectionHolder changed. |
|
436 |
]. |
|
437 |
"/JV@2011-07-22: Update always - I need to see immediately that |
|
438 |
"/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
|
439 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
440 |
"/ (variableFilter value size > 0 |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
441 |
"/ or:[oldMethod package ~= newMethod package |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
442 |
"/ or:[oldMethod resources ~= newMethod resources |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
443 |
"/ or:[showMethodComplexity value == true]]]) |
12308 | 444 |
self autoUpdateOnChange ifTrue:[ |
445 |
"/ only update that method's entry |
|
446 |
self updateListEntryFor:newMethod. |
|
447 |
"/ sigh - must invalidate |
|
448 |
"/ self invalidateList. |
|
449 |
]. |
|
450 |
^ self. |
|
451 |
]. |
|
452 |
"/ method was added - update the methodList |
|
453 |
"/ Q: is this needed (methodCategoryList should send me a new inGenerator) |
|
454 |
self invalidateList. |
|
455 |
]. |
|
456 |
^ self. |
|
457 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
458 |
|
12308 | 459 |
something == #methodInClassRemoved ifTrue:[ |
460 |
cls := aParameter at:1. |
|
461 |
(classes includesIdentical:cls) ifTrue:[ |
|
462 |
sel := aParameter at:2. |
|
463 |
"/ method was removed - update the methodList |
|
464 |
"/ Q: is this needed (methodCategoryList should send me a new inGenerator) |
|
465 |
self invalidateList. |
|
466 |
]. |
|
467 |
^ self. |
|
468 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
469 |
|
12308 | 470 |
something == #methodCoverageInfo ifTrue:[ |
471 |
"/ already checked if it is one of my classes |
|
472 |
self updateListEntryFor:aParameter. |
|
12262 | 473 |
"/ self enqueueDelayedUpdateList. |
474 |
"/ listValid == true ifTrue:[ |
|
475 |
"/ self invalidateList. |
|
476 |
"/ ]. |
|
12308 | 477 |
^ self. |
478 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
479 |
|
12308 | 480 |
(something == #methodTrap |
481 |
or:[ something == #lastTestRunResult |
|
482 |
or:[ something == #privacyOfMethod ]]) ifTrue:[ |
|
483 |
cls := aParameter at:1. |
|
484 |
sel := aParameter at:2. |
|
485 |
(classes includesIdentical:cls) ifFalse:[ ^ self]. |
|
12254 | 486 |
|
12308 | 487 |
newMethod := cls compiledMethodAt:sel. |
488 |
newMethod isNil ifTrue:[ |
|
489 |
self invalidateList. |
|
490 |
^ self |
|
491 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
492 |
|
12308 | 493 |
((something == #privacyOfMethod) or:[something == #lastTestRunResult]) ifTrue:[ |
494 |
self updateListEntryFor:newMethod. |
|
495 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
496 |
|
12308 | 497 |
(something == #methodTrap) ifTrue:[ |
498 |
newMethod isWrapped ifTrue:[ |
|
499 |
oldMethod := newMethod originalMethod |
|
500 |
] ifFalse:[ |
|
501 |
selection size > 0 ifTrue:[ |
|
502 |
oldMethod := selection detect:[:each | each isWrapped and:[each originalMethod == newMethod]] ifNone:nil. |
|
503 |
] |
|
504 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
505 |
|
12308 | 506 |
selection size > 0 ifTrue:[ |
507 |
(selection includesIdentical:oldMethod) ifTrue:[ |
|
508 |
needSelectionChange := true. |
|
509 |
] |
|
510 |
]. |
|
511 |
methodList replaceAllIdentical:oldMethod with:newMethod. |
|
512 |
lastSelectedMethods notNil ifTrue:[ |
|
513 |
lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
|
514 |
]. |
|
515 |
selection size > 0 ifTrue:[ |
|
516 |
selection := selection asOrderedCollection. |
|
517 |
selection replaceAllIdentical:oldMethod with:newMethod. |
|
518 |
]. |
|
519 |
needSelectionChange == true ifTrue:[ |
|
520 |
selectionHolder changed. |
|
521 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
522 |
|
12308 | 523 |
"/ actually, could just change that single item ... |
524 |
"/ ... might be cheaper, if list is huge. |
|
525 |
"/ only update that methods entry |
|
526 |
self updateListEntryFor:newMethod. |
|
527 |
"/ self invalidateList. |
|
528 |
]. |
|
529 |
^ self |
|
530 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
531 |
|
12308 | 532 |
(something == #projectOrganization |
533 |
or:[something == #lastTestRunResult]) ifTrue:[ |
|
534 |
aParameter notNil ifTrue:[ |
|
535 |
cls := aParameter at:1. |
|
536 |
cls notNil ifTrue:[ |
|
537 |
((classes includesIdentical:cls theNonMetaclass) |
|
538 |
or:[(classes includesIdentical:cls theMetaclass)]) ifTrue:[ |
|
539 |
self invalidateList. |
|
540 |
]. |
|
541 |
]. |
|
542 |
] ifFalse:[ |
|
543 |
self invalidateList. |
|
544 |
]. |
|
545 |
^ self |
|
546 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
547 |
|
12308 | 548 |
"/ everything else is ignored |
549 |
"/ self halt. |
|
550 |
]. |
|
551 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
552 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
553 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
554 |
"/ something == #organization ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
555 |
"/self halt:'no longer'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
556 |
"/^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
557 |
"/ "/ a methods cateory has changed |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
558 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
559 |
"/ aParameter isSymbol ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
560 |
"/ "/ a method with a new category |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
561 |
"/ (self methodList includesIdentical:(changedObject compiledMethodAt:aParameter)) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
562 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
563 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
564 |
"/ ^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
565 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
566 |
"/ "/ a new category (no method yet) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
567 |
"/ self invalidateList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
568 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
569 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
570 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
571 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
572 |
"/ something == #methodDictionary ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
573 |
"/self halt:'no longer'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
574 |
"/^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
575 |
"/ "/ a method has been added/removed |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
576 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
577 |
"/ aParameter isArray ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
578 |
"/ sel := aParameter at:1. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
579 |
"/ oldMethod := aParameter at:2. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
580 |
"/ newMethod := changedObject compiledMethodAt:sel. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
581 |
"/ oldMethod notNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
582 |
"/ "a method was changed & acccepted; |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
583 |
"/ No need for a rescan of the methodDictionary; |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
584 |
"/ 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
|
585 |
"/ " |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
586 |
"/ methods := selection. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
587 |
"/ methods size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
588 |
"/ (methods includesIdentical:oldMethod) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
589 |
"/ needSelectionChange := true. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
590 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
591 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
592 |
"/ methodList replaceAllIdentical:oldMethod with:newMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
593 |
"/ lastSelectedMethods notNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
594 |
"/ lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
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 |
"/ methods size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
597 |
"/ methods := methods asOrderedCollection. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
598 |
"/ methods 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 |
"/ needSelectionChange == true ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
601 |
"/ selectionHolder setValue:methods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
602 |
"/ selectionHolder changed. |
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 |
"/ ^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
605 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
606 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
607 |
"/ "/ class has changed must update the methodList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
608 |
"/ self invalidateList. |
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 |
"/ ^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
611 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
612 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
613 |
"/ something == #projectOrganization ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
614 |
"/ ((classes includesIdentical:changedObject theNonMetaclass) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
615 |
"/ or:[(classes includesIdentical:changedObject theMetaclass)]) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
616 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
617 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
618 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
619 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
620 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
621 |
changedObject == sortBy ifTrue:[ |
12308 | 622 |
listValid ~~ true ifTrue:[ "/ could be nil |
623 |
inGeneratorHolder value isNil ifTrue:[ |
|
624 |
"/ ok, no need to react on that one |
|
625 |
"/ (will invalidate anyway, once I have more info at hand) |
|
626 |
^ self |
|
627 |
]. |
|
628 |
]. |
|
629 |
self invalidateList. |
|
630 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
631 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
632 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
633 |
(changedObject == variableFilter |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
634 |
or:[changedObject == filterClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
635 |
or:[changedObject == showMethodInheritance |
12308 | 636 |
or:[changedObject == showMethodComplexity]]]) ifTrue:[ |
637 |
self invalidateList. |
|
638 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
639 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
640 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
641 |
changedObject == selectedMethodNameIndices ifTrue:[ |
12308 | 642 |
newSelection := self selectedMethodNameIndices value collect:[:idx | methodList at:idx]. |
643 |
newSelection ~= selection ifTrue:[ |
|
644 |
selectionHolder value:newSelection. |
|
645 |
lastSelectedMethods := newSelection. |
|
646 |
lastSelectedMethods notNil ifTrue:[ |
|
647 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
|
648 |
]. |
|
649 |
] ifFalse:[ |
|
650 |
"/ a reselect - force update |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
651 |
"/ selection size == 1 ifTrue:[ |
12308 | 652 |
selectionHolder setValue:newSelection. |
653 |
selectionHolder changed:#value. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
654 |
"/ ]. |
12308 | 655 |
]. |
656 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
657 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
658 |
changedObject == selectionHolder ifTrue:[ |
12308 | 659 |
self selectedMethodsChanged. |
660 |
lastSelectedMethods := selectionHolder value. |
|
661 |
lastSelectedMethods notNil ifTrue:[ |
|
662 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
|
663 |
]. |
|
664 |
^ self |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
665 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
666 |
"/ something == #methodTrap ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
667 |
"/self halt:'no longer'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
668 |
"/^ self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
669 |
"/ (classes includesIdentical:changedObject) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
670 |
"/ newMethod := changedObject compiledMethodAt:aParameter. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
671 |
"/ newMethod isNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
672 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
673 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
674 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
675 |
"/ newMethod isWrapped ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
676 |
"/ oldMethod := newMethod originalMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
677 |
"/ ] ifFalse:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
678 |
"/ selection size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
679 |
"/ 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
|
680 |
"/ ] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
681 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
682 |
"/ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
683 |
"/ selection size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
684 |
"/ (selection includesIdentical:oldMethod) ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
685 |
"/ needSelectionChange := true. |
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 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
688 |
"/"/ methodList replaceAllIdentical:oldMethod with:newMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
689 |
"/ lastSelectedMethods notNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
690 |
"/ lastSelectedMethods replaceAllIdentical:oldMethod with:newMethod |
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 |
"/ selection size > 0 ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
693 |
"/ selection := selection asOrderedCollection. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
694 |
"/ selection 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 |
"/ needSelectionChange == true ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
697 |
"/ selectionHolder changed. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
698 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
699 |
"/ self invalidateList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
700 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
701 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
702 |
"/ ^ self |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
703 |
"/ ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
704 |
super delayedUpdate:something with:aParameter from:changedObject |
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 |
"Created: / 05-02-2000 / 13:42:14 / cg" |
12308 | 707 |
"Modified: / 22-07-2011 / 18:12:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12262 | 708 |
"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
|
709 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
710 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
711 |
selectedMethodsChanged |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
712 |
"the set of selected methods has changed; |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
713 |
update the selection-index collection (for the selectionInListView)" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
714 |
|
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
|
715 |
|indices methods reverseMap |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
716 |
selectedMethodsHolder selectedMethods selectedMethodNameIndicesHolder| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
717 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
718 |
methods := methodList ? #(). |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
719 |
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
|
720 |
"/ 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
|
721 |
"/ 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
|
722 |
"/ 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
|
723 |
"/ 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
|
724 |
"/ 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
|
725 |
^ self |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
726 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
727 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
728 |
selectedMethodsHolder := self selectedMethods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
729 |
selectedMethods := selectedMethodsHolder value. |
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 |
"/ check if all is selected (likely) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
732 |
((selectedMethods size == methodList size) |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
733 |
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
|
734 |
indices := (1 to:selectedMethods size) |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
735 |
] 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
|
736 |
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
|
737 |
"/ 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
|
738 |
((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
|
739 |
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
|
740 |
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
|
741 |
] 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
|
742 |
"/ 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
|
743 |
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
|
744 |
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
|
745 |
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
|
746 |
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
|
747 |
] |
87a1837791ec
Commented rubbish code that ignores change-update 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 |
] |
87a1837791ec
Commented rubbish code that ignores change-update 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 |
] 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
|
750 |
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
|
751 |
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
|
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 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update 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 := indices select:[:idx | idx ~= 0]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
755 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
756 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
757 |
selectedMethodNameIndicesHolder := self selectedMethodNameIndices. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
758 |
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
|
759 |
selectedMethodNameIndicesHolder value:indices. |
12123
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 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
762 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
763 |
selectionChanged |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
764 |
|methods| |
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 |
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
|
767 |
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
|
768 |
lastSelectedMethods := methods asOrderedCollection. |
12123
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 |
"/ 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
|
771 |
"/ 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
|
772 |
self selectedMethods value:methods |
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
775 |
"Created: / 5.2.2000 / 13:42:14 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
776 |
"Modified: / 5.2.2000 / 23:32:20 / cg" |
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 |
selectionChangedByClick |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
780 |
"we are not interested in that - get another notification |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
781 |
via the changed valueHolder " |
12123
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
784 |
update:something with:aParameter from:changedObject |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
785 |
|cls clsName sel mthd mustFlushInheritanceInfo| |
12308 | 786 |
|
787 |
mustFlushInheritanceInfo := true. |
|
12123
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 |
"/ some can be ignored immediately |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
790 |
changedObject == Smalltalk ifTrue:[ |
12308 | 791 |
classes isNil ifTrue:[ |
792 |
^ self. |
|
793 |
]. |
|
794 |
something isNil ifTrue:[ |
|
795 |
"/ self halt "/ huh - Smalltalk changed - so what ? |
|
796 |
^ self. |
|
797 |
]. |
|
798 |
something == #classComment ifTrue:[ |
|
799 |
^ self. |
|
800 |
]. |
|
801 |
something == #classVariables ifTrue:[ |
|
802 |
^ self. |
|
803 |
]. |
|
804 |
something == #organization ifTrue:[ |
|
805 |
^ self. |
|
806 |
]. |
|
807 |
something == #methodCategory ifTrue:[ |
|
808 |
"/ ignore here - methodCategoryList will tell me if required |
|
809 |
^ self |
|
810 |
]. |
|
811 |
(something == #classOrganization |
|
812 |
or:[ something == #methodCategoryAdded |
|
813 |
or:[ something == #methodCategoryRemoved |
|
814 |
or:[ something == #methodCategoriesRemoved |
|
815 |
or:[ something == #methodCategoryRenamed ]]]]) ifTrue:[ |
|
816 |
"/ ignore here - methodCategoryList will tell me if required |
|
817 |
^ self |
|
818 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
819 |
|
12308 | 820 |
something == #methodCoverageInfo ifTrue:[ |
821 |
self showCoverageInformation value ifFalse:[^ self]. |
|
822 |
mthd := aParameter. |
|
823 |
(classes notNil and:[classes includesIdentical:mthd mclass]) ifFalse:[ |
|
824 |
^ self "/ I don't care for that class |
|
825 |
]. |
|
826 |
mustFlushInheritanceInfo := false. |
|
827 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
828 |
|
12308 | 829 |
(something == #methodTrap |
830 |
or:[ something == #methodPrivacy |
|
831 |
or:[ something == #lastTestRunResult] ]) ifTrue:[ |
|
832 |
self window shown ifFalse:[ |
|
833 |
"JV@2011-11-17: Do not break the dependency here, |
|
834 |
because then the window won't get updates once |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
835 |
deiconified -> leads to confusing behavior |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
836 |
(browser shows obsolete info)" |
12308 | 837 |
"/changedObject removeDependent:self. "/ ????? |
838 |
self invalidateList. |
|
839 |
^ self |
|
840 |
]. |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
841 |
cls := aParameter at:1. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
842 |
sel := aParameter at:2. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
843 |
mthd := cls compiledMethodAt:sel. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
844 |
(mthd isWrapped or:[mthd isMethodWithBreakpoints]) ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
845 |
(methodList includes:mthd originalMethod) ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
846 |
methodList replaceAll:mthd originalMethod with:mthd. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
847 |
lastSelectedMethods replaceAll:mthd originalMethod with:mthd. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
848 |
] |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
849 |
]. |
12308 | 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:[ |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
858 |
cls := aParameter first. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
859 |
clsName := cls name. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
860 |
(classes contains:[:aClass | aClass name = clsName]) ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
861 |
^ self "/ I dont care for that class |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
862 |
]. |
12308 | 863 |
sel := aParameter second. |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
864 |
(methodList contains:[:mthd | mthd getMclass notNil and:[mthd selector = sel]]) ifFalse:[ |
12308 | 865 |
mustFlushInheritanceInfo := false. |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
866 |
self window topView hasFocus ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
867 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
868 |
^ self. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
869 |
]. |
12308 | 870 |
]. |
871 |
]. |
|
872 |
||
873 |
mustFlushInheritanceInfo ifTrue:[ |
|
874 |
"/ as the organisation changes, flush my remembered redefinition-cache-info |
|
875 |
classAndSelectorsRedefinedBySubclassesOfClass := nil. |
|
876 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
877 |
|
12308 | 878 |
something == #classDefinition ifTrue:[ |
879 |
cls := aParameter. |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
880 |
clsName := cls name. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
881 |
(classes contains:[:aClass | aClass name = clsName]) ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
882 |
^ self "/ I don't care for that class |
12308 | 883 |
]. |
884 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
|
885 |
^ self. |
|
886 |
]. |
|
887 |
something == #classRemove ifTrue:[ |
|
888 |
^ self. |
|
889 |
]. |
|
890 |
something == #classRename ifTrue:[ |
|
891 |
^ self. |
|
892 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
893 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
894 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
895 |
"/ 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
|
896 |
"/ (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
|
897 |
"/ an obsolete methods code being shown by the codeView. |
12308 | 898 |
(something == #methodInClass |
899 |
or:[ something == #methodCoverageInfo ]) ifTrue:[ |
|
900 |
"/ as the organisation changes, flush my remembered redefinition-cache-info |
|
901 |
classAndSelectorsRedefinedBySubclassesOfClass := nil. |
|
902 |
cls := aParameter at:1. |
|
903 |
(classes includesIdentical:cls) ifFalse:[ |
|
904 |
^ self "/ I dont care for that class |
|
905 |
]. |
|
906 |
self enqueueDelayedUpdate:something with:aParameter from:changedObject. |
|
907 |
^ self |
|
908 |
]. |
|
909 |
||
910 |
something == #coverageInfo ifTrue:[ |
|
911 |
listValid == true ifTrue:[ |
|
912 |
self enqueueDelayedUpdateList |
|
913 |
]. |
|
914 |
^ self. |
|
12123
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
917 |
something == #methodInClassRemoved ifTrue:[ |
12308 | 918 |
cls := aParameter at:1. |
919 |
(classes includesIdentical:cls) ifFalse:[ |
|
920 |
^ self "/ I dont care for that class |
|
921 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
922 |
]. |
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 |
super update:something with:aParameter from:changedObject |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
925 |
|
12308 | 926 |
"Modified: / 17-11-2011 / 19:22:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12262 | 927 |
"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
|
928 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
929 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
930 |
!MethodList methodsFor:'drag & drop'! |
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 |
canDropContext:aDropContext |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
933 |
|methods| |
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 |
aDropContext sourceWidget == aDropContext targetWidget ifTrue:[^ false]. |
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 |
methods := aDropContext dropObjects collect:[:obj | obj theObject]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
938 |
(methods conform:[:aMethod | aMethod isMethod]) ifFalse:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
939 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
940 |
self masterApplication theSingleSelectedClass isNil ifTrue:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
941 |
^ true |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
942 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
943 |
"Modified: / 13-09-2006 / 11:43:54 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
944 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
945 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
946 |
doDropContext:aDropContext |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
947 |
|methods browser| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
948 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
949 |
methods := aDropContext dropObjects collect:[:aDropObject | aDropObject theObject]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
950 |
(methods conform:[:something | something isMethod]) ifFalse:[^ self]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
951 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
952 |
browser := self masterApplication. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
953 |
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
|
954 |
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
|
955 |
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
|
956 |
toClass:(browser theSingleSelectedClass). |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
957 |
] 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
|
958 |
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
|
959 |
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
|
960 |
toClass:(browser theSingleSelectedClass). |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
961 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
962 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
963 |
"Modified: / 13-09-2006 / 11:43:44 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
964 |
! ! |
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 |
!MethodList methodsFor:'private'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
967 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
968 |
isMethodToBeShown:aMethod |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
969 |
"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
|
970 |
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
|
971 |
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
|
972 |
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
|
973 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
974 |
|generator| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
975 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
976 |
generator := inGeneratorHolder value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
977 |
generator isNil ifTrue:[ |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
978 |
^ false |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
979 |
]. |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
980 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
981 |
"/ generator generates nil-selector entries |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
982 |
"/ to pass multiple-class and multiple-protocol info |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
983 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
984 |
generator do:[:cls :cat :sel :mthd | |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
985 |
mthd == aMethod ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
986 |
mthd isSynthetic ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
987 |
sel notNil ifTrue:[ |
12265 | 988 |
"/ cg: no longer filter those... |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
989 |
"/ (packageFilter value isNil |
12265 | 990 |
"/ or:[ packageFilter value includes:mthd package ]) ifTrue:[ |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
991 |
^ true |
12265 | 992 |
"/ ] |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
993 |
] |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
994 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
995 |
^ false |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
996 |
] |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
997 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
998 |
^ false |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
999 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1000 |
"Created: / 17-08-2011 / 15:03:34 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1001 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1002 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1003 |
listOfMethodNames |
12308 | 1004 |
|methods entries selectorBag newNameList allClasses newClasses |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1005 |
allCategories "allSelectors" |
12308 | 1006 |
generator doShowClass doShowClassFirst doShowCategory enforceClassAndProtocolInList |
12125 | 1007 |
theMethod sortByClass anyMethodToWatch mclass |
12308 | 1008 |
packageFilterValue nameListEntryForExtensions |
1009 |
suppressInheritanceInfoNow startTime| |
|
1010 |
||
1011 |
suppressInheritanceInfoNow := (showMethodInheritance value ? true) not. |
|
1012 |
startTime := Timestamp now. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1013 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1014 |
generator := inGeneratorHolder value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1015 |
generator isNil ifTrue:[ |
12308 | 1016 |
^ #() |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1017 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1018 |
allClasses := IdentitySet new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1019 |
allCategories := IdentitySet new. |
12308 | 1020 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1021 |
"/ allSelectors := Set new. |
12308 | 1022 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1023 |
newClasses := IdentitySet new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1024 |
selectorBag := Bag new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1025 |
entries := OrderedCollection new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1026 |
enforceClassAndProtocolInList := false. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1027 |
anyMethodToWatch := false. |
12265 | 1028 |
"/ no longer filter those |
1029 |
"/ packageFilterValue := packageFilter value. |
|
12125 | 1030 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1031 |
"/ generator generates nil-selector entries |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1032 |
"/ to pass multiple-class and multiple-protocol info |
12308 | 1033 |
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
|
1034 |
|
12125 | 1035 |
generator do:[:cls :cat :sel :mthd | |
12308 | 1036 |
|categoryIsExtensionsPseudoCategory| |
12125 | 1037 |
|
12308 | 1038 |
categoryIsExtensionsPseudoCategory := (cat = nameListEntryForExtensions). |
12125 | 1039 |
|
12308 | 1040 |
(cls isNil and:[ cat isNil and:[ sel isNil ] ]) ifTrue:[ |
1041 |
enforceClassAndProtocolInList := true |
|
1042 |
] ifFalse:[ |
|
1043 |
cls notNil ifTrue:[ |
|
1044 |
allClasses add:cls. |
|
1045 |
]. |
|
1046 |
"/ cat notNil ifTrue:[ |
|
1047 |
"/ allCategories add:cat. |
|
1048 |
"/ ]. |
|
1049 |
"/ JV: Filter method through package filter |
|
1050 |
"/ but not, if it is an extension method and we are showing extensions |
|
1051 |
(mthd notNil |
|
12311 | 1052 |
and:[ (mthd isSynthetic not or:[ self showSyntheticMethods value ]) |
12308 | 1053 |
and:[ sel notNil ]] |
1054 |
) ifTrue:[ |
|
1055 |
(packageFilterValue isNil |
|
1056 |
or:[ (packageFilterValue includes:mthd package) |
|
1057 |
or:[ categoryIsExtensionsPseudoCategory and:[ mthd isExtension] ]] |
|
1058 |
) ifTrue:[ |
|
1059 |
entries add:(Array with:cls with:sel with:mthd). |
|
1060 |
selectorBag add:sel. |
|
1061 |
newClasses add:cls. |
|
1062 |
||
1063 |
allCategories add:mthd category. |
|
1064 |
"/ allSelectors add:sel. |
|
1065 |
] |
|
1066 |
] |
|
1067 |
]. |
|
1068 |
(mthd notNil and:[ mthd isWrapped ]) ifTrue:[ |
|
1069 |
(mthd isTiming or:[ mthd isCounting or:[ mthd isCountingMemoryUsage ] ]) ifTrue:[ |
|
1070 |
anyMethodToWatch := true |
|
1071 |
] |
|
1072 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1073 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1074 |
showMethodInheritance value ~~ false ifTrue:[ |
12308 | 1075 |
"/ collect redefinition information once (big speedup for #methodIsRedefinedbelow) |
1076 |
classAndSelectorsRedefinedBySubclassesOfClass isNil ifTrue:[ |
|
1077 |
classAndSelectorsRedefinedBySubclassesOfClass := IdentityDictionary new. |
|
1078 |
]. |
|
1079 |
allClasses do:[:cls | |
|
1080 |
|d| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1081 |
|
12308 | 1082 |
d := classAndSelectorsRedefinedBySubclassesOfClass. |
1083 |
(d notNil and:[ (d includesKey:cls) not ]) ifTrue:[ |
|
1084 |
cls isLoaded ifTrue:[ |
|
1085 |
d at:cls put:(self setOfAllSelectorsImplementedBelow:cls) |
|
1086 |
] |
|
1087 |
] |
|
1088 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1089 |
]. |
12308 | 1090 |
|
1091 |
"/ multiple classes must: add the className for some |
|
1092 |
||
1093 |
doShowClass := enforceClassAndProtocolInList or:[ allClasses size > 1 ]. |
|
1094 |
||
1095 |
"/ multiple categories: must add the categorie for some |
|
1096 |
||
1097 |
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
|
1098 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1099 |
doShowClassFirst := doShowClass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1100 |
doShowClassFirst := doShowClass and:[ sortBy value == #class ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1101 |
sortBy value == false ifTrue:[ |
12308 | 1102 |
"/ do not sort |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1103 |
] ifFalse:[ |
12308 | 1104 |
(doShowClass not and:[ sortBy value == #class ]) ifTrue:[ |
1105 |
"/ multiple classes must add the className for some |
|
1106 |
"/ check, if doShowClass must be enforced |
|
1107 |
entries do:[:entry | |
|
1108 |
|cls sel mthd s needClass| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1109 |
|
12308 | 1110 |
cls := entry at:1. |
1111 |
sel := entry at:2. |
|
1112 |
mthd := entry at:3. |
|
1113 |
doShowClass ifFalse:[ |
|
1114 |
doShowClass := (selectorBag occurrencesOf:sel) > 1 |
|
1115 |
]. |
|
1116 |
]. |
|
1117 |
]. |
|
1118 |
sortByClass := doShowClass and:[ sortBy value == #class ]. |
|
1119 |
sortByClass ifTrue:[ |
|
1120 |
entries |
|
1121 |
sort:[:a :b | |
|
1122 |
|nmA nmB clsNmA clsNmB nsNmA nsNmB| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1123 |
|
12308 | 1124 |
clsNmA := (a at:1) name. |
1125 |
clsNmB := (b at:1) name. |
|
1126 |
clsNmA = clsNmB ifTrue:[ |
|
1127 |
nmA := (a at:2) asSymbol selector. |
|
1128 |
nmB := (b at:2) asSymbol selector. |
|
1129 |
nmA = nmB ifTrue:[ |
|
1130 |
nsNmA := (a at:3) nameSpaceName. |
|
1131 |
nsNmB := (b at:3) nameSpaceName. |
|
1132 |
nsNmA < nsNmB |
|
1133 |
] ifFalse:[ nmA < nmB ] |
|
1134 |
] ifFalse:[ |
|
1135 |
clsNmA < clsNmB |
|
1136 |
] |
|
1137 |
]. |
|
1138 |
] ifFalse:[ |
|
1139 |
sortBy value == #category ifTrue:[ |
|
1140 |
entries |
|
1141 |
sort:[:a :b | |
|
1142 |
|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
|
1143 |
|
12308 | 1144 |
catA := (a at:3) category. |
1145 |
catB := (b at:3) category. |
|
1146 |
catA = catB ifTrue:[ |
|
1147 |
nmA := (a at:2) asSymbol selector. |
|
1148 |
nmB := (b at:2) asSymbol selector. |
|
1149 |
nmA = nmB ifTrue:[ |
|
1150 |
clsNmA := (a at:1) name. |
|
1151 |
clsNmB := (b at:1) name. |
|
1152 |
clsNmA = clsNmB ifTrue:[ |
|
1153 |
nsNmA := (a at:3) nameSpaceName. |
|
1154 |
nsNmB := (b at:3) nameSpaceName. |
|
1155 |
nsNmA < nsNmB |
|
1156 |
] ifFalse:[ |
|
1157 |
clsNmA < clsNmB |
|
1158 |
] |
|
1159 |
] ifFalse:[ nmA < nmB ] |
|
1160 |
] ifFalse:[ |
|
1161 |
catA < catB |
|
1162 |
] |
|
1163 |
]. |
|
1164 |
] ifFalse:[ |
|
1165 |
entries |
|
1166 |
sort:[:a :b | |
|
1167 |
|nmA nmB clsNmA clsNmB nsNmA nsNmB| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1168 |
|
12308 | 1169 |
nmA := (a at:2) asSymbol selector. |
1170 |
nmB := (b at:2) asSymbol selector. |
|
1171 |
nmA = nmB ifTrue:[ |
|
1172 |
clsNmA := (a at:1) name. |
|
1173 |
clsNmB := (b at:1) name. |
|
1174 |
clsNmA = clsNmB ifTrue:[ |
|
1175 |
nsNmA := (a at:3) nameSpaceName. |
|
1176 |
nsNmB := (b at:3) nameSpaceName. |
|
1177 |
nsNmA < nsNmB |
|
1178 |
] ifFalse:[ |
|
1179 |
clsNmA < clsNmB |
|
1180 |
] |
|
1181 |
] ifFalse:[ nmA < nmB ] |
|
1182 |
]. |
|
1183 |
]. |
|
1184 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1185 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1186 |
methods := OrderedCollection new:(entries size). |
12308 | 1187 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1188 |
"/ first generate the new methodList, and see if it is different ... |
12308 | 1189 |
|
1190 |
entries do:[:entry | |
|
1191 |
|sel mthd| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1192 |
|
12308 | 1193 |
mthd := entry at:3. |
1194 |
methods add:mthd. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1195 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1196 |
false "methodList = methods" "does not care for changed icons" ifTrue:[ |
12308 | 1197 |
"/ same list |
1198 |
newNameList := self browserNameList. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1199 |
] ifFalse:[ |
12308 | 1200 |
newNameList := OrderedCollection new:(entries size). |
1201 |
||
1202 |
"/ multiple classes must add the className for some |
|
1203 |
||
1204 |
entries do:[:entry | |
|
1205 |
|cls sel mthd s needClass| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1206 |
|
12308 | 1207 |
cls := entry at:1. |
1208 |
sel := entry at:2. |
|
1209 |
mthd := entry at:3. |
|
1210 |
needClass := doShowClass. |
|
1211 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1212 |
"/ needClass ifFalse:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1213 |
"/ needClass := (selectorBag occurrencesOf:sel) > 1 |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1214 |
"/ ]. |
12308 | 1215 |
(suppressInheritanceInfoNow not |
1216 |
and:[ (Timestamp now deltaFrom:startTime) > 3 seconds ]) ifTrue:[ |
|
1217 |
suppressInheritanceInfoNow := true. |
|
1218 |
]. |
|
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
|
1219 |
|
12308 | 1220 |
s := self |
1221 |
listEntryForMethod:mthd |
|
1222 |
selector:sel |
|
1223 |
class:cls |
|
1224 |
showClass:needClass |
|
1225 |
showCategory:doShowCategory |
|
1226 |
classFirst:doShowClassFirst |
|
1227 |
suppressInheritanceInfo:suppressInheritanceInfoNow. |
|
1228 |
||
1229 |
newNameList add:s. |
|
1230 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1231 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1232 |
self makeIndependent. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1233 |
classes := newClasses. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1234 |
self makeDependent. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1235 |
methodList := methods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1236 |
methods size == 1 ifTrue:[ |
12308 | 1237 |
theMethod := methods first. |
1238 |
mclass := theMethod mclass. |
|
1239 |
mclass isNil ifTrue:[ |
|
1240 |
theMethod isWrapped ifTrue:[ |
|
1241 |
theMethod := theMethod originalMethod. |
|
1242 |
mclass := theMethod mclass. |
|
1243 |
]. |
|
1244 |
]. |
|
1245 |
self methodLabelHolder value:(mclass isNil |
|
1246 |
ifTrue:[ ('???' , ' ' , '???') ] |
|
1247 |
ifFalse:[ (mclass name , ' ' , theMethod selector) ]) |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1248 |
]. |
12308 | 1249 |
"/ anyMethodToWatch ifTrue:[ |
1250 |
"/ self startWatchProcess. |
|
1251 |
"/ ] ifFalse:[ |
|
1252 |
"/ self stopWatchProcess. |
|
1253 |
"/ ]. |
|
1254 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1255 |
"/ 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
|
1256 |
"/ update in the future. |
12308 | 1257 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1258 |
lastShowClass := doShowClass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1259 |
lastShowClassFirst := doShowClassFirst. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1260 |
lastShowCategory := doShowCategory. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1261 |
^ newNameList. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1262 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1263 |
"Created: / 05-02-2000 / 22:43:40 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1264 |
"Modified: / 24-08-2010 / 20:34:09 / Jan Vrany <enter your email here>" |
12265 | 1265 |
"Modified: / 20-07-2012 / 20:00:58 / cg" |
12311 | 1266 |
"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
|
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 |
makeDependent |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1270 |
Smalltalk addDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1271 |
"/ ChangeSet addDependent: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 |
"Modified: / 10-11-2006 / 17:57:01 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1274 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1275 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1276 |
makeIndependent |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1277 |
Smalltalk removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1278 |
"/ ChangeSet removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1279 |
! |
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 |
method:mthd includesModsOfClassVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1282 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1283 |
! |
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 |
method:mthd includesModsOfInstanceVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1286 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#modifiedInstVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1287 |
! |
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 |
method:mthd includesRefsToClassVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1290 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedClassVars |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1291 |
! |
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 |
method:mthd includesRefsToInstanceVariable:variablesToHighLight |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1294 |
^ self method:mthd includesRefsToVariable:variablesToHighLight askParserWith:#usedInstVars |
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1297 |
method:mthd includesRefsToVariable:variablesToHighLight askParserWith:querySelector |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1298 |
|cls src parser usedVars anyVarNameAccessable| |
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 |
cls := mthd mclass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1301 |
cls isNil ifTrue:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1302 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1303 |
anyVarNameAccessable := cls allInstVarNames includesAny:variablesToHighLight. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1304 |
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
|
1305 |
anyVarNameAccessable := cls theNonMetaclass allClassVarNames includesAny:variablesToHighLight. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1306 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1307 |
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
|
1308 |
"/ 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
|
1309 |
^ false |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1310 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1311 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1312 |
src := mthd source. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1313 |
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
|
1314 |
" |
87a1837791ec
Commented rubbish code that ignores change-update 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 |
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
|
1316 |
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
|
1317 |
" |
87a1837791ec
Commented rubbish code that ignores change-update 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 |
(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
|
1319 |
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
|
1320 |
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
|
1321 |
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
|
1322 |
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
|
1323 |
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
|
1324 |
(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
|
1325 |
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
|
1326 |
(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
|
1327 |
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
|
1328 |
^ 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
|
1329 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1330 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1331 |
] |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1332 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1333 |
^ false |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1334 |
! |
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 |
methodIsInheritedFromAbove:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1337 |
|mClass| |
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 |
mClass := aMethod mclass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1340 |
(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
|
1341 |
^ (mClass superclass whichClassIncludesSelector:aMethod selector) notNil. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1342 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1343 |
^ 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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1346 |
methodIsRedefinedBelow:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1347 |
|mclass subClasses setOfRedefinedSelectors| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1348 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1349 |
mclass := aMethod mclass. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1350 |
mclass isNil ifTrue:[^ false]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1351 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1352 |
"/ 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
|
1353 |
classAndSelectorsRedefinedBySubclassesOfClass notNil |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1354 |
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 |
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
|
1356 |
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
|
1357 |
^ 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
|
1358 |
] |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1359 |
]. |
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 |
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
|
1362 |
subClasses := lastMethodClassesSubclasses |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1363 |
] 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
|
1364 |
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
|
1365 |
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
|
1366 |
lastMethodClass := mclass. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1367 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1368 |
^ subClasses contains:[:cls | cls includesSelector:aMethod selector]. |
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1371 |
redefinedOrInheritedIconFor:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1372 |
|inherited redefined subclassResponsibility| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1373 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1374 |
inherited := self methodIsInheritedFromAbove:aMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1375 |
redefined := self methodIsRedefinedBelow:aMethod. |
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 |
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
|
1378 |
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
|
1379 |
^ 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
|
1380 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update 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 |
^ self methodInheritedFromAboveIcon. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1382 |
]. |
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 := aMethod sends:#subclassResponsibility. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1385 |
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
|
1386 |
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
|
1387 |
^ 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
|
1388 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1389 |
^ self methodRedefinedBelowIcon. |
12123
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 |
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
|
1392 |
^ self methodIsSubclassResponsibilityIcon. |
12123
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1395 |
^ self methodEmptyInheritedIcon |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1396 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1397 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1398 |
release |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1399 |
super release. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1400 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1401 |
filterClassVars removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1402 |
selectedMethodNameIndices removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1403 |
showMethodInheritance removeDependent:self. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1404 |
variableFilter removeDependent:self. |
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1407 |
resourceIconForMethod:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1408 |
^ SystemBrowser resourceIconForMethod:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1409 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1410 |
"Modified: / 17-08-2006 / 09:09:01 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1411 |
! |
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 |
setOfAllSelectorsImplementedBelow:aClass |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1414 |
|set| |
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 |
set := IdentitySet new. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1417 |
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
|
1418 |
set addAll:(eachSubclass methodDictionary keys). |
12123
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 |
^ set |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1421 |
! |
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 |
updateList |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1424 |
|prevSelection newList newSelection newSelIdx reverseMap sameContents newListSize oldListSize |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1425 |
prevClasses methodSet selectedMethodsHolder| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1426 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1427 |
selectedMethodsHolder := self selectedMethods. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1428 |
prevSelection := selectedMethodsHolder value ? #(). |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1429 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1430 |
prevClasses := classes isNil ifTrue:[ #() ] ifFalse:[ classes copy ]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1431 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1432 |
oldListSize := self browserNameList size. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1433 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1434 |
self topApplication withWaitCursorDo:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1435 |
newList := self listOfMethodNames. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1436 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1437 |
newListSize := newList size. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1438 |
sameContents := self updateListFor:newList. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1439 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1440 |
sameContents ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1441 |
"/ self browserNameList value:newList. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1442 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1443 |
(prevSelection size == 0 |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1444 |
and:[selectedMethodsHolder value size ~~ 0]) ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1445 |
"/ this happens during early startup time, |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1446 |
"/ when the selection is already (pre-)set, |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1447 |
"/ and the methodList is generated the first time |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1448 |
"/ (i.e. when opened with preset selection |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1449 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1450 |
"/ do not clobber the selection in this case. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1451 |
prevSelection := selectedMethodsHolder value. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1452 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1453 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1454 |
(methodList size == 0 or:[prevSelection size == 0]) ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1455 |
newSelection := #() |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1456 |
] ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1457 |
methodSet := methodList. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1458 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1459 |
"/ intersect is much faster with sets, if the number of items is large |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1460 |
"/ however, only if its worth building the set ... |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1461 |
(methodSet size + prevSelection size) > 35 ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1462 |
methodSet := methodSet asIdentitySet. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1463 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1464 |
newSelection := methodSet intersect:prevSelection. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1465 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1466 |
newSelection size > 0 ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1467 |
newSelection size > 100 ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1468 |
"/ need selection indices - might be expensive if done straight forward... |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1469 |
reverseMap := IdentityDictionary new. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1470 |
methodList keysAndValuesDo:[:idx :mthd | reverseMap at:mthd put:idx]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1471 |
newSelIdx := newSelection collect:[:mthd | reverseMap at:mthd]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1472 |
] ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1473 |
newSelIdx := newSelection collect:[:mthd | methodList identityIndexOf:mthd] |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1474 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1475 |
"/ self halt. |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1476 |
"/ force change (for dependents) |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1477 |
newSelIdx ~= selectedMethodNameIndices value ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1478 |
selectedMethodNameIndices value:newSelIdx. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1479 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1480 |
] ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1481 |
lastSelectedMethods := selectedMethodsHolder value. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1482 |
lastSelectedMethods notNil ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1483 |
lastSelectedMethods := lastSelectedMethods asOrderedCollection |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1484 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1485 |
selectedMethodNameIndices value size > 0 ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1486 |
selectedMethodNameIndices value:#(). |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1487 |
] |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1488 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1489 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1490 |
newSelection ~= prevSelection ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1491 |
self selectionChanged. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1492 |
] |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1493 |
] ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1494 |
"/ same list - but classes might have changed |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1495 |
"/ that is the case, if the class selection has been changed, |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1496 |
"/ 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
|
1497 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1498 |
(prevClasses ~= (classes ? IdentitySet new)) ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1499 |
(newListSize > 0 or:[oldListSize > 0]) ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1500 |
self selectionChanged. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1501 |
] |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1502 |
] |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1503 |
] |
12123
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 |
"Modified: / 05-03-2007 / 16:07:24 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1506 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1507 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1508 |
updateListEntryFor:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1509 |
"update my list for a single method. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1510 |
(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
|
1511 |
would be too slow)" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1512 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1513 |
|s idx| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1514 |
|
12308 | 1515 |
s := self |
1516 |
listEntryForMethod:aMethod |
|
1517 |
selector:aMethod selector |
|
1518 |
class:aMethod mclass |
|
1519 |
showClass:lastShowClass |
|
1520 |
showCategory:lastShowCategory |
|
1521 |
classFirst:lastShowClassFirst |
|
1522 |
suppressInheritanceInfo:false. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1523 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1524 |
idx := methodList identityIndexOf:aMethod. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1525 |
idx == 0 ifTrue:[ |
12308 | 1526 |
aMethod isWrapped ifTrue:[ |
1527 |
idx := methodList identityIndexOf:aMethod originalMethod. |
|
1528 |
idx == 0 ifTrue:[ |
|
1529 |
"/ aMethod (wrapped) has changed its status, but is not in the list. |
|
1530 |
^ self. |
|
1531 |
]. |
|
1532 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1533 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1534 |
idx == 0 ifTrue:[ |
12308 | 1535 |
"/ method was not previously shown; try to avoid a full update |
1536 |
(self isMethodToBeShown:aMethod) ifTrue:[ |
|
1537 |
self invalidateList |
|
1538 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1539 |
] ifFalse:[ |
12308 | 1540 |
self browserNameList at:idx put:s. |
12123
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 |
"Modified: / 17-08-2011 / 15:05:02 / cg" |
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 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1546 |
!MethodList methodsFor:'private-presentation'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1547 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1548 |
colorForCoverageInformationOfMethod:aMethod |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1549 |
aMethod isInstrumented ifFalse:[^ nil]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1550 |
aMethod category = 'documentation' ifTrue:[^ nil]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1551 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1552 |
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
|
1553 |
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
|
1554 |
^ 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
|
1555 |
]. |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1556 |
^ UserPreferences current colorForInstrumentedPartiallyCoveredCode |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1557 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1558 |
^ UserPreferences current colorForInstrumentedNeverCalledCode |
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 |
"Created: / 30-04-2010 / 11:53:38 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1561 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1562 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1563 |
listEntryForMethod:aMethod selector:selector class:cls showClass:showClass showCategory:showCategory classFirst:showClassFirst |
12308 | 1564 |
"answer a method list entry |
1565 |
gimmics: |
|
1566 |
adding a little image to breakPointed methods, |
|
1567 |
inheritance indicators, |
|
1568 |
highlight accessors of variable" |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1569 |
|
12308 | 1570 |
^ self |
1571 |
listEntryForMethod:aMethod |
|
1572 |
selector:selector |
|
1573 |
class:cls |
|
1574 |
showClass:showClass showCategory:showCategory |
|
1575 |
classFirst:showClassFirst |
|
1576 |
suppressInheritanceInfo:false |
|
1577 |
! |
|
1578 |
||
1579 |
listEntryForMethod:aMethod selector:selector class:cls showClass:showClass showCategory:showCategory classFirst:showClassFirst suppressInheritanceInfo:suppressInheritanceInfo |
|
1580 |
"answer a method list entry |
|
1581 |
gimmics: |
|
1582 |
adding a little image to breakPointed methods, |
|
1583 |
inheritance indicators, |
|
1584 |
highlight accessors of variable" |
|
1585 |
||
1586 |
|s icn variablesToHighlight classVarsToHighLight |
|
1587 |
doHighLight doHighLightRed clr emp cat l redefIcon |
|
1588 |
metrics complexity complexityString complexityIcon mark lastResultOrNil| |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1589 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1590 |
aMethod isNil ifTrue:[ |
12308 | 1591 |
"/ a non-existing (pseudo) method (such as required protocol) |
1592 |
^ selector colorizeAllWith:Color red. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1593 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1594 |
|
12308 | 1595 |
showClassFirst ifTrue:[ |
1596 |
s := aMethod printStringForBrowserWithSelector:selector allBold inClass:cls. |
|
1597 |
s := cls nameInBrowser , ' ' , s |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1598 |
] ifFalse:[ |
12308 | 1599 |
s := aMethod printStringForBrowserWithSelector:selector inClass:cls. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1600 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1601 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1602 |
"/ |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1603 |
"/ wrap icons (i.e. break- or trace points on the method) |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1604 |
"/ have higher prio ... |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1605 |
"/ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1606 |
(aMethod notNil and:[aMethod isWrapped]) ifTrue:[ |
12308 | 1607 |
(s endsWith:' !!') ifTrue:[ |
1608 |
s := s copyWithoutLast:2 |
|
1609 |
]. |
|
1610 |
aMethod isBreakpointed ifTrue:[ |
|
1611 |
icn := self stopIcon |
|
1612 |
] ifFalse:[ |
|
1613 |
aMethod isTimed ifTrue:[ |
|
1614 |
icn := self timeIcon |
|
1615 |
] ifFalse:[ |
|
1616 |
icn := self traceIcon |
|
1617 |
] |
|
1618 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1619 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1620 |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1621 |
"/ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1622 |
"/ breakpoint icons (i.e. break- or trace points inside) |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1623 |
"/ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1624 |
icn isNil ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1625 |
(aMethod notNil and:[aMethod isMethodWithBreakpoints]) ifTrue:[ |
12652
e5f95ff2fedf
Fixed DNU in Tools::MethodList>>listEntryForMethod:selector:class:showClass:showCategory:classFirst:suppressInheritanceInfo:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12650
diff
changeset
|
1626 |
icn := self stopIcon |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1627 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1628 |
]. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1629 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1630 |
icn isNil ifTrue:[ |
12308 | 1631 |
self showImageResourceMethodsImages value ~~ false ifTrue:[ |
1632 |
(aMethod hasImageResource) ifTrue:[ |
|
1633 |
aMethod mclass isMeta ifTrue:[ |
|
1634 |
icn := aMethod valueWithReceiver:nil arguments:nil . |
|
1635 |
]. |
|
1636 |
]. |
|
1637 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1638 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1639 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1640 |
icn isNil ifTrue:[ |
12308 | 1641 |
showMethodTypeIcon value ~~ false ifTrue:[ |
1642 |
icn := self resourceIconForMethod:aMethod. |
|
1643 |
]. |
|
1644 |
icn isNil ifTrue:[ |
|
1645 |
aMethod isProtected ifTrue:[ |
|
1646 |
icn := self protectedMethodIcon |
|
1647 |
] ifFalse:[ |
|
1648 |
aMethod isPrivate ifTrue:[ |
|
1649 |
icn := self privateMethodIcon |
|
1650 |
] ifFalse:[ |
|
1651 |
(aMethod isIgnored) ifTrue:[ |
|
1652 |
icn := self ignoredMethodIcon |
|
1653 |
] ifFalse:[ |
|
1654 |
(aMethod isJavaMethod and:[aMethod isAbstract]) ifTrue:[ |
|
1655 |
icn := self abstractMethodIcon |
|
1656 |
] |
|
1657 |
] |
|
1658 |
] |
|
1659 |
]. |
|
1660 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1661 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1662 |
icn isNil ifTrue:[ |
12308 | 1663 |
(selector startsWith:'test') ifTrue:[ |
1664 |
((cls isSubclassOf:TestCase) |
|
1665 |
and:[cls isAbstract not]) ifTrue:[ |
|
1666 |
"JV@2011-11-17: Show thumbs even if not all test were run" |
|
1667 |
||
1668 |
lastResultOrNil := cls rememberedOutcomeFor:selector. |
|
1669 |
lastResultOrNil notNil ifTrue:[ |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1670 |
|state| |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1671 |
|
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1672 |
state := lastResultOrNil result. |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1673 |
(state == TestResult statePass) ifTrue:[ |
12308 | 1674 |
icn := SystemBrowser testCasePassedIcon |
1675 |
] ifFalse:[ |
|
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1676 |
((state == TestResult stateError) |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1677 |
or:[ (state == TestResult stateFail) ]) ifTrue:[ |
12308 | 1678 |
icn := SystemBrowser testCaseFailedIcon |
12650
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1679 |
] ifFalse:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1680 |
(state == TestResult stateSkip) ifTrue:[ |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1681 |
icn := SystemBrowser testCaseSkippedIcon |
e0f607754b9a
Merged 18d06283743d and ff31bac2fd1b (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12431
diff
changeset
|
1682 |
] |
12308 | 1683 |
] |
1684 |
] |
|
1685 |
]. |
|
1686 |
]. |
|
1687 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1688 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1689 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1690 |
showClass ifTrue:[ |
12308 | 1691 |
showClassFirst ifFalse:[ |
1692 |
s := s , ' [' , cls name allBold , ']'. |
|
1693 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1694 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1695 |
showCategory ifTrue:[ |
12308 | 1696 |
cat := aMethod category. |
1697 |
cat notNil ifTrue:[ |
|
1698 |
s := s , ' {' , (cat "asText allItalic" colorizeAllWith:Color grey), '}' |
|
1699 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1700 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1701 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1702 |
self showCoverageInformation value ifTrue:[ |
12308 | 1703 |
clr := self colorForCoverageInformationOfMethod:aMethod. |
1704 |
clr notNil ifTrue:[ |
|
1705 |
s := self colorize:s with:(#color->clr). |
|
1706 |
"/ aMethod isInstrumented ifTrue:[ |
|
1707 |
"/ icn := self instrumentationIcon |
|
1708 |
"/ ]. |
|
1709 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1710 |
] ifFalse:[ |
12308 | 1711 |
(ChangeSet current includesChangeForClass:cls selector:selector) ifTrue:[ |
1712 |
mark := self class markForBeingInChangeList. |
|
1713 |
"/ mark := self colorizeForChangedCode:mark. |
|
1714 |
s := s , mark. |
|
1715 |
"/ cg: I dont know why this was disabled - it is req'd to |
|
1716 |
"/ see changed methods in a method list (implementors...) |
|
1717 |
s := self colorizeForChangedCode:s. |
|
1718 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1719 |
|
12308 | 1720 |
(SmallTeam notNil and:[SmallTeam includesChangeForClass:cls selector:selector]) ifTrue:[ |
1721 |
s := (self colorizeForChangedCodeInSmallTeam:'!! '),s |
|
1722 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1723 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1724 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1725 |
variablesToHighlight := variableFilter value. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1726 |
variablesToHighlight size > 0 ifTrue:[ |
12308 | 1727 |
classVarsToHighLight := filterClassVars value. |
1728 |
classVarsToHighLight ifTrue:[ |
|
1729 |
doHighLight := self method:aMethod includesRefsToClassVariable:variablesToHighlight. |
|
1730 |
doHighLight ifTrue:[ |
|
1731 |
doHighLightRed := self method:aMethod includesModsOfClassVariable:variablesToHighlight. |
|
1732 |
]. |
|
1733 |
] ifFalse:[ |
|
1734 |
doHighLight := self method:aMethod includesRefsToInstanceVariable:variablesToHighlight. |
|
1735 |
doHighLight ifTrue:[ |
|
1736 |
doHighLightRed := self method:aMethod includesModsOfInstanceVariable:variablesToHighlight |
|
1737 |
] |
|
1738 |
]. |
|
1739 |
doHighLight ifTrue:[ |
|
1740 |
s := s allBold. |
|
1741 |
doHighLightRed ifTrue:[ |
|
1742 |
emp := (UserPreferences current emphasisForWrittenVariable) |
|
1743 |
] ifFalse:[ |
|
1744 |
emp := (UserPreferences current emphasisForReadVariable) |
|
1745 |
]. |
|
1746 |
s := s emphasisAllAdd:emp |
|
1747 |
] |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1748 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1749 |
|
12308 | 1750 |
(showMethodComplexity value == true |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1751 |
and:[ OOM::MethodMetrics notNil ]) ifTrue:[ |
12308 | 1752 |
icn isNil ifTrue:[ |
1753 |
metrics := OOM::MethodMetrics forMethod:aMethod. |
|
1754 |
complexity := metrics complexity ? 0. |
|
1755 |
complexityIcon := OOM::MethodMetrics iconForComplexity:complexity. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1756 |
|
12308 | 1757 |
ShowComplexityValue == true ifTrue:[ |
1758 |
complexityString := '{' , complexity printString , '}'. |
|
1759 |
s := complexityString , ' ' , s. |
|
1760 |
]. |
|
1761 |
"/ icn := icn ? complexityIcon. |
|
1762 |
s := LabelAndIcon icon:complexityIcon string:s. |
|
1763 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1764 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1765 |
|
12308 | 1766 |
(showMethodInheritance value ? true) ifTrue:[ |
1767 |
suppressInheritanceInfo ifTrue:[ |
|
1768 |
redefIcon := self methodEmptyInheritedIcon. |
|
1769 |
] ifFalse:[ |
|
1770 |
redefIcon := self redefinedOrInheritedIconFor:aMethod. |
|
1771 |
]. |
|
12230
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
1772 |
]. |
5568874ba4cf
- AbstractFileBrowser: added support for ant, hammer as build icon
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12229
diff
changeset
|
1773 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1774 |
(icn notNil or:[redefIcon notNil]) ifTrue:[ |
12308 | 1775 |
"/eXept version |
1776 |
"/l := LabelAndIcon icon:redefIcon string:s. |
|
1777 |
"/l image:icn. |
|
1778 |
"/JV: |
|
1779 |
l := LabelAndIcon icon:icn string:s. |
|
1780 |
l image:redefIcon. |
|
1781 |
icn isNil ifTrue:[l offset: 13]. |
|
1782 |
l gap:1. |
|
1783 |
^ l |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1784 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1785 |
^ s |
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 |
"Created: / 22-10-1996 / 19:51:00 / cg" |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1788 |
"Modified: / 15-08-2009 / 13:13:32 / Jan Vrany <vranyj1@fel.cvut.cz>" |
12205 | 1789 |
"Modified: / 07-03-2012 / 19:06:09 / cg" |
12652
e5f95ff2fedf
Fixed DNU in Tools::MethodList>>listEntryForMethod:selector:class:showClass:showCategory:classFirst:suppressInheritanceInfo:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12650
diff
changeset
|
1790 |
"Modified: / 10-04-2013 / 11:45:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1791 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1792 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1793 |
!MethodList methodsFor:'private-watching'! |
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 |
startWatchProcess |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1796 |
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
|
1797 |
^ self |
12123
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 |
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
|
1800 |
[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
|
1801 |
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
|
1802 |
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
|
1803 |
] |
87a1837791ec
Commented rubbish code that ignores change-update notifications when they come too fast. I feel the mask out some changes...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12296
diff
changeset
|
1804 |
] fork. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1805 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1806 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1807 |
stopWatchProcess |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1808 |
|p| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1809 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1810 |
(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
|
1811 |
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
|
1812 |
p terminate |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1813 |
]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1814 |
! ! |
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 |
!MethodList methodsFor:'setup'! |
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 |
postBuildWith:aBuilder |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1819 |
|methodListView| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1820 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1821 |
super postBuildWith:aBuilder. |
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 |
methodListView := aBuilder componentAt:'List'. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1824 |
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
|
1825 |
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
|
1826 |
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
|
1827 |
|nm method idx| |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1828 |
|
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
|
1829 |
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
|
1830 |
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
|
1831 |
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
|
1832 |
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
|
1833 |
]. |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1834 |
] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1835 |
! ! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1836 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1837 |
!MethodList class methodsFor:'documentation'! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1838 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1839 |
version |
12314 | 1840 |
^ '$Id: Tools__MethodList.st 8083 2013-01-14 11:48:37Z vranyj1 $' |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1841 |
! |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1842 |
|
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1843 |
version_CVS |
12308 | 1844 |
^ '§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
|
1845 |
! |
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1846 |
|
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12314
diff
changeset
|
1847 |
version_HG |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12314
diff
changeset
|
1848 |
|
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12314
diff
changeset
|
1849 |
^ '$Changeset: <not expanded> $' |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12314
diff
changeset
|
1850 |
! |
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12314
diff
changeset
|
1851 |
|
12128
a7ff7d66ee85
Improvements in LintHighlighter, few fixes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12125
diff
changeset
|
1852 |
version_SVN |
12314 | 1853 |
^ '$Id: Tools__MethodList.st 8083 2013-01-14 11:48:37Z vranyj1 $' |
12125 | 1854 |
! ! |
12431
9f0c59c742d5
Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12314
diff
changeset
|
1855 |