VersionDiffBrowser.st
author Claus Gittinger <cg@exept.de>
Thu, 30 Nov 2017 17:52:54 +0100
changeset 17827 cc7a2ad961f7
parent 17802 3fefef20b087
child 17875 c345e9001548
permissions -rw-r--r--
#UI_ENHANCEMENT by cg class: VersionDiffBrowser author+date in version list added: #selectedVersionIndexHolder #selectedVersionIndexHolderChanged #versionEntriesList changed: #methodsChangedSelectionChanged #updateVersionList class: VersionDiffBrowser class changed: #windowSpecForMultipleVersions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     1
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     2
 COPYRIGHT (c) 2000 by eXept Software AG
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
     3
	      All Rights Reserved
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     4
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     5
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     6
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     8
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
     9
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    10
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    11
"
2650
447c99ac6f76 oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
    12
"{ Package: 'stx:libtool' }"
447c99ac6f76 oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
    13
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
    14
"{ NameSpace: Smalltalk }"
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
    15
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ApplicationModel subclass:#VersionDiffBrowser
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
    17
	instanceVariableNames:'classChangeSet diffTextView boxAVisible boxBVisible boxMVisible
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
    18
		classIfSingleClassDiff versionAIfSingleClassDiff
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
    19
		versionBIfSingleClassDiff changedLabelHolder diffTextLabelA
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
    20
		diffTextLabelB methodText methodsChanged methodsChangedFiltered
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
    21
		methodsChangedSelection methodsOnlyInA methodsOnlyInAFiltered
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
    22
		methodsOnlyInASelection methodsOnlyInB methodsOnlyInBFiltered
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
    23
		methodsOnlyInBSelection onlyInALabelHolder onlyInBLabelHolder
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
    24
		classHolder versionAHolder versionBHolder infoHolder
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
    25
		includeExtensionsHolder canIncludeExtensionsHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
    26
		includeCategoryChangesHolder includeVersionMethodsHolder
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
    27
		isMultipleVersionBrowser versionInfoList versionList
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
    28
		versionEntriesList selectedVersionHolder symbolicVersionList
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    29
		selectedSymbolicVersionHolder symbolicToVersionMapping
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
    30
		filteredClasses filteredMethods filteredSelectors
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
    31
		classPatternFilters selectorPatternFilters
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
    32
		selectedVersionIndexHolder'
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    33
	classVariableNames:'RememberedFilters'
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	poolDictionaries:''
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
	category:'Interface-Browsers'
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    38
HierarchicalItem subclass:#ClassChangeSet
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
    39
	instanceVariableNames:'class1BeingCompared class2BeingCompared labelA labelB diffSet
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
    40
		versionA versionB'
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    41
	classVariableNames:''
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    42
	poolDictionaries:''
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    43
	privateIn:VersionDiffBrowser
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    44
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    45
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    46
Object subclass:#FilterParameters
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    47
	instanceVariableNames:'filteredMethodNames filteredClassNames filteredSelectors
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    48
		filteredClassNameMatchPattern filteredSelectorMatchPattern'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    49
	classVariableNames:''
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    50
	poolDictionaries:''
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    51
	privateIn:VersionDiffBrowser
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    52
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    53
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    54
!VersionDiffBrowser class methodsFor:'documentation'!
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    55
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    56
copyright
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    57
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    58
 COPYRIGHT (c) 2000 by eXept Software AG
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
    59
	      All Rights Reserved
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    60
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    61
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    62
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    63
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    64
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    65
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    66
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    67
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    68
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    69
!
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    70
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    71
documentation
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    72
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    73
    This is not yet finished (work in progress).
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    74
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
    75
    A quickly hacked up browser to show differences between class versions,
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    76
    allowing easy comparison; will also eventually add capabilities
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    77
    to checkIn / load classes into / from the repository.
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    78
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    79
    [see also:]
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    80
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    81
    [instance variables:]
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    82
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    83
    [class variables:]
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    84
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    85
! !
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
!VersionDiffBrowser class methodsFor:'interface specs'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
windowSpec
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    "This resource specification was automatically generated
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
     by the UIPainter of ST/X."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    "Do not manually edit this!! If it is corrupted,
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
     the UIPainter may not be able to read the specification."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
     UIPainter new openOnClass:VersionDiffBrowser andSelector:#windowSpec
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
     VersionDiffBrowser new openInterface:#windowSpec
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
     VersionDiffBrowser open
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    <resource: #canvas>
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   104
    ^ 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   105
    #(FullSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   106
       name: windowSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   107
       window: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   108
      (WindowSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   109
         label: 'Version DiffBrowser'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   110
         name: 'Version DiffBrowser'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   111
         min: (Point 10 10)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   112
         bounds: (Rectangle 0 0 865 504)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   113
         menu: mainMenu
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   114
       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   115
       component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   116
      (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   117
         collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   118
          (VariableVerticalPanelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   119
             name: 'VariableVerticalPanel1'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   120
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -25 1.0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   121
             component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   122
            (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   123
               collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   124
                (HorizontalPanelViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   125
                   name: 'TopHorizontalPanel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   126
                   horizontalLayout: fit
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   127
                   verticalLayout: fit
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   128
                   horizontalSpace: 3
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   129
                   verticalSpace: 3
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   130
                   component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   131
                  (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   132
                     collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   133
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   134
                         name: 'BoxA'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   135
                         level: 0
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   136
                         visibilityChannel: boxAVisible
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   137
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   138
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   139
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   140
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   141
                               label: 'Only in A'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   142
                               name: 'OnlyInALabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   143
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   144
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   145
                               labelChannel: onlyInALabelHolder
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   146
                             )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   147
                            (SequenceViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   148
                               name: 'ListA'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   149
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   150
                               model: methodsOnlyInASelection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   151
                               menu: menuAHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   152
                               hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   153
                               hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   154
                               miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   155
                               doubleClickSelector: methodInADoubleClicked:
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   156
                               valueChangeSelector: methodsOnlyInASelectionChanged
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   157
                               useIndex: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   158
                               sequenceList: methodsOnlyInA
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   159
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   160
                            )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   161
                          
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   162
                         )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   163
                         extent: (Point 286 199)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   164
                       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   165
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   166
                         name: 'BoxM'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   167
                         visibilityChannel: boxMVisible
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   168
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   169
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   170
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   171
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   172
                               label: 'Changed'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   173
                               name: 'ChangedLabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   174
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   175
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   176
                               labelChannel: changedLabelHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   177
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   178
                            (SequenceViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   179
                               name: 'ListM'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   180
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   181
                               model: methodsChangedSelection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   182
                               menu: menuMHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   183
                               hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   184
                               hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   185
                               miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   186
                               doubleClickSelector: methodInChangedDoubleClicked:
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   187
                               valueChangeSelector: methodsChangedSelectionChanged
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   188
                               useIndex: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   189
                               sequenceList: methodsChanged
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   190
                             )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   191
                            )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   192
                          
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   193
                         )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   194
                         extent: (Point 286 199)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   195
                       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   196
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   197
                         name: 'BoxB'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   198
                         visibilityChannel: boxBVisible
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   199
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   200
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   201
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   202
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   203
                               label: 'Only in B'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   204
                               name: 'OnlyInBLabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   205
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   206
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   207
                               labelChannel: onlyInBLabelHolder
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   208
                             )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   209
                            (SequenceViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   210
                               name: 'ListB'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   211
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   212
                               model: methodsOnlyInBSelection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   213
                               menu: menuBHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   214
                               hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   215
                               hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   216
                               miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   217
                               doubleClickSelector: methodInBDoubleClicked:
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   218
                               valueChangeSelector: methodsOnlyInBSelectionChanged
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   219
                               useIndex: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   220
                               sequenceList: methodsOnlyInB
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   221
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   222
                            )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   223
                          
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   224
                         )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   225
                         extent: (Point 287 199)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   226
                       )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   227
                      )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   228
                    
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   229
                   )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   230
                 )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   231
                (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   232
                   name: 'DiffOrSingleMethodCodeBox'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   233
                   component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   234
                  (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   235
                     collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   236
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   237
                         name: 'diffTextViewBox'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   238
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   239
                         initiallyInvisible: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   240
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   241
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   242
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   243
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   244
                               label: 'A'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   245
                               name: 'DiffTextLabelA'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   246
                               layout: (LayoutFrame 0 0 0 0 0 0.5 20 0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   247
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   248
                               labelChannel: diffTextLabelA
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   249
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   250
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   251
                               label: 'B'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   252
                               name: 'DiffTextLabelB'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   253
                               layout: (LayoutFrame 0 0.5 0 0 0 1 20 0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   254
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   255
                               labelChannel: diffTextLabelB
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   256
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   257
                            (ArbitraryComponentSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   258
                               name: 'diffTextView'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   259
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 0 1.0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   260
                               hasBorder: false
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   261
                               component: diffTextView
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   262
                             )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   263
                            )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   264
                          
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   265
                         )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   266
                       )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   267
                      (CodeViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   268
                         name: 'singleTextView'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   269
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   270
                         model: methodText
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   271
                         hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   272
                         hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   273
                         miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   274
                         isReadOnly: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   275
                         hasKeyboardFocusInitially: false
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   276
                       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   277
                      )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   278
                    
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   279
                   )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   280
                 )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   281
                )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   282
              
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   283
             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   284
             handles: (Any 0.41999999999999998 1.0)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   285
           )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   286
          (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   287
             name: 'InfoLabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   288
             layout: (LayoutFrame 0 0 -25 1 0 1 0 1)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   289
             level: -1
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   290
             translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   291
             labelChannel: infoHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   292
             adjust: left
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   293
           )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   294
          )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   295
        
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   296
       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   297
     )
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   298
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   299
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   300
windowSpecForMultipleVersions
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   301
    "This resource specification was automatically generated
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   302
     by the UIPainter of ST/X."
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   303
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   304
    "Do not manually edit this!! If it is corrupted,
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   305
     the UIPainter may not be able to read the specification."
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   306
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   307
    "
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   308
     UIPainter new openOnClass:VersionDiffBrowser andSelector:#windowSpecForMultipleVersions
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   309
     VersionDiffBrowser new openInterface:#windowSpecForMultipleVersions
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   310
    "
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   311
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   312
    <resource: #canvas>
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   313
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   314
    ^ 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   315
    #(FullSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   316
       name: windowSpecForMultipleVersions
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   317
       uuid: '55cb9d62-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   318
       window: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   319
      (WindowSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   320
         label: 'Version DiffBrowser'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   321
         name: 'Version DiffBrowser'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   322
         uuid: '2b3f2546-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   323
         min: (Point 10 10)
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   324
         bounds: (Rectangle 0 0 865 504)
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   325
         menu: mainMenu
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   326
       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   327
       component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   328
      (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   329
         collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   330
          (VariableVerticalPanelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   331
             name: 'VariableVerticalPanel1'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   332
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -25 1.0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   333
             uuid: '2b3f297e-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   334
             component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   335
            (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   336
               collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   337
                (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   338
                   name: 'Box1'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   339
                   uuid: '2b3f2c08-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   340
                   component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   341
                  (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   342
                     collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   343
                      (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   344
                         name: 'VersionList'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   345
                         layout: (LayoutFrame 0 0 0 0 0 0.5 0 1)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   346
                         uuid: '2b3f2d20-d4fd-11e7-af82-c42c033b4871'
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   347
                         model: selectedVersionIndexHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   348
                         hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   349
                         hasVerticalScrollBar: true
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   350
                         useIndex: true
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   351
                         sequenceList: versionEntriesList
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   352
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   353
                      (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   354
                         name: 'List1'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   355
                         layout: (LayoutFrame 0 0.5 0 0 0 1 0 1)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   356
                         uuid: '2b3f3086-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   357
                         model: selectedSymbolicVersionHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   358
                         hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   359
                         hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   360
                         useIndex: false
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   361
                         sequenceList: symbolicVersionList
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   362
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   363
                      )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   364
                    
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   365
                   )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   366
                 )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   367
                (HorizontalPanelViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   368
                   name: 'TopHorizontalPanel'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   369
                   uuid: '2b3f3234-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   370
                   horizontalLayout: fit
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   371
                   verticalLayout: fit
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   372
                   horizontalSpace: 3
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   373
                   verticalSpace: 3
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   374
                   component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   375
                  (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   376
                     collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   377
                      (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   378
                         name: 'BoxA'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   379
                         uuid: '2b3f3464-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   380
                         level: 0
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   381
                         visibilityChannel: boxAVisible
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   382
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   383
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   384
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   385
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   386
                               label: 'Only in A'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   387
                               name: 'OnlyInALabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   388
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   389
                               uuid: '2b3f3568-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   390
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   391
                               labelChannel: onlyInALabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   392
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   393
                            (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   394
                               name: 'ListA'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   395
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   396
                               uuid: '2b3f37c0-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   397
                               model: methodsOnlyInASelection
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   398
                               menu: menuAHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   399
                               hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   400
                               hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   401
                               miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   402
                               doubleClickSelector: methodInADoubleClicked:
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   403
                               valueChangeSelector: methodsOnlyInASelectionChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   404
                               useIndex: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   405
                               sequenceList: methodsOnlyInA
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   406
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   407
                            )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   408
                          
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   409
                         )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   410
                         extent: (Point 286 207)
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   411
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   412
                      (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   413
                         name: 'BoxM'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   414
                         uuid: '2b3f39a0-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   415
                         visibilityChannel: boxMVisible
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   416
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   417
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   418
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   419
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   420
                               label: 'Changed'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   421
                               name: 'ChangedLabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   422
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   423
                               uuid: '2b3f3a86-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   424
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   425
                               labelChannel: changedLabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   426
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   427
                            (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   428
                               name: 'ListM'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   429
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   430
                               uuid: '2b3f3b94-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   431
                               model: methodsChangedSelection
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   432
                               menu: menuMHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   433
                               hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   434
                               hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   435
                               miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   436
                               doubleClickSelector: methodInChangedDoubleClicked:
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   437
                               valueChangeSelector: methodsChangedSelectionChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   438
                               useIndex: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   439
                               sequenceList: methodsChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   440
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   441
                            )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   442
                          
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   443
                         )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   444
                         extent: (Point 286 207)
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   445
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   446
                      (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   447
                         name: 'BoxB'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   448
                         uuid: '2b3f3d1a-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   449
                         visibilityChannel: boxBVisible
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   450
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   451
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   452
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   453
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   454
                               label: 'Only in B'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   455
                               name: 'OnlyInBLabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   456
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   457
                               uuid: '2b3f3dec-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   458
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   459
                               labelChannel: onlyInBLabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   460
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   461
                            (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   462
                               name: 'ListB'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   463
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   464
                               uuid: '2b3f3f04-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   465
                               model: methodsOnlyInBSelection
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   466
                               menu: menuBHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   467
                               hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   468
                               hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   469
                               miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   470
                               doubleClickSelector: methodInBDoubleClicked:
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   471
                               valueChangeSelector: methodsOnlyInBSelectionChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   472
                               useIndex: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   473
                               sequenceList: methodsOnlyInB
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   474
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   475
                            )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   476
                          
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   477
                         )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   478
                         extent: (Point 287 207)
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   479
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   480
                      )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   481
                    
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   482
                   )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   483
                 )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   484
                (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   485
                   name: 'DiffBox'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   486
                   uuid: '2b3f408a-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   487
                   component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   488
                  (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   489
                     collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   490
                      (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   491
                         name: 'diffTextViewBox'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   492
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   493
                         uuid: '2b3f415c-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   494
                         initiallyInvisible: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   495
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   496
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   497
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   498
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   499
                               label: 'A'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   500
                               name: 'DiffTextLabelA'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   501
                               layout: (LayoutFrame 0 0 0 0 0 0.5 20 0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   502
                               uuid: '2b3f426a-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   503
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   504
                               labelChannel: diffTextLabelA
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   505
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   506
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   507
                               label: 'B'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   508
                               name: 'DiffTextLabelB'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   509
                               layout: (LayoutFrame 0 0.5 0 0 0 1 20 0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   510
                               uuid: '2b3f43d2-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   511
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   512
                               labelChannel: diffTextLabelB
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   513
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   514
                            (ArbitraryComponentSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   515
                               name: 'diffTextView'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   516
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 0 1.0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   517
                               uuid: '2b3f4508-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   518
                               hasBorder: false
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   519
                               component: diffTextView
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   520
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   521
                            )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   522
                          
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   523
                         )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   524
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   525
                      (CodeViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   526
                         name: 'singleTextView'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   527
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   528
                         uuid: '2b3f4738-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   529
                         model: methodText
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   530
                         hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   531
                         hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   532
                         miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   533
                         isReadOnly: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   534
                         hasKeyboardFocusInitially: false
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   535
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   536
                      )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   537
                    
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   538
                   )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   539
                 )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   540
                )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   541
              
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   542
             )
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   543
             handles: (Any 0.22 0.67000000000000004 1.0)
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   544
           )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   545
          (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   546
             name: 'InfoLabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   547
             layout: (LayoutFrame 0 0 -25 1 0 1 0 1)
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   548
             uuid: '2b3f4a44-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   549
             level: -1
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   550
             translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   551
             labelChannel: infoHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   552
             adjust: left
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   553
           )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   554
          )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   555
        
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   556
       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   557
     )
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
!VersionDiffBrowser class methodsFor:'menu specs'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   562
filterMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   563
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   564
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   565
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   566
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   567
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   568
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   569
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   570
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   571
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#mainMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   572
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser mainMenu)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   573
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   574
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   575
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   576
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   577
    ^ 
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   578
     #(Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   579
              (
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   580
               (MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   581
                  label: 'Filter Classes Matching...'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   582
                  itemValue: filterClassesMatching
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   583
                )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   584
               (MenuItem
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
   585
                  label: 'Filter Selectors Matching...'
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
   586
                  itemValue: filterSelectorsMatching
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
   587
                )
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
   588
               (MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   589
                  label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   590
                )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   591
               (MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   592
                  label: 'Remember Filter As...'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   593
                  itemValue: rememberFilterAs
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   594
                )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   595
               (MenuItem
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   596
                  label: 'Load Filter Named...'
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   597
                  itemValue: loadFilterNamed
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   598
                )
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   599
               (MenuItem
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   600
                  label: '-'
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   601
                )
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   602
               (MenuItem
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   603
                  label: 'Export Filter Settings'
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   604
                  itemValue: exportFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   605
                )
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   606
               (MenuItem
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   607
                  label: 'Import Filter Settings From...'
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   608
                  itemValue: importFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   609
                )
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   610
               (MenuItem
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   611
                  label: '-'
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   612
                )
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   613
               (MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   614
                  label: 'Forget Filter Named...'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   615
                  itemValue: forgetFilterNamed
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   616
                )
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   617
               (MenuItem
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   618
                  label: '-'
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   619
                )
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   620
               (MenuItem
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   621
                  label: 'Inspect Current Filter Settings'
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   622
                  itemValue: inspectFilterParameters
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   623
                )
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
   624
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   625
               )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   626
              nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   627
              nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   628
            )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   629
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   630
    "Created: / 05-02-2017 / 11:11:30 / cg"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
   631
    "Modified: / 06-02-2017 / 09:27:22 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   632
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   633
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
mainMenu
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
    "This resource specification was automatically generated
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
     by the MenuEditor of ST/X."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   638
    "Do not manually edit this!! If it is corrupted,
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
     the MenuEditor may not be able to read the specification."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
   641
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#mainMenu
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser mainMenu)) startUp
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
    <resource: #menu>
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   649
    ^ 
7419
e4e108674fe6 conditionalRight in startGroup
Claus Gittinger <cg@exept.de>
parents: 7396
diff changeset
   650
     #(Menu
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   651
        (
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   652
         (MenuItem
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   653
            label: 'File'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   654
            submenu: 
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   655
           (Menu
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   656
              (
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   657
               (MenuItem
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   658
                  label: 'Create PatchFile...'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   659
                  itemValue: createPatchFile
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   660
                )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   661
               (MenuItem
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   662
                  label: '-'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   663
                )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   664
               (MenuItem
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   665
                  label: 'Exit'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   666
                  itemValue: closeRequest
11853
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   667
                )
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   668
               )
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   669
              nil
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   670
              nil
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   671
            )
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   672
          )
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   673
         (MenuItem
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   674
            label: 'Class'
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   675
            submenu: 
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   676
           (Menu
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   677
              (
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   678
               (MenuItem
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   679
                  label: 'Remove from Changeset'
fe611dbb05ca added: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11596
diff changeset
   680
                  itemValue: removeClassFromChangeSet
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   681
                  enabled: showingClassChangeSet
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   682
                )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   683
               )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   684
              nil
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   685
              nil
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   686
            )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   687
          )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   688
         (MenuItem
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   689
            label: 'View'
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   690
            submenuChannel: viewMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   691
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   692
         (MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   693
            label: 'Filter'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   694
            submenuChannel: filterMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   695
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   696
         (MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   697
            label: 'MENU_Help'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   698
            startGroup: conditionalRight
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   699
            submenu: 
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   700
           (Menu
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   701
              (
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   702
               (MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   703
                  label: 'Documentation'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   704
                  itemValue: openDocumentation
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   705
                )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   706
               (MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   707
                  label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   708
                )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   709
               (MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   710
                  label: 'About this Application...'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   711
                  itemValue: openAboutThisApplication
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   712
                )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   713
               )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   714
              nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   715
              nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   716
            )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   717
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   718
         )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   719
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   720
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   721
      )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   722
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   723
    "Modified: / 05-02-2017 / 11:09:50 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   724
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   725
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   726
menuA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   727
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   728
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   729
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   730
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   731
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   732
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   733
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   734
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menu1
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   735
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menu1)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   736
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   737
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   738
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   739
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   740
    ^
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   741
     #(#Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   742
        #(
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   743
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   744
            #label: 'Apply'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   745
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   746
            #value: #applySelectedChangeInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   747
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   748
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   749
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   750
            #label: 'Browse'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   751
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   752
            #value: #browseClassInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   753
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   754
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   755
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   756
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   757
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   758
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   759
            #label: 'Filter this Change'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   760
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   761
            #value: #filterMethodInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   762
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   763
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   764
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   765
            #label: 'Filter Class'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   766
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   767
            #value: #filterClassInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   768
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   769
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   770
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   771
            #label: 'Filter Selector '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   772
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   773
            #value: #filterSelectorFromA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   774
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   775
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   776
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   777
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   778
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   779
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   780
            #label: 'Inspect'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   781
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   782
            #value: #inspectSelectedChangeInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   783
            #choiceValue: 'nil "UndefinedObject" '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   784
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   785
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   786
         )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   787
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   788
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   789
      )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   790
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   791
    "Modified: / 05-02-2017 / 11:21:54 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   792
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   793
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   794
menuB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   795
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   796
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   797
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   798
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   799
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   800
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   801
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   802
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menuB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   803
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menuB)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   804
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   805
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   806
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   807
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   808
    ^
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   809
     #(#Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   810
        #(
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   811
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   812
            #label: 'Apply'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   813
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   814
            #value: #applySelectedChangeInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   815
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   816
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   817
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   818
            #label: 'Browse'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   819
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   820
            #value: #browseClassInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   821
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   822
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   823
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   824
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   825
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   826
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   827
            #label: 'Remove in Image'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   828
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   829
            #value: #removeSelectedChangeInBFromImage
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   830
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   831
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   832
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   833
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   834
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   835
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   836
            #label: 'Filter this Change'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   837
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   838
            #value: #filterMethodInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   839
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   840
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   841
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   842
            #label: 'Filter Class'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   843
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   844
            #value: #filterClassInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   845
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   846
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   847
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   848
            #label: 'Filter Selector '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   849
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   850
            #value: #filterSelectorFromB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   851
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   852
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   853
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   854
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   855
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   856
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   857
            #label: 'Inspect'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   858
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   859
            #value: #inspectSelectedChangeInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   860
            #choiceValue: 'nil "UndefinedObject" '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   861
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   862
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   863
         )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   864
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   865
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   866
      )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   867
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   868
    "Modified: / 05-02-2017 / 11:22:10 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   869
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   870
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   871
menuM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   872
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   873
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   874
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   875
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   876
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   877
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   878
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   879
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menu1
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   880
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menu1)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   881
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   882
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   883
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   884
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   885
    ^
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   886
     #(#Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   887
        #(
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   888
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   889
            #label: 'Browse'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   890
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   891
            #value: #browseClassInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   892
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   893
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   894
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   895
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   896
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   897
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   898
            #label: 'Apply Left Version'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   899
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   900
            #value: #acceptInLeftView
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   901
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   902
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   903
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   904
            #label: 'Apply Right Version'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   905
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   906
            #value: #acceptInRightView
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   907
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   908
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   909
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   910
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   911
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   912
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   913
            #label: 'Filter this Change'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   914
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   915
            #value: #filterMethodInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   916
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   917
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   918
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   919
            #label: 'Filter Class'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   920
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   921
            #value: #filterClassInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   922
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   923
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   924
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   925
            #label: 'Filter Selector '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   926
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   927
            #value: #filterSelectorFromM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   928
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   929
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   930
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   931
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   932
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   933
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   934
            #label: 'Inspect both'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   935
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   936
            #value: #inspectSelectedChangeInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   937
            #choiceValue: 'nil "UndefinedObject" '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   938
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   939
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   940
         )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   941
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   942
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   943
      )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   944
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   945
    "Modified: / 05-02-2017 / 11:21:44 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   946
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   947
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   948
viewMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   949
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   950
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   951
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   952
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   953
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   954
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   955
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   956
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   957
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#mainMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   958
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser mainMenu)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   959
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   960
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   961
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   962
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   963
    ^ 
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   964
     #(Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   965
              (
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   966
               (MenuItem
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   967
                  enabled: canIncludeExtensionsHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   968
                  label: 'Include Extensions'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   969
                  itemValue: includeExtensions:
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   970
                  indication: includeExtensionsHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   971
                )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   972
               (MenuItem
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   973
                  enabled: canIncludeExtensionsHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   974
                  label: 'Include Version Methods'
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   975
                  itemValue: includeVersionMethods:
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   976
                  indication: includeVersionMethodsHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   977
                )
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   978
               (MenuItem
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   979
                  label: '-'
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   980
                )
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
   981
               (MenuItem
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   982
                  label: 'Include Category Changes'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   983
                  itemValue: includeCategoryChanges:
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   984
                  indication: includeCategoryChangesHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   985
                )
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
   986
               (MenuItem
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
   987
                  label: 'Hide Comment- and Formatting-Only Changes'
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
   988
                  itemValue: hideDiffsWithCommentOrFormattingChangeOnlyHolder:
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
   989
                  indication: hideDiffsWithCommentOrFormattingChangeOnlyHolder
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
   990
                )
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
   991
               (MenuItem
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
   992
                  label: '-'
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
   993
                )
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
   994
               (MenuItem
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
   995
                  label: 'Show Log Messages'
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
   996
                  itemValue: showLogMessages
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
   997
                )
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   998
               )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   999
              nil
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1000
              nil
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1001
            )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1002
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1003
    "Created: / 05-02-2017 / 11:06:24 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1004
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1006
!VersionDiffBrowser class methodsFor:'plugIn spec'!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1007
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1008
aspectSelectors
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1009
    "This resource specification was automatically generated
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1010
     by the UIPainter of ST/X."
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1011
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1012
    "Do not manually edit this. If it is corrupted,
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1013
     the UIPainter may not be able to read the specification."
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1014
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1015
    "Return a description of exported aspects;
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1016
     these can be connected to aspects of an embedding application
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1017
     (if this app is embedded in a subCanvas)."
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1018
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1019
    ^ #(
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1020
        #changedLabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1021
        #onlyInALabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1022
        #onlyInBLabelHolder
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1023
      ).
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1024
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1025
! !
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1026
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1027
!VersionDiffBrowser class methodsFor:'startup'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1028
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1029
openOnAllVersionsOfClass:aClass
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1030
    "create a VersionDiffBrowser instance and set the class change set of the
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1031
     browser. The class diff set is generated from aClasses current version against
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1032
     the selected version in the top selection list"
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1033
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1034
    |theBrowser|
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1035
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1036
    theBrowser := self new.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1037
    theBrowser allButOpenInterface:#windowSpecForMultipleVersions.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1038
    theBrowser beMultipleVersionBrowser.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1039
    theBrowser classHolder:(ValueHolder with:aClass).
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1040
    theBrowser setupForClass:aClass againstVersion:nil.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1041
    theBrowser window label:(self resources string:'Versions of %1' with:aClass name).
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1042
    theBrowser openWindow.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1043
    ^ theBrowser.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1044
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1045
    "
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1046
     self openOnAllVersionsOfClass:Object
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1047
    "
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1048
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1049
    "Modified: / 04-02-2017 / 19:52:33 / cg"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1050
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1051
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1052
openOnClass:aClass againstVersion:aVersionA
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1053
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1054
     browser. The class diff set is generated from aClasses current against some version
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1055
     via the source code manager."
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1056
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1057
    |theBrowser|
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1058
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1059
    theBrowser := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1060
    theBrowser allButOpen.
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1061
    theBrowser setupForClass:aClass againstVersion:aVersionA.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1062
    theBrowser window label:(self resources string:'Diffs of %1 %2 against current' with:aClass name with:aVersionA).
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1063
    theBrowser openWindow.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1064
    ^ theBrowser.
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1065
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1066
    "
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1067
     self openOnClass:Array againstVersion:'1.116'
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1068
     self openOnClass:Array againstVersion:nil            - against the version on which Array is based upon
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1069
     self openOnClass:Array againstVersion:#newest        - against the newest repository version
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1070
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1071
     self openOnClass:VersionDiffBrowser againstVersion:nil
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1072
     self openOnClass:VersionDiffBrowser againstVersion:#newest
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1073
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1074
     (self openOnClass:ByteArray againstVersion:'1.116') includeExtensionsHolder value:true
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1075
    "
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1076
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1077
    "Modified: / 04-02-2017 / 19:58:16 / cg"
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1078
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1079
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1080
openOnClass:classA labelA:aLabelA andClass:classB labelB:aLabelB title:title
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1081
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1082
     browser. The class diff set is generated from two classes."
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1083
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1084
    ^ self
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1085
        openOnClass:classA labelA:aLabelA
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1086
        andClass:classB labelB:aLabelB
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1087
        title:title ifSame:nil
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1088
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1089
    "
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1090
     self
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1091
        openOnClass:Array labelA:'Array'
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1092
        andClass:Collection labelB:'Collection'
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1093
        title:'Array vs. Collection'
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1094
    "
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1095
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1096
    "Modified (comment): / 04-02-2017 / 20:02:38 / cg"
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1097
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1098
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1099
openOnClass:classA labelA:aLabelA andClass:classB labelB:aLabelB title:title ifSame:sameAction
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1100
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1101
     browser. The class diff set is generated from two classes."
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1102
8891
fm
parents: 8811
diff changeset
  1103
    |classChangeSet|
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1104
8891
fm
parents: 8811
diff changeset
  1105
    classChangeSet := ClassChangeSet newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB.
fm
parents: 8811
diff changeset
  1106
    classChangeSet removeAllVersionMethods.
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1107
    sameAction notNil ifTrue:[
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1108
        "/ check if same ...
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1109
        (classChangeSet methodsOnlyInA isEmpty
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1110
        and:[classChangeSet methodsOnlyInB isEmpty
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1111
        and:[classChangeSet diffSet isEmpty]]) ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1112
            sameAction value.
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1113
            ^ self "/ do not open
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1114
        ]
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1115
    ].
8891
fm
parents: 8811
diff changeset
  1116
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1117
    ^ self openOnClassChangeSet:classChangeSet title:title
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1118
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1119
    "Modified (format): / 04-02-2017 / 19:59:16 / cg"
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1120
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1121
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1122
openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1123
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1124
     browser. The class diff set is generated from two source files."
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1125
2716
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1126
    ^ self
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1127
	openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1128
	title:nil
2716
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1129
!
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1130
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1131
openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB title:ignoredTitle
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1132
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1133
     browser. The class diff set is generated from two source files."
2716
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1134
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1135
    ^ self
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1136
	openOnClass:aClass labelA:aLabelA sourceA:aSourceA
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1137
	labelB:aLabelB sourceB:aSourceB
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1138
	title:ignoredTitle ifSame:nil
2849
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1139
!
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1140
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1141
openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB title:ignoredTitle ifSame:sameAction
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1142
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1143
     browser. The class diff set is generated from two source files."
8891
fm
parents: 8811
diff changeset
  1144
fm
parents: 8811
diff changeset
  1145
    |diffs hasChangedMethods classChangeSet versionMethodChanges|
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1146
8891
fm
parents: 8811
diff changeset
  1147
    classChangeSet := ClassChangeSet newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB.
fm
parents: 8811
diff changeset
  1148
    classChangeSet removeAllVersionMethods.
2849
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1149
    sameAction notNil ifTrue:[
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1150
        "/ check if same ...
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1151
        (classChangeSet methodsOnlyInA isEmpty
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1152
        and:[classChangeSet methodsOnlyInB isEmpty]) ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1153
            diffs := classChangeSet diffSet.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1154
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1155
            hasChangedMethods := diffs changed notEmpty.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1156
            hasChangedMethods ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1157
                versionMethodChanges := diffs changed select:[:eachDifference |
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1158
                    |eachChange|
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1159
                    eachChange := eachDifference first.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1160
                    (eachChange isMethodChange
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1161
                    and:[ (AbstractSourceCodeManager isVersionMethodSelector:eachChange changeSelector)
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1162
                    and:[ eachChange changeClass isMeta ]]).
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1163
                ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1164
                diffs changed size == versionMethodChanges size ifTrue: [
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1165
                    hasChangedMethods := false.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1166
                ].
8811
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1167
"/                diffs changed size == 1 ifTrue:[
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1168
"/                    theOnlyDifference := diffs changed first.
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1169
"/                    theOnlyChange := theOnlyDifference first.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1170
"/                    (theOnlyChange isMethodChange
8811
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1171
"/                    and:[ ((theOnlyChange selector == #version) or:[theOnlyChange selector startsWith:'version_'])
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1172
"/                    and:[ theOnlyChange changeClass isMeta ]]) ifTrue:[
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1173
"/                        hasChangedMethods := false
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1174
"/                    ]
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1175
"/                ]
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1176
            ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1177
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1178
            (hasChangedMethods not
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1179
            and:[diffs onlyInArg isEmpty
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1180
            and:[diffs onlyInReceiver isEmpty]]) ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1181
                sameAction value.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1182
                ^ self "/ do not open
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1183
            ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1184
        ]
2849
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1185
    ].
8891
fm
parents: 8811
diff changeset
  1186
fm
parents: 8811
diff changeset
  1187
    ^ self openOnClassChangeSet:classChangeSet title:ignoredTitle
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  1188
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1189
    "Modified: / 06-02-2017 / 02:31:51 / cg"
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1190
!
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1191
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1192
openOnClass:aClass versionA:aVersionA versionB:aVersionB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1193
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1194
     browser. The class diff set is generated from two versions of aClass via
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1195
     the source code manager."
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1196
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1197
    |theBrowser|
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1198
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1199
    theBrowser := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1200
    theBrowser allButOpen.
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1201
    theBrowser setupForClass:aClass versionA:aVersionA versionB:aVersionB.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1202
    theBrowser openWindow.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1203
    ^ theBrowser.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1204
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1205
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1206
     self openOnClass:Array versionA:'1.116' versionB:'1.113'
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1207
    "
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1208
!
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1209
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1210
openOnClassChangeSet:classChangeSet title:title
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1211
    "create a VersionDiffBrowser instance and set the class change set of the
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1212
     browser. The class diff set is generated from two classes."
8891
fm
parents: 8811
diff changeset
  1213
fm
parents: 8811
diff changeset
  1214
    |theBrowser|
fm
parents: 8811
diff changeset
  1215
fm
parents: 8811
diff changeset
  1216
    theBrowser := self new.
fm
parents: 8811
diff changeset
  1217
    theBrowser allButOpen.
fm
parents: 8811
diff changeset
  1218
    theBrowser classChangeSet:classChangeSet.
fm
parents: 8811
diff changeset
  1219
    theBrowser openWindow.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1220
    theBrowser window label:title.
8891
fm
parents: 8811
diff changeset
  1221
    ^ theBrowser.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1222
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1223
    "Modified: / 04-02-2017 / 19:59:06 / cg"
8891
fm
parents: 8811
diff changeset
  1224
!
fm
parents: 8811
diff changeset
  1225
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1226
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1227
    ^ self
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1228
        openOnDiffSet:diffSet 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1229
        labelA:aLabelA labelB:aLabelB 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1230
        title:ignoredTitle
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1231
        ignoreExtensions:false
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1232
        ignoreVersionMethods:false
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1233
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1234
    "Modified: / 12-09-2011 / 11:52:44 / cg"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1235
!
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1236
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1237
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle ignoreExtensions:ignoreExtensionsBoolean
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1238
    ^ self
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1239
        openOnDiffSet:diffSet 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1240
        labelA:aLabelA labelB:aLabelB 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1241
        title:ignoredTitle 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1242
        ignoreExtensions:ignoreExtensionsBoolean 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1243
        ignoreVersionMethods:false
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1244
!
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1245
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1246
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle ignoreExtensions:ignoreExtensionsBoolean ignoreVersionMethods:ignoreVersionMethodsBoolean
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1247
    |theBrowser|
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1248
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1249
    theBrowser := self new.
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1250
    theBrowser ignoreExtensions:ignoreExtensionsBoolean.
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1251
    theBrowser ignoreVersionMethods:ignoreVersionMethodsBoolean.
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1252
    theBrowser allButOpen.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1253
    theBrowser setupForDiffSet:diffSet labelA:aLabelA labelB:aLabelB.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1254
    theBrowser window label:ignoredTitle.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1255
    theBrowser openWindow.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1256
    ^ theBrowser.
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1257
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1258
    "Created: / 12-09-2011 / 11:50:18 / cg"
5520
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1259
!
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1260
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1261
openOnDiffsBetweenFile:file1 and:file2
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1262
    |set1 set2 diffset theBrowser|
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1263
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1264
    set1 := ChangeSet fromFile:file1.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1265
    set2 := ChangeSet fromFile:file2.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1266
    diffset := set1 diffSetsAgainst:set2.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1267
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1268
    theBrowser := self new.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1269
    theBrowser allButOpen.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1270
    theBrowser setupForDiffSet:diffset labelA:file1 asFilename baseName labelB:file2 asFilename baseName.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1271
    theBrowser window label:('%1 vs. %2' bindWith:file1 asFilename baseName with:file2 asFilename baseName).
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1272
    theBrowser openWindow.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1273
    ^ theBrowser.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1274
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1275
    "
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1276
     VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1277
	openOnDiffsBetweenFile:'/phys/exept/tmp/ws/Workflow::BlockDescription.st'
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1278
	and:'/phys/exept/tmp/workflowClasses/Workflow::BlockDescription.st'
5520
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1279
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1280
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1281
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1282
!VersionDiffBrowser methodsFor:'accessing'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1283
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1284
beMultipleVersionBrowser
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1285
    isMultipleVersionBrowser := true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1286
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1287
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1288
canIncludeExtensions:something
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1289
    self canIncludeExtensionsHolder value:something.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1290
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1291
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1292
changeSetA
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1293
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1294
    gets the change set which contains only the new methods
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1295
    in versionA of the class
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1296
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1297
    <return: ChangeSet>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1298
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1299
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1300
    ^ self classChangeSet methodsOnlyInA
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1301
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1302
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1303
changeSetB
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1304
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1305
    gets the change set which contains only the new methods
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1306
    in versionB of the class
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1307
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1308
    <return: ChangeSet>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1309
    "
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1310
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1311
    ^ self classChangeSet methodsOnlyInB
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1312
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1313
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1314
class:aClass versionA:revA versionB:revB
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1315
    classIfSingleClassDiff := aClass.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1316
    versionAIfSingleClassDiff := revA.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1317
    versionBIfSingleClassDiff := revB.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1318
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1319
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1320
classBeingCompared
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  1321
    "returns the class from the change set which is compared.
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1322
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1323
    <return: Class>
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1324
    "
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1325
    ^ self classChangeSet classBeingCompared
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1326
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1327
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1328
classChangeSet
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1329
    "returns the class change set which is the model of the version diff browser."
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1330
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1331
    ^ classChangeSet
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1332
!
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1333
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1334
classChangeSet:aClassChangeSet
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1335
    "sets the class change set which is the model of the version diff browser.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1336
     The labels, the lists, the visibility and the selection of the lists must be reseted
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1337
     when a new change set is given."
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1338
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1339
    classChangeSet := aClassChangeSet.
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1340
    self updateLabels.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1341
    self updateLists.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1342
    self resetSelectionHolders.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1343
!
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1344
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1345
ignoreExtensions
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1346
    "if true, extension methods are suppressed.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1347
     Ignoring is useful when comparing for baseClass checkin,
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1348
     as opposed to extension-checking, where extensions should not be ignored.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1349
     the default is false"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1350
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1351
    ^ self includeExtensions not
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1352
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1353
    "Created: / 12-09-2011 / 11:54:11 / cg"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1354
!
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1355
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1356
ignoreExtensions:aBoolean
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1357
    "if true, extension methods are suppressed.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1358
     Ignoring is useful when comparing for baseClass checkin,
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1359
     as opposed to extension-checking, where extensions should not be ignored.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1360
     the default is false"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1361
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1362
    self includeExtensions:aBoolean not
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1363
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1364
    "Modified: / 06-03-2012 / 15:37:32 / cg"
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1365
!
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1366
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1367
ignoreVersionMethods:aBoolean
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1368
    "if true, version methods (version and version_XXX) are suppressed.
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1369
     Ignoring is useful when comparing for real code changes.
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1370
     the default is false"
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1371
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1372
    self includeVersionMethods:aBoolean not
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1373
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1374
    "Modified: / 06-03-2012 / 15:37:32 / cg"
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1375
!
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1376
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1377
isMultipleVersionBrowser
14078
92e2df7adcca class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14076
diff changeset
  1378
    ^ isMultipleVersionBrowser ? false
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1379
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1380
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1381
selectedChangeInA
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1382
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1383
    gets the selected method change for the 'method only in version A'.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1384
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1385
    <return: MethodChange | nil>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1386
    "
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1387
    |selIndex change|
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1388
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1389
    selIndex := self methodsOnlyInASelection value.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1390
    selIndex notNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1391
        change := methodsOnlyInAFiltered "self changeSetA" at:selIndex.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1392
    ].
3753
48fdc128a790 refactored
Claus Gittinger <cg@exept.de>
parents: 3730
diff changeset
  1393
    ^ change
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1394
!
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1395
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1396
selectedChangeInB
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1397
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1398
    gets the selected method change for the 'method only in version B'.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1399
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1400
    <return: MethodChange | nil>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1401
    "
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1402
    |selIndex change|
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1403
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1404
    selIndex := self methodsOnlyInBSelection value.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1405
    selIndex notNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1406
        change := methodsOnlyInBFiltered "self changeSetB" at:selIndex.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1407
    ].
3753
48fdc128a790 refactored
Claus Gittinger <cg@exept.de>
parents: 3730
diff changeset
  1408
    ^ change
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1409
!
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1410
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1411
selectedChangesInM
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1412
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1413
    get the two method changes for the selected 'changed method'.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1414
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1415
    <return: <Array with:MethodChange with:MethodChange | nil>>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1416
    "
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1417
    |selIndex theTwoChanges|
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1418
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1419
    selIndex := self methodsChangedSelection value.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1420
    selIndex notNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1421
        theTwoChanges := methodsChangedFiltered "self classChangeSet methodsChanged" at:selIndex.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1422
        ^ theTwoChanges.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1423
    ].
3753
48fdc128a790 refactored
Claus Gittinger <cg@exept.de>
parents: 3730
diff changeset
  1424
    ^ #(nil nil)
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1425
!
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1426
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1427
versionA
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1428
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1429
    gets the first class version to be compared
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1430
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1431
    <return: String>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1432
    "
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1433
    classChangeSet isNil ifTrue:[^ 'A'].
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1434
    ^ classChangeSet labelA
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1435
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1436
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1437
versionB
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1438
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1439
    gets the second class version to be compared
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1440
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1441
    <return: String>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1442
    "
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1443
    classChangeSet isNil ifTrue:[^ 'B'].
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1444
    ^ classChangeSet labelB
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1445
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1446
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1447
!VersionDiffBrowser methodsFor:'actions'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1448
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1449
acceptInLeftView
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1450
    |change|
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1451
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1452
    change := self selectedChangesInM first.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1453
    self applyChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1454
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1455
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1456
acceptInRightView
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1457
    |change|
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1458
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1459
    change := self selectedChangesInM second.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1460
    self applyChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1461
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1462
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1463
acceptInSingleView
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1464
    |change|
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1465
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1466
    change := self selectedChangeInA.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1467
    change isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1468
	change := self selectedChangeInB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1469
    ].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1470
    self applyChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1471
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1472
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1473
applyChange:change
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1474
    change notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1475
	change apply
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1476
    ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1477
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1478
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1479
applySelectedChangeInA
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1480
    self applyChange:(self selectedChangeInA)
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1481
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1482
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1483
applySelectedChangeInB
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1484
    self applyChange:(self selectedChangeInB)
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1485
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1486
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1487
methodInADoubleClicked:index
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1488
"/    |change|
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1489
"/
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1490
"/    change := self changeSetA at:index.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1491
"/    self browseChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1492
    self browseClassInA
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1493
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1494
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1495
methodInBDoubleClicked:index
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1496
"/    |change|
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1497
"/
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1498
"/    change := self changeSetB at:index.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1499
"/    self browseChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1500
    self browseClassInB
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1501
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1502
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1503
methodInChangedDoubleClicked:index
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1504
    self browseClassInM.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1505
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1506
9550
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  1507
removeSelectedChangeInBFromImage
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  1508
    |change cls sel op|
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  1509
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  1510
    change := self selectedChangeInB.
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  1511
    change isMethodChange ifTrue:[
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1512
        (cls := change changeClass) notNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1513
            (sel := change changeSelector) notNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1514
                RefactoryChangeManager notNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1515
                    op := RemoveMethodChange remove:sel from:cls.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1516
                    RefactoryChangeManager performChange: op.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1517
                ] ifFalse:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1518
                    cls removeSelector:sel
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1519
                ]
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1520
            ]
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1521
        ]
9550
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  1522
    ]
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  1523
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1524
    "Modified: / 06-02-2017 / 02:31:40 / cg"
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1525
!
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1526
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1527
showLogMessages
15633
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  1528
    "the UI shows code-diffs if any change is selected, and version log entries otherwise.
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  1529
     But there is no way to deselect any of the method-change-lists, to go back to log-messages,
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  1530
     once a method has been looked at.
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  1531
     This view-menu entry helps."
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  1532
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1533
    methodsOnlyInASelection value:nil.
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1534
    methodsOnlyInBSelection value:nil.
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1535
    methodsChangedSelection value:nil.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1536
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1537
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1538
!VersionDiffBrowser methodsFor:'aspects'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1539
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1540
boxAVisible
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  1541
    boxAVisible isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1542
	boxAVisible := true asValue.
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1543
    ].
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  1544
    ^ boxAVisible.
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1545
!
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1546
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1547
boxBVisible
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  1548
    boxBVisible isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1549
	boxBVisible := true asValue.
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1550
    ].
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  1551
    ^ boxBVisible.
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1552
!
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1553
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1554
boxMVisible
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  1555
    boxMVisible isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1556
	boxMVisible := true asValue.
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1557
    ].
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  1558
    ^ boxMVisible.
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1559
!
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  1560
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1561
canIncludeExtensionsHolder
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1562
    "can include extensions ? (menu item enabler)"
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1563
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1564
    canIncludeExtensionsHolder isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1565
	canIncludeExtensionsHolder := true asValue.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1566
    ].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1567
    ^ canIncludeExtensionsHolder.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1568
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1569
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1570
changedLabelHolder
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1571
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1572
    aspect for the label of the changed method box.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1573
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1574
    <return: ValueHolder on: nil>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1575
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1576
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1577
    changedLabelHolder isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1578
	changedLabelHolder := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1579
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1580
    ^ changedLabelHolder.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1581
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1582
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1583
diffTextLabelA
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1584
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1585
    aspect for the label for version A.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1586
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1587
    <return: ValueHolder on: nil>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1588
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1589
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1590
    diffTextLabelA isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1591
	diffTextLabelA := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1592
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1593
    ^ diffTextLabelA.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1594
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1595
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1596
diffTextLabelB
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1597
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1598
    aspect for the label for version B.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1599
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1600
    <return: ValueHolder on: nil>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1601
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1602
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1603
    diffTextLabelB isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1604
	diffTextLabelB := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1605
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1606
    ^ diffTextLabelB.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1607
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1608
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1609
diffTextView
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1610
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1611
    return the component for the diff text view.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1612
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1613
    <return: HVScrollableView>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1614
    "
7364
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  1615
    |v|
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  1616
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1617
    diffTextView isNil ifTrue:[
13951
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  1618
        v := DiffCodeView new.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  1619
        v textViewClass:CodeView.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  1620
        v initialize.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  1621
        diffTextView := HVScrollableView
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  1622
                           forView:v
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  1623
                           miniScrollerH:true miniScrollerV:false.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  1624
        diffTextView addNextPreviousButtons.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1625
    ].
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1626
    ^ diffTextView
7364
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  1627
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  1628
    "Modified: / 06-10-2006 / 14:30:42 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1629
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1630
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1631
hideDiffsWithCommentOrFormattingChangeOnly
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1632
    ^ self hideDiffsWithCommentOrFormattingChangeOnlyHolder value
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1633
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1634
    "Created: / 04-02-2017 / 22:54:07 / cg"
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1635
!
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1636
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1637
hideDiffsWithCommentOrFormattingChangeOnlyHolder
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1638
    "hide changes which have no semantic effect?"
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1639
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1640
    ^ self builder booleanValueAspectFor:#hideDiffsWithCommentOrFormattingChangeOnlyHolder
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1641
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1642
    "Created: / 04-02-2017 / 16:55:12 / cg"
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1643
!
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1644
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1645
includeCategoryChanges
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1646
    ^ self includeCategoryChangesHolder value
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1647
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1648
    "Created: / 17-07-2012 / 18:22:34 / cg"
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1649
!
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1650
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1651
includeCategoryChanges:aBoolean
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1652
    self includeCategoryChangesHolder value:aBoolean
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1653
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1654
    "Created: / 17-07-2012 / 17:50:41 / cg"
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1655
!
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1656
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1657
includeCategoryChangesHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1658
    includeCategoryChangesHolder isNil ifTrue:[
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1659
        includeCategoryChangesHolder := true asValue.
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1660
        includeCategoryChangesHolder addDependent:self.
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1661
    ].
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1662
    ^ includeCategoryChangesHolder.
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1663
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1664
    "Modified: / 06-03-2012 / 15:36:52 / cg"
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1665
    "Created: / 17-07-2012 / 16:47:58 / cg"
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1666
!
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1667
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1668
includeExtensions
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1669
    ^ self includeExtensionsHolder value
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1670
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1671
    "Created: / 13-09-2011 / 11:48:51 / cg"
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1672
!
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1673
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1674
includeExtensions:aBoolean
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1675
    self includeExtensionsHolder value:aBoolean
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1676
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1677
    "Created: / 13-09-2011 / 11:48:41 / cg"
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1678
!
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  1679
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1680
includeExtensionsHolder
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1681
    "only compare base-methods or include extensions ?"
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1682
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1683
    includeExtensionsHolder isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1684
	includeExtensionsHolder := false asValue.
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1685
	includeExtensionsHolder addDependent:self.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1686
    ].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1687
    ^ includeExtensionsHolder.
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1688
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1689
    "Modified: / 06-03-2012 / 15:36:52 / cg"
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1690
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1691
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1692
includeVersionMethods
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1693
    ^ self includeVersionMethodsHolder value
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1694
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1695
    "Created: / 13-09-2011 / 11:48:51 / cg"
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1696
!
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1697
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1698
includeVersionMethods:aBoolean
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1699
    self includeVersionMethodsHolder value:aBoolean
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1700
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1701
    "Created: / 13-09-2011 / 11:48:41 / cg"
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1702
!
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1703
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1704
includeVersionMethodsHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1705
    includeVersionMethodsHolder isNil ifTrue:[
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1706
        includeVersionMethodsHolder := true asValue.
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1707
        includeVersionMethodsHolder addDependent:self.
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1708
    ].
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1709
    ^ includeVersionMethodsHolder.
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1710
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1711
    "Modified: / 06-03-2012 / 15:36:52 / cg"
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1712
    "Created: / 17-07-2012 / 16:47:58 / cg"
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1713
!
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1714
8602
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  1715
infoHolder
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  1716
    infoHolder isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1717
	infoHolder := ValueHolder new.
8602
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  1718
    ].
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  1719
    ^ infoHolder.
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  1720
!
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  1721
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1722
methodText
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1723
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1724
    aspect for the text in the method text view.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1725
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1726
    <return: ValueHolder on: nil>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1727
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1728
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1729
    methodText isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1730
	methodText := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1731
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1732
    ^ methodText.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1733
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1734
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1735
methodsChanged
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1736
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1737
    aspect for the 'changed method' list.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1738
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1739
    <return: List>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1740
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1741
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1742
    methodsChanged isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1743
	methodsChanged := List new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1744
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1745
    ^ methodsChanged.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1746
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1747
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1748
methodsChangedSelection
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1749
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1750
    aspect for the selection holder of 'changed method'-list.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1751
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1752
    <return: ValueHolder on: nil>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1753
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1754
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1755
    methodsChangedSelection isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1756
	methodsChangedSelection := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1757
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1758
    ^ methodsChangedSelection.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1759
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1760
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1761
methodsOnlyInA
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1762
    "aspect for the 'method only in version A' list."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1763
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1764
    methodsOnlyInA isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1765
	methodsOnlyInA := List new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1766
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1767
    ^ methodsOnlyInA.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1768
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1769
    "Modified: / 25-07-2006 / 11:14:43 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1770
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1771
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1772
methodsOnlyInASelection
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1773
    "aspect for the selection holder of 'method only in version A'-list."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1774
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1775
    methodsOnlyInASelection isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1776
	methodsOnlyInASelection := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1777
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1778
    ^ methodsOnlyInASelection.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1779
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1780
    "Modified: / 25-07-2006 / 11:14:53 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1781
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1782
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1783
methodsOnlyInB
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1784
    "aspect for the 'method only in version B' list"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1785
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1786
    methodsOnlyInB isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1787
	methodsOnlyInB := List new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1788
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1789
    ^ methodsOnlyInB.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1790
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1791
    "Modified: / 25-07-2006 / 11:14:48 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1792
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1793
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1794
methodsOnlyInBSelection
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1795
    "aspect for the selection holder of 'method only in version B'-list."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1796
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1797
    methodsOnlyInBSelection isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1798
	methodsOnlyInBSelection := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1799
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1800
    ^ methodsOnlyInBSelection.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1801
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1802
    "Modified: / 25-07-2006 / 11:15:00 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1803
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1804
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1805
onlyInALabelHolder
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1806
    "aspect for the label for 'method only in version A'."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1807
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1808
    onlyInALabelHolder isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1809
	onlyInALabelHolder := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1810
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1811
    ^ onlyInALabelHolder.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1812
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1813
    "Modified: / 25-07-2006 / 11:15:12 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1814
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1815
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1816
onlyInBLabelHolder
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1817
    "aspect for the label for 'method only in version B'."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1818
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1819
    onlyInBLabelHolder isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1820
	onlyInBLabelHolder := ValueHolder new.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1821
    ].
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1822
    ^ onlyInBLabelHolder.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1823
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  1824
    "Modified: / 25-07-2006 / 11:15:07 / cg"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1825
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1826
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1827
selectedSymbolicVersionHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1828
    selectedSymbolicVersionHolder isNil ifTrue:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1829
        selectedSymbolicVersionHolder := nil asValue.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1830
        selectedSymbolicVersionHolder onChangeSend:#selectedSymbolicVersionHolderChanged to:self.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1831
    ].
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1832
    ^ selectedSymbolicVersionHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1833
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1834
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1835
selectedVersionHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1836
    selectedVersionHolder isNil ifTrue:[
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  1837
        selectedVersionHolder := nil asValue.
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1838
        selectedVersionHolder onChangeSend:#selectedVersionHolderChanged to:self.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1839
    ].
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1840
    ^ selectedVersionHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1841
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1842
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1843
selectedVersionIndexHolder
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1844
    selectedVersionIndexHolder isNil ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1845
        selectedVersionIndexHolder := nil asValue.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1846
        selectedVersionIndexHolder onChangeSend:#selectedVersionIndexHolderChanged to:self.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1847
    ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1848
    ^ selectedVersionIndexHolder
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1849
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1850
    "Created: / 29-11-2017 / 13:02:49 / cg"
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1851
!
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1852
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1853
symbolicVersionList
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1854
    symbolicVersionList isNil ifTrue:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1855
         symbolicVersionList := List new.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1856
    ].
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1857
    ^ symbolicVersionList
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1858
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1859
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1860
versionEntriesList
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1861
    versionEntriesList isNil ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1862
         versionEntriesList := List new.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1863
    ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1864
    ^ versionEntriesList
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1865
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1866
    "Created: / 29-11-2017 / 13:06:14 / cg"
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1867
!
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  1868
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1869
versionList
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1870
    versionList isNil ifTrue:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1871
         versionList := List new.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1872
    ].
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1873
    ^ versionList
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1874
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1875
2725
e2dc264e8c9c category changes
Claus Gittinger <cg@exept.de>
parents: 2716
diff changeset
  1876
!VersionDiffBrowser methodsFor:'aspects-exported'!
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1877
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1878
changedLabelHolder:aValueHolder
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1879
    builder aspectAt:#changedLabelHolder put:aValueHolder.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1880
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1881
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1882
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1883
classHolder:aValueHolder
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1884
    classHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1885
	classHolder removeDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1886
    ].
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1887
    classHolder := aValueHolder.
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1888
    classHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1889
	classHolder addDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1890
    ]
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1891
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1892
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1893
onlyInALabelHolder:aValueHolder
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1894
    builder aspectAt:#onlyInALabelHolder put:aValueHolder.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1895
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1896
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1897
onlyInBLabelHolder:aValueHolder
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1898
    builder aspectAt:#onlyInBLabelHolder put:aValueHolder.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1899
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1900
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1901
versionAHolder:aValueHolder
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1902
    versionAHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1903
	versionAHolder removeDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1904
    ].
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1905
    versionAHolder := aValueHolder.
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1906
    versionAHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1907
	versionAHolder addDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1908
    ]
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1909
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1910
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1911
versionBHolder:aValueHolder
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1912
    versionBHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1913
	versionBHolder removeDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1914
    ].
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1915
    versionBHolder := aValueHolder.
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  1916
    versionBHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1917
	versionBHolder addDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1918
    ]
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1919
! !
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1920
4359
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1921
!VersionDiffBrowser methodsFor:'aspects-menu'!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1922
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1923
canAcceptInCodeView
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1924
    ^ self hasChangeSelectedInA
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1925
      or:[self hasChangeSelectedInB
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1926
      or:[self hasChangeSelectedInM]]
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1927
!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1928
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1929
hasChangeSelectedInA
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1930
    ^ self selectedChangeInA notNil
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1931
!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1932
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1933
hasChangeSelectedInB
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1934
    ^ self selectedChangeInB notNil
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1935
!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1936
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1937
hasChangeSelectedInM
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1938
    ^ self methodsChangedSelection value notNil
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1939
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1940
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1941
showingClassChangeSet
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1942
    ^ classChangeSet notNil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1943
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1944
    "Created: / 05-02-2017 / 11:09:18 / cg"
4359
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1945
! !
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  1946
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1947
!VersionDiffBrowser methodsFor:'change & update'!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1948
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1949
filterChanged
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1950
    self withExecuteCursorDo:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1951
        |listA listB listM selA selB selM posA posB posM|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1952
        
17463
c6696d10d802 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17414
diff changeset
  1953
        "/ remember selection and scroll positions
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1954
        listA := (self componentAt:'ListA') scrolledView.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1955
        listB := (self componentAt:'ListB') scrolledView.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1956
        listM := (self componentAt:'ListM') scrolledView.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1957
        selA := listA selection.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1958
        selB := listB selection.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1959
        selM := listM selection.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1960
        posA := listA firstLineShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1961
        posB := listB firstLineShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1962
        posM := listM firstLineShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1963
        
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1964
        self updateLists.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1965
        self enqueueDelayedAction:
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1966
            [
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1967
                selA notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1968
                    listA selection:selA
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1969
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1970
                    listA scrollToLine:posA
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1971
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1972
                selB notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1973
                    listB selection:selB
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1974
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1975
                    listB scrollToLine:posB
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1976
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1977
                selM notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1978
                    listM selection:selM
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1979
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1980
                    listM scrollToLine:posM
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1981
                ]. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1982
            ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1983
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1984
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1985
    "Created: / 05-02-2017 / 10:19:41 / cg"
17463
c6696d10d802 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17414
diff changeset
  1986
    "Modified (format): / 14-03-2017 / 16:30:58 / cg"
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1987
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1988
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1989
methodsChangedSelectionChanged
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1990
    "
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1991
    the selection in the list of the 'changed methods' changed.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1992
    Reset the selection of the two other lists and calc the method change.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1993
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1994
    <return: self>
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1995
    "
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1996
    |sel changeA changeB methodsChanged parseError treeA treeB|
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1997
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  1998
    "/ self information:''.
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  1999
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2000
    sel := self methodsChangedSelection value.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2001
    sel notNil ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2002
        self methodsOnlyInASelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2003
        self methodsOnlyInBSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2004
        methodsChanged := self classChangeSet methodsChanged.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2005
        changeA := (methodsChangedFiltered at:sel) first.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2006
        changeB := (methodsChangedFiltered at:sel) second.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2007
        self withReadCursorDo:[
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2008
            |info|
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2009
            
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2010
            "/ see if the semantics have changed (or only prettyPrinted)
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2011
            RBParser notNil ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2012
                (classChangeSet notNil
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2013
                and:[ classChangeSet classBeingCompared notNil ]) ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2014
                    parseError := false.
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2015
                    changeA isMethodChange ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2016
                        treeA := RBParser parseMethod:(changeA source) onError: [:str :pos | parseError := true].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2017
                        treeB := RBParser parseMethod:(changeB source) onError: [:str :pos | parseError := true].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2018
                        parseError ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2019
                            (treeA equalTo:treeB withMapping:(Dictionary new)) ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2020
                                info := 'Methods only differ in formatting / comments.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2021
                            ] ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2022
                                (treeA semanticallyEqualTo:treeB withMapping:(Dictionary  new)) ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2023
                                    info := 'Methods seem to do the same.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2024
                                ] ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2025
                                    info := 'Methods are different.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2026
                                ]
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2027
                            ]
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2028
                        ] ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2029
                            self infoHolder value:'ParseError while comparing - please check the code'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2030
                        ].    
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2031
                    ] ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2032
                        changeA isClassDefinitionChange ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2033
                            treeA := RBParser parseExpression:(changeA source) onError: [:str :pos | parseError := true].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2034
                            treeB := RBParser parseExpression:(changeB source) onError: [:str :pos | parseError := true].
17353
ce7d16ee2886 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17352
diff changeset
  2035
                            (treeA semanticallyEqualTo:treeB withMapping:(Dictionary  new)) ifTrue:[
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2036
                                info := 'Class definitions seem to do the same.'.
17802
3fefef20b087 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17663
diff changeset
  2037
                            ] ifFalse:[
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2038
                                info := 'Class definitions are different.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2039
                            ].    
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2040
                            treeA receiver = treeB receiver ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2041
                                info := 'Superclass changed.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2042
                            ] ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2043
                                treeA arg1 = treeB arg1 ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2044
                                    info := 'Name changed.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2045
                                ] ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2046
                                    treeA arg2 = treeB arg2 ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2047
                                        info := 'Instvars changed.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2048
                                    ] ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2049
                                        treeA arg3 = treeB arg3 ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2050
                                            info := 'Classvars changed.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2051
                                        ] ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2052
                                            (treeA arg:4) = (treeB arg:4) ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2053
                                                info := 'Pooldict changed.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2054
                                            ] ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2055
                                                (treeA arg:5) = (treeB arg:5) ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2056
                                                    info := 'Category changed.'.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2057
                                                ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2058
                                            ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2059
                                        ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2060
                                    ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2061
                                ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2062
                            ].
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2063
                        ] ifFalse:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2064
                            self halt.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2065
                        ].    
17802
3fefef20b087 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17663
diff changeset
  2066
                    ].    
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2067
                ].
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2068
            ].
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2069
            info notNil ifTrue:[
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2070
                self infoHolder value:info
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2071
            ].    
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2072
            self diffTextView
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2073
                text1:(changeA prettyPrintedSource) 
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2074
                text2:(changeB prettyPrintedSource)        
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2075
        ].
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2076
        self showDiffTextView.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2077
        self diffTextView moveToNextChanged
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2078
    ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2079
        self showVersionInfoIfNothingSelected
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2080
    ]
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2081
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2082
    "Modified: / 03-09-1999 / 15:01:30 / ps"
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2083
    "Modified: / 29-11-2017 / 12:56:28 / cg"
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2084
!
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2085
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2086
methodsOnlyInASelectionChanged
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2087
    "
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2088
    the selection in the list of the 'method only in version A' changed.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2089
    Reset the selection of the two other lists and show the method in
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2090
    the text view.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2091
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2092
    <return: self>
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2093
    "
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2094
    |change sel|
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2095
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2096
    "/ self information:''.
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2097
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2098
    sel := self methodsOnlyInASelection value.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2099
    sel notNil ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2100
        self methodsOnlyInBSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2101
        self methodsChangedSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2102
        change := methodsOnlyInAFiltered "self changeSetA" at:sel.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2103
        self methodText value:(change prettyPrintedSource).
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2104
        self showSingleTextView.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2105
    ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2106
        self showVersionInfoIfNothingSelected
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2107
    ].
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2108
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2109
    "Modified: / 05-02-2017 / 12:08:07 / cg"
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2110
!
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2111
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2112
methodsOnlyInBSelectionChanged
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2113
    "
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2114
    the selection in the list of the 'method only in version B' changed.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2115
    Reset the selection of the two other lists and show the method in
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2116
    the text view.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2117
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2118
    <return: self>
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2119
    "
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2120
    |change sel|
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2121
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2122
    "/ self information:''.
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2123
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2124
    sel := self methodsOnlyInBSelection value.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2125
    sel notNil ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2126
        self methodsOnlyInASelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2127
        self methodsChangedSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2128
        change := methodsOnlyInBFiltered "self changeSetB" at:sel.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2129
        self methodText value:(change prettyPrintedSource).
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2130
        self showSingleTextView.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2131
    ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2132
        self showVersionInfoIfNothingSelected
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2133
    ].
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2134
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2135
    "Modified: / 05-02-2017 / 11:49:22 / cg"
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2136
!
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2137
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2138
selectedSymbolicVersionHolderChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2139
    self selectedVersionHolder 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2140
        value:(symbolicToVersionMapping at:( self selectedSymbolicVersionHolder value ))
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2141
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2142
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2143
selectedVersionHolderChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2144
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2145
    self withWaitCursorDo:[
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2146
        |idx prevSelectionIndexA prevSelectionIndexB prevSelectionIndexDifferent
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2147
         previousChange previousClass previousSelector|
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2148
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2149
        "/ remember the previous selected method
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2150
        (prevSelectionIndexA := methodsOnlyInASelection value) notNil ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2151
            previousChange := methodsOnlyInAFiltered at:prevSelectionIndexA.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2152
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2153
        (prevSelectionIndexB := methodsOnlyInBSelection value) notNil ifTrue:[  
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2154
            previousChange := methodsOnlyInBFiltered at:prevSelectionIndexB.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2155
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2156
        (prevSelectionIndexDifferent := methodsChangedSelection value) notNil ifTrue:[  
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2157
            previousChange := (methodsChangedFiltered at:prevSelectionIndexDifferent) first.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2158
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2159
        previousChange notNil ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2160
            previousClass := previousChange className.
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2161
            previousSelector := previousChange changeSelector.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2162
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2163
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2164
        "/ possibly expand a contracted list
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2165
        selectedVersionHolder value = '...' ifTrue:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2166
            idx := self versionList size.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2167
            self updateVersionList.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2168
            selectedVersionHolder setValue:(self versionList at:idx).
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2169
        ].
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2170
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2171
        "/ update the view
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2172
        self 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2173
            setupForClass:classHolder value 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2174
            againstVersion:(selectedVersionHolder value).
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2175
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2176
        "/ try to reselect the same method again.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2177
        previousChange notNil ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2178
            "/ search a change for that in the three lists
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2179
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2180
            (idx := methodsChangedFiltered findFirst:[:entry | entry first className = previousClass
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2181
                                                       and:[ entry first changeSelector = previousSelector]]) ~= 0
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2182
            ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2183
                methodsChangedSelection value:idx. self methodsChangedSelectionChanged.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2184
            ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2185
                (idx := methodsOnlyInAFiltered findFirst:[:chg | chg className = previousClass
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2186
                                                       and:[ chg changeSelector = previousSelector]]) ~= 0
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2187
                ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2188
                    methodsOnlyInASelection value:idx. self methodsOnlyInASelectionChanged
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2189
                ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2190
                    (idx := methodsOnlyInBFiltered findFirst:[:chg | chg className = previousClass
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2191
                                                          and:[ chg changeSelector = previousSelector]]) ~= 0
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2192
                    ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2193
                        methodsOnlyInBSelection value:idx. self methodsOnlyInBSelectionChanged.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2194
                    ]
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2195
                ]
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2196
            ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2197
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2198
        self showVersionInfoIfNothingSelected
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2199
    ]
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2200
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2201
    "Modified: / 06-02-2017 / 02:32:24 / cg"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2202
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2203
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2204
selectedVersionIndexHolderChanged
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2205
    self selectedVersionHolder value:(versionList at:self selectedVersionIndexHolder value)
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2206
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2207
    "Created: / 29-11-2017 / 13:04:12 / cg"
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2208
!
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2209
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2210
update:something with:parameter from:changedObject
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2211
    ((changedObject == includeExtensionsHolder)
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2212
    or:[ changedObject == includeCategoryChangesHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2213
    or:[ changedObject == includeVersionMethodsHolder ]]) ifTrue:[
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2214
        self updateLists.
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2215
         ^ self
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  2216
    ].
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  2217
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2218
    (changedObject == classHolder
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2219
    or:[changedObject == versionAHolder
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2220
    or:[changedObject == versionBHolder]]) ifTrue:[
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2221
        self setupForClass:(classHolder value) versionA:(versionAHolder value) versionB:(versionBHolder value).
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2222
        ^ self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2223
    ].
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2224
    super update:something with:parameter from:changedObject
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2225
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2226
    "Modified: / 17-07-2012 / 17:48:58 / cg"
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2227
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2228
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2229
updateLabels
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2230
    "update the labels of the diff text view. Show the version numbers
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2231
     of the class."
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2232
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2233
    |theVersionA theVersionB builder makeLabel|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2234
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2235
    makeLabel :=
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2236
        [:theVersion |
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2237
            |label date author revInfo|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2238
            
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2239
            label := theVersion.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2240
            versionInfoList notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2241
                revInfo := versionInfoList detect:[:info | (info at:#revision) = theVersion] ifNone:nil.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2242
                revInfo notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2243
                    date := (Timestamp readGeneralizedFrom:(revInfo at:#date)) asDate.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2244
                    author := (revInfo at:#author) ? '?'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2245
                    label := theVersion , ' [',date printString,' by ',author,']'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2246
                ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2247
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2248
            label
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2249
        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2250
        
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2251
    builder := self builder.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2252
    (theVersionA := self versionA) notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2253
        self diffTextLabelA value:(makeLabel value:theVersionA).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2254
        self onlyInALabelHolder value:('Only in ' , theVersionA).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2255
        (self componentAt:#OnlyInALabel)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2256
            foregroundColor:Color white;
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2257
            backgroundColor:Color green darkened.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2258
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2259
    (theVersionB :=self versionB) notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2260
        self diffTextLabelB value:(makeLabel value:theVersionB).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2261
        self onlyInBLabelHolder value:('Only in ' , theVersionB).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2262
        (self componentAt:#OnlyInBLabel)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2263
            foregroundColor:Color white;
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2264
            backgroundColor:Color red darkened.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2265
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2266
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2267
    self changedLabelHolder value:('Different').
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2268
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2269
    "Modified: / 13-10-2006 / 01:07:08 / cg"
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2270
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2271
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2272
updateLists
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2273
    "walk over the changeSet and setup the 3 lists:
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2274
     onlyInA, changed, onlyInB,
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2275
     Optionally filter extensions, categoryChanges and versionMethods,
17350
9b2d4f4433cf #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17349
diff changeset
  2276
     changes with same semantic (variable renames)
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2277
     and changes which have been explicitly filtered by the user."
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2278
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2279
    |listOnlyInA listOnlyInB listChanged
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2280
     printStringGenerator sortBlockForChangeLists filteredList
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2281
     numIgnoredExtensions numIgnoredVersionMethods 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2282
     info needFilter entryIsForCommentOrFormatOnly
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2283
     isIgnoredChange isIgnored1 isIgnored2 isIgnored3 isIgnored4 isIgnored5|
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2284
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2285
    printStringGenerator := [:aChange | self printStringForChange:aChange].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2286
    sortBlockForChangeLists := [:a :b | (printStringGenerator value:a) < (printStringGenerator value:b)].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2287
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2288
    numIgnoredExtensions := numIgnoredVersionMethods := 0.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2289
    needFilter := self includeExtensions not 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2290
                  or:[self includeCategoryChanges not
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2291
                  or:[self includeVersionMethods not]].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2292
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2293
    needFilter ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2294
        isIgnoredChange :=
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2295
            [:change |
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2296
                |packageOfMethodInChange packageOfMethodInImage changeMethod ignored|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2297
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2298
                ignored := false.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2299
                change isMethodCodeChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2300
                    self includeExtensions ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2301
                        packageOfMethodInChange := change package.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2302
                        (packageOfMethodInChange notNil
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2303
                          and:[ packageOfMethodInChange ~= PackageId noProjectID
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2304
                          and:[ change changeClass notNil 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2305
                                and:[ packageOfMethodInChange ~= change changeClass package ]]]) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2306
                            ignored := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2307
                        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2308
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2309
                        changeMethod := change changeMethod.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2310
                        changeMethod notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2311
                            packageOfMethodInImage := changeMethod package.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2312
                            (true "packageOfMethodInImage notNil"
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2313
                              and:[ packageOfMethodInImage ~= PackageId noProjectID
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2314
                              and:[ packageOfMethodInImage ~= changeMethod mclass package ]]) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2315
                                ignored := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2316
                            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2317
                        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2318
                        numIgnoredExtensions := numIgnoredExtensions + (ignored ifTrue:[1] ifFalse:[0]).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2319
                    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2320
                    self includeVersionMethods ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2321
                        (change isMethodChangeForVersionMethod
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2322
                        or:[ change isMethodChangeForExtensionsVersionMethod ]) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2323
                            ignored := true.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2324
                            numIgnoredVersionMethods := numIgnoredVersionMethods + 1
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2325
                        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2326
                    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2327
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2328
                    change isMethodCategoryChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2329
                        self includeCategoryChanges ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2330
                            ignored := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2331
                        ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2332
                    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2333
                ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2334
                ignored.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2335
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2336
    ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2337
        isIgnoredChange := [:change | false].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2338
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2339
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2340
    filteredClasses notEmptyOrNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2341
        isIgnored1 := isIgnoredChange. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2342
        isIgnoredChange := 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2343
            [:change | 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2344
                (isIgnored1 value:change)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2345
                or:[ 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2346
                    filteredClasses includes:change nonMetaClassName 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2347
                ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2348
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2349
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2350
    filteredSelectors notEmptyOrNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2351
        isIgnored2 := isIgnoredChange. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2352
        isIgnoredChange := 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2353
            [:change | 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2354
                (isIgnored2 value:change)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2355
                or:[ filteredSelectors includes:change changeSelector ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2356
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2357
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2358
    filteredMethods notEmptyOrNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2359
        isIgnored3 := isIgnoredChange. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2360
        isIgnoredChange := 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2361
            [:change | 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2362
                (isIgnored3 value:change)
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2363
                or:[ 
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2364
                    filteredMethods contains:[:filter |
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2365
                        |filterSelector filterClassName|
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2366
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2367
                        "/ migration - will be always an assoc
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2368
                        filter isAssociation ifTrue:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2369
                            filterClassName := filter key.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2370
                            filterSelector := filter value.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2371
                        ] ifFalse:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2372
                            filterClassName := filter className.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2373
                            filterSelector := filter changeSelector.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2374
                        ].    
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2375
                        ((change className = filterClassName)
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2376
                        and:[change changeSelector = filterSelector])
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2377
                    ]
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2378
                ]
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2379
            ].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2380
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2381
    
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2382
    classPatternFilters notEmptyOrNil ifTrue:[
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2383
        isIgnored4 := isIgnoredChange. 
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2384
        isIgnoredChange := 
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2385
            [:change | 
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2386
                (isIgnored4 value:change)
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2387
                or:[ 
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2388
                    classPatternFilters contains:[:pattern | pattern match:change nonMetaClassName]
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2389
                ]
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2390
        ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2391
    ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2392
    
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2393
    selectorPatternFilters notEmptyOrNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2394
        isIgnored5 := isIgnoredChange. 
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2395
        isIgnoredChange := 
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2396
            [:change | 
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2397
                (isIgnored5 value:change)
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2398
                or:[ 
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2399
                    selectorPatternFilters contains:[:pattern | pattern match:change changeSelector]
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2400
                ]
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2401
        ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2402
    ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2403
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2404
    listOnlyInA := filteredList := self methodsOnlyInA.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2405
    listOnlyInA removeAll.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2406
    classChangeSet notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2407
        "/ classChangeSet methodsOnlyInA sort:sortBlockForChangeLists.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2408
        filteredList := classChangeSet methodsOnlyInA reject:isIgnoredChange.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2409
        listOnlyInA addAll: (filteredList collect:printStringGenerator).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2410
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2411
    methodsOnlyInAFiltered := filteredList.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2412
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2413
    listOnlyInB := filteredList := self methodsOnlyInB.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2414
    listOnlyInB removeAll.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2415
    classChangeSet notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2416
        "/ classChangeSet methodsOnlyInB sort:sortBlockForChangeLists.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2417
        filteredList := classChangeSet methodsOnlyInB reject:isIgnoredChange.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2418
        listOnlyInB addAll: (filteredList collect:printStringGenerator).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2419
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2420
    methodsOnlyInBFiltered := filteredList.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2421
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2422
    entryIsForCommentOrFormatOnly :=
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2423
        [:entry |
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2424
            |commentOnly changeA changeB mthdA mthdB|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2425
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2426
            commentOnly := false.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2427
            
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2428
            changeA := entry first.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2429
            changeB := entry second.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2430
            changeA isMethodChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2431
                changeA isMethodCodeChange ifTrue:[
17414
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  2432
                    RBCodeDuplicationRule notNil ifTrue:[
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  2433
                        mthdA := RBMethod forMethodChange:changeA.
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  2434
                        mthdB := RBMethod forMethodChange:changeB.
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  2435
                        commentOnly := RBCodeDuplicationRule hasMethod:mthdA sameSemanticAs:mthdB.
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  2436
                    ].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2437
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2438
                    changeA isMethodCategoryChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2439
                        commentOnly := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2440
                    ] ifFalse:[    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2441
                        self breakPoint:#cg
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2442
                    ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2443
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2444
            ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2445
                changeA isClassDefinitionChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2446
                    changeA source = changeB source ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2447
                        commentOnly := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2448
                    ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2449
                        self breakPoint:#cg
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2450
                    ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2451
                ] ifFalse:[    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2452
                    self breakPoint:#cg
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2453
                ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2454
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2455
            commentOnly
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2456
        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2457
        
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2458
    listChanged := filteredList := self methodsChanged.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2459
    listChanged removeAll.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2460
    classChangeSet notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2461
        "/ classChangeSet methodsChanged sort:[:a :b | sortBlockForChangeLists value:a first value:b first].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2462
        filteredList := classChangeSet methodsChanged reject:[:entry | isIgnoredChange value:entry first].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2463
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2464
        (self hideDiffsWithCommentOrFormattingChangeOnly) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2465
            filteredList := filteredList reject:entryIsForCommentOrFormatOnly.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2466
            listChanged addAll: (filteredList collect:[:entry| printStringGenerator value:(entry first)]).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2467
        ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2468
            filteredList do:[:entry| 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2469
                |string|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2470
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2471
                string := printStringGenerator value:(entry first).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2472
                (entryIsForCommentOrFormatOnly value:entry) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2473
                    string := string withColor:Color grey.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2474
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2475
                listChanged add:string
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2476
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2477
        ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2478
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2479
    methodsChangedFiltered := filteredList.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2480
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2481
    self boxAVisible value:(listOnlyInA notEmpty).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2482
    self boxBVisible value:(listOnlyInB notEmpty).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2483
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2484
    self boxMVisible value:(listChanged isEmpty
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2485
                            and: [(listOnlyInA notEmpty
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2486
                                  or:[listOnlyInB notEmpty])]) not.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2487
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2488
    info := '%1 changed, %2 added, %3 removed%4'
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2489
            bindWith:methodsChangedFiltered size
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2490
            with:methodsOnlyInB size
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2491
            with:methodsOnlyInA size
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2492
            with:(isIgnoredChange isNil
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2493
                    ifTrue:['']
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2494
                    ifFalse:[' (filtered)']).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2495
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2496
    numIgnoredExtensions ~~ 0 ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2497
        info := info , ('; %1 extension methods ignored. ' bindWith:numIgnoredExtensions).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2498
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2499
    numIgnoredVersionMethods ~~ 0 ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2500
        info := info , ('; %1 version methods ignored.' bindWith:numIgnoredVersionMethods).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2501
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2502
    self information:info
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2503
17350
9b2d4f4433cf #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17349
diff changeset
  2504
    "Modified (comment): / 06-02-2017 / 10:09:11 / cg"
17414
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  2505
    "Modified (format): / 16-02-2017 / 11:11:49 / stefan"
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2506
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2507
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2508
updateVersionList
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2509
    "asks the classes source code manager for a list of revisions;
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2510
     construct versionInfoList (containing the full info), versionList (containing version numbers only)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2511
     and tagList (containing symbolic names only).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2512
     This is only used when comparing multiple versions."
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2513
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2514
    |cls sourceCodeManager numShown newNumShown numOverallRevisions
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2515
     partialLog newestRev revisions revisionEntries symbolicNames
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2516
     stableRevision releasedRevision tagList logMessages|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2517
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2518
    cls := classHolder value.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2519
    sourceCodeManager := cls sourceCodeManager.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2520
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2521
    numShown := versionList size - 1.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2522
    newNumShown := (numShown + 50) max:30.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2523
    partialLog := sourceCodeManager revisionLogOf:cls numberOfRevisions:newNumShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2524
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2525
    partialLog isNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2526
        self warn:'Could not find/access the container for class ',cls name,' in the repository.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2527
This could be due to:
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2528
    - invalid/wrong CVS-Root setting
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2529
    - missing CVS access rights
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2530
        (no access / not logged in)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2531
    - changed CVSRoot after compilation
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2532
        (i.e. wrong CVS-path in classes version method)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2533
'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2534
        ^ nil
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2535
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2536
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2537
    numOverallRevisions := partialLog at:#numberOfRevisions.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2538
    newestRev := partialLog at:#newestRevision.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2539
    revisions := partialLog at:#revisions.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2540
    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2541
    "/ fetch the symbolic (tag) version list
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2542
    symbolicNames := partialLog at:#symbolicNames ifAbsent:[].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2543
    symbolicNames notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2544
        stableRevision := symbolicNames at:'stable' ifAbsent:[].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2545
        releasedRevision := symbolicNames at:'released' ifAbsent:[].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2546
        tagList := ((symbolicNames associations sort:[:a :b | a key < b key "self versionString:(a value) isLessThan:(b value)"])
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2547
                     collect:[:assoc | assoc key]) reverse.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2548
        tagList remove:'stable' ifAbsent:[].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2549
        tagList notEmpty ifTrue:[tagList addFirst:'-'].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2550
        tagList addFirst:'stable'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2551
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2552
    logMessages := Dictionary new.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2553
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2554
    versionInfoList := revisions.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2555
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2556
"/    items := versionInfoList collect:[:each | |rev date who flag|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2557
"/                                    rev := each at:#revision.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2558
"/                                    logMessages at:rev put:(each at:#logMessage).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2559
"/                                    date := (each at:#date ifAbsent:nil) ? '?'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2560
"/                                    who := (each at:#author ifAbsent:nil) ? '?'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2561
"/                                    rev = stableRevision ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2562
"/                                        flag := ' Stable' allBold.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2563
"/                                    ] ifFalse:[rev = releasedRevision ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2564
"/                                        flag := ' Released' allBold.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2565
"/                                    ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2566
"/                                        flag := ' '
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2567
"/                                    ]].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2568
"/                                    rev allBold , flag, ' [' , date , ' by ' , who , ']'
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2569
"/                               ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2570
"/
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2571
"/    revisions := revisions collect:[:eachItem | eachItem at:#revision].
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2572
    revisions := OrderedCollection new.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2573
    revisionEntries := OrderedCollection new.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2574
    versionInfoList do:[:eachVersionInfo |
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2575
        revisions add:eachVersionInfo revision.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2576
        revisionEntries add:(
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2577
                    '%1 (by %2 at %3)' 
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2578
                        bindWith:(eachVersionInfo revision)
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2579
                        with:(eachVersionInfo user)
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2580
                        with:(eachVersionInfo date)).
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2581
    ].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2582
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2583
    revisions size < numOverallRevisions ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2584
        revisions add:'...'
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2585
    ].          
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2586
    symbolicToVersionMapping := symbolicNames.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2587
    self symbolicVersionList contents:tagList.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2588
    self versionList contents:revisions.
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2589
    self versionEntriesList contents:revisionEntries.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2590
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2591
    "Modified: / 29-11-2017 / 13:06:21 / cg"
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2592
! !
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2593
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2594
!VersionDiffBrowser methodsFor:'initialization & release'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2595
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2596
postBuildWith:aBuilder
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2597
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2598
    components which are invisible should be ignored by the panel.
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2599
    Cannot be set via the interface builder.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2600
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2601
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2602
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2603
3843
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  2604
    (self componentAt:#TopHorizontalPanel) ignoreInvisibleComponents:true.
6642
108b83a88516 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  2605
    super postBuildWith:aBuilder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2606
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2607
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2608
postOpenWith:aBuilder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2609
    super postOpenWith:aBuilder.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2610
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2611
    self isMultipleVersionBrowser ifTrue:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2612
        self withWaitCursorDo:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2613
            self updateVersionList.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2614
        ]
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2615
    ]
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2616
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2617
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2618
!VersionDiffBrowser methodsFor:'menu action'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2619
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2620
browseChange:aChange
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2621
    "browse the change in aChange"
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2622
17663
c59edc00bb70 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17463
diff changeset
  2623
    |cls sel|
2650
447c99ac6f76 oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
  2624
2578
29264fb3847e avoid debugger in browse-menu
Claus Gittinger <cg@exept.de>
parents: 2536
diff changeset
  2625
    aChange isNil ifTrue:[^ self].
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2626
2650
447c99ac6f76 oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
  2627
    cls := aChange changeClass.
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  2628
    cls isNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  2629
        Dialog information:'The class is not present in the image'.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  2630
        ^ self
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  2631
    ].
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2632
    aChange isMethodChange ifTrue:[
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  2633
        sel := aChange changeSelector.
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2634
"/        (cls compiledMethodAt:sel) isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2635
"/            (self confirm:'Method does not exist.\\Browse Class ?' withCRs) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2636
"/                browserClass openInClass:cls
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2637
"/            ].
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2638
"/            sel := nil.
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2639
"/        ]
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  2640
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2641
    self withWaitCursorDo:[
17663
c59edc00bb70 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17463
diff changeset
  2642
        SystemBrowser default openInClass:cls selector:sel.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2643
    ]
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2644
17663
c59edc00bb70 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17463
diff changeset
  2645
    "Modified (format): / 01-09-2017 / 14:23:56 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2646
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2647
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2648
browseClassInA
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2649
    "browse the selected method."
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2650
    self browseChange:(self selectedChangeInA).
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  2651
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2652
    "Modified: / 25-07-2006 / 11:14:02 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2653
!
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2654
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2655
browseClassInB
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2656
    "browse the selected method."
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2657
    self browseChange:(self selectedChangeInB).
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  2658
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2659
    "Modified: / 25-07-2006 / 11:13:58 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2660
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2661
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2662
browseClassInM
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2663
    "browse the selected method."
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2664
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2665
    self browseChange:(self selectedChangesInM first).
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  2666
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2667
    "Modified: / 25-07-2006 / 11:13:54 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2668
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  2669
2469
c78e7a79df34 apply; methodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2468
diff changeset
  2670
createPatchFile
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2671
    "create a patchFile, to patch the old version (versionA) into the new version (versionB).
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  2672
     I.e. a little changeFile to transport those changes."
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  2673
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2674
    |defaultName diffSet f oldVersion newVersion vsnMthdA vsnMthdB vsnA vsnB info classBeingCompared|
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2675
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2676
self warn:'Sorry: This function is not yet implemented'.
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  2677
    defaultName := 'patchFile.chg'.
2469
c78e7a79df34 apply; methodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2468
diff changeset
  2678
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2679
    classBeingCompared := classChangeSet classBeingCompared.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2680
    defaultName := '%1-%2-to-%3.chg'
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2681
                        bindWith:(classBeingCompared isNil ifTrue:['unknown'] ifFalse:[classBeingCompared nameWithoutPrefix])
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2682
                        with:(classChangeSet versionA ? 'old')
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2683
                        with:(classChangeSet versionB ? 'new').
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2684
    f := Dialog
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2685
            requestFileNameForSave:'Name of patchFile:'
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2686
            default:defaultName.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2687
self halt.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2688
    diffSet := classChangeSet diffSet.
2730
0bf87aa1ac49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2726
diff changeset
  2689
^ self.
0bf87aa1ac49 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2726
diff changeset
  2690
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2691
"/    vsnMthdA := self changeSetA
3103
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2692
"/                detect:[:ch | ch isMethodChange
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2693
"/                              and:[ch changeClass isMeta
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2694
"/                              and:[ch changeSelector = #version]]]
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2695
"/                ifNone:nil.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2696
"/    vsnMthdB := self changeSetA
3103
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2697
"/                detect:[:ch | ch isMethodChange
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2698
"/                              and:[ch changeClass isMeta
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2699
"/                              and:[ch changeSelector = #version]]]
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2700
"/                ifNone:nil.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2701
"/
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2702
"/    vsnMthdA notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2703
"/        "/ extract the version
3103
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2704
"/        vsnA := Class revisionStringFromSource:vsnMthdA source.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2705
"/        vsnA notNil ifTrue:[
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2706
"/            info := Class revisionInfoFromString:vsnA.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2707
"/            info notNil ifTrue:[
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2708
"/                vsnA := info at:#revision ifAbsent:nil.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2709
"/            ] ifFalse:[
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2710
"/                vsnA := nil.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2711
"/            ].
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2712
"/        ].
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2713
"/    ].
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2714
"/    vsnMthdB notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2715
"/        "/ extract the version
3103
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2716
"/        vsnB := Class revisionStringFromSource:vsnMthdB source.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2717
"/        vsnB notNil ifTrue:[
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2718
"/            info := Class revisionInfoFromString:vsnB.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2719
"/            info notNil ifTrue:[
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2720
"/                vsnB := info at:#revision ifAbsent:nil.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2721
"/            ] ifFalse:[
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2722
"/                vsnB := nil.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2723
"/            ].
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2724
"/        ].
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2725
"/    ].
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2726
"/
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2727
"/    (vsnA isNil or:[vsnB isNil or:[vsnA = vsnB]]) ifTrue:[
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2728
"/        self warn:'The generated patch file will not be able to validate/update the class version'.
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2729
"/    ].
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2730
"/
228e1cb0ef07 statements after return
Claus Gittinger <cg@exept.de>
parents: 3051
diff changeset
  2731
"/self halt:'not yet finished'.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2732
9602
46d76851e419 changed: #createPatchFile
Claus Gittinger <cg@exept.de>
parents: 9587
diff changeset
  2733
    "Modified: / 27-10-2010 / 11:34:58 / cg"
2469
c78e7a79df34 apply; methodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2468
diff changeset
  2734
!
c78e7a79df34 apply; methodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2468
diff changeset
  2735
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2736
hideDiffsWithCommentOrFormattingChangeOnlyHolder:newValue
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2737
    "state of hide changes which have no semantic effect has changed"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2738
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2739
    self updateLists.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2740
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2741
    "Created: / 04-02-2017 / 19:50:51 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2742
    "Modified: / 04-02-2017 / 23:14:45 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2743
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2744
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2745
inspectSelectedChangeInA
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2746
    "inspect the selected method change for the 'method only in version A'."
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2747
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2748
    self selectedChangeInA inspect.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2749
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2750
    "Modified: / 25-07-2006 / 11:13:30 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2751
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2752
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2753
inspectSelectedChangeInB
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2754
    "inspect the selected method change for the 'method only in version B'."
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2755
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2756
    self selectedChangeInB inspect.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2757
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2758
    "Modified: / 25-07-2006 / 11:13:22 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2759
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2760
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2761
inspectSelectedChangeInM
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2762
    "inspect the two method changes for the selected 'changed method'."
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2763
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2764
    |changes|
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2765
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2766
    changes := self selectedChangesInM.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2767
    changes do:[:change |
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2768
	change inspect
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2769
    ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2770
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2771
    "Modified: / 25-07-2006 / 11:13:13 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2772
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2773
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2774
mainMenu
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2775
    "if this application runs as an subapplication,
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2776
     the menu bar should not be used."
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2777
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2778
    self masterApplication isNil ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2779
	^ self class mainMenu
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2780
    ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2781
    ^ nil
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2782
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2783
    "Modified: / 25-07-2006 / 11:13:44 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2784
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2785
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2786
menuAHolder
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2787
    ^ [ self class menuA ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2788
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2789
    "Created: / 05-02-2017 / 10:07:15 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2790
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2791
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2792
menuBHolder
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2793
    ^ [ self class menuB ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2794
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2795
    "Created: / 05-02-2017 / 10:07:22 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2796
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2797
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2798
menuMHolder
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2799
    ^ [ self class menuM ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2800
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2801
    "Created: / 05-02-2017 / 10:07:36 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2802
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2803
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2804
openDocumentation
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2805
    HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#VERSIONDIFF'
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2806
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2807
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2808
removeClassFromChangeSet
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2809
    |cls ok changedClasses|
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2810
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2811
    classChangeSet notNil ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2812
        "/ only do if we compare a single class
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2813
        (cls := classChangeSet classBeingCompared) notNil ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2814
            ok := classChangeSet diffSet isEmptyOrNil.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2815
            ok ifFalse:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2816
                changedClasses := classChangeSet diffSet changedClasses.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2817
                (changedClasses size == 1
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2818
                and:[ changedClasses anElement theNonMetaclass == cls theNonMetaclass]) ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2819
                    (methodsChangedFiltered isEmptyOrNil
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2820
                    and:[ methodsOnlyInAFiltered isEmptyOrNil
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2821
                    and:[ methodsOnlyInBFiltered isEmptyOrNil ]]) ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2822
                        ok := true.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2823
                    ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2824
                ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2825
            ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2826
            ok ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2827
                ChangeSet current condenseChangesForClass:cls
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2828
            ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2829
        ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2830
    ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2831
! !
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2832
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2833
!VersionDiffBrowser methodsFor:'menu action - filters'!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2834
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2835
currentFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2836
    "get the current settings"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2837
    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2838
    |filterParameters|
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2839
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2840
    "/ migration - will be removed
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2841
    filteredMethods notEmptyOrNil ifTrue:[
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2842
        filteredMethods := filteredMethods
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2843
                            collect:[:filter |
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2844
                                filter isAssociation ifTrue:[
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2845
                                    filter.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2846
                                ] ifFalse:[
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2847
                                    filter className ->filter changeSelector.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2848
                                ].    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2849
                            ].        
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2850
    ].
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2851
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2852
    filterParameters := FilterParameters new.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2853
    filterParameters filteredClassNameMatchPattern:classPatternFilters.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2854
    filterParameters filteredSelectorMatchPattern:selectorPatternFilters.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2855
    filterParameters filteredClassNames:filteredClasses.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2856
    filterParameters filteredMethodNames:filteredMethods.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2857
    filterParameters filteredSelectors:filteredSelectors.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2858
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2859
    ^ filterParameters.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2860
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2861
    "Created: / 06-02-2017 / 09:20:07 / cg"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2862
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2863
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2864
exportFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2865
    "generate XML with the current settings
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2866
     (to be pasted into Jabber for interchange)"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2867
    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2868
    |filterParameters|
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2869
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2870
    filterParameters := self currentFilterParameters.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2871
    Workspace 
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2872
        openWith:(XMLStandardCoder encode:filterParameters)
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2873
        title:'Current Filter'
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2874
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2875
    "Created: / 06-02-2017 / 09:19:52 / cg"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2876
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  2877
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2878
filterClassInA
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2879
    "filter all changes for the selected change's class (don't show it)."
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2880
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2881
    filteredClasses isNil ifTrue:[
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2882
        filteredClasses := Set new.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2883
    ].    
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2884
    filteredClasses add:(self selectedChangeInA nonMetaClassName).
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2885
    self filterChanged.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2886
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2887
    "Created: / 05-02-2017 / 10:17:22 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2888
    "Modified: / 05-02-2017 / 11:19:05 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2889
    "Modified (comment): / 06-02-2017 / 09:13:23 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2890
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2891
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2892
filterClassInB
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2893
    "filter all changes for the selected change's class (don't show it)."
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2894
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2895
    filteredClasses isNil ifTrue:[
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2896
        filteredClasses := Set new.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2897
    ].    
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2898
    filteredClasses add:(self selectedChangeInB nonMetaClassName).
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2899
    self filterChanged.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2900
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2901
    "Created: / 05-02-2017 / 10:16:45 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2902
    "Modified: / 05-02-2017 / 11:19:02 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2903
    "Modified (comment): / 06-02-2017 / 09:13:29 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2904
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2905
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2906
filterClassInM
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2907
    "filter all changes for the selected change's class (don't show it)."
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2908
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2909
    filteredClasses isNil ifTrue:[
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2910
        filteredClasses := Set new.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2911
    ].    
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2912
    filteredClasses add:(self selectedChangesInM first nonMetaClassName).
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2913
    self filterChanged.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2914
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2915
    "Created: / 05-02-2017 / 10:38:06 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2916
    "Modified (comment): / 06-02-2017 / 09:13:33 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2917
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2918
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2919
filterClassesMatching
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2920
    "ask for a GLOB pattern;
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2921
     filter all changes with matching classnames ."
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2922
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2923
   |pattern|
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2924
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2925
    pattern := Dialog request:'Matchpattern for Classname Filter (will hide changes with matching classes):'.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2926
    pattern isEmptyOrNil ifTrue:[^ self].
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2927
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2928
    classPatternFilters isNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2929
        classPatternFilters := OrderedCollection new.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2930
    ].
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2931
    classPatternFilters add:pattern.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  2932
    self filterChanged
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2933
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2934
    "Created: / 05-02-2017 / 11:11:42 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2935
    "Modified: / 06-02-2017 / 09:18:15 / cg"
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2936
!
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2937
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2938
filterMethod:aChange
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2939
    "filter this change (don't show it)."
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2940
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2941
    filteredMethods isNil ifTrue:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2942
        filteredMethods := Set new.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2943
    ]. 
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2944
    aChange isMethodChange ifTrue:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2945
        filteredMethods add:(aChange className -> aChange changeSelector).
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2946
    ] ifFalse:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2947
    ].
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2948
    
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2949
    self filterChanged.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2950
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2951
    "Created: / 06-02-2017 / 08:58:17 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2952
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2953
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2954
filterMethodInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2955
    "filter this entry (don't show it)."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2956
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2957
    self filterMethod:(self selectedChangeInA)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2958
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2959
    "Created: / 05-02-2017 / 10:11:48 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2960
    "Modified: / 06-02-2017 / 08:58:38 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2961
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2962
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2963
filterMethodInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2964
    "filter this entry (don't show it)."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2965
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2966
    self filterMethod:(self selectedChangeInB)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2967
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2968
    "Created: / 05-02-2017 / 10:15:57 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2969
    "Modified: / 06-02-2017 / 08:58:46 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2970
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2971
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2972
filterMethodInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2973
    "filter this entry (don't show it)."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2974
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2975
    self filterMethod:(self selectedChangesInM first)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2976
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2977
    "Created: / 05-02-2017 / 10:39:10 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2978
    "Modified: / 06-02-2017 / 08:58:59 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2979
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2980
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2981
filterSelectorFromA
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2982
    "filter all changes for the selected change's selector(don't show it)."
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2983
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2984
    filteredSelectors isNil ifTrue:[
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2985
        filteredSelectors := Set new.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2986
    ].    
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2987
    filteredSelectors add:(self selectedChangeInA changeSelector).
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2988
    self filterChanged.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2989
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2990
    "Created: / 05-02-2017 / 10:36:08 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2991
    "Modified (comment): / 06-02-2017 / 09:13:48 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2992
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2993
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2994
filterSelectorFromB
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  2995
    "filter all changes for the selected change's selector(don't show it)."
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2996
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2997
    filteredSelectors isNil ifTrue:[
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2998
        filteredSelectors := Set new.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2999
    ].    
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3000
    filteredSelectors add:(self selectedChangeInB changeSelector).
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3001
    self filterChanged.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3002
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3003
    "Created: / 05-02-2017 / 10:36:14 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3004
    "Modified (comment): / 06-02-2017 / 09:13:52 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3005
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3006
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3007
filterSelectorFromM
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3008
    "filter all changes for the selected change's selector(don't show it)."
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3009
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3010
    filteredSelectors isNil ifTrue:[
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3011
        filteredSelectors := Set new.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3012
    ].    
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3013
    filteredSelectors add:(self selectedChangesInM first changeSelector).
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3014
    self filterChanged.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3015
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3016
    "Created: / 05-02-2017 / 10:39:28 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3017
    "Modified (comment): / 06-02-2017 / 09:13:55 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3018
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3019
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3020
filterSelectorsMatching
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3021
    "ask for a GLOB pattern;
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3022
     filter all changes with matching selectors."
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3023
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3024
    |pattern|
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3025
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3026
    pattern := Dialog request:'Matchpattern for Selector Filter (will hide changes with matching selectors):'.
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3027
    pattern isEmptyOrNil ifTrue:[^ self].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3028
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3029
    selectorPatternFilters isNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3030
        selectorPatternFilters := OrderedCollection new.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3031
    ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3032
    selectorPatternFilters add:pattern.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3033
    self filterChanged
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3034
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3035
    "Created: / 06-02-2017 / 02:29:07 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3036
    "Modified: / 06-02-2017 / 09:18:20 / cg"
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3037
!
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3038
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3039
forgetFilterNamed
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3040
    "forget a remembered named filter"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3041
    
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3042
    |filterName|
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3043
17345
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  3044
    filterName := Dialog 
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  3045
                    request:'Forget Filter Named:' 
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  3046
                    list:(RememberedFilters keys asNewOrderedCollection sort).
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3047
    filterName isEmptyOrNil ifTrue:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3048
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3049
    (Dialog confirm:'Shure to Forget the Filter Named: ',filterName) ifFalse:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3050
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3051
    RememberedFilters removeKey:filterName.
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3052
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3053
    "Created: / 05-02-2017 / 11:12:08 / cg"
17345
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  3054
    "Modified: / 06-02-2017 / 02:17:47 / cg"
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3055
!
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3056
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3057
importFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3058
    "ask for XML representation as exported previously.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3059
     (to be pasted from Jabber for interchange)"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3060
    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3061
    |xml filterParameters|
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3062
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3063
    xml := Dialog requestText:'Paste XML Exported Filter Here and Accept'.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3064
    xml isEmptyOrNil ifTrue:[^ self].
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3065
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3066
    filterParameters := XMLStandardCoder decode:xml.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3067
    (filterParameters isKindOf:FilterParameters) ifTrue:[
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3068
        self setFilterParameters:filterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3069
    ].
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3070
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3071
    "Created: / 06-02-2017 / 09:51:11 / cg"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3072
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3073
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3074
inspectFilterParameters
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3075
    "inspect the current settings"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3076
    
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3077
    self currentFilterParameters inspect.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3078
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3079
    "Created: / 06-02-2017 / 02:00:55 / cg"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3080
    "Modified: / 06-02-2017 / 09:20:15 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3081
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3082
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3083
loadFilterNamed
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3084
    "load a remembered named filter"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3085
    
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3086
    |filterName filterParameters|
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3087
17345
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  3088
    filterName := Dialog 
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  3089
                    request:'Load Filter Named:' 
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  3090
                    list:(RememberedFilters keys asNewOrderedCollection sort).
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3091
    filterName isEmptyOrNil ifTrue:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3092
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3093
    filterParameters := RememberedFilters at:filterName.
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3094
    self setFilterParameters:filterParameters.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3095
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3096
    "Created: / 06-02-2017 / 01:57:48 / cg"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3097
    "Modified: / 06-02-2017 / 09:51:47 / cg"
11855
52fd36ba842f changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11853
diff changeset
  3098
!
52fd36ba842f changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11853
diff changeset
  3099
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3100
rememberFilterAs
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3101
    "remember the current settings under a named filter"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3102
    
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3103
    |filterName filterParameters|
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3104
17346
d0b6964aad35 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17345
diff changeset
  3105
    filterName := Dialog 
d0b6964aad35 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17345
diff changeset
  3106
                    request:'Name of Filter:'
d0b6964aad35 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17345
diff changeset
  3107
                    list:(RememberedFilters keys asNewOrderedCollection sort).
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3108
    filterName isEmptyOrNil ifTrue:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3109
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3110
    filterParameters := self currentFilterParameters.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3111
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3112
    RememberedFilters isNil ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3113
        RememberedFilters := Dictionary new.
11855
52fd36ba842f changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11853
diff changeset
  3114
    ].
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3115
    RememberedFilters at:filterName put:filterParameters.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3116
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3117
    "Modified: / 06-02-2017 / 09:20:35 / cg"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3118
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3119
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3120
setFilterParameters:filterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3121
    "setup from a remembered filter"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3122
    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3123
    selectorPatternFilters := filterParameters filteredSelectorMatchPattern.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3124
    classPatternFilters := filterParameters filteredClassNameMatchPattern.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3125
    filteredClasses := filterParameters filteredClassNames.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3126
    filteredMethods := filterParameters filteredMethodNames.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3127
    filteredSelectors := filterParameters filteredSelectors.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3128
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3129
    self filterChanged.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3130
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3131
    "Created: / 06-02-2017 / 09:51:37 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3132
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3133
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3134
!VersionDiffBrowser methodsFor:'private'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3135
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3136
addAcceptToTextViewMenus
8657
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  3137
    "add to the standard diff text view or single text views menu an accept entry.
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  3138
     The acceptAction will fetch the corresponding change and apply it
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  3139
     (not the shown text)
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3140
8657
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  3141
     <return: self>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3142
    "
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3143
8657
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  3144
    |diffTextView leftView rightView singleView|
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3145
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3146
    diffTextView := self diffTextView.
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3147
    leftView := diffTextView leftTextView.
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3148
    rightView := diffTextView rightTextView.
3843
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  3149
    singleView := self componentAt:#singleTextView.
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3150
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3151
    (Array
13547
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3152
        with:leftView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3153
        with:rightView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3154
        with:singleView)
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3155
    do:[:v |
13547
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3156
        |mGen|
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3157
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3158
        mGen := [
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3159
            |m|
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3160
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3161
            m := v editMenu.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3162
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3163
            (m selectorAt:#accept) isNil ifTrue:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3164
                m addLabels:(resources array:#('-' 'Accept'))
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3165
                  selectors:#(nil #accept)
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3166
                  after:#copySelection.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3167
            ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3168
            m
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3169
                actionAt:#accept
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3170
                put:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3171
                    v == singleView ifTrue:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3172
                        self acceptInSingleView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3173
                    ] ifFalse:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3174
                        v == leftView ifTrue:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3175
                           self acceptInLeftView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3176
                        ] ifFalse:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3177
                           self acceptInRightView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3178
                        ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3179
                    ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3180
                ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3181
            m selectorAt:#accept put:nil.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3182
            m enable:#copySelection.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3183
            m setEnable:#accept to:[self canAcceptInCodeView].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3184
            m
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3185
        ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3186
        v menuHolder:mGen.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  3187
        v menuMessage:#value.
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3188
    ]
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3189
!
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3190
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3191
information:msg
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3192
    self infoHolder value:msg
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3193
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3194
    "Created: / 05-02-2017 / 11:42:27 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3195
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3196
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3197
printStringForChange:aChange
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3198
    "generate a print string for a change."
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3199
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3200
    |m changeClassName classOrMetaString useChangesString selectorString
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3201
     singleComparedClass singleComparedClassesName singleComparedMetaclassesName
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3202
     printString class1 class2|
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3203
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3204
    class1 := self classChangeSet class1BeingCompared.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3205
    class2 := self classChangeSet class2BeingCompared.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3206
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3207
    (singleComparedClass := self classBeingCompared) notNil ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3208
        singleComparedClassesName := singleComparedClass name.
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3209
        singleComparedMetaclassesName := singleComparedClass theMetaclass name.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3210
    ].
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3211
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3212
    aChange isClassDefinitionChange ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3213
        ^ aChange printStringWithoutClassName
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3214
    ].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3215
    aChange isDoIt ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3216
        ^ aChange source , ' (doIt)'
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3217
    ].
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  3218
    aChange isNameSpaceCreationChange ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3219
        ^ aChange source
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  3220
    ].
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3221
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  3222
    changeClassName := aChange className.
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  3223
    changeClassName isNil ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3224
        ^ aChange source
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  3225
    ].
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3226
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3227
    useChangesString := false.
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3228
    classOrMetaString := ''.
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  3229
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3230
    (class1 notNil 
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3231
    and:[ class2 notNil
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3232
    and:[ class1 ~= class2 ]]) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3233
        changeClassName := ''.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3234
    ] ifFalse:[
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3235
        (changeClassName = singleComparedClassesName) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3236
            "/ changeClassName := ''.
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3237
            useChangesString := true.
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3238
        ] ifFalse:[
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3239
            (changeClassName = singleComparedMetaclassesName) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3240
                "/ classOrMetaString := ' class'.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3241
                useChangesString := true.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3242
            ] ifFalse:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3243
                ((changeClassName includes:$:) and:[ changeClassName startsWith:((singleComparedClassesName ? ''),'::') ]) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3244
                    changeClassName := changeClassName copyFrom:(singleComparedClassesName,'::') size+1.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3245
                ].
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3246
            ].
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3247
        ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3248
    ].
6272
54b4aec6a387 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6210
diff changeset
  3249
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3250
    selectorString := ''.
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3251
    (aChange isMethodChange) ifTrue:[
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3252
        selectorString := aChange changeSelector.
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3253
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3254
        aChange changeClass notNil ifTrue:[
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3255
            m := aChange changeMethod.
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3256
            m notNil ifTrue:[
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3257
                m := m originalMethodIfWrapped.
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3258
                selectorString := m printStringForBrowserWithSelector:aChange changeSelector inClass:aChange changeClass.
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3259
            ].
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  3260
        ].
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3261
        changeClassName notEmptyOrNil ifTrue:[
17463
c6696d10d802 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17414
diff changeset
  3262
            selectorString := ' » ',selectorString
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3263
        ]
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3264
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3265
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3266
    printString := changeClassName,classOrMetaString,selectorString.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3267
    aChange isMethodCategoryChange ifTrue:[
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3268
        ^ printString, ' (category)'
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3269
    ].
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  3270
    ^ printString
9587
9f33d5c62efa changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 9550
diff changeset
  3271
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3272
    "Modified: / 06-02-2017 / 02:32:08 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3273
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3274
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3275
resetSelectionHolders
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3276
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3277
    reset all selection holders when a new change set is given.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3278
    First set the selection to nil.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3279
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3280
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3281
    "
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3282
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3283
    self methodsChangedSelection value:nil.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3284
    self methodsOnlyInASelection value:nil.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3285
    self methodsOnlyInBSelection value:nil.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3286
    self diffTextView text1:'' text2:''.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3287
    self methodText value:''.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3288
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3289
"/    self methodsChangedSelectionChanged.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3290
"/    self methodsOnlyInASelectionChanged.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3291
"/    self methodsOnlyInBSelectionChanged.
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3292
!
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3293
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3294
showDiffTextView
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3295
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3296
    if a method change is selected, then show the diff text view.
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3297
    Add an accept entry to the popup menu.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3298
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3299
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3300
    "
2694
a19deafda6b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2650
diff changeset
  3301
3843
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  3302
    (self componentAt:#diffTextViewBox) raise; beVisible.
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  3303
    (self componentAt:#singleTextView) beInvisible.
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  3304
    (self componentAt:#diffTextView) realizeAllSubViews.
2694
a19deafda6b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2650
diff changeset
  3305
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3306
    self addAcceptToTextViewMenus.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3307
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3308
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3309
showSingleTextView
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3310
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3311
    if a method  is selected which is only in version A or B of the class,
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3312
    then show the text view.
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3313
    Add an accept entry to the popup menu.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3314
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3315
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3316
    "
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3317
3843
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  3318
    (self componentAt:#singleTextView) raise; beVisible.
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  3319
    (self componentAt:#diffTextViewBox) beInvisible.
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3320
    self addAcceptToTextViewMenus.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3321
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3322
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3323
showVersionInfoIfNothingSelected
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3324
    "show the revision info (author, date, time and logMessage), if no method is selected"
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3325
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3326
    |revInfo infoText|
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3327
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3328
    "/ self information:''.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3329
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3330
    (methodsOnlyInASelection value isNil
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3331
      and:[ methodsOnlyInBSelection value isNil
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3332
      and:[ methodsChangedSelection value isNil]]
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3333
    ) ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3334
        versionInfoList notNil ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3335
            revInfo := versionInfoList detect:[:info | (info at:#revision) = selectedVersionHolder value] ifNone:nil.
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3336
            revInfo notNil ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3337
                infoText := 'Revision: %1\Author:   %2\Date:     %3\Log:\\%4' withCRs
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3338
                                bindWith:(revInfo at:#revision) 
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3339
                                with:(revInfo at:#author) 
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3340
                                with:(revInfo at:#date)
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3341
                                with:(revInfo at:#logMessage).
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3342
            ].
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3343
        ].    
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3344
        self methodText value:infoText.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3345
        self showSingleTextView.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3346
    ].
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  3347
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3348
    "Modified: / 05-02-2017 / 11:49:47 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3349
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3350
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3351
!VersionDiffBrowser methodsFor:'setup'!
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3352
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3353
setupForClass:aClass againstVersion:aVersionA
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3354
    "compute the class change set for the class aClass of its current version against the repository version A.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3355
     When setting the class change set, the labels, list etc. of the receiver
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3356
     are updated."
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3357
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3358
    |changeSet|
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3359
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3360
    aClass isNil ifTrue:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3361
        changeSet := nil
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  3362
    ] ifFalse:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3363
        (aClass isRealNameSpace) ifFalse:[
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3364
            aClass isLoaded ifTrue:[
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3365
                changeSet := (ClassChangeSet newForClass:aClass againstVersion:aVersionA).
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3366
            ]
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3367
        ].
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3368
    ].
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3369
    self classChangeSet:changeSet.
2857
0c467f6b1741 handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents: 2856
diff changeset
  3370
    aVersionA isNil ifTrue:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3371
        self class:aClass versionA:'Repository' versionB:'Current'.
2857
0c467f6b1741 handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents: 2856
diff changeset
  3372
    ] ifFalse:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  3373
        self class:aClass versionA:aVersionA versionB:(aVersionA , 'm').
2857
0c467f6b1741 handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents: 2856
diff changeset
  3374
    ]
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3375
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3376
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3377
setupForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3378
    "generate the class change set from the two classes A and B.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3379
     When setting the class change set, the labels, list etc. of the receiver
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3380
     are updated."
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3381
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3382
    |changeSet|
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3383
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3384
    changeSet := (ClassChangeSet newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB).
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3385
    self classChangeSet:changeSet
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3386
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3387
2510
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  3388
setupForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3389
    "generate the class change set from the two source files A and B.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3390
     When setting the class change set, the labels, list etc. of the receiver
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3391
     are updated."
2510
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  3392
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3393
    |changeSet|
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3394
9383
dc59d4bf4a56 code deobfuscated:
Claus Gittinger <cg@exept.de>
parents: 9325
diff changeset
  3395
    aClass isRealNameSpace ifFalse:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3396
	aClass isLoaded ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3397
	    changeSet := (ClassChangeSet newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB).
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3398
	]
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3399
    ].
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3400
    self classChangeSet:changeSet
7499
6bb22d2d1ad9 use isRealNameSpace
Claus Gittinger <cg@exept.de>
parents: 7419
diff changeset
  3401
6bb22d2d1ad9 use isRealNameSpace
Claus Gittinger <cg@exept.de>
parents: 7419
diff changeset
  3402
    "Modified: / 10-11-2006 / 17:15:26 / cg"
2510
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  3403
!
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  3404
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3405
setupForClass:aClass versionA:aVersionA versionB:aVersionB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3406
    "compute the class change set for the class aClass and the versions A and B.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3407
     When setting the class change set, the labels, list etc. of the receiver
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3408
     are updated."
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3409
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3410
    |changeSet|
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3411
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3412
    aClass isNameSpace ifFalse:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3413
	aClass isLoaded ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3414
	    changeSet := (ClassChangeSet newForClass:aClass versionA:aVersionA versionB:aVersionB).
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3415
	]
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  3416
    ].
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3417
    self classChangeSet:changeSet.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3418
    self class:aClass versionA:aVersionA versionB:aVersionB.
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3419
!
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3420
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3421
setupForDiffSet:diffSet labelA:aLabelA labelB:aLabelB
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3422
    |changeSet|
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3423
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3424
    changeSet := (ClassChangeSet new diffSet:diffSet; labelA:aLabelA; labelB:aLabelB).
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  3425
    self classChangeSet:changeSet
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3426
! !
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  3427
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3428
!VersionDiffBrowser::ClassChangeSet class methodsFor:'instance creation'!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3429
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3430
changeSetForClass:aClass
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3431
    "return a ChangeSet for the class aClass and its current source.
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3432
     The source is generated into a stream and then the change set is generated
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3433
     from the source stream."
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3434
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3435
    ^ ChangeSet forExistingClass:aClass.
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3436
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3437
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3438
changeSetForClass:aClass andRevision:aVersion
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3439
    "return a ChangeSet for the class aClass and version aVersion.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3440
     The version from the class source stream is checked out from the repositiory
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3441
     into a source stream. Then the change set is generated from the source stream."
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3442
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3443
    |theSourceCodeManager theSourceStream theChangeSet|
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3444
13305
1debd2a0c5f8 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13151
diff changeset
  3445
    theSourceCodeManager := SourceCodeManagerUtilities sourceCodeManagerFor:aClass.
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3446
    [
13305
1debd2a0c5f8 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13151
diff changeset
  3447
        theSourceStream := theSourceCodeManager getSourceStreamFor:aClass revision:aVersion.
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3448
        theSourceStream notNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3449
            theChangeSet := ChangeSet fromStream:theSourceStream
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3450
        ]
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3451
    ] ensure:[
13305
1debd2a0c5f8 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13151
diff changeset
  3452
        theSourceStream notNil ifTrue:[theSourceStream close]
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3453
    ].
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3454
    theChangeSet isNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3455
        self error:'Could not read source of class ',aClass name mayProceed:true.
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3456
        ^ nil
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3457
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3458
    self sortChangeSet:theChangeSet.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3459
    ^ theChangeSet
7108
e22911bfd36b sourceCodeManager access
Claus Gittinger <cg@exept.de>
parents: 6828
diff changeset
  3460
e22911bfd36b sourceCodeManager access
Claus Gittinger <cg@exept.de>
parents: 6828
diff changeset
  3461
    "Modified: / 12-09-2006 / 14:24:51 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3462
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3463
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3464
changeSetForClass:aClass andSource:aSource
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3465
    "return a ChangeSet for the class aClass and source aSource.
4638
79734f7bdfc4 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 4359
diff changeset
  3466
     The source is converted to a stream and then the change set is generated
79734f7bdfc4 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 4359
diff changeset
  3467
     from the source stream.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3468
     Raise an error if the source stream cannot be opened."
4638
79734f7bdfc4 Handle openErrorSignal in preparition for change openErrorSignal
Stefan Vogel <sv@exept.de>
parents: 4359
diff changeset
  3469
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3470
    |theChangeSet theSourceStream|
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3471
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3472
    [
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3473
        theSourceStream := aSource readStream.
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3474
        theChangeSet := ChangeSet fromStream:(theSourceStream := aSource readStream)
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3475
    ] ensure:[
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3476
        theSourceStream notNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3477
            theSourceStream close
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3478
        ]
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3479
    ].
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3480
    theChangeSet isNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3481
        self error:'Could not read source of class ',aClass name mayProceed:true.
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  3482
        ^ nil
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  3483
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3484
    self sortChangeSet:theChangeSet.
4653
0a97ce41f5bd More openErrorSignal change preparations
Stefan Vogel <sv@exept.de>
parents: 4638
diff changeset
  3485
    ^ theChangeSet
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3486
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3487
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3488
newForClass:aClass againstVersion:aVersionA
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3489
    "return a ClassChangeSet for the class aClass against some verson in the repository.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3490
     A new instance of ClassChangeSet is generated containing
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3491
     the correspondenting changes."
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3492
8891
fm
parents: 8811
diff changeset
  3493
    |theClassChangeSet|
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3494
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3495
    theClassChangeSet := self new.
8891
fm
parents: 8811
diff changeset
  3496
    theClassChangeSet setupForClass:aClass againstVersion:aVersionA.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3497
    ^ theClassChangeSet
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3498
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3499
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3500
newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3501
    "return a ClassChangeSet for two classes.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3502
     A new instance of ClassChangeSet is generated containing the correspondenting changes."
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3503
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3504
    |aStream sourceA sourceB theChangeSetA theChangeSetB theClassChangeSet|
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3505
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3506
    theClassChangeSet := self new.
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3507
    theClassChangeSet class1BeingCompared:classA class2BeingCompared:classB.
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3508
    theClassChangeSet labelA:aLabelA.
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3509
    theClassChangeSet labelB:aLabelB.
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3510
16615
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3511
    theChangeSetA := ChangeSet forExistingClass:classA withExtensions:true withLooseMethods:true.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3512
    theChangeSetB := ChangeSet forExistingClass:classB withExtensions:true withLooseMethods:true.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3513
    
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3514
"/    aStream := '' writeStream.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3515
"/    Method flushSourceStreamCache.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3516
"/    classA fileOutOn:aStream withTimeStamp:false.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3517
"/    sourceA := aStream contents asString.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3518
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3519
"/    aStream := '' writeStream.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3520
"/    Method flushSourceStreamCache.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3521
"/    classB fileOutOn:aStream withTimeStamp:false.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3522
"/    sourceB := aStream contents asString.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3523
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3524
"/    theChangeSetA:=self changeSetForClass:classA andSource:sourceA.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3525
"/    theChangeSetB:=self changeSetForClass:classB andSource:sourceB.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3526
"/    theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3527
"/    theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new].
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3528
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3529
    "/ just in case (if comparing a class against another),
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3530
    "/ unify the classes of the changes (to avoid that all changes are detected as different)
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3531
16615
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3532
"/    theChangeSetB do:[:eachChange |
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3533
"/        eachChange isMethodChange ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3534
"/            eachChange changeClass isMeta ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3535
"/                eachChange changeClass ~~ classA theMetaclass ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3536
"/                    eachChange changeClass:classA theMetaclass.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3537
"/                ]
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3538
"/            ] ifFalse:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3539
"/                eachChange changeClass ~~ classA theNonMetaclass ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3540
"/                    eachChange changeClass:classA theNonMetaclass.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3541
"/                ]
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3542
"/            ].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3543
"/        ].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3544
"/    ].
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3545
    "/ remove all #initialize doIts
16615
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3546
    theChangeSetA := theChangeSetA reject:[:eachChange | eachChange isDoIt and:[eachChange isInitialize]].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3547
    theChangeSetB := theChangeSetB reject:[:eachChange | eachChange isDoIt and:[eachChange isInitialize]].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3548
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  3549
    theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB comparingDifferentClasses:true).
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3550
    ^ theClassChangeSet
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3551
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  3552
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3553
newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  3554
    "return a ClassChangeSet for the class aClass and the two sources.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3555
     The two classes are compared via the source files. A new instance of
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3556
     ClassChangeSet is generated containing the correspondenting changes."
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  3557
4128
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  3558
    |theChangeSetA theChangeSetB theClassChangeSet className metaClassName|
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3559
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3560
    theClassChangeSet := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3561
    theClassChangeSet classBeingCompared:aClass.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3562
    theClassChangeSet labelA:aLabelA.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3563
    theClassChangeSet labelB:aLabelB.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3564
    theChangeSetA:=self changeSetForClass:aClass andSource:aSourceA.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3565
    theChangeSetB:=self changeSetForClass:aClass andSource:aSourceB.
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  3566
4128
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  3567
    className := aClass name.
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  3568
    metaClassName := aClass class name.
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  3569
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  3570
    aClass isPrivate ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3571
	theChangeSetA := theChangeSetA select:[:change | change isMethodChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3572
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3573
	theChangeSetA := theChangeSetA select:[:change | change isClassDefinitionChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3574
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3575
	theChangeSetA := theChangeSetA select:[:change | change isDoIt not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3576
							 or:[change receiverClassName = className or:[change receiverClassName = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3577
	theChangeSetB := theChangeSetB select:[:change | change isMethodChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3578
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3579
	theChangeSetB := theChangeSetB select:[:change | change isClassDefinitionChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3580
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3581
	theChangeSetB := theChangeSetB select:[:change | change isDoIt not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3582
							 or:[change receiverClassName = className or:[change receiverClassName = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3583
	"/ there might be more needed...
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  3584
    ].
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  3585
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3586
    theChangeSetA isNil
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3587
	ifTrue: [theChangeSetA := ChangeSet new].
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3588
    theChangeSetB isNil
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3589
	ifTrue: [theChangeSetB := ChangeSet new].
2947
59694f799b13 fixed compareWithClass
Claus Gittinger <cg@exept.de>
parents: 2857
diff changeset
  3590
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3591
    theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB).
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3592
    ^ theClassChangeSet
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3593
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3594
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3595
newForClass:aClass versionA:aVersionA versionB:aVersionB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3596
    "return a ClassChangeSet for the class aClass and the two versions.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3597
     The two class version are checked out from the repository and then being
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3598
     compared. A new instance of ClassChangeSet is generated containing
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3599
     the correspondenting changes."
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3600
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3601
    |theChangeSetA theChangeSetB theClassChangeSet|
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3602
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3603
    theClassChangeSet := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3604
    theClassChangeSet classBeingCompared:aClass.
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3605
    theClassChangeSet versionA:aVersionA.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3606
    theClassChangeSet versionB:aVersionB.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3607
    theClassChangeSet labelA:aVersionA.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3608
    theClassChangeSet labelB:aVersionB.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3609
    theChangeSetA := self changeSetForClass: aClass andRevision: aVersionA.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3610
    theChangeSetB := self changeSetForClass: aClass andRevision: aVersionB.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3611
    theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3612
    theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3613
    theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB).
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3614
    ^ theClassChangeSet
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3615
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3616
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3617
sortChangeSet:aChangeSet
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3618
    "/ sort by meta and selector
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3619
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3620
    aChangeSet
14363
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3621
        sort:[:a :b |
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3622
            a == b ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3623
                false
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3624
            ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3625
                a isClassDefinitionChange == b isClassDefinitionChange ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3626
                    a isClassChange == b isClassChange ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3627
                        a isClassChange ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3628
                            a isForMeta == b isForMeta ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3629
                                (a isMethodChange and:[b isMethodChange]) ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3630
                                    a className < b className
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3631
                                    or:[ a className = b className
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3632
                                         and:[ a isPrimitiveChange not
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3633
                                         and:[ b isPrimitiveChange not
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3634
                                         and:[ a changeSelector < b changeSelector ]]]]
14363
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3635
                                ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3636
                                    a isMethodChange not
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3637
                                ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3638
                            ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3639
                                a isForMeta
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3640
                            ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3641
                        ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3642
                            a printString < b printString
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3643
                        ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3644
                    ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3645
                        a isClassChange
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3646
                    ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3647
                ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3648
                    a isClassDefinitionChange
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3649
                ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3650
            ]
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  3651
        ].
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3652
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3653
    "Modified: / 06-02-2017 / 02:31:57 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3654
! !
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3655
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3656
!VersionDiffBrowser::ClassChangeSet methodsFor:'accessing'!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3657
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3658
class1BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3659
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3660
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3661
    ^ class1BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3662
!
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3663
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3664
class1BeingCompared:class1 class2BeingCompared:class2
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3665
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3666
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3667
    class1BeingCompared := class1.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3668
    class2BeingCompared := class2
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3669
!
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3670
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3671
class2BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3672
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3673
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3674
    ^ class2BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3675
!
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3676
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3677
classBeingCompared
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3678
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3679
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3680
    ^ class1BeingCompared
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3681
!
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3682
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3683
classBeingCompared:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3684
    "set the value of the class which is compared"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3685
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  3686
    class1BeingCompared := class2BeingCompared := something.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3687
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3688
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3689
diffSet
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3690
    "returns a diffSet containing the different changes.
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3691
     it responds to:
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3692
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3693
     changed         OrderedCollection of arrays containing ChangeSets for methods
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3694
		     which are changed and exists in the class versionA and versionB
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3695
     onlyInArg       ChangeSet for the methods which exists only in the class versionB
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3696
     onlyInReceiver  ChangeSet for the methods which exists only in the class versionA
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3697
    "
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3698
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3699
    ^ diffSet
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3700
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3701
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3702
diffSet:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3703
    "sets the diffSet containing the different changes.
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3704
     it responds to:
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3705
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3706
     changed         OrderedCollection of arrays containing ChangeSets for methods
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3707
		     which are changed and exists in the class versionA and versionB
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3708
     onlyInArg       ChangeSet for the methods which exists only in the class versionB
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3709
     onlyInReceiver  ChangeSet for the methods which exists only in the class versionA
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3710
    "
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3711
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3712
    diffSet := something.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3713
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3714
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3715
labelA
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3716
    "returns the label for the class versionA"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3717
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3718
    ^ labelA
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3719
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3720
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3721
labelA:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3722
   "sets the label for the class versionA"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3723
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3724
    labelA := something.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3725
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3726
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3727
labelB
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3728
    "returns the label for the class versionB"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3729
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3730
    ^ labelB
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3731
!
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3732
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3733
labelB:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3734
    "sets the label for the class versionB"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3735
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3736
    labelB := something.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3737
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3738
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3739
methodsChanged
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3740
    "returns an OrderedCollection of arrays containing ChangeSets for methods
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3741
     which are changed and exists in the class versionA and versionB
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3742
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3743
     <return: OrderedCollection of Array(2)>
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3744
    "
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3745
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3746
    ^ self diffSet changed
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3747
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3748
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3749
methodsOnlyInA
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3750
    "returns a ChangeSet for the methods which exists only in the class versionA"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3751
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3752
    ^ self diffSet onlyInReceiver
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3753
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3754
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3755
methodsOnlyInB
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3756
    "returns a ChangeSet for the methods which exists only in the class versionB"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  3757
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  3758
    ^ self diffSet onlyInArg
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3759
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3760
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3761
versionA
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3762
    ^ versionA
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3763
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3764
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3765
versionA:something
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3766
    versionA := something.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3767
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3768
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3769
versionB
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3770
    ^ versionB
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3771
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3772
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3773
versionB:something
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3774
    versionB := something.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3775
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3776
8891
fm
parents: 8811
diff changeset
  3777
!VersionDiffBrowser::ClassChangeSet methodsFor:'misc'!
fm
parents: 8811
diff changeset
  3778
fm
parents: 8811
diff changeset
  3779
removeAllVersionMethods
fm
parents: 8811
diff changeset
  3780
    diffSet removeAllVersionMethods.
fm
parents: 8811
diff changeset
  3781
! !
fm
parents: 8811
diff changeset
  3782
fm
parents: 8811
diff changeset
  3783
!VersionDiffBrowser::ClassChangeSet methodsFor:'setup'!
fm
parents: 8811
diff changeset
  3784
fm
parents: 8811
diff changeset
  3785
setupForClass:aClass againstVersion:aVersionA
fm
parents: 8811
diff changeset
  3786
    "return a ClassChangeSet for the class aClass against some verison in the repository.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3787
     A new instance of ClassChangeSet is generated containing
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3788
     the correspondenting changes."
8891
fm
parents: 8811
diff changeset
  3789
fm
parents: 8811
diff changeset
  3790
    |theChangeSetA theChangeSetB versionCompared|
fm
parents: 8811
diff changeset
  3791
fm
parents: 8811
diff changeset
  3792
    self classBeingCompared:aClass.
fm
parents: 8811
diff changeset
  3793
    versionCompared := aVersionA.
fm
parents: 8811
diff changeset
  3794
    aVersionA isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3795
	self labelA:(versionCompared := aClass revision).
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3796
	self versionA:versionCompared.
8891
fm
parents: 8811
diff changeset
  3797
    ] ifFalse:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3798
	aVersionA == #newest ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3799
	    self labelA:(VersionDiffBrowser resources string:'Newest').
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3800
	] ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3801
	    self labelA:versionCompared.
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3802
	    self versionA:versionCompared.
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3803
	]
8891
fm
parents: 8811
diff changeset
  3804
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3805
    self labelB:(VersionDiffBrowser resources string:'Current').
8891
fm
parents: 8811
diff changeset
  3806
    theChangeSetA := self class changeSetForClass: aClass andRevision: versionCompared.
fm
parents: 8811
diff changeset
  3807
    theChangeSetB := self class changeSetForClass: aClass.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3808
    theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3809
    theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3810
8891
fm
parents: 8811
diff changeset
  3811
    "/ if we are comparing a private class, prune out other changes
fm
parents: 8811
diff changeset
  3812
    aClass isPrivate ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3813
	theChangeSetA removeAllSuchThat:[:aChange | aChange className ~= aClass name ].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3814
	theChangeSetB removeAllSuchThat:[:aChange | aChange className ~= aClass name ].
8891
fm
parents: 8811
diff changeset
  3815
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3816
    self activityNotification:'Generating diff-set...'.
8891
fm
parents: 8811
diff changeset
  3817
    self diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB).
fm
parents: 8811
diff changeset
  3818
    self activityNotification:nil.
fm
parents: 8811
diff changeset
  3819
    ^ diffSet
fm
parents: 8811
diff changeset
  3820
! !
fm
parents: 8811
diff changeset
  3821
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3822
!VersionDiffBrowser::FilterParameters methodsFor:'accessing'!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3823
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3824
filteredClassNameMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3825
    ^ filteredClassNameMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3826
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3827
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3828
filteredClassNameMatchPattern:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3829
    filteredClassNameMatchPattern := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3830
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3831
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3832
filteredClassNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3833
    ^ filteredClassNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3834
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3835
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3836
filteredClassNames:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3837
    filteredClassNames := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3838
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3839
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3840
filteredMethodNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3841
    ^ filteredMethodNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3842
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3843
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3844
filteredMethodNames:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3845
    filteredMethodNames := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3846
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3847
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3848
filteredSelectorMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3849
    ^ filteredSelectorMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3850
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3851
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3852
filteredSelectorMatchPattern:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3853
    filteredSelectorMatchPattern := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3854
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3855
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3856
filteredSelectors
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3857
    ^ filteredSelectors
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3858
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3859
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3860
filteredSelectors:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3861
    filteredSelectors := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3862
! !
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3863
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3864
!VersionDiffBrowser class methodsFor:'documentation'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3865
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3866
version
16530
e782300feea8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 15633
diff changeset
  3867
    ^ '$Header$'
8811
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  3868
!
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  3869
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  3870
version_CVS
16530
e782300feea8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 15633
diff changeset
  3871
    ^ '$Header$'
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3872
! !
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  3873