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