VersionDiffBrowser.st
author Stefan Vogel <sv@exept.de>
Thu, 16 Apr 2020 16:34:26 +0200
changeset 19576 c48ea34c5d0f
parent 19517 f620ffc54f66
permissions -rw-r--r--
#BUGFIX by stefan class: Inspector2::NavigationState changed: #displayOn: take care of PrortoObjects
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
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
    29
		symbolicVersionNameList selectedSymbolicVersionHolder
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
    30
		selectedSymbolicVersionIndexHolder symbolicToVersionMapping
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
    31
		filteredClassNames filteredMethodNames filteredSelectors
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
    32
		filteredClassNamePatterns filteredSelectorPatterns
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
    33
		filterChangedBefore filterChangedAfter filteredOwnerClassNames
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    34
		selectedVersionIndexHolder isMultipleClassesVersionBrowser
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
    35
		classListHolder selectedClassIndexHolder'
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
    36
	classVariableNames:'LastSearchString LastSearchedSelector RememberedFilters'
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
	poolDictionaries:''
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
	category:'Interface-Browsers'
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    41
HierarchicalItem subclass:#ClassChangeSet
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
    42
	instanceVariableNames:'class1BeingCompared class2BeingCompared labelA labelB diffSet
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
    43
		versionA versionB'
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    44
	classVariableNames:''
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    45
	poolDictionaries:''
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    46
	privateIn:VersionDiffBrowser
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    47
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
    48
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    49
Object subclass:#FilterParameters
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    50
	instanceVariableNames:'filteredMethodNames filteredClassNames filteredSelectors
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    51
		filteredClassNameMatchPattern filteredSelectorMatchPattern
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
    52
		filterChangedBefore filterChangedAfter filteredOwnerClassNames'
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    53
	classVariableNames:''
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    54
	poolDictionaries:''
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    55
	privateIn:VersionDiffBrowser
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    56
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
    57
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    58
!VersionDiffBrowser class methodsFor:'documentation'!
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    59
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    60
copyright
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    61
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    62
 COPYRIGHT (c) 2000 by eXept Software AG
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
    63
	      All Rights Reserved
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    64
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    65
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    66
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    67
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    68
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    69
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    70
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    71
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    72
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    73
!
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    74
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    75
documentation
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    76
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    77
    This is not yet finished (work in progress).
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    78
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
    79
    A quickly hacked up browser to show differences between class versions,
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    80
    allowing easy comparison; will also eventually add capabilities
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    81
    to checkIn / load classes into / from the repository.
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    82
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    83
    [usages:]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    84
        VersionDiffBrowser openOnAllVersionsOfClass:Array.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    85
        VersionDiffBrowser openOnAllClassesChangedSince:(Date today - 2 days) in:(Smalltalk allClasses).
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    86
        VersionDiffBrowser openOnAllClassesChangedSince:(Date today - 2 days) in:(Smalltalk allClassesMatchingPackage:'exept:bridgeFramework*').
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    87
        
2626
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    88
    [see also:]
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    89
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    90
    [instance variables:]
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    91
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    92
    [class variables:]
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    93
"
Claus Gittinger <cg@exept.de>
parents: 2585
diff changeset
    94
! !
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    96
!VersionDiffBrowser class methodsFor:'accessing'!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    97
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    98
rememberedFilters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
    99
    RememberedFilters isNil ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   100
        RememberedFilters := Dictionary new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   101
    ].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   102
    ^ RememberedFilters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   103
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   104
    "Created: / 08-05-2019 / 11:52:27 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   105
! !
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   106
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
!VersionDiffBrowser class methodsFor:'interface specs'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
windowSpec
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    "This resource specification was automatically generated
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
     by the UIPainter of ST/X."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    "Do not manually edit this!! If it is corrupted,
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
     the UIPainter may not be able to read the specification."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
     UIPainter new openOnClass:VersionDiffBrowser andSelector:#windowSpec
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
     VersionDiffBrowser new openInterface:#windowSpec
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
     VersionDiffBrowser open
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    <resource: #canvas>
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   124
    ^ 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   125
    #(FullSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   126
       name: windowSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   127
       uuid: '90e45ab8-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   128
       window: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   129
      (WindowSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   130
         label: 'Version DiffBrowser'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   131
         name: 'Version DiffBrowser'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   132
         uuid: '90e45e00-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   133
         min: (Point 10 10)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   134
         bounds: (Rectangle 0 0 865 504)
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   135
         menu: mainMenu
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   136
       )
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
          (VariableVerticalPanelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   141
             name: 'VariableVerticalPanel1'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   142
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -25 1.0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   143
             uuid: '90e460c6-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   144
             component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   145
            (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   146
               collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   147
                (HorizontalPanelViewSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   148
                   name: 'MethodListsPanel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   149
                   uuid: '90e462a6-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   150
                   horizontalLayout: fit
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   151
                   verticalLayout: fit
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   152
                   horizontalSpace: 3
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   153
                   verticalSpace: 3
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   154
                   component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   155
                  (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   156
                     collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   157
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   158
                         name: 'BoxA'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   159
                         uuid: '90e46472-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   160
                         level: 0
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   161
                         visibilityChannel: boxAVisible
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   162
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   163
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   164
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   165
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   166
                               label: 'Only in A'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   167
                               name: 'OnlyInALabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   168
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   169
                               uuid: '90e46580-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   170
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   171
                               labelChannel: onlyInALabelHolder
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   172
                             )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   173
                            (SequenceViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   174
                               name: 'ListA'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   175
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   176
                               uuid: '90e4672e-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   177
                               model: methodsOnlyInASelection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   178
                               menu: menuAHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   179
                               hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   180
                               hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   181
                               miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   182
                               doubleClickSelector: methodInADoubleClicked:
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   183
                               valueChangeSelector: methodsOnlyInASelectionChanged
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   184
                               useIndex: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   185
                               sequenceList: methodsOnlyInA
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   186
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   187
                            )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   188
                          
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   189
                         )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   190
                         extent: (Point 287 197)
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
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   193
                         name: 'BoxM'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   194
                         uuid: '90e4699a-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   195
                         visibilityChannel: boxMVisible
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   196
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   197
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   198
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   199
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   200
                               label: 'Changed'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   201
                               name: 'ChangedLabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   202
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   203
                               uuid: '90e46a9e-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   204
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   205
                               labelChannel: changedLabelHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   206
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   207
                            (SequenceViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   208
                               name: 'ListM'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   209
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   210
                               uuid: '90e46bca-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   211
                               model: methodsChangedSelection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   212
                               menu: menuMHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   213
                               hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   214
                               hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   215
                               miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   216
                               doubleClickSelector: methodInChangedDoubleClicked:
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   217
                               valueChangeSelector: methodsChangedSelectionChanged
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   218
                               useIndex: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   219
                               sequenceList: methodsChanged
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   220
                             )
17397
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
                         )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   224
                         extent: (Point 287 197)
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   225
                       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   226
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   227
                         name: 'BoxB'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   228
                         uuid: '90e46d6e-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   229
                         visibilityChannel: boxBVisible
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   230
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   231
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   232
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   233
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   234
                               label: 'Only in B'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   235
                               name: 'OnlyInBLabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   236
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   237
                               uuid: '90e46e54-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   238
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   239
                               labelChannel: onlyInBLabelHolder
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   240
                             )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   241
                            (SequenceViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   242
                               name: 'ListB'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   243
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   244
                               uuid: '90e46fc6-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   245
                               model: methodsOnlyInBSelection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   246
                               menu: menuBHolder
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   247
                               hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   248
                               hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   249
                               miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   250
                               doubleClickSelector: methodInBDoubleClicked:
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   251
                               valueChangeSelector: methodsOnlyInBSelectionChanged
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   252
                               useIndex: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   253
                               sequenceList: methodsOnlyInB
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   254
                             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   255
                            )
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
                         )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   258
                         extent: (Point 288 197)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   259
                       )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   260
                      )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   261
                    
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   262
                   )
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
                (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   265
                   name: 'DiffOrSingleMethodCodeBox'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   266
                   uuid: '90e471a6-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   267
                   component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   268
                  (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   269
                     collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   270
                      (ViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   271
                         name: 'diffTextViewBox'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   272
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   273
                         uuid: '90e47264-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   274
                         initiallyInvisible: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   275
                         component: 
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   276
                        (SpecCollection
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   277
                           collection: (
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   278
                            (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   279
                               label: 'A'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   280
                               name: 'DiffTextLabelA'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   281
                               layout: (LayoutFrame 0 0 0 0 0 0.5 20 0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   282
                               uuid: '90e47318-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   283
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   284
                               labelChannel: diffTextLabelA
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   285
                             )
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
                               label: 'B'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   288
                               name: 'DiffTextLabelB'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   289
                               layout: (LayoutFrame 0 0.5 0 0 0 1 20 0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   290
                               uuid: '90e47412-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   291
                               translateLabel: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   292
                               labelChannel: diffTextLabelB
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
                            (ArbitraryComponentSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   295
                               name: 'diffTextView'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   296
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 0 1.0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   297
                               uuid: '90e47502-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   298
                               hasBorder: false
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   299
                               component: diffTextView
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   300
                             )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   301
                            )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   302
                          
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   303
                         )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   304
                       )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   305
                      (CodeViewSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   306
                         name: 'singleTextView'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   307
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   308
                         uuid: '90e47674-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   309
                         model: methodText
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   310
                         hasHorizontalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   311
                         hasVerticalScrollBar: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   312
                         miniScrollerHorizontal: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   313
                         isReadOnly: true
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   314
                         hasKeyboardFocusInitially: false
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   315
                       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   316
                      )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   317
                    
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   318
                   )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   319
                 )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   320
                )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   321
              
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   322
             )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   323
             handles: (Any 0.41999999999999998 1.0)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   324
           )
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   325
          (LabelSpec
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   326
             name: 'InfoLabel'
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   327
             layout: (LayoutFrame 0 0 -25 1 0 1 0 1)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   328
             uuid: '90e47868-7175-11e9-a23a-b8f6b1108e05'
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   329
             level: -1
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   330
             translateLabel: true
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
   331
             labelChannel: informationHolder
17397
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   332
             adjust: left
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   333
           )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   334
          )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   335
        
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   336
       )
f27bb9b31f71 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17353
diff changeset
   337
     )
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   338
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   339
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   340
windowSpecForMultipleClasses
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   341
    "This resource specification was automatically generated
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   342
     by the UIPainter of ST/X."
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   343
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   344
    "Do not manually edit this!! If it is corrupted,
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   345
     the UIPainter may not be able to read the specification."
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   346
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   347
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   348
     UIPainter new openOnClass:VersionDiffBrowser andSelector:#windowSpecForMultipleClasses
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   349
     VersionDiffBrowser new openInterface:#windowSpecForMultipleClasses
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   350
    "
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   351
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   352
    <resource: #canvas>
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   353
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   354
    ^ 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   355
    #(FullSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   356
       name: windowSpecForMultipleClasses
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   357
       uuid: 'e513170a-814c-11e9-8ea0-b8f6b1108e05'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   358
       window: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   359
      (WindowSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   360
         label: 'Version DiffBrowser'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   361
         name: 'Version DiffBrowser'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   362
         uuid: '2b3f2546-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   363
         min: (Point 10 10)
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   364
         bounds: (Rectangle 0 0 865 504)
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   365
         menu: mainMenu
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
       component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   368
      (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   369
         collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   370
          (VariableVerticalPanelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   371
             name: 'VariableVerticalPanel1'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   372
             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
   373
             uuid: '2b3f297e-d4fd-11e7-af82-c42c033b4871'
14076
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: (
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   377
                (VariableHorizontalPanelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   378
                   name: 'ClassAndversionAndTagPanel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   379
                   uuid: '17c6805c-7184-11e9-a23a-b8f6b1108e05'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   380
                   component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   381
                  (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   382
                     collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   383
                      (SequenceViewSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   384
                         name: 'List2'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   385
                         uuid: '2b3f2d20-d4fd-11e7-af82-c42c033b4871'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   386
                         model: selectedClassIndexHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   387
                         menu: classListMenu
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   388
                         hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   389
                         hasVerticalScrollBar: true
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   390
                         useIndex: true
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   391
                         sequenceList: classNameListHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   392
                       )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   393
                      (VariableHorizontalPanelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   394
                         name: 'VersionAndTagPanel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   395
                         uuid: '2b3f2c08-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   396
                         component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   397
                        (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   398
                           collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   399
                            (SequenceViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   400
                               name: 'VersionList'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   401
                               uuid: '2b3f2d20-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   402
                               model: selectedVersionIndexHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   403
                               menu: versionsMenu
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   404
                               hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   405
                               hasVerticalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   406
                               useIndex: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   407
                               sequenceList: versionEntriesList
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   408
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   409
                            (SequenceViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   410
                               name: 'List1'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   411
                               uuid: '2b3f3086-d4fd-11e7-af82-c42c033b4871'
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   412
                               model: selectedSymbolicVersionIndexHolder
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
   413
                               menu: symbolicVersionsMenu
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   414
                               hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   415
                               hasVerticalScrollBar: true
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   416
                               useIndex: true
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   417
                               sequenceList: symbolicVersionNameList
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   418
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   419
                            )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   420
                          
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   421
                         )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   422
                         handles: (Any 0.5 1.0)
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   423
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   424
                      )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   425
                    
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   426
                   )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   427
                   handles: (Any 0.5 1.0)
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   428
                 )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   429
                (HorizontalPanelViewSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   430
                   name: 'MethodListsPanel'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   431
                   uuid: '2b3f3234-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   432
                   horizontalLayout: fit
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   433
                   verticalLayout: fit
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   434
                   horizontalSpace: 3
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   435
                   verticalSpace: 3
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   436
                   component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   437
                  (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   438
                     collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   439
                      (ViewSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   440
                         name: 'OnlyInABox'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   441
                         uuid: '2b3f3464-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   442
                         level: 0
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   443
                         visibilityChannel: boxAVisible
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   444
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   445
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   446
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   447
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   448
                               label: 'Only in A'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   449
                               name: 'OnlyInALabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   450
                               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
   451
                               uuid: '2b3f3568-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   452
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   453
                               labelChannel: onlyInALabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   454
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   455
                            (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   456
                               name: 'ListA'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   457
                               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
   458
                               uuid: '2b3f37c0-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   459
                               model: methodsOnlyInASelection
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   460
                               menu: menuAHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   461
                               hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   462
                               hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   463
                               miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   464
                               doubleClickSelector: methodInADoubleClicked:
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   465
                               valueChangeSelector: methodsOnlyInASelectionChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   466
                               useIndex: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   467
                               sequenceList: methodsOnlyInA
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   468
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   469
                            )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   470
                          
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   471
                         )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   472
                         extent: (Point 287 154)
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   473
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   474
                      (ViewSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   475
                         name: 'ChangedBox'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   476
                         uuid: '2b3f39a0-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   477
                         visibilityChannel: boxMVisible
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   478
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   479
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   480
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   481
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   482
                               label: 'Changed'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   483
                               name: 'ChangedLabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   484
                               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
   485
                               uuid: '2b3f3a86-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   486
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   487
                               labelChannel: changedLabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   488
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   489
                            (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   490
                               name: 'ListM'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   491
                               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
   492
                               uuid: '2b3f3b94-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   493
                               model: methodsChangedSelection
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   494
                               menu: menuMHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   495
                               hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   496
                               hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   497
                               miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   498
                               doubleClickSelector: methodInChangedDoubleClicked:
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   499
                               valueChangeSelector: methodsChangedSelectionChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   500
                               useIndex: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   501
                               sequenceList: methodsChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   502
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   503
                            )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   504
                          
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   505
                         )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   506
                         extent: (Point 287 154)
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   507
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   508
                      (ViewSpec
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   509
                         name: 'OnlyInBBox'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   510
                         uuid: '2b3f3d1a-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   511
                         visibilityChannel: boxBVisible
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   512
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   513
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   514
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   515
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   516
                               label: 'Only in B'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   517
                               name: 'OnlyInBLabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   518
                               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
   519
                               uuid: '2b3f3dec-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   520
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   521
                               labelChannel: onlyInBLabelHolder
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
                            (SequenceViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   524
                               name: 'ListB'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   525
                               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
   526
                               uuid: '2b3f3f04-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   527
                               model: methodsOnlyInBSelection
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   528
                               menu: menuBHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   529
                               hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   530
                               hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   531
                               miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   532
                               doubleClickSelector: methodInBDoubleClicked:
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   533
                               valueChangeSelector: methodsOnlyInBSelectionChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   534
                               useIndex: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   535
                               sequenceList: methodsOnlyInB
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
                         )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   540
                         extent: (Point 288 154)
14076
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
                      )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   543
                    
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
                 )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   546
                (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   547
                   name: 'DiffBox'
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
   548
                   uuid: '2b3f408a-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   549
                   component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   550
                  (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   551
                     collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   552
                      (ViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   553
                         name: 'diffTextViewBox'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   554
                         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
   555
                         uuid: '2b3f415c-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   556
                         initiallyInvisible: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   557
                         component: 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   558
                        (SpecCollection
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   559
                           collection: (
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   560
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   561
                               label: 'A'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   562
                               name: 'DiffTextLabelA'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   563
                               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
   564
                               uuid: '2b3f426a-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   565
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   566
                               labelChannel: diffTextLabelA
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   567
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   568
                            (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   569
                               label: 'B'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   570
                               name: 'DiffTextLabelB'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   571
                               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
   572
                               uuid: '2b3f43d2-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   573
                               translateLabel: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   574
                               labelChannel: diffTextLabelB
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   575
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   576
                            (ArbitraryComponentSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   577
                               name: 'diffTextView'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   578
                               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
   579
                               uuid: '2b3f4508-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   580
                               hasBorder: false
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   581
                               component: diffTextView
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   582
                             )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   583
                            )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   584
                          
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   585
                         )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   586
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   587
                      (CodeViewSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   588
                         name: 'singleTextView'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   589
                         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
   590
                         uuid: '2b3f4738-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   591
                         model: methodText
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   592
                         hasHorizontalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   593
                         hasVerticalScrollBar: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   594
                         miniScrollerHorizontal: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   595
                         isReadOnly: true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   596
                         hasKeyboardFocusInitially: false
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   597
                       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   598
                      )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   599
                    
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   600
                   )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   601
                 )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   602
                )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   603
              
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   604
             )
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   605
             handles: (Any 0.33000000000000002 0.67000000000000004 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   606
           )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   607
          (LabelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   608
             name: 'InfoLabel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   609
             layout: (LayoutFrame 0 0 -25 1 0 1 0 1)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   610
             uuid: '2b3f4a44-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   611
             level: -1
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   612
             translateLabel: true
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
   613
             labelChannel: informationHolder
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   614
             adjust: left
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   615
           )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   616
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   617
        
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   618
       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   619
     )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   620
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   621
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   622
windowSpecForMultipleVersions
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   623
    "This resource specification was automatically generated
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   624
     by the UIPainter of ST/X."
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   625
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   626
    "Do not manually edit this!! If it is corrupted,
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   627
     the UIPainter may not be able to read the specification."
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   628
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   629
    "
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   630
     UIPainter new openOnClass:VersionDiffBrowser andSelector:#windowSpecForMultipleVersions
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   631
     VersionDiffBrowser new openInterface:#windowSpecForMultipleVersions
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   632
    "
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   633
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   634
    <resource: #canvas>
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   635
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   636
    ^ 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   637
    #(FullSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   638
       name: windowSpecForMultipleVersions
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   639
       uuid: 'f22701c6-814d-11e9-8ea0-b8f6b1108e05'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   640
       window: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   641
      (WindowSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   642
         label: 'Version DiffBrowser'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   643
         name: 'Version DiffBrowser'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   644
         uuid: '2b3f2546-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   645
         min: (Point 10 10)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   646
         bounds: (Rectangle 0 0 865 504)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   647
         menu: mainMenu
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   648
       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   649
       component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   650
      (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   651
         collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   652
          (VariableVerticalPanelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   653
             name: 'VariableVerticalPanel1'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   654
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -25 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   655
             uuid: '2b3f297e-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   656
             component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   657
            (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   658
               collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   659
                (VariableHorizontalPanelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   660
                   name: 'VersionAndTagBox'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   661
                   uuid: '2b3f2c08-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   662
                   component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   663
                  (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   664
                     collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   665
                      (SequenceViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   666
                         name: 'VersionList'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   667
                         uuid: '2b3f2d20-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   668
                         model: selectedVersionIndexHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   669
                         menu: versionsMenu
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   670
                         hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   671
                         hasVerticalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   672
                         useIndex: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   673
                         sequenceList: versionEntriesList
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   674
                       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   675
                      (SequenceViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   676
                         name: 'List1'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   677
                         uuid: '2b3f3086-d4fd-11e7-af82-c42c033b4871'
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   678
                         model: selectedSymbolicVersionIndexHolder
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   679
                         menu: symbolicVersionsMenu
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   680
                         hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   681
                         hasVerticalScrollBar: true
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   682
                         useIndex: true
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   683
                         sequenceList: symbolicVersionNameList
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   684
                       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   685
                      )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   686
                    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   687
                   )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   688
                   handles: (Any 0.5 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   689
                 )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   690
                (HorizontalPanelViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   691
                   name: 'MethodListsPanel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   692
                   uuid: '2b3f3234-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   693
                   horizontalLayout: fit
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   694
                   verticalLayout: fit
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   695
                   horizontalSpace: 3
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   696
                   verticalSpace: 3
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   697
                   component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   698
                  (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   699
                     collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   700
                      (ViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   701
                         name: 'OnlyInABox'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   702
                         uuid: '2b3f3464-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   703
                         level: 0
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   704
                         visibilityChannel: boxAVisible
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   705
                         component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   706
                        (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   707
                           collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   708
                            (LabelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   709
                               label: 'Only in A'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   710
                               name: 'OnlyInALabel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   711
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   712
                               uuid: '2b3f3568-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   713
                               translateLabel: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   714
                               labelChannel: onlyInALabelHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   715
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   716
                            (SequenceViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   717
                               name: 'ListA'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   718
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   719
                               uuid: '2b3f37c0-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   720
                               model: methodsOnlyInASelection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   721
                               menu: menuAHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   722
                               hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   723
                               hasVerticalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   724
                               miniScrollerHorizontal: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   725
                               doubleClickSelector: methodInADoubleClicked:
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   726
                               valueChangeSelector: methodsOnlyInASelectionChanged
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   727
                               useIndex: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   728
                               sequenceList: methodsOnlyInA
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   729
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   730
                            )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   731
                          
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   732
                         )
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   733
                         extent: (Point 287 154)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   734
                       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   735
                      (ViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   736
                         name: 'ChangedBox'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   737
                         uuid: '2b3f39a0-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   738
                         visibilityChannel: boxMVisible
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   739
                         component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   740
                        (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   741
                           collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   742
                            (LabelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   743
                               label: 'Changed'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   744
                               name: 'ChangedLabel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   745
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   746
                               uuid: '2b3f3a86-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   747
                               translateLabel: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   748
                               labelChannel: changedLabelHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   749
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   750
                            (SequenceViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   751
                               name: 'ListM'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   752
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   753
                               uuid: '2b3f3b94-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   754
                               model: methodsChangedSelection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   755
                               menu: menuMHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   756
                               hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   757
                               hasVerticalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   758
                               miniScrollerHorizontal: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   759
                               doubleClickSelector: methodInChangedDoubleClicked:
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   760
                               valueChangeSelector: methodsChangedSelectionChanged
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   761
                               useIndex: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   762
                               sequenceList: methodsChanged
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   763
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   764
                            )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   765
                          
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   766
                         )
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   767
                         extent: (Point 287 154)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   768
                       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   769
                      (ViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   770
                         name: 'OnlyInBBox'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   771
                         uuid: '2b3f3d1a-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   772
                         visibilityChannel: boxBVisible
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   773
                         component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   774
                        (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   775
                           collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   776
                            (LabelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   777
                               label: 'Only in B'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   778
                               name: 'OnlyInBLabel'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   779
                               layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 20 0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   780
                               uuid: '2b3f3dec-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   781
                               translateLabel: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   782
                               labelChannel: onlyInBLabelHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   783
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   784
                            (SequenceViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   785
                               name: 'ListB'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   786
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 -3 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   787
                               uuid: '2b3f3f04-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   788
                               model: methodsOnlyInBSelection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   789
                               menu: menuBHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   790
                               hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   791
                               hasVerticalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   792
                               miniScrollerHorizontal: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   793
                               doubleClickSelector: methodInBDoubleClicked:
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   794
                               valueChangeSelector: methodsOnlyInBSelectionChanged
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   795
                               useIndex: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   796
                               sequenceList: methodsOnlyInB
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   797
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   798
                            )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   799
                          
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   800
                         )
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
   801
                         extent: (Point 288 154)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   802
                       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   803
                      )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   804
                    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   805
                   )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   806
                 )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   807
                (ViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   808
                   name: 'DiffBox'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   809
                   uuid: '2b3f408a-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   810
                   component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   811
                  (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   812
                     collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   813
                      (ViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   814
                         name: 'diffTextViewBox'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   815
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   816
                         uuid: '2b3f415c-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   817
                         initiallyInvisible: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   818
                         component: 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   819
                        (SpecCollection
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   820
                           collection: (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   821
                            (LabelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   822
                               label: 'A'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   823
                               name: 'DiffTextLabelA'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   824
                               layout: (LayoutFrame 0 0 0 0 0 0.5 20 0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   825
                               uuid: '2b3f426a-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   826
                               translateLabel: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   827
                               labelChannel: diffTextLabelA
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   828
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   829
                            (LabelSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   830
                               label: 'B'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   831
                               name: 'DiffTextLabelB'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   832
                               layout: (LayoutFrame 0 0.5 0 0 0 1 20 0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   833
                               uuid: '2b3f43d2-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   834
                               translateLabel: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   835
                               labelChannel: diffTextLabelB
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   836
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   837
                            (ArbitraryComponentSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   838
                               name: 'diffTextView'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   839
                               layout: (LayoutFrame 0 0.0 20 0.0 0 1.0 0 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   840
                               uuid: '2b3f4508-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   841
                               hasBorder: false
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   842
                               component: diffTextView
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   843
                             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   844
                            )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   845
                          
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   846
                         )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   847
                       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   848
                      (CodeViewSpec
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   849
                         name: 'singleTextView'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   850
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   851
                         uuid: '2b3f4738-d4fd-11e7-af82-c42c033b4871'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   852
                         model: methodText
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   853
                         hasHorizontalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   854
                         hasVerticalScrollBar: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   855
                         miniScrollerHorizontal: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   856
                         isReadOnly: true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   857
                         hasKeyboardFocusInitially: false
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   858
                       )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   859
                      )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   860
                    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   861
                   )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   862
                 )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   863
                )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   864
              
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   865
             )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   866
             handles: (Any 0.33000000000000002 0.67000000000000004 1.0)
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   867
           )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   868
          (LabelSpec
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   869
             name: 'InfoLabel'
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   870
             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
   871
             uuid: '2b3f4a44-d4fd-11e7-af82-c42c033b4871'
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   872
             level: -1
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   873
             translateLabel: true
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
   874
             labelChannel: informationHolder
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   875
             adjust: left
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   876
           )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   877
          )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   878
        
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   879
       )
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   880
     )
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   882
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   883
!VersionDiffBrowser class methodsFor:'menu specs'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   885
filterMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   886
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   887
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   888
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   889
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   890
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   891
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   892
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   893
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   894
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#filterMenu
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   895
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser filterMenu)) startUp
17341
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
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   898
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   899
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   900
    ^ 
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   901
     #(Menu
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   902
        (
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   903
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   904
            label: 'Filter Classes Matching...'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   905
            itemValue: filterClassesMatching
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   906
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   907
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   908
            label: 'Filter Selectors Matching...'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   909
            itemValue: filterSelectorsMatching
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   910
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   911
         (MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   912
            enabled: hasClassPatternFilter
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   913
            label: 'Remove Class Pattern Filter'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   914
            itemValue: removeClassPatternFilter
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   915
          )
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   916
         (MenuItem
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   917
            enabled: hasSelectorPatternFilter
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   918
            label: 'Remove Selector Pattern Filter'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   919
            itemValue: removeSelectorPatternFilter
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   920
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   921
         (MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   922
            label: '-'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   923
          )
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   924
         (MenuItem
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   925
            enabled: hasClassFilters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   926
            label: 'Remove all Class Filters'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   927
            itemValue: removeAllClassFilters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   928
          )
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   929
         (MenuItem
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   930
            enabled: hasSelectorFilters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   931
            label: 'Remove all Selector Filters'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
   932
            itemValue: removeAllSelectorFilters
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   933
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   934
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   935
            label: '-'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   936
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   937
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   938
            label: 'Remember Filter As...'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   939
            itemValue: rememberFilterAs
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   940
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   941
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   942
            enabled: hasRememberedFilters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   943
            label: 'Load Filter Named...'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   944
            itemValue: loadFilterNamed
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   945
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   946
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   947
            label: '-'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   948
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   949
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   950
            enabled: hasRememberedFilters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   951
            label: 'Export Filter Settings'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   952
            itemValue: exportFilterParameters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   953
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   954
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   955
            label: 'Import Filter Settings From...'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   956
            itemValue: importFilterParameters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   957
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   958
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   959
            label: '-'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   960
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   961
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   962
            enabled: hasRememberedFilters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   963
            label: 'Forget Filter Named...'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   964
            itemValue: forgetFilterNamed
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   965
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   966
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   967
            label: '-'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   968
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   969
         (MenuItem
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   970
            label: 'Inspect Current Filter Settings'
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   971
            itemValue: inspectFilterParameters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   972
          )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   973
         )
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   974
        nil
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   975
        nil
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
   976
      )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   977
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
   978
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
mainMenu
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
    "This resource specification was automatically generated
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
     by the MenuEditor of ST/X."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
    "Do not manually edit this!! If it is corrupted,
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
     the MenuEditor may not be able to read the specification."
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
   986
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#mainMenu
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser mainMenu)) startUp
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
    <resource: #menu>
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
   994
    ^ 
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
   995
     #(Menu 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
   996
       (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
   997
          label: 'File'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
   998
          submenu: 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
   999
         (Menu 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1000
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1001
              enabled: createPatchFileEnabled
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1002
              label: 'Create PatchFile...'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1003
              itemValue: createPatchFile
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1004
              isVisible: createPatchFileVisible
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1005
           ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1006
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1007
              label: '-'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1008
              isVisible: createPatchFileVisible
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1009
           ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1010
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1011
              label: 'Exit'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1012
              itemValue: closeRequest
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1013
           )
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1014
         )
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1015
       ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1016
       (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1017
          label: 'Class'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1018
          submenu: 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1019
         (Menu 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1020
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1021
              enabled: hasNoClass
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1022
              label: 'Select Class...'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1023
              itemValue: menuSelectClass
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1024
              isVisible: false
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1025
           ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1026
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1027
              enabled: showingClassChangeSet
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1028
              label: 'Remove from Changeset'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1029
              itemValue: menuRemoveClassFromChangeSet
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1030
           )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1031
         )
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1032
       ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1033
       (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1034
          label: 'View'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1035
          submenuChannel: viewMenu
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1036
       ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1037
       (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1038
          label: 'Filter'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1039
          submenuChannel: filterMenu
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1040
       ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1041
       (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1042
          label: 'Revision'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1043
          isVisible: isMultipleVersionBrowser
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1044
          submenu: 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1045
         (Menu 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1046
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1047
              label: 'Find Previous Change for Method...'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1048
              itemValue: versionMenuFindPreviousRevisionWithChangeFor
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1049
           )                
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1050
         )
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1051
       ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1052
       (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1053
          label: 'MENU_Help'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1054
          startGroup: conditionalRight
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1055
          submenu: 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1056
         (Menu 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1057
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1058
              label: 'Documentation'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1059
              itemValue: openDocumentation
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1060
           ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1061
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1062
              label: '-'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1063
           ) 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1064
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1065
              label: 'About this Application...'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1066
              itemValue: openAboutThisApplication
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1067
           )
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1068
         )
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1069
       )
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1070
     )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1071
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1072
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1073
menuA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1074
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1075
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1076
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1077
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1078
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1079
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1080
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1081
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menu1
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1082
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menu1)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1083
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1084
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1085
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1086
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1087
    ^
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1088
     #(#Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1089
        #(
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1090
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1091
            #label: 'Apply'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1092
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1093
            #value: #applySelectedChangeInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1094
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1095
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1096
         #(#MenuItem
19157
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1097
            #label: 'Apply All'
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1098
            #translateLabel: true
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1099
            #value: #applyAllChangesInA
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1100
            #enabled: #hasChangeSelectedInA
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1101
          )
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1102
         #(#MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1103
            #label: 'Browse'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1104
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1105
            #value: #browseClassInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1106
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1107
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1108
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1109
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1110
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1111
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1112
            #label: 'Filter this Change'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1113
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1114
            #value: #filterMethodInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1115
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1116
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1117
         #(#MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1118
            #label: 'Filter this Class'
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1119
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1120
            #value: #filterClassInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1121
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1122
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1123
         #(#MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1124
            #label: 'Filter this Class & its Private Classes'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1125
            #translateLabel: true
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1126
            #value: #filterClassAndPrivateClassesInA
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1127
            #enabled: #hasChangeSelectedInA
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1128
          )
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1129
         #(#MenuItem
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1130
            #label: 'Filter this Selector'
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1131
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1132
            #value: #filterSelectorFromA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1133
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1134
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1135
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1136
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1137
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1138
         #(#MenuItem
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1139
            #label: 'Find Next Change with String...'
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1140
            #translateLabel: true
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1141
            #value: #findNextChangeWithStringInA
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1142
            #enabled: #hasChangeSelectedInA
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1143
          )
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1144
         #(#MenuItem
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1145
            #label: '-'
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1146
          )
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1147
         #(#MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1148
            #label: 'Inspect'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1149
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1150
            #value: #inspectSelectedChangeInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1151
            #choiceValue: 'nil "UndefinedObject" '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1152
            #enabled: #hasChangeSelectedInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1153
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1154
         )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1155
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1156
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1157
      )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1158
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1159
    "Modified: / 05-02-2017 / 11:21:54 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1160
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1161
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1162
menuB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1163
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1164
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1165
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1166
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1167
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1168
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1169
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1170
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menuB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1171
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menuB)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1172
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1173
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1174
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1175
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1176
    ^
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1177
     #(#Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1178
        #(
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1179
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1180
            #label: 'Apply'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1181
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1182
            #value: #applySelectedChangeInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1183
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1184
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1185
         #(#MenuItem
19157
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1186
            #label: 'Apply All'
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1187
            #translateLabel: true
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1188
            #value: #applyAllChangesInB
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1189
            #enabled: #hasChangeSelectedInB
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1190
          )
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  1191
         #(#MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1192
            #label: 'Browse'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1193
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1194
            #value: #browseClassInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1195
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1196
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1197
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1198
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1199
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1200
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1201
            #label: 'Remove in Image'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1202
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1203
            #value: #removeSelectedChangeInBFromImage
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1204
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1205
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1206
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1207
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1208
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1209
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1210
            #label: 'Filter this Change'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1211
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1212
            #value: #filterMethodInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1213
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1214
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1215
         #(#MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1216
            #label: 'Filter this Class'
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1217
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1218
            #value: #filterClassInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1219
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1220
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1221
         #(#MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1222
            #label: 'Filter this Class & its Private Classes'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1223
            #translateLabel: true
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1224
            #value: #filterClassAndPrivateClassesInB
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1225
            #enabled: #hasChangeSelectedInB
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1226
          )
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1227
         #(#MenuItem
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1228
            #label: 'Filter this Selector '
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1229
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1230
            #value: #filterSelectorFromB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1231
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1232
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1233
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1234
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1235
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1236
         #(#MenuItem
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1237
            #label: 'Find Next Change with String...'
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1238
            #translateLabel: true
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1239
            #value: #findNextChangeWithStringInB
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1240
            #enabled: #hasChangeSelectedInB
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1241
          )
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1242
         #(#MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1243
            #label: 'Inspect'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1244
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1245
            #value: #inspectSelectedChangeInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1246
            #choiceValue: 'nil "UndefinedObject" '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1247
            #enabled: #hasChangeSelectedInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1248
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1249
         )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1250
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1251
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1252
      )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1253
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1254
    "Modified: / 05-02-2017 / 11:22:10 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1255
    "Modified: / 08-05-2019 / 13:27:06 / Claus Gittinger"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1256
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1257
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1258
menuM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1259
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1260
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1261
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1262
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1263
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1264
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1265
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1266
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#menu1
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1267
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser menu1)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1268
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1269
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1270
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1271
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1272
    ^
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1273
     #(#Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1274
        #(
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1275
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1276
            #label: 'Browse'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1277
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1278
            #value: #browseClassInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1279
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1280
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1281
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1282
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1283
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1284
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1285
            #label: 'Apply Left Version'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1286
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1287
            #value: #acceptInLeftView
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1288
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1289
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1290
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1291
            #label: 'Apply Right Version'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1292
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1293
            #value: #acceptInRightView
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1294
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1295
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1296
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1297
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1298
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1299
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1300
            #label: 'Filter this Change'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1301
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1302
            #value: #filterMethodInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1303
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1304
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1305
         #(#MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1306
            #label: 'Filter this Class'
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1307
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1308
            #value: #filterClassInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1309
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1310
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1311
         #(#MenuItem
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1312
            #label: 'Filter this Class & its Private Classes'
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1313
            #translateLabel: true
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1314
            #value: #filterClassAndPrivateClassesInM
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1315
            #enabled: #hasChangeSelectedInM
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1316
          )
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1317
         #(#MenuItem
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  1318
            #label: 'Filter this Selector '
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1319
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1320
            #value: #filterSelectorFromM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1321
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1322
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1323
         #(#MenuItem
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1324
            #label: '-'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1325
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1326
         #(#MenuItem
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1327
            #label: 'Find Next Change with String...'
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1328
            #translateLabel: true
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1329
            #value: #findNextChangeWithStringInM
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1330
            #enabled: #hasChangeSelectedInM
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1331
          )
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1332
         #(#MenuItem
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1333
            #label: '-'
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1334
          )
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  1335
         #(#MenuItem
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1336
            #label: 'Inspect both'
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1337
            #translateLabel: true
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1338
            #value: #inspectSelectedChangeInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1339
            #choiceValue: 'nil "UndefinedObject" '
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1340
            #enabled: #hasChangeSelectedInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1341
          )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1342
         )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1343
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1344
        nil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1345
      )
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1346
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1347
    "Modified: / 05-02-2017 / 11:21:44 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1348
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1349
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1350
versionsMenu
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1351
    "This resource specification was automatically generated
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1352
     by the MenuEditor of ST/X."
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1353
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1354
    "Do not manually edit this!! If it is corrupted,
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1355
     the MenuEditor may not be able to read the specification."
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1356
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1357
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1358
    "
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1359
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#mainMenu
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1360
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser mainMenu)) startUp
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1361
    "
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1362
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1363
    <resource: #menu>
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1364
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1365
    ^ 
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1366
     #(Menu
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1367
              (
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1368
               (MenuItem
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1369
                  label: 'Compare against Previous (Older) Version'
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1370
                  nameKey: CompareAgainstPreviousVersion
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1371
                  itemValue: versionMenuCompareAgainstPreviousVersion
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1372
                  enabled: hasPreviousVersionInVersionList
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1373
                )
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1374
               (MenuItem
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1375
                  label: 'Compare against Next (Younger) Version'
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1376
                  nameKey: CompareAgainstNextVersion
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1377
                  itemValue: versionMenuCompareAgainstNextVersion
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1378
                  enabled: hasNextVersionInVersionList
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1379
                )
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1380
           (MenuItem label: '-')
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1381
           (MenuItem
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1382
              label: 'Find Previous Change for Method...'
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1383
              itemValue: versionMenuFindPreviousRevisionWithChangeFor
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  1384
           )                
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1385
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1386
               )
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1387
              nil
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1388
              nil
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1389
            )
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1390
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1391
    "Created: / 05-02-2017 / 11:11:30 / cg"
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1392
    "Modified: / 06-02-2017 / 09:27:22 / cg"
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1393
!
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1394
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1395
viewMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1396
    "This resource specification was automatically generated
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1397
     by the MenuEditor of ST/X."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1398
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1399
    "Do not manually edit this!! If it is corrupted,
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1400
     the MenuEditor may not be able to read the specification."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1401
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1402
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1403
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1404
     MenuEditor new openOnClass:VersionDiffBrowser andSelector:#mainMenu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1405
     (Menu new fromLiteralArrayEncoding:(VersionDiffBrowser mainMenu)) startUp
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1406
    "
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1407
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1408
    <resource: #menu>
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1409
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1410
    ^ 
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1411
     #(Menu
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1412
              (
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1413
               (MenuItem
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1414
                  enabled: canIncludeExtensionsHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1415
                  label: 'Include Extensions'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1416
                  itemValue: includeExtensions:
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1417
                  indication: includeExtensionsHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1418
                )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1419
               (MenuItem
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1420
                  enabled: canIncludeExtensionsHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1421
                  label: 'Include Version Methods'
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1422
                  itemValue: includeVersionMethods:
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1423
                  indication: includeVersionMethodsHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1424
                )
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1425
               (MenuItem
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1426
                  label: '-'
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1427
                )
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  1428
               (MenuItem
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1429
                  label: 'Include Category Changes'
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1430
                  itemValue: includeCategoryChanges:
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1431
                  indication: includeCategoryChangesHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1432
                )
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1433
               (MenuItem
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1434
                  label: 'Hide Comment- and Formatting-Only Changes'
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1435
                  itemValue: hideDiffsWithCommentOrFormattingChangeOnlyHolder:
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1436
                  indication: hideDiffsWithCommentOrFormattingChangeOnlyHolder
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1437
                )
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1438
               (MenuItem
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1439
                  label: '-'
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1440
                )
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1441
               (MenuItem
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1442
                  label: 'Show Log Messages'
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1443
                  itemValue: showLogMessages
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  1444
                )
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1445
               )
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1446
              nil
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1447
              nil
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  1448
            )
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1449
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  1450
    "Created: / 05-02-2017 / 11:06:24 / cg"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1451
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1452
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1453
!VersionDiffBrowser class methodsFor:'plugIn spec'!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1454
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1455
aspectSelectors
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1456
    "This resource specification was automatically generated
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1457
     by the UIPainter of ST/X."
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1458
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1459
    "Do not manually edit this. If it is corrupted,
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1460
     the UIPainter may not be able to read the specification."
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1461
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1462
    "Return a description of exported aspects;
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1463
     these can be connected to aspects of an embedding application
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1464
     (if this app is embedded in a subCanvas)."
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1465
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1466
    ^ #(
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1467
        #changedLabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1468
        #onlyInALabelHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1469
        #onlyInBLabelHolder
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1470
      ).
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1471
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1472
! !
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1473
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1474
!VersionDiffBrowser class methodsFor:'startup'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1475
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1476
openOnAllClassesChangedSince:aDateOrTimestamp in:aSetOfClasses
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1477
    "create a VersionDiffBrowser instance and set the list of classes.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1478
     When a class is selected, the version list is extracted,
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1479
     and the class diff set is generated from aClasses current version against
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1480
     the selected version in the top selection list"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1481
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1482
    |theBrowser classesChangedSince sinceTimestamp|
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1483
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1484
    sinceTimestamp := aDateOrTimestamp asTimestamp.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1485
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1486
    classesChangedSince := aSetOfClasses 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1487
        select:[:cls | 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1488
            cls isLoaded 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1489
            and:[cls isPrivate not
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1490
            and:[cls isNameSpace not
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1491
            and:[cls revisionTimestamp > sinceTimestamp]]]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1492
        ].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1493
    classesChangedSince sort:[:a :b | a name < b name].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1494
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1495
    theBrowser := self new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1496
    theBrowser allButOpenInterface:#windowSpecForMultipleClasses.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1497
    theBrowser beMultipleClassesVersionBrowser.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1498
    theBrowser classList:classesChangedSince.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1499
    theBrowser setFilterChangedAfter:sinceTimestamp.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1500
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1501
    "/ theBrowser classHolder:(ValueHolder with:aClass).
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1502
    "/ theBrowser setupForClass:aClass againstVersion:nil.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1503
    theBrowser window label:(self resources string:'Versions of %1 classes' with:aSetOfClasses size).
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1504
    theBrowser openWindow.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1505
    ^ theBrowser.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1506
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1507
    "
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1508
     VersionDiffBrowser 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1509
        openOnAllClassesChangedSince:(Date today - 2 days) 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1510
        in:(Smalltalk allClassesMatchingPackage:'exept:bridgeFramework*').
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1511
    "
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1512
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1513
    "Created: / 08-05-2019 / 12:07:11 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1514
    "Modified: / 08-05-2019 / 13:38:22 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1515
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1516
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1517
openOnAllVersionsOfClass:aClass
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1518
    "create a VersionDiffBrowser instance and set the class change set of the
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1519
     browser. The class diff set is generated from aClasses current version against
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1520
     the selected version in the top selection list"
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1521
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1522
    |theBrowser|
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1523
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1524
    theBrowser := self new.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1525
    theBrowser allButOpenInterface:#windowSpecForMultipleVersions.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1526
    theBrowser beMultipleVersionBrowser.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1527
    theBrowser classHolder:(ValueHolder with:aClass).
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1528
    theBrowser setupForClass:aClass againstVersion:nil.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1529
    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
  1530
    theBrowser openWindow.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1531
    ^ theBrowser.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1532
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1533
    "
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1534
     self openOnAllVersionsOfClass:Object
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1535
    "
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1536
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1537
    "Modified: / 04-02-2017 / 19:52:33 / cg"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1538
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1539
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1540
openOnAllVersionsOfClasses:aSetOfClasses
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1541
    "create a VersionDiffBrowser instance and set the list of classes.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1542
     When a class is selected, the version list is extracted,
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1543
     and the class diff set is generated from aClasses current version against
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1544
     the selected version in the top selection list"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1545
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1546
    |theBrowser|
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1547
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1548
    theBrowser := self new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1549
    theBrowser allButOpenInterface:#windowSpecForMultipleClasses.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1550
    theBrowser beMultipleClassesVersionBrowser.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1551
    theBrowser beMultipleVersionBrowser.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1552
    theBrowser classList:aSetOfClasses.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1553
    "/ theBrowser classHolder:(ValueHolder with:aClass).
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1554
    "/ theBrowser setupForClass:aClass againstVersion:nil.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1555
    theBrowser window label:(self resources string:'Versions of %1 classes' with:aSetOfClasses size).
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1556
    theBrowser openWindow.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1557
    ^ theBrowser.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1558
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1559
    "
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1560
     self openOnAllVersionsOfClasses:(Collection withAllSubclasses)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1561
     self openOnAllVersionsOfClasses:(Smalltalk allClassesInPackage:'exept:bridgeFramework')
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1562
     self openOnAllVersionsOfClasses:(Smalltalk allClassesMatchingPackage:'exept:bridgeFramework*')
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1563
    "
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1564
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1565
    "Created: / 08-05-2019 / 10:58:15 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1566
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1567
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1568
openOnClass:aClass againstVersion:aVersionA
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1569
    "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
  1570
     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
  1571
     via the source code manager."
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1572
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1573
    |theBrowser|
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1574
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1575
    theBrowser := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1576
    theBrowser allButOpen.
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1577
    theBrowser setupForClass:aClass againstVersion:aVersionA.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1578
    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
  1579
    theBrowser openWindow.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1580
    ^ theBrowser.
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1581
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1582
    "
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1583
     self openOnClass:Array againstVersion:'1.116'
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1584
     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
  1585
     self openOnClass:Array againstVersion:#newest        - against the newest repository version
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1586
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1587
     self openOnClass:VersionDiffBrowser againstVersion:nil
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1588
     self openOnClass:VersionDiffBrowser againstVersion:#newest
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1589
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1590
     (self openOnClass:ByteArray againstVersion:'1.116') includeExtensionsHolder value:true
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1591
    "
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1592
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1593
    "Modified: / 04-02-2017 / 19:58:16 / cg"
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1594
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1595
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1596
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
  1597
    "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
  1598
     browser. The class diff set is generated from two classes."
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1599
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1600
    ^ self
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1601
        openOnClass:classA labelA:aLabelA
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1602
        andClass:classB labelB:aLabelB
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1603
        title:title ifSame:nil
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1604
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1605
    "
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1606
     self
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1607
        openOnClass:Array labelA:'Array'
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1608
        andClass:Collection labelB:'Collection'
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1609
        title:'Array vs. Collection'
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1610
    "
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1611
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1612
    "Modified (comment): / 04-02-2017 / 20:02:38 / cg"
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1613
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1614
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1615
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
  1616
    "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
  1617
     browser. The class diff set is generated from two classes."
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1618
8891
fm
parents: 8811
diff changeset
  1619
    |classChangeSet|
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1620
8891
fm
parents: 8811
diff changeset
  1621
    classChangeSet := ClassChangeSet newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB.
fm
parents: 8811
diff changeset
  1622
    classChangeSet removeAllVersionMethods.
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1623
    sameAction notNil ifTrue:[
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1624
        "/ check if same ...
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1625
        (classChangeSet methodsOnlyInA isEmpty
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1626
        and:[classChangeSet methodsOnlyInB isEmpty
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1627
        and:[classChangeSet diffSet isEmpty]]) ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1628
            sameAction value.
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1629
            ^ self "/ do not open
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1630
        ]
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1631
    ].
8891
fm
parents: 8811
diff changeset
  1632
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1633
    ^ self openOnClassChangeSet:classChangeSet title:title
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1634
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1635
    "Modified (format): / 04-02-2017 / 19:59:16 / cg"
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1636
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  1637
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1638
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
  1639
    "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
  1640
     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
  1641
2716
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1642
    ^ self
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1643
	openOnClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1644
	title:nil
2716
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1645
!
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1646
8451e7057f00 some common startup protocol between DiffViewer and VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 2714
diff changeset
  1647
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
  1648
    "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
  1649
     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
  1650
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1651
    ^ self
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1652
	openOnClass:aClass labelA:aLabelA sourceA:aSourceA
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1653
	labelB:aLabelB sourceB:aSourceB
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1654
	title:ignoredTitle ifSame:nil
2849
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1655
!
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1656
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1657
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
  1658
    "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
  1659
     browser. The class diff set is generated from two source files."
8891
fm
parents: 8811
diff changeset
  1660
fm
parents: 8811
diff changeset
  1661
    |diffs hasChangedMethods classChangeSet versionMethodChanges|
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  1662
8891
fm
parents: 8811
diff changeset
  1663
    classChangeSet := ClassChangeSet newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB.
fm
parents: 8811
diff changeset
  1664
    classChangeSet removeAllVersionMethods.
2849
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1665
    sameAction notNil ifTrue:[
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1666
        "/ check if same ...
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1667
        (classChangeSet methodsOnlyInA isEmpty
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1668
        and:[classChangeSet methodsOnlyInB isEmpty]) ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1669
            diffs := classChangeSet diffSet.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1670
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1671
            hasChangedMethods := diffs changed notEmpty.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1672
            hasChangedMethods ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1673
                versionMethodChanges := diffs changed select:[:eachDifference |
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1674
                    |eachChange|
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1675
                    eachChange := eachDifference first.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1676
                    (eachChange isMethodChange
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1677
                    and:[ (AbstractSourceCodeManager isVersionMethodSelector:eachChange changeSelector)
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1678
                    and:[ eachChange changeClass isMeta ]]).
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1679
                ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1680
                diffs changed size == versionMethodChanges size ifTrue: [
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1681
                    hasChangedMethods := false.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1682
                ].
8811
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1683
"/                diffs changed size == 1 ifTrue:[
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1684
"/                    theOnlyDifference := diffs changed first.
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1685
"/                    theOnlyChange := theOnlyDifference first.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1686
"/                    (theOnlyChange isMethodChange
8811
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1687
"/                    and:[ ((theOnlyChange selector == #version) or:[theOnlyChange selector startsWith:'version_'])
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1688
"/                    and:[ theOnlyChange changeClass isMeta ]]) ifTrue:[
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1689
"/                        hasChangedMethods := false
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1690
"/                    ]
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  1691
"/                ]
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1692
            ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1693
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1694
            (hasChangedMethods not
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1695
            and:[diffs onlyInArg isEmpty
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1696
            and:[diffs onlyInReceiver isEmpty]]) ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1697
                sameAction value.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1698
                ^ self "/ do not open
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1699
            ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1700
        ]
2849
08085872d08f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2776
diff changeset
  1701
    ].
8891
fm
parents: 8811
diff changeset
  1702
fm
parents: 8811
diff changeset
  1703
    ^ self openOnClassChangeSet:classChangeSet title:ignoredTitle
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  1704
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  1705
    "Modified: / 06-02-2017 / 02:31:51 / cg"
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1706
!
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1707
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1708
openOnClass:aClass versionA:versionA versionB:versionB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1709
    "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
  1710
     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
  1711
     the source code manager."
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1712
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1713
    |theBrowser|
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1714
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1715
    theBrowser := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1716
    theBrowser allButOpen.
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1717
    theBrowser setupForClass:aClass versionA:versionA versionB:versionB.
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1718
    theBrowser window label:(self resources 
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1719
                                string:'%1 Versions %2 vs. %3' 
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1720
                                with:aClass name with:versionA with:versionB).
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1721
    theBrowser openWindow.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1722
    ^ theBrowser.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1723
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1724
    "
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1725
     self openOnClass:Array versionA:'1.116' versionB:'1.113'
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  1726
     self openOnClass:Array versionA:'1.113' versionB:'1.116'
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1727
    "
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1728
!
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1729
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1730
openOnClassChangeSet:classChangeSet title:title
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1731
    "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
  1732
     browser. The class diff set is generated from two classes."
8891
fm
parents: 8811
diff changeset
  1733
fm
parents: 8811
diff changeset
  1734
    |theBrowser|
fm
parents: 8811
diff changeset
  1735
fm
parents: 8811
diff changeset
  1736
    theBrowser := self new.
fm
parents: 8811
diff changeset
  1737
    theBrowser allButOpen.
fm
parents: 8811
diff changeset
  1738
    theBrowser classChangeSet:classChangeSet.
fm
parents: 8811
diff changeset
  1739
    theBrowser openWindow.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1740
    theBrowser window label:title.
8891
fm
parents: 8811
diff changeset
  1741
    ^ theBrowser.
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1742
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  1743
    "Modified: / 04-02-2017 / 19:59:06 / cg"
8891
fm
parents: 8811
diff changeset
  1744
!
fm
parents: 8811
diff changeset
  1745
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1746
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1747
    ^ self
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1748
        openOnDiffSet:diffSet 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1749
        labelA:aLabelA labelB:aLabelB 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1750
        title:ignoredTitle
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1751
        ignoreExtensions:false
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1752
        ignoreVersionMethods:false
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1753
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1754
    "Modified: / 12-09-2011 / 11:52:44 / cg"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1755
!
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1756
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1757
openOnDiffSet:diffSet labelA:aLabelA labelB:aLabelB title:ignoredTitle ignoreExtensions:ignoreExtensionsBoolean
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1758
    ^ self
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1759
        openOnDiffSet:diffSet 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1760
        labelA:aLabelA labelB:aLabelB 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1761
        title:ignoredTitle 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1762
        ignoreExtensions:ignoreExtensionsBoolean 
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1763
        ignoreVersionMethods:false
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1764
!
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1765
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1766
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
  1767
    |theBrowser|
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1768
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1769
    theBrowser := self new.
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1770
    theBrowser ignoreExtensions:ignoreExtensionsBoolean.
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1771
    theBrowser ignoreVersionMethods:ignoreVersionMethodsBoolean.
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1772
    theBrowser allButOpen.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1773
    theBrowser setupForDiffSet:diffSet labelA:aLabelA labelB:aLabelB.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1774
    theBrowser window label:ignoredTitle.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1775
    theBrowser openWindow.
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  1776
    ^ theBrowser.
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1777
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1778
    "Created: / 12-09-2011 / 11:50:18 / cg"
5520
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1779
!
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1780
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1781
openOnDiffsBetweenFile:file1 and:file2
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1782
    |set1 set2 diffset theBrowser|
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1783
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1784
    set1 := ChangeSet fromFile:file1.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1785
    set2 := ChangeSet fromFile:file2.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1786
    diffset := set1 diffSetsAgainst:set2.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1787
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1788
    theBrowser := self new.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1789
    theBrowser allButOpen.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1790
    theBrowser setupForDiffSet:diffset labelA:file1 asFilename baseName labelB:file2 asFilename baseName.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1791
    theBrowser window label:('%1 vs. %2' bindWith:file1 asFilename baseName with:file2 asFilename baseName).
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1792
    theBrowser openWindow.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1793
    ^ theBrowser.
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1794
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1795
    "
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1796
     VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1797
	openOnDiffsBetweenFile:'/phys/exept/tmp/ws/Workflow::BlockDescription.st'
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1798
	and:'/phys/exept/tmp/workflowClasses/Workflow::BlockDescription.st'
5520
b6644f3ac71f *** empty log message ***
penk
parents: 5182
diff changeset
  1799
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1800
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1801
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1802
!VersionDiffBrowser methodsFor:'accessing'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1803
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1804
beMultipleClassesVersionBrowser
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1805
    isMultipleClassesVersionBrowser := true
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1806
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1807
    "Created: / 08-05-2019 / 10:58:32 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1808
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1809
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1810
beMultipleVersionBrowser
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1811
    isMultipleVersionBrowser := true
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1812
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1813
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1814
canIncludeExtensions:aBoolean
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1815
    canIncludeExtensionsHolder value:aBoolean.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1816
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1817
    "Modified (format): / 08-05-2019 / 11:14:30 / Claus Gittinger"
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1818
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1819
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1820
changeSetA
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1821
    "gets the change set which contains only the new methods
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1822
     in versionA of the class
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1823
     <return: ChangeSet>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1824
    "
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1825
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1826
    ^ self classChangeSet methodsOnlyInA
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1827
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1828
    "Modified (comment): / 08-05-2019 / 11:13:50 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1829
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1830
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1831
changeSetB
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1832
    "gets the change set which contains only the new methods
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1833
     in versionB of the class
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1834
     <return: ChangeSet>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1835
    "
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1836
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1837
    ^ self classChangeSet methodsOnlyInB
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1838
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1839
    "Modified (comment): / 08-05-2019 / 11:13:44 / Claus Gittinger"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1840
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1841
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1842
class:aClass versionA:revA versionB:revB
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1843
    classIfSingleClassDiff := aClass.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1844
    versionAIfSingleClassDiff := revA.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1845
    versionBIfSingleClassDiff := revB.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1846
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  1847
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1848
classBeingCompared
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  1849
    "returns the class from the change set which is compared.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1850
     <return: Class>
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1851
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1852
    
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1853
    ^ self classChangeSet classBeingCompared
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1854
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1855
    "Modified (comment): / 08-05-2019 / 11:13:31 / Claus Gittinger"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1856
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1857
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1858
classChangeSet
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1859
    "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
  1860
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1861
    ^ classChangeSet
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1862
!
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1863
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1864
classChangeSet:aClassChangeSet
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1865
    "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
  1866
     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
  1867
     when a new change set is given."
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  1868
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1869
    classChangeSet := aClassChangeSet.
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1870
    self updateLabels.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1871
    self updateLists.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1872
    self resetSelectionHolders.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  1873
!
2224
0e4250930948 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2221
diff changeset
  1874
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1875
classList:aCollectionOfClasses
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1876
    ^ self classListHolder contents:aCollectionOfClasses
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1877
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1878
    "Created: / 08-05-2019 / 11:17:13 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1879
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1880
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1881
ignoreExtensions
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1882
    "if true, extension methods are suppressed.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1883
     Ignoring is useful when comparing for baseClass checkin,
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1884
     as opposed to extension-checking, where extensions should not be ignored.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1885
     the default is false"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1886
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1887
    ^ self includeExtensions not
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1888
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1889
    "Created: / 12-09-2011 / 11:54:11 / cg"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1890
!
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1891
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1892
ignoreExtensions:aBoolean
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1893
    "if true, extension methods are suppressed.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1894
     Ignoring is useful when comparing for baseClass checkin,
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1895
     as opposed to extension-checking, where extensions should not be ignored.
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1896
     the default is false"
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1897
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1898
    self includeExtensions:aBoolean not
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1899
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  1900
    "Modified: / 06-03-2012 / 15:37:32 / cg"
10691
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1901
!
Claus Gittinger <cg@exept.de>
parents: 9602
diff changeset
  1902
11961
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1903
ignoreVersionMethods:aBoolean
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1904
    "if true, version methods (version and version_XXX) are suppressed.
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1905
     Ignoring is useful when comparing for real code changes.
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1906
     the default is false"
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1907
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1908
    self includeVersionMethods:aBoolean not
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1909
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1910
    "Modified: / 06-03-2012 / 15:37:32 / cg"
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1911
!
094f448dc1f0 added ignoreVersionMethods option
Claus Gittinger <cg@exept.de>
parents: 11958
diff changeset
  1912
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1913
isMultipleClassesVersionBrowser
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1914
    ^ isMultipleClassesVersionBrowser
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1915
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1916
    "Created: / 08-05-2019 / 10:58:53 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1917
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1918
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1919
isMultipleVersionBrowser
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1920
    ^ isMultipleVersionBrowser
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1921
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1922
    "Modified: / 08-05-2019 / 10:59:40 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1923
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  1924
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1925
selectedChangeInA
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1926
    "gets the selected method change for the 'method only in version A'.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1927
     <return: MethodChange | nil>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1928
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1929
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1930
    |selIndex change|
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1931
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1932
    selIndex := self methodsOnlyInASelection value.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1933
    selIndex notNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1934
        change := methodsOnlyInAFiltered "self changeSetA" at:selIndex.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1935
    ].
3753
48fdc128a790 refactored
Claus Gittinger <cg@exept.de>
parents: 3730
diff changeset
  1936
    ^ change
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1937
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1938
    "Modified (comment): / 08-05-2019 / 11:12:38 / Claus Gittinger"
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1939
!
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1940
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1941
selectedChangeInB
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1942
    "gets the selected method change for the 'method only in version B'.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1943
     <return: MethodChange | nil>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1944
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1945
    
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1946
    |selIndex change|
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1947
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1948
    selIndex := self methodsOnlyInBSelection value.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1949
    selIndex notNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1950
        change := methodsOnlyInBFiltered "self changeSetB" at:selIndex.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1951
    ].
3753
48fdc128a790 refactored
Claus Gittinger <cg@exept.de>
parents: 3730
diff changeset
  1952
    ^ change
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1953
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1954
    "Modified (comment): / 08-05-2019 / 11:12:51 / Claus Gittinger"
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1955
!
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1956
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1957
selectedChangesInM
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1958
    "get the two method changes for the selected 'changed method'.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1959
     <return: <Array with:MethodChange with:MethodChange | nil>>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1960
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1961
    
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1962
    |selIndex theTwoChanges|
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1963
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1964
    selIndex := self methodsChangedSelection value.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1965
    selIndex notNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1966
        theTwoChanges := methodsChangedFiltered "self classChangeSet methodsChanged" at:selIndex.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  1967
        ^ theTwoChanges.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1968
    ].
3753
48fdc128a790 refactored
Claus Gittinger <cg@exept.de>
parents: 3730
diff changeset
  1969
    ^ #(nil nil)
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1970
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1971
    "Modified (comment): / 08-05-2019 / 11:12:58 / Claus Gittinger"
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1972
!
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  1973
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1974
versionA
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1975
    "gets the first class version to be compared
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1976
     <return: String>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1977
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1978
    
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1979
    classChangeSet isNil ifTrue:[^ 'A'].
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1980
    ^ classChangeSet labelA
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1981
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1982
    "Modified (comment): / 08-05-2019 / 11:13:07 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1983
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1984
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1985
versionB
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1986
    "gets the second class version to be compared
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1987
     <return: String>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  1988
    "
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1989
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1990
    classChangeSet isNil ifTrue:[^ 'B'].
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  1991
    ^ classChangeSet labelB
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1992
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  1993
    "Modified (comment): / 08-05-2019 / 11:14:00 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1994
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1995
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1996
!VersionDiffBrowser methodsFor:'actions'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1997
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  1998
acceptInLeftView
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  1999
    |change|
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2000
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2001
    change := self selectedChangesInM first.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2002
    self applyChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2003
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2004
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2005
acceptInRightView
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2006
    |change|
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2007
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2008
    change := self selectedChangesInM second.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2009
    self applyChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2010
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2011
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2012
acceptInSingleView
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2013
    |change|
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2014
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2015
    change := self selectedChangeInA.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2016
    change isNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2017
	change := self selectedChangeInB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2018
    ].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2019
    self applyChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2020
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2021
19157
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2022
applyAllChanges:listOfChanges
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2023
    listOfChanges do:[:each |
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2024
        self applyChange:each
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2025
    ]
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2026
!
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2027
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2028
applyAllChangesInA
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2029
    self applyAllChanges:methodsOnlyInAFiltered
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2030
!
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2031
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2032
applyAllChangesInB
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2033
    self applyAllChanges:methodsOnlyInBFiltered
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2034
!
1e6a35f896a5 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 19093
diff changeset
  2035
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2036
applyChange:change
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2037
    change notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2038
	change apply
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2039
    ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2040
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2041
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2042
applySelectedChangeInA
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2043
    self applyChange:(self selectedChangeInA)
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2044
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2045
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2046
applySelectedChangeInB
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2047
    self applyChange:(self selectedChangeInB)
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2048
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2049
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2050
methodInADoubleClicked:index
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2051
"/    |change|
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2052
"/
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2053
"/    change := self changeSetA at:index.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2054
"/    self browseChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2055
    self browseClassInA
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2056
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2057
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2058
methodInBDoubleClicked:index
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2059
"/    |change|
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2060
"/
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2061
"/    change := self changeSetB at:index.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2062
"/    self browseChange:change
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2063
    self browseClassInB
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2064
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2065
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2066
methodInChangedDoubleClicked:index
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2067
    self browseClassInM.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2068
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2069
9550
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  2070
removeSelectedChangeInBFromImage
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  2071
    |change cls sel op|
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  2072
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  2073
    change := self selectedChangeInB.
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  2074
    change isMethodChange ifTrue:[
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2075
        (cls := change changeClass) notNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2076
            (sel := change changeSelector) notNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2077
                RefactoryChangeManager notNil ifTrue:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2078
                    op := RemoveMethodChange remove:sel from:cls.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2079
                    RefactoryChangeManager performChange: op.
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2080
                ] ifFalse:[
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2081
                    cls removeSelector:sel
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2082
                ]
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2083
            ]
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2084
        ]
9550
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  2085
    ]
531c77d5d3e3 added: #removeSelectedChangeInBFromImage
Claus Gittinger <cg@exept.de>
parents: 9383
diff changeset
  2086
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2087
    "Modified: / 06-02-2017 / 02:31:40 / cg"
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  2088
!
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  2089
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  2090
showLogMessages
15633
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  2091
    "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
  2092
     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
  2093
     once a method has been looked at.
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  2094
     This view-menu entry helps."
a5312b3cd197 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15632
diff changeset
  2095
15632
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  2096
    methodsOnlyInASelection value:nil.
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  2097
    methodsOnlyInBSelection value:nil.
7e30b48cebfd class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15621
diff changeset
  2098
    methodsChangedSelection value:nil.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2099
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2100
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2101
!VersionDiffBrowser methodsFor:'aspects'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2102
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2103
boxAVisible
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  2104
    ^ boxAVisible.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2105
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2106
    "Modified: / 08-05-2019 / 11:01:23 / Claus Gittinger"
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2107
!
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2108
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2109
boxBVisible
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  2110
    ^ boxBVisible.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2111
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2112
    "Modified: / 08-05-2019 / 11:01:38 / Claus Gittinger"
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2113
!
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2114
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2115
boxMVisible
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  2116
    ^ boxMVisible.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2117
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2118
    "Modified: / 08-05-2019 / 11:01:51 / Claus Gittinger"
2585
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2119
!
718f8fce7ca4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2578
diff changeset
  2120
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2121
canIncludeExtensionsHolder
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2122
    "can include extensions ? (menu item enabler)"
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2123
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2124
    ^ canIncludeExtensionsHolder.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2125
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2126
    "Modified: / 08-05-2019 / 11:02:15 / Claus Gittinger"
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2127
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2128
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2129
changedLabelHolder
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2130
    " aspect for the label of the changed method box"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2131
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2132
    ^ changedLabelHolder.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2133
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2134
    "Modified: / 08-05-2019 / 11:02:51 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2135
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2136
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2137
classListHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2138
    "aspect for the 'list of classes' list.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2139
     <return: List>"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2140
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2141
    classListHolder isNil ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2142
        classListHolder := List new
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2143
    ].    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2144
    ^ classListHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2145
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2146
    "Created: / 08-05-2019 / 11:15:52 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2147
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2148
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2149
classNameListHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2150
    "aspect for the 'list of classes' list.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2151
     <return: List>"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2152
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2153
    ^ BlockValue
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2154
        with:[:l | l collect:#name]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2155
        argument:(self classListHolder)
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2156
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2157
    "Created: / 08-05-2019 / 13:28:24 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2158
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2159
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2160
diffTextLabelA
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2161
    "aspect for the label for version A"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2162
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2163
    ^ diffTextLabelA.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2164
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2165
    "Modified: / 08-05-2019 / 11:03:23 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2166
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2167
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2168
diffTextLabelB
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2169
    "aspect for the label for version B"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2170
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2171
    ^ diffTextLabelB.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2172
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2173
    "Modified: / 08-05-2019 / 11:03:32 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2174
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2175
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  2176
diffTextView
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2177
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2178
    return the component for the diff text view.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  2179
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2180
    <return: HVScrollableView>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2181
    "
7364
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  2182
    |v|
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  2183
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  2184
    diffTextView isNil ifTrue:[
13951
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  2185
        v := DiffCodeView new.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  2186
        v textViewClass:CodeView.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  2187
        v initialize.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  2188
        diffTextView := HVScrollableView
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  2189
                           forView:v
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  2190
                           miniScrollerH:true miniScrollerV:false.
cc2b571b0591 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13547
diff changeset
  2191
        diffTextView addNextPreviousButtons.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  2192
    ].
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  2193
    ^ diffTextView
7364
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  2194
e7613aec8035 use codeViews (instead of TextViews)
Claus Gittinger <cg@exept.de>
parents: 7108
diff changeset
  2195
    "Modified: / 06-10-2006 / 14:30:42 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  2196
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  2197
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2198
hideDiffsWithCommentOrFormattingChangeOnly
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2199
    ^ self hideDiffsWithCommentOrFormattingChangeOnlyHolder value
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2200
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2201
    "Created: / 04-02-2017 / 22:54:07 / cg"
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2202
!
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2203
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2204
hideDiffsWithCommentOrFormattingChangeOnlyHolder
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2205
    "hide changes which have no semantic effect?"
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2206
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2207
    ^ self builder booleanValueAspectFor:#hideDiffsWithCommentOrFormattingChangeOnlyHolder
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2208
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2209
    "Created: / 04-02-2017 / 16:55:12 / cg"
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2210
!
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  2211
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2212
includeCategoryChanges
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2213
    ^ includeCategoryChangesHolder value
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2214
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2215
    "Created: / 17-07-2012 / 18:22:34 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2216
    "Modified: / 08-05-2019 / 11:00:58 / Claus Gittinger"
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2217
!
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2218
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2219
includeCategoryChanges:aBoolean
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2220
    includeCategoryChangesHolder value:aBoolean
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2221
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2222
    "Created: / 17-07-2012 / 17:50:41 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2223
    "Modified: / 08-05-2019 / 11:01:03 / Claus Gittinger"
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2224
!
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2225
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2226
includeCategoryChangesHolder
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2227
    ^ includeCategoryChangesHolder.
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2228
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2229
    "Modified: / 06-03-2012 / 15:36:52 / cg"
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2230
    "Created: / 17-07-2012 / 16:47:58 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2231
    "Modified: / 08-05-2019 / 11:00:43 / Claus Gittinger"
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2232
!
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2233
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2234
includeExtensions
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2235
    ^ includeExtensionsHolder value
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2236
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2237
    "Created: / 13-09-2011 / 11:48:51 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2238
    "Modified: / 08-05-2019 / 11:04:14 / Claus Gittinger"
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2239
!
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2240
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2241
includeExtensions:aBoolean
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2242
    includeExtensionsHolder value:aBoolean
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2243
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2244
    "Created: / 13-09-2011 / 11:48:41 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2245
    "Modified: / 08-05-2019 / 11:04:17 / Claus Gittinger"
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2246
!
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2247
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2248
includeExtensionsHolder
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2249
    "only compare base-methods or include extensions ?"
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2250
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2251
    ^ includeExtensionsHolder.
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  2252
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  2253
    "Modified: / 06-03-2012 / 15:36:52 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2254
    "Modified: / 08-05-2019 / 11:04:21 / Claus Gittinger"
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2255
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  2256
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2257
includeVersionMethods
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2258
    ^ includeVersionMethodsHolder value
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2259
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2260
    "Created: / 13-09-2011 / 11:48:51 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2261
    "Modified: / 08-05-2019 / 11:04:44 / Claus Gittinger"
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2262
!
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2263
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2264
includeVersionMethods:aBoolean
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2265
    includeVersionMethodsHolder value:aBoolean
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2266
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2267
    "Created: / 13-09-2011 / 11:48:41 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2268
    "Modified: / 08-05-2019 / 11:04:46 / Claus Gittinger"
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2269
!
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2270
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2271
includeVersionMethodsHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2272
    ^ includeVersionMethodsHolder.
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2273
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2274
    "Modified: / 06-03-2012 / 15:36:52 / cg"
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2275
    "Created: / 17-07-2012 / 16:47:58 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2276
    "Modified: / 08-05-2019 / 11:04:50 / Claus Gittinger"
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2277
!
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2278
8602
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  2279
infoHolder
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  2280
    <resource: #obsolete>
8602
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  2281
    ^ infoHolder.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2282
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2283
    "Modified: / 08-05-2019 / 11:05:10 / Claus Gittinger"
8602
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  2284
!
Claus Gittinger <cg@exept.de>
parents: 8103
diff changeset
  2285
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2286
informationHolder
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2287
    ^ infoHolder.
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2288
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2289
    "Modified: / 08-05-2019 / 11:05:10 / Claus Gittinger"
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2290
!
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2291
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2292
methodText
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2293
    "aspect for the text in the method text view"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2294
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2295
    ^ methodText.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2296
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2297
    "Modified: / 08-05-2019 / 11:05:35 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2298
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2299
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2300
methodsChanged
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2301
    "aspect for the 'changed method' list.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2302
     <return: List>"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2303
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2304
    ^ methodsChanged.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2305
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2306
    "Modified: / 08-05-2019 / 11:06:09 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2307
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2308
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2309
methodsChangedSelection
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2310
    "aspect for the selection holder of 'changed method'-list.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2311
     <return: ValueHolder>"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2312
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2313
    ^ methodsChangedSelection.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2314
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2315
    "Modified (comment): / 08-05-2019 / 11:06:43 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2316
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2317
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2318
methodsOnlyInA
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2319
    "aspect for the 'method only in version A' list."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2320
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2321
    ^ methodsOnlyInA.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2322
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2323
    "Modified: / 25-07-2006 / 11:14:43 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2324
    "Modified: / 08-05-2019 / 11:07:12 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2325
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2326
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2327
methodsOnlyInASelection
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2328
    "aspect for the selection holder of 'method only in version A'-list."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2329
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2330
    ^ methodsOnlyInASelection.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2331
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2332
    "Modified: / 25-07-2006 / 11:14:53 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2333
    "Modified: / 08-05-2019 / 11:07:36 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2334
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2335
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2336
methodsOnlyInB
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2337
    "aspect for the 'method only in version B' list"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2338
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2339
    ^ methodsOnlyInB.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2340
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2341
    "Modified: / 25-07-2006 / 11:14:48 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2342
    "Modified: / 08-05-2019 / 11:07:16 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2343
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2344
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2345
methodsOnlyInBSelection
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2346
    "aspect for the selection holder of 'method only in version B'-list."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2347
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2348
    ^ methodsOnlyInBSelection.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2349
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2350
    "Modified: / 25-07-2006 / 11:15:00 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2351
    "Modified: / 08-05-2019 / 11:07:40 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2352
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2353
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2354
onlyInALabelHolder
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2355
    "aspect for the label for 'method only in version A'."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2356
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2357
    ^ onlyInALabelHolder.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2358
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2359
    "Modified: / 25-07-2006 / 11:15:12 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2360
    "Modified: / 08-05-2019 / 11:08:08 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2361
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2362
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2363
onlyInBLabelHolder
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2364
    "aspect for the label for 'method only in version B'."
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2365
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  2366
    ^ onlyInBLabelHolder.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2367
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  2368
    "Modified: / 25-07-2006 / 11:15:07 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2369
    "Modified: / 08-05-2019 / 11:08:12 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2370
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2371
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2372
selectedClassIndexHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2373
    selectedClassIndexHolder isNil ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2374
        selectedClassIndexHolder := nil asValue. 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2375
        selectedClassIndexHolder onChangeSend:#selectedClassIndexHolderChanged to:self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2376
    ].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2377
    ^ selectedClassIndexHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2378
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2379
    "Created: / 08-05-2019 / 13:30:37 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2380
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2381
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2382
selectedSymbolicVersionHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2383
    ^ selectedSymbolicVersionHolder
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2384
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2385
    "Modified: / 08-05-2019 / 11:08:42 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2386
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2387
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2388
selectedSymbolicVersionIndexHolder
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2389
    ^ selectedSymbolicVersionIndexHolder
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2390
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2391
    "Created: / 28-05-2019 / 15:32:03 / Claus Gittinger"
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2392
!
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2393
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2394
selectedVersionHolder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2395
    ^ selectedVersionHolder
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2396
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2397
    "Modified: / 08-05-2019 / 11:09:18 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2398
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2399
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2400
selectedVersionIndex
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2401
    ^ selectedVersionIndexHolder value ? 0
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2402
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2403
    "Created: / 23-05-2018 / 11:35:50 / Claus Gittinger"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2404
    "Modified: / 08-05-2019 / 11:09:50 / Claus Gittinger"
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2405
!
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2406
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2407
selectedVersionIndexHolder
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2408
    ^ selectedVersionIndexHolder
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2409
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2410
    "Created: / 29-11-2017 / 13:02:49 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2411
    "Modified: / 08-05-2019 / 11:09:46 / Claus Gittinger"
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2412
!
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2413
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2414
symbolicVersionList
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2415
    ^ symbolicVersionList
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2416
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2417
    "Modified: / 08-05-2019 / 11:10:23 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2418
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2419
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2420
symbolicVersionNameList
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2421
    ^ symbolicVersionNameList
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2422
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2423
    "Created: / 28-05-2019 / 15:42:12 / Claus Gittinger"
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2424
!
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2425
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2426
versionEntriesList
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2427
    ^ versionEntriesList
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2428
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2429
    "Created: / 29-11-2017 / 13:06:14 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2430
    "Modified: / 08-05-2019 / 11:10:38 / Claus Gittinger"
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2431
!
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2432
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2433
versionList
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2434
    ^ versionList
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2435
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2436
    "Modified: / 08-05-2019 / 11:10:53 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2437
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2438
2725
e2dc264e8c9c category changes
Claus Gittinger <cg@exept.de>
parents: 2716
diff changeset
  2439
!VersionDiffBrowser methodsFor:'aspects-exported'!
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2440
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2441
changedLabelHolder:aValueHolder
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2442
    builder aspectAt:#changedLabelHolder put:aValueHolder.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2443
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2444
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2445
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2446
classHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2447
    classHolder isNil ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2448
        classHolder := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2449
        classHolder addDependent:self
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2450
    ].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2451
    ^ classHolder
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2452
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2453
    "Created: / 08-05-2019 / 13:36:50 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2454
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2455
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2456
classHolder:aValueHolder
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2457
    classHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2458
	classHolder removeDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2459
    ].
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2460
    classHolder := aValueHolder.
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2461
    classHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2462
	classHolder addDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2463
    ]
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2464
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2465
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2466
onlyInALabelHolder:aValueHolder
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2467
    builder aspectAt:#onlyInALabelHolder put:aValueHolder.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2468
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2469
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2470
onlyInBLabelHolder:aValueHolder
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2471
    builder aspectAt:#onlyInBLabelHolder put:aValueHolder.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2472
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2473
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2474
versionAHolder:aValueHolder
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2475
    versionAHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2476
	versionAHolder removeDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2477
    ].
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2478
    versionAHolder := aValueHolder.
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2479
    versionAHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2480
	versionAHolder addDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2481
    ]
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2482
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2483
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2484
versionBHolder:aValueHolder
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2485
    versionBHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2486
	versionBHolder removeDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2487
    ].
5182
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2488
    versionBHolder := aValueHolder.
0b3ecd84056a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5150
diff changeset
  2489
    versionBHolder notNil ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2490
	versionBHolder addDependent:self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2491
    ]
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2492
! !
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2493
4359
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2494
!VersionDiffBrowser methodsFor:'aspects-menu'!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2495
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2496
canAcceptInCodeView
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2497
    ^ self hasChangeSelectedInA
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2498
      or:[self hasChangeSelectedInB
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2499
      or:[self hasChangeSelectedInM]]
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2500
!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2501
18992
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2502
createPatchFileEnabled
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2503
    ^ [
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2504
        classChangeSet notNil
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2505
        and:[ classChangeSet classBeingCompared notNil ] 
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2506
    ]
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2507
!
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2508
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2509
createPatchFileVisible
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2510
    ^ false "/ for now
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2511
!
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  2512
4359
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2513
hasChangeSelectedInA
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2514
    ^ self selectedChangeInA notNil
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2515
!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2516
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2517
hasChangeSelectedInB
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2518
    ^ self selectedChangeInB notNil
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2519
!
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2520
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2521
hasChangeSelectedInM
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2522
    ^ self methodsChangedSelection value notNil
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2523
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2524
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2525
hasClassFilters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2526
    ^ filteredClassNames notEmptyOrNil 
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2527
    or:[filteredOwnerClassNames notEmptyOrNil
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2528
    or:[filteredClassNamePatterns notEmptyOrNil]]
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2529
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2530
    "Created: / 08-05-2019 / 11:50:12 / Claus Gittinger"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2531
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2532
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2533
hasClassPatternFilter
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2534
    ^ filteredClassNamePatterns notEmptyOrNil
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2535
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2536
    "Created: / 08-05-2019 / 11:50:12 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2537
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2538
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2539
hasNextVersionInVersionList
18146
129f819d8259 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18094
diff changeset
  2540
    "versions are sorted youngest first.
129f819d8259 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18094
diff changeset
  2541
     If the current selected one is the first, there is no next version"
129f819d8259 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18094
diff changeset
  2542
     
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2543
    ^ (self selectedVersionIndex) > 1.
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2544
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2545
    "Modified: / 23-05-2018 / 11:36:33 / Claus Gittinger"
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2546
!
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2547
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2548
hasPreviousVersionInVersionList 
18146
129f819d8259 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18094
diff changeset
  2549
    "versions are sorted youngest first.
129f819d8259 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18094
diff changeset
  2550
     If the current selected one is the last, there is no previous version"
129f819d8259 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18094
diff changeset
  2551
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2552
    ^ (self selectedVersionIndex) < versionList value size.
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2553
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2554
    "Modified: / 23-05-2018 / 11:36:38 / Claus Gittinger"
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2555
!
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2556
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2557
hasRememberedFilters
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2558
    ^ RememberedFilters notEmptyOrNil
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2559
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2560
    "Created: / 08-05-2019 / 11:54:31 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2561
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2562
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2563
hasSelectorFilters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2564
    ^ filteredSelectors notEmptyOrNil or:[filteredSelectorPatterns notEmptyOrNil]
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2565
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2566
    "Created: / 08-05-2019 / 11:50:12 / Claus Gittinger"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2567
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2568
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2569
hasSelectorPatternFilter
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  2570
    ^ filteredSelectorPatterns notEmptyOrNil
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2571
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2572
    "Created: / 08-05-2019 / 11:50:46 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2573
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2574
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2575
showingClassChangeSet
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2576
    ^ classChangeSet notNil
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2577
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  2578
    "Created: / 05-02-2017 / 11:09:18 / cg"
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2579
!
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2580
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2581
versionsMenu
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2582
    ^ [ 
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2583
        |m item nextVersion prevVersion|
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2584
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2585
        m := self class versionsMenu.
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2586
        m := m decodeAsLiteralArray.
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2587
        m findGuiResourcesIn:self.
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2588
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2589
        self hasNextVersionInVersionList ifTrue:[
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2590
            nextVersion := self versionList at:(self selectedVersionIndex - 1).
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2591
            item := m atNameKey:#CompareAgainstNextVersion. 
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2592
            item label:(resources string:(item label,' (%1)') with:nextVersion).
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2593
        ].
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2594
        self hasPreviousVersionInVersionList ifTrue:[
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2595
            prevVersion := self versionList at:(self selectedVersionIndex + 1).
17954
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2596
            item := m atNameKey:#CompareAgainstPreviousVersion.
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2597
            item label:(resources string:(item label,'(%1)') with:prevVersion).
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2598
        ].
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2599
        m
cf28096d3fa4 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17952
diff changeset
  2600
      ]
18147
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2601
03d5bfe1c546 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18146
diff changeset
  2602
    "Modified: / 23-05-2018 / 11:36:18 / Claus Gittinger"
4359
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2603
! !
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4128
diff changeset
  2604
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2605
!VersionDiffBrowser methodsFor:'change & update'!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2606
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2607
filterChanged
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2608
    self withExecuteCursorDo:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2609
        |listA listB listM selA selB selM posA posB posM|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2610
        
17463
c6696d10d802 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17414
diff changeset
  2611
        "/ remember selection and scroll positions
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2612
        listA := (self componentAt:'ListA') scrolledView.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2613
        listB := (self componentAt:'ListB') scrolledView.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2614
        listM := (self componentAt:'ListM') scrolledView.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2615
        selA := listA selection.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2616
        selB := listB selection.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2617
        selM := listM selection.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2618
        posA := listA firstLineShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2619
        posB := listB firstLineShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2620
        posM := listM firstLineShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2621
        
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2622
        self updateLists.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2623
        self enqueueDelayedAction:
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2624
            [
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2625
                selA notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2626
                    listA selection:selA
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2627
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2628
                    listA scrollToLine:posA
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2629
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2630
                selB notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2631
                    listB selection:selB
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2632
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2633
                    listB scrollToLine:posB
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2634
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2635
                selM notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2636
                    listM selection:selM
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2637
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2638
                    listM scrollToLine:posM
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2639
                ]. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2640
            ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2641
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2642
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2643
    "Created: / 05-02-2017 / 10:19:41 / cg"
17463
c6696d10d802 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17414
diff changeset
  2644
    "Modified (format): / 14-03-2017 / 16:30:58 / cg"
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2645
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2646
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2647
methodsChangedSelectionChanged
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2648
    "the selection in the list of the 'changed methods' changed.
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2649
     Reset the selection of the two other lists and calc the method change.
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2650
     <return: self>"
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2651
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2652
    |sel changeA changeB methodsChanged|
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2653
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2654
    "/ self information:''.
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2655
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2656
    sel := self methodsChangedSelection value.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2657
    sel notNil ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2658
        self methodsOnlyInASelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2659
        self methodsOnlyInBSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2660
        methodsChanged := self classChangeSet methodsChanged.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2661
        changeA := (methodsChangedFiltered at:sel) first.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2662
        changeB := (methodsChangedFiltered at:sel) second.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2663
        self withReadCursorDo:[
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2664
            |info|
18000
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2665
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2666
            info := self shortChangeInfoFor:changeA and:changeB.
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2667
            self information:(info ? 'Methods are different').    
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2668
            self diffTextView
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2669
                text1:(changeA prettyPrintedSource) 
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2670
                text2:(changeB prettyPrintedSource)        
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2671
        ].
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2672
        self showDiffTextView.
18279
afdae9cde5cd #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18147
diff changeset
  2673
        self diffTextView moveToNextChangedAfter:1
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2674
    ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2675
        self showVersionInfoIfNothingSelected
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2676
    ]
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2677
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2678
    "Modified: / 03-09-1999 / 15:01:30 / ps"
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2679
    "Modified: / 29-11-2017 / 12:56:28 / cg"
18279
afdae9cde5cd #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18147
diff changeset
  2680
    "Modified: / 23-07-2018 / 09:51:12 / Claus Gittinger"
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2681
    "Modified (format): / 13-03-2019 / 10:39:33 / Claus Gittinger"
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2682
!
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2683
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2684
methodsOnlyInASelectionChanged
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2685
    "the selection in the list of the 'method only in version A' changed.
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2686
     Reset the selection of the two other lists and show the method in
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2687
     the text view.
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2688
     <return: self>"
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2689
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2690
    |change sel versionA|
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2691
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2692
    "/ self information:''.
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2693
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2694
    sel := self methodsOnlyInASelection value.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2695
    sel notNil ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2696
        self methodsOnlyInBSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2697
        self methodsChangedSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2698
        change := methodsOnlyInAFiltered "self changeSetA" at:sel.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2699
        self methodText value:(change prettyPrintedSource).
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2700
        self showSingleTextView.
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2701
        (versionA := diffTextLabelA value) notEmptyOrNil ifTrue:[
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2702
            self information:'Method removed from %1' with:versionA.
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2703
        ] ifFalse:[
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2704
            self information:'Method removed'.
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2705
        ].
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2706
    ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2707
        self showVersionInfoIfNothingSelected
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2708
    ].
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2709
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2710
    "Modified: / 05-02-2017 / 12:08:07 / cg"
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2711
    "Modified: / 13-03-2019 / 10:48:17 / Claus Gittinger"
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2712
!
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2713
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2714
methodsOnlyInBSelectionChanged
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2715
    "the selection in the list of the 'method only in version B' changed.
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2716
     Reset the selection of the two other lists and show the method in
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2717
     the text view.
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2718
     <return: self>"
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2719
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2720
    |change sel versionB|
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2721
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2722
    "/ self information:''.
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2723
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2724
    sel := self methodsOnlyInBSelection value.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2725
    sel notNil ifTrue:[
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2726
        self methodsOnlyInASelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2727
        self methodsChangedSelection value:nil.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2728
        change := methodsOnlyInBFiltered "self changeSetB" at:sel.
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2729
        self methodText value:(change prettyPrintedSource).
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2730
        self showSingleTextView.
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2731
        (versionB := diffTextLabelB value) notEmptyOrNil ifTrue:[
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2732
            self information:'Method added to %1' with:versionB.
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2733
        ] ifFalse:[
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2734
            self information:'Method added'.
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2735
        ].    
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2736
    ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2737
        self showVersionInfoIfNothingSelected
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2738
    ].
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2739
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2740
    "Modified: / 05-02-2017 / 11:49:22 / cg"
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  2741
    "Modified: / 13-03-2019 / 10:48:23 / Claus Gittinger"
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2742
!
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  2743
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2744
selectVersion:version
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2745
    |idx numShownBefore numShownAfter|
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2746
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2747
    idx := versionList indexOf:version.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2748
    "/ if not found, get more version infos
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2749
    [idx == 0] whileTrue:[
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2750
        numShownBefore := versionList size.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2751
        self updateVersionList.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2752
        numShownAfter := versionList size.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2753
        idx := versionList indexOf:version.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2754
        idx == 0 ifTrue:[
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2755
            numShownBefore == numShownAfter ifTrue:[
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2756
                ^ self
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2757
            ].
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2758
        ].
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2759
    ].    
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2760
    self selectedVersionIndexHolder value:idx.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2761
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2762
    "Created: / 28-05-2019 / 14:58:37 / Claus Gittinger"
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2763
!
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2764
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2765
selectedClassIndexHolderChanged
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2766
    |cls|
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2767
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2768
    cls := self classListHolder value at:(self selectedClassIndexHolder value).
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2769
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2770
    self classHolder value:cls.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2771
    (self isMultipleVersionBrowser or:[self isMultipleClassesVersionBrowser]) ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2772
        self withWaitCursorDo:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2773
            self updateVersionList.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2774
        ]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2775
    ]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2776
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2777
    "Created: / 08-05-2019 / 13:33:07 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2778
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  2779
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2780
selectedSymbolicVersionHolderChanged
18758
c6062917ce30 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18757
diff changeset
  2781
    |symbolicTag version|
c6062917ce30 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18757
diff changeset
  2782
c6062917ce30 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18757
diff changeset
  2783
    symbolicTag := self selectedSymbolicVersionHolder value.
c6062917ce30 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18757
diff changeset
  2784
    version := symbolicToVersionMapping at:symbolicTag ifAbsent:nil.
c6062917ce30 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18757
diff changeset
  2785
    version isNil ifTrue:[
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2786
        symbolicTag = '-' ifFalse:[
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2787
            Dialog warn:'No version has this tag ("%1")' with:symbolicTag.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2788
        ].
18758
c6062917ce30 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18757
diff changeset
  2789
        ^ self.
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2790
    ].
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2791
    self selectVersion:version
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2792
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2793
    "Modified: / 28-05-2019 / 14:57:56 / Claus Gittinger"
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2794
!
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2795
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2796
selectedSymbolicVersionIndexHolderChanged
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2797
    self selectedSymbolicVersionHolder value:(symbolicVersionList at:self selectedSymbolicVersionIndexHolder value)
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2798
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2799
    "Created: / 28-05-2019 / 15:32:47 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2800
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2801
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2802
selectedVersionHolderChanged
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2803
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2804
    self withWaitCursorDo:[
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2805
        |idx prevSelectionIndexA prevSelectionIndexB prevSelectionIndexDifferent
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2806
         previousChange previousClass previousSelector|
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2807
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2808
        "/ remember the previous selected method
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2809
        (prevSelectionIndexA := methodsOnlyInASelection value) notNil ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2810
            previousChange := methodsOnlyInAFiltered at:prevSelectionIndexA.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2811
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2812
        (prevSelectionIndexB := methodsOnlyInBSelection value) notNil ifTrue:[  
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2813
            previousChange := methodsOnlyInBFiltered at:prevSelectionIndexB.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2814
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2815
        (prevSelectionIndexDifferent := methodsChangedSelection value) notNil ifTrue:[  
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2816
            previousChange := (methodsChangedFiltered at:prevSelectionIndexDifferent) first.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2817
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2818
        previousChange notNil ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2819
            previousClass := previousChange className.
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2820
            previousSelector := previousChange changeSelector.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2821
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2822
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2823
        "/ possibly expand a contracted list
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2824
        selectedVersionHolder value = '...' ifTrue:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2825
            idx := self versionList size.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2826
            self updateVersionList.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2827
            selectedVersionHolder setValue:(self versionList at:idx).
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2828
        ].
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2829
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2830
        "/ update the view
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2831
        self 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2832
            setupForClass:classHolder value 
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2833
            againstVersion:(selectedVersionHolder value).
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2834
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2835
        "/ try to reselect the same method again.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2836
        previousChange notNil ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2837
            "/ search a change for that in the three lists
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2838
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2839
            (idx := methodsChangedFiltered findFirst:[:entry | entry first className = previousClass
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2840
                                                       and:[ entry first changeSelector = previousSelector]]) ~= 0
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2841
            ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2842
                methodsChangedSelection value:idx. self methodsChangedSelectionChanged.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2843
            ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2844
                (idx := methodsOnlyInAFiltered findFirst:[:chg | chg className = previousClass
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2845
                                                       and:[ chg changeSelector = previousSelector]]) ~= 0
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2846
                ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2847
                    methodsOnlyInASelection value:idx. self methodsOnlyInASelectionChanged
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2848
                ] ifFalse:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2849
                    (idx := methodsOnlyInBFiltered findFirst:[:chg | chg className = previousClass
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2850
                                                          and:[ chg changeSelector = previousSelector]]) ~= 0
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2851
                    ifTrue:[
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2852
                        methodsOnlyInBSelection value:idx. self methodsOnlyInBSelectionChanged.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2853
                    ]
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2854
                ]
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2855
            ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2856
        ].
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  2857
        self showVersionInfoIfNothingSelected
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2858
    ]
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2859
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  2860
    "Modified: / 06-02-2017 / 02:32:24 / cg"
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2861
    "Modified: / 28-05-2019 / 15:22:36 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2862
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  2863
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2864
selectedVersionIndexHolderChanged
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2865
    self selectedVersionHolder value:(versionList at:self selectedVersionIndexHolder value)
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2866
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2867
    "Created: / 29-11-2017 / 13:04:12 / cg"
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2868
!
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  2869
18000
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2870
shortChangeInfoFor:changeA and:changeB
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2871
    |parseError treeA treeB sameSuperClass sameClassName sameInstVars sameClassVars samePools sameCategory append info|
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2872
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2873
    "/ see if the semantics have changed (or only prettyPrinted)
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2874
    RBParser notNil ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2875
        (classChangeSet notNil
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2876
        and:[ classChangeSet classBeingCompared notNil ]) ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2877
            parseError := false.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2878
            changeA isMethodChange ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2879
                changeB isMethodChange ifFalse:[^ 'Different change types'].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2880
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2881
                treeA := RBParser parseMethod:(changeA source) onError: [:str :pos | parseError := true].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2882
                treeB := RBParser parseMethod:(changeB source) onError: [:str :pos | parseError := true].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2883
                parseError ifFalse:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2884
                    (treeA equalTo:treeB withMapping:(Dictionary new)) ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2885
                        ^ 'Methods only differ in formatting / comments'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2886
                    ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2887
                    (treeA semanticallyEqualTo:treeB withMapping:(Dictionary  new)) ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2888
                        ^ 'Methods seem to do the same'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2889
                    ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2890
                    ^ 'Methods are different'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2891
                ].
19440
4970cf19ac71 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19351
diff changeset
  2892
                self information:'ParseError while comparing - please check the code'.
18000
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2893
                ^ nil
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2894
            ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2895
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2896
            changeA isClassDefinitionChange ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2897
                changeB isClassDefinitionChange ifFalse:[^ 'Different change types'].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2898
                treeA := RBParser parseExpression:(changeA source) onError: [:str :pos | parseError := true].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2899
                treeB := RBParser parseExpression:(changeB source) onError: [:str :pos | parseError := true].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2900
                (treeA semanticallyEqualTo:treeB withMapping:(Dictionary  new)) ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2901
                    ^ 'Class definitions seem to do the same'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2902
                ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2903
                sameSuperClass := treeA receiver = treeB receiver.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2904
                sameClassName := treeA arg1 = treeB arg1.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2905
                sameInstVars := treeA arg2 = treeB arg2.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2906
                sameClassVars := treeA arg3 = treeB arg3.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2907
                samePools := (treeA arg:4) = (treeB arg:4).
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2908
                sameCategory := (treeA arg:5) = (treeB arg:5).
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2909
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2910
                info := ''.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2911
                append := [:s | info := info isEmpty ifTrue:[s] ifFalse:[info,', ',s]].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2912
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2913
                sameSuperClass ifFalse:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2914
                    append value:'Superclass'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2915
                ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2916
                sameClassName ifFalse:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2917
                    append value:'Name'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2918
                ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2919
                sameInstVars ifFalse:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2920
                    append value:'Instvars'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2921
                ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2922
                sameClassVars ifFalse:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2923
                    append value:'Classvars'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2924
                ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2925
                samePools ifFalse:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2926
                    append value:'SharedPools'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2927
                ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2928
                sameCategory ifFalse:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2929
                    append value:'Category'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2930
                ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2931
                info notEmpty ifTrue:[ ^ 'different ',info ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2932
                ^ 'Class definitions are different.'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2933
            ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2934
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2935
            changeA isClassCommentChange ifTrue:[
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2936
                changeB isClassCommentChange ifFalse:[^ 'Different change types'].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2937
                changeA comment = changeB comment ifFalse:[^ 'Different class comment'].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2938
                ^ 'Same comment'.
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2939
            ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2940
18034
d277ee012ff1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 18000
diff changeset
  2941
            changeA isPrimitiveChange ifTrue:[
d277ee012ff1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 18000
diff changeset
  2942
                changeB isPrimitiveChange ifFalse:[^ 'Different change types'].
d277ee012ff1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 18000
diff changeset
  2943
                (changeA sameAs:changeB) ifFalse:[^ 'Different class primitive'].
d277ee012ff1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 18000
diff changeset
  2944
                ^ 'Same primitive'.
d277ee012ff1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 18000
diff changeset
  2945
            ].
18000
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2946
        ].    
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2947
    ].
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2948
    ^ nil
18034
d277ee012ff1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 18000
diff changeset
  2949
d277ee012ff1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 18000
diff changeset
  2950
    "Modified: / 09-04-2018 / 12:21:27 / stefan"
18000
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2951
!
1dad90c9fcd4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17954
diff changeset
  2952
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2953
showActivity:someMessage
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2954
    "some activityNotification shalt be communicated to the user."
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2955
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2956
    infoHolder value:someMessage.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2957
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2958
    "Created: / 28-05-2019 / 15:26:34 / Claus Gittinger"
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2959
!
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  2960
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2961
update:something with:parameter from:changedObject
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2962
    ((changedObject == includeExtensionsHolder)
11958
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2963
    or:[ changedObject == includeCategoryChangesHolder
949cbf2cbeb2 class definition
Claus Gittinger <cg@exept.de>
parents: 11855
diff changeset
  2964
    or:[ changedObject == includeVersionMethodsHolder ]]) ifTrue:[
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2965
        self updateLists.
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2966
         ^ self
11371
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  2967
    ].
920084723b9c exclude extension stuff fixed
Claus Gittinger <cg@exept.de>
parents: 10892
diff changeset
  2968
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2969
    (changedObject == classHolder
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2970
    or:[changedObject == versionAHolder
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  2971
    or:[changedObject == versionBHolder]]) ifTrue:[
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2972
        self setupForClass:(classHolder value) versionA:(versionAHolder value) versionB:(versionBHolder value).
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2973
        ^ self
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2974
    ].
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  2975
    super update:something with:parameter from:changedObject
10703
Claus Gittinger <cg@exept.de>
parents: 10693
diff changeset
  2976
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  2977
    "Modified: / 17-07-2012 / 17:48:58 / cg"
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2978
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2979
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2980
updateLabels
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2981
    "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
  2982
     of the class."
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2983
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2984
    |theVersionA theVersionB builder makeLabel|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2985
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2986
    makeLabel :=
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2987
        [:theVersion |
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2988
            |label date author revInfo|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2989
            
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2990
            label := theVersion.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2991
            versionInfoList notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2992
                revInfo := versionInfoList detect:[:info | (info at:#revision) = theVersion] ifNone:nil.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2993
                revInfo notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2994
                    date := (Timestamp readGeneralizedFrom:(revInfo at:#date)) asDate.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2995
                    author := (revInfo at:#author) ? '?'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2996
                    label := theVersion , ' [',date printString,' by ',author,']'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2997
                ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2998
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  2999
            label
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3000
        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3001
        
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3002
    builder := self builder.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3003
    (theVersionA := self versionA) notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3004
        self diffTextLabelA value:(makeLabel value:theVersionA).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3005
        self onlyInALabelHolder value:('Only in ' , theVersionA).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3006
        (self componentAt:#OnlyInALabel)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3007
            foregroundColor:Color white;
18676
e64b91a4aeb1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18674
diff changeset
  3008
            backgroundColor:Color darkGreen.
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3009
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3010
    (theVersionB :=self versionB) notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3011
        self diffTextLabelB value:(makeLabel value:theVersionB).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3012
        self onlyInBLabelHolder value:('Only in ' , theVersionB).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3013
        (self componentAt:#OnlyInBLabel)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3014
            foregroundColor:Color white;
18676
e64b91a4aeb1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18674
diff changeset
  3015
            backgroundColor:Color darkRed.
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3016
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3017
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3018
    self changedLabelHolder value:('Different').
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3019
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3020
    "Modified: / 13-10-2006 / 01:07:08 / cg"
18676
e64b91a4aeb1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18674
diff changeset
  3021
    "Modified: / 13-03-2019 / 21:19:13 / Claus Gittinger"
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3022
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3023
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3024
updateLists
17944
58da3a446bc2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17931
diff changeset
  3025
    "walk over the changeSet(s) and setup the 3 lists:
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3026
     onlyInA, changed, onlyInB,
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3027
     Optionally filter extensions, categoryChanges and versionMethods,
17350
9b2d4f4433cf #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17349
diff changeset
  3028
     changes with same semantic (variable renames)
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3029
     and changes which have been explicitly filtered by the user."
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3030
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3031
    |listOnlyInA listOnlyInB listChanged
17944
58da3a446bc2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17931
diff changeset
  3032
     printStringGenerator "sortBlockForChangeLists" filteredList
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3033
     numIgnoredExtensions numIgnoredVersionMethods 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3034
     info needFilter entryIsForCommentOrFormatOnly
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3035
     isIgnoredChange isIgnored1 isIgnored2 isIgnored3 isIgnored4 isIgnored5 isIgnored6|
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3036
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3037
    printStringGenerator := [:aChange | self printStringForChange:aChange].
17944
58da3a446bc2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17931
diff changeset
  3038
    "/ sortBlockForChangeLists := [:a :b | (printStringGenerator value:a) < (printStringGenerator value:b)].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3039
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3040
    numIgnoredExtensions := numIgnoredVersionMethods := 0.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3041
    needFilter := self includeExtensions not 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3042
                  or:[self includeCategoryChanges not
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3043
                  or:[self includeVersionMethods not]].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3044
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3045
    needFilter ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3046
        isIgnoredChange :=
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3047
            [:change |
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3048
                |packageOfMethodInChange packageOfMethodInImage changeMethod ignored|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3049
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3050
                ignored := false.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3051
                change isMethodCodeChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3052
                    self includeExtensions ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3053
                        packageOfMethodInChange := change package.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3054
                        (packageOfMethodInChange notNil
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3055
                          and:[ packageOfMethodInChange ~= PackageId noProjectID
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3056
                          and:[ change changeClass notNil 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3057
                                and:[ packageOfMethodInChange ~= change changeClass package ]]]) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3058
                            ignored := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3059
                        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3060
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3061
                        changeMethod := change changeMethod.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3062
                        changeMethod notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3063
                            packageOfMethodInImage := changeMethod package.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3064
                            (true "packageOfMethodInImage notNil"
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3065
                              and:[ packageOfMethodInImage ~= PackageId noProjectID
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3066
                              and:[ packageOfMethodInImage ~= changeMethod mclass package ]]) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3067
                                ignored := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3068
                            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3069
                        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3070
                        numIgnoredExtensions := numIgnoredExtensions + (ignored ifTrue:[1] ifFalse:[0]).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3071
                    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3072
                    self includeVersionMethods ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3073
                        (change isMethodChangeForVersionMethod
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3074
                        or:[ change isMethodChangeForExtensionsVersionMethod ]) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3075
                            ignored := true.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3076
                            numIgnoredVersionMethods := numIgnoredVersionMethods + 1
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3077
                        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3078
                    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3079
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3080
                    change isMethodCategoryChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3081
                        self includeCategoryChanges ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3082
                            ignored := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3083
                        ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3084
                    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3085
                ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3086
                ignored.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3087
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3088
    ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3089
        isIgnoredChange := [:change | false].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3090
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3091
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3092
    "/ build a stack of filters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3093
    filteredClassNames notEmptyOrNil ifTrue:[
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3094
        isIgnored1 := isIgnoredChange. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3095
        isIgnoredChange := 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3096
            [:change | 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3097
                (isIgnored1 value:change)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3098
                or:[ 
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3099
                    filteredClassNames includes:change nonMetaClassName 
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3100
                ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3101
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3102
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3103
    filteredSelectors notEmptyOrNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3104
        isIgnored2 := isIgnoredChange. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3105
        isIgnoredChange := 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3106
            [:change | 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3107
                (isIgnored2 value:change)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3108
                or:[ filteredSelectors includes:change changeSelector ]
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3109
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3110
    ].
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3111
    filteredMethodNames notEmptyOrNil ifTrue:[
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3112
        isIgnored3 := isIgnoredChange. 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3113
        isIgnoredChange := 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3114
            [:change | 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3115
                (isIgnored3 value:change)
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3116
                or:[ 
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3117
                    filteredMethodNames contains:[:filter |
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3118
                        |filterSelector filterClassName|
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3119
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3120
                        "/ migration - will be always an assoc
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3121
                        filter isAssociation ifTrue:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3122
                            filterClassName := filter key.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3123
                            filterSelector := filter value.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3124
                        ] ifFalse:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3125
                            filterClassName := filter className.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3126
                            filterSelector := filter changeSelector.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3127
                        ].    
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3128
                        ((change className = filterClassName)
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3129
                        and:[change changeSelector = filterSelector])
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3130
                    ]
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3131
                ]
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3132
            ].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3133
    ].
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3134
    filteredClassNamePatterns notEmptyOrNil ifTrue:[
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3135
        isIgnored4 := isIgnoredChange. 
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3136
        isIgnoredChange := 
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3137
            [:change | 
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3138
                (isIgnored4 value:change)
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3139
                or:[ 
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3140
                    filteredClassNamePatterns contains:[:pattern | pattern match:change nonMetaClassName]
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3141
                ]
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3142
        ].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3143
    ].
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3144
    filteredSelectorPatterns notEmptyOrNil ifTrue:[
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3145
        isIgnored5 := isIgnoredChange. 
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3146
        isIgnoredChange := 
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3147
            [:change | 
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3148
                (isIgnored5 value:change)
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3149
                or:[ 
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3150
                    filteredSelectorPatterns contains:[:pattern | pattern match:change changeSelector]
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3151
                ]
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3152
        ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3153
    ].
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3154
    filteredOwnerClassNames notEmptyOrNil ifTrue:[
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3155
        isIgnored6 := isIgnoredChange. 
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3156
        isIgnoredChange := 
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3157
            [:change | 
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3158
                (isIgnored6 value:change)
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3159
                or:[ 
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3160
                    filteredOwnerClassNames contains:[:ownerName |
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3161
                        change nonMetaClassName startsWith:(ownerName,'::')
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3162
                    ]
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3163
                ]
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3164
            ].
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3165
    ]. 
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3166
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3167
    listOnlyInA := filteredList := self methodsOnlyInA.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3168
    listOnlyInA removeAll.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3169
    classChangeSet notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3170
        "/ classChangeSet methodsOnlyInA sort:sortBlockForChangeLists.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3171
        filteredList := classChangeSet methodsOnlyInA reject:isIgnoredChange.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3172
        listOnlyInA addAll: (filteredList collect:printStringGenerator).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3173
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3174
    methodsOnlyInAFiltered := filteredList.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3175
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3176
    listOnlyInB := filteredList := self methodsOnlyInB.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3177
    listOnlyInB removeAll.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3178
    classChangeSet notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3179
        "/ classChangeSet methodsOnlyInB sort:sortBlockForChangeLists.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3180
        filteredList := classChangeSet methodsOnlyInB reject:isIgnoredChange.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3181
        listOnlyInB addAll: (filteredList collect:printStringGenerator).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3182
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3183
    methodsOnlyInBFiltered := filteredList.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3184
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3185
    entryIsForCommentOrFormatOnly :=
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3186
        [:entry |
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3187
            |commentOnly changeA changeB mthdA mthdB|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3188
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3189
            commentOnly := false.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3190
            
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3191
            changeA := entry first.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3192
            changeB := entry second.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3193
            changeA isMethodChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3194
                changeA isMethodCodeChange ifTrue:[
17414
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  3195
                    RBCodeDuplicationRule notNil ifTrue:[
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  3196
                        mthdA := RBMethod forMethodChange:changeA.
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  3197
                        mthdB := RBMethod forMethodChange:changeB.
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  3198
                        commentOnly := RBCodeDuplicationRule hasMethod:mthdA sameSemanticAs:mthdB.
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  3199
                    ].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3200
                ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3201
                    changeA isMethodCategoryChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3202
                        commentOnly := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3203
                    ] ifFalse:[    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3204
                        self breakPoint:#cg
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3205
                    ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3206
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3207
            ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3208
                changeA isClassDefinitionChange ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3209
                    changeA source = changeB source ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3210
                        commentOnly := true
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3211
                    ] ifFalse:[
19351
b6350f5d7ae3 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 19250
diff changeset
  3212
                        "/ self breakPoint:#cg
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3213
                    ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3214
                ] ifFalse:[    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3215
                    self breakPoint:#cg
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3216
                ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3217
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3218
            commentOnly
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3219
        ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3220
        
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3221
    listChanged := filteredList := self methodsChanged.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3222
    listChanged removeAll.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3223
    classChangeSet notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3224
        "/ 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
  3225
        filteredList := classChangeSet methodsChanged reject:[:entry | isIgnoredChange value:entry first].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3226
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3227
        (self hideDiffsWithCommentOrFormattingChangeOnly) ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3228
            filteredList := filteredList reject:entryIsForCommentOrFormatOnly.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3229
            listChanged addAll: (filteredList collect:[:entry| printStringGenerator value:(entry first)]).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3230
        ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3231
            filteredList do:[:entry| 
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3232
                |string|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3233
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3234
                string := printStringGenerator value:(entry first).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3235
                (entryIsForCommentOrFormatOnly value:entry) ifTrue:[
19093
6dd45ef2232d #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 18992
diff changeset
  3236
                    string := string allGray.
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3237
                ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3238
                listChanged add:string
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3239
            ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3240
        ].    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3241
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3242
    methodsChangedFiltered := filteredList.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3243
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3244
    self boxAVisible value:(listOnlyInA notEmpty).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3245
    self boxBVisible value:(listOnlyInB notEmpty).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3246
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3247
    self boxMVisible value:(listChanged isEmpty
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3248
                            and: [(listOnlyInA notEmpty
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3249
                                  or:[listOnlyInB notEmpty])]) not.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3250
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3251
    info := '%1 changed, %2 added, %3 removed%4'
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3252
            bindWith:methodsChangedFiltered size
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3253
            with:methodsOnlyInB size
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3254
            with:methodsOnlyInA size
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3255
            with:(isIgnoredChange isNil
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3256
                    ifTrue:['']
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3257
                    ifFalse:[' (filtered)']).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3258
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3259
    numIgnoredExtensions ~~ 0 ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3260
        info := info , ('; %1 extension methods ignored. ' bindWith:numIgnoredExtensions).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3261
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3262
    numIgnoredVersionMethods ~~ 0 ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3263
        info := info , ('; %1 version methods ignored.' bindWith:numIgnoredVersionMethods).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3264
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3265
    self information:info
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3266
17350
9b2d4f4433cf #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17349
diff changeset
  3267
    "Modified (comment): / 06-02-2017 / 10:09:11 / cg"
17414
809f41b5b48c #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 17397
diff changeset
  3268
    "Modified (format): / 16-02-2017 / 11:11:49 / stefan"
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3269
!
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3270
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3271
updateVersionList
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3272
    "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
  3273
     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
  3274
     and tagList (containing symbolic names only).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3275
     This is only used when comparing multiple versions."
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3276
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3277
    |cls sourceCodeManager numShown newNumShown numOverallRevisions
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3278
     partialLog newestRev revisions revisionEntries symbolicNames
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3279
     stableRevision releasedRevision tagList logMessages|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3280
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3281
    cls := classHolder value.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3282
    cls isNil ifTrue:[
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3283
        symbolicVersionList contents:#().
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3284
        symbolicVersionNameList contents:#().
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3285
        self versionList contents:#().
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3286
        self versionEntriesList contents:#().
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3287
        ^ self
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3288
    ]. 
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3289
 
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3290
    sourceCodeManager := cls sourceCodeManager.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3291
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3292
    numShown := versionList size - 1.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3293
    newNumShown := (numShown + 50) max:30.
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3294
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3295
    infoHolder value:'Getting version log...'.
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3296
    partialLog := sourceCodeManager revisionLogOf:cls numberOfRevisions:newNumShown.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3297
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3298
    partialLog isNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3299
        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
  3300
This could be due to:
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3301
    - invalid/wrong CVS-Root setting
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3302
    - missing CVS access rights
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3303
        (no access / not logged in)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3304
    - changed CVSRoot after compilation
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3305
        (i.e. wrong CVS-path in classes version method)
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3306
'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3307
        ^ nil
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3308
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3309
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3310
    numOverallRevisions := partialLog at:#numberOfRevisions.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3311
    newestRev := partialLog at:#newestRevision.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3312
    revisions := partialLog at:#revisions.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3313
    
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3314
    "/ fetch the symbolic (tag) version list
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3315
    symbolicNames := partialLog at:#symbolicNames ifAbsent:[].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3316
    symbolicNames notNil ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3317
        stableRevision := symbolicNames at:'stable' ifAbsent:[].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3318
        releasedRevision := symbolicNames at:'released' ifAbsent:[].
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3319
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3320
        tagList := ((symbolicNames associations 
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3321
                        sort:[:a :b | sourceCodeManager versionString:(a value) isLessThan:(b value)])
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3322
                            collect:[:assoc | assoc key]) reverse.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3323
"/        tagList := ((symbolicNames associations 
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3324
"/                        sort:[:a :b | a key < b key])
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3325
"/                            collect:[:assoc | assoc key]) reverse.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3326
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3327
        tagList remove:'stable' ifAbsent:[].
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3328
        stableRevision notNil ifTrue:[
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3329
            tagList notEmpty ifTrue:[tagList addFirst:'-'].
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3330
            tagList addFirst:'stable'.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3331
        ].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3332
    ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3333
    logMessages := Dictionary new.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3334
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3335
    versionInfoList := revisions.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3336
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3337
"/    items := versionInfoList collect:[:each | |rev date who flag|
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3338
"/                                    rev := each at:#revision.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3339
"/                                    logMessages at:rev put:(each at:#logMessage).
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3340
"/                                    date := (each at:#date ifAbsent:nil) ? '?'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3341
"/                                    who := (each at:#author ifAbsent:nil) ? '?'.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3342
"/                                    rev = stableRevision ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3343
"/                                        flag := ' Stable' allBold.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3344
"/                                    ] ifFalse:[rev = releasedRevision ifTrue:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3345
"/                                        flag := ' Released' allBold.
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3346
"/                                    ] ifFalse:[
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3347
"/                                        flag := ' '
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3348
"/                                    ]].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3349
"/                                    rev allBold , flag, ' [' , date , ' by ' , who , ']'
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3350
"/                               ].
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3351
"/
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3352
"/    revisions := revisions collect:[:eachItem | eachItem at:#revision].
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3353
    revisions := OrderedCollection new.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3354
    revisionEntries := OrderedCollection new.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3355
    versionInfoList do:[:eachVersionInfo |
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3356
        revisions add:eachVersionInfo revision.
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3357
        revisionEntries add:(
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3358
                    (eachVersionInfo revision)
19517
f620ffc54f66 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19486
diff changeset
  3359
                    , ((' (by %1 at %2)' 
f620ffc54f66 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 19486
diff changeset
  3360
                        bindWith:(eachVersionInfo user)
19093
6dd45ef2232d #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 18992
diff changeset
  3361
                        with:(eachVersionInfo date)) allGray)).
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3362
    ].
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3363
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3364
    revisions size < numOverallRevisions ifTrue:[
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3365
        revisions add:'...'.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3366
        revisionEntries add:'...'.
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3367
    ].          
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3368
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3369
    symbolicToVersionMapping := symbolicNames.
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3370
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3371
    symbolicVersionList contents:tagList.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3372
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3373
    symbolicVersionNameList 
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3374
        contents:(
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3375
            tagList 
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3376
                collect:[:eachSymbolic |
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3377
                    |versionsString|
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3378
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3379
                    eachSymbolic = '-' ifTrue:[
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3380
                        eachSymbolic.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3381
                    ] ifFalse:[    
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3382
                        versionsString := symbolicToVersionMapping at:eachSymbolic ifAbsent:'<<none>>'.
19093
6dd45ef2232d #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 18992
diff changeset
  3383
                        eachSymbolic,((' (',versionsString,')') allGray)
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3384
                    ]
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3385
                ]).
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  3386
    self versionList contents:revisions.
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3387
    self versionEntriesList contents:revisionEntries.
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3388
    infoHolder value:'Done.'.
17827
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3389
cc7a2ad961f7 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17802
diff changeset
  3390
    "Modified: / 29-11-2017 / 13:06:21 / cg"
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3391
    "Modified: / 28-05-2019 / 15:53:36 / Claus Gittinger"
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3392
! !
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  3393
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3394
!VersionDiffBrowser methodsFor:'initialization & release'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3395
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3396
initialize
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3397
    super initialize.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3398
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3399
    isMultipleVersionBrowser := false.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3400
    isMultipleClassesVersionBrowser := false.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3401
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3402
    onlyInALabelHolder := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3403
    onlyInBLabelHolder := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3404
    changedLabelHolder := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3405
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3406
    diffTextLabelA := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3407
    diffTextLabelB := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3408
    infoHolder := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3409
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3410
    methodText := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3411
    methodsChanged := List new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3412
    methodsOnlyInA := List new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3413
    methodsOnlyInB := List new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3414
    methodsChangedSelection := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3415
    methodsOnlyInASelection := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3416
    methodsOnlyInBSelection := ValueHolder new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3417
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3418
    boxAVisible := true asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3419
    boxBVisible := true asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3420
    boxMVisible := true asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3421
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3422
    selectedSymbolicVersionIndexHolder := nil asValue.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3423
    selectedSymbolicVersionIndexHolder onChangeSend:#selectedSymbolicVersionIndexHolderChanged to:self.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3424
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3425
    selectedSymbolicVersionHolder := nil asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3426
    selectedSymbolicVersionHolder onChangeSend:#selectedSymbolicVersionHolderChanged to:self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3427
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3428
    selectedVersionIndexHolder := nil asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3429
    selectedVersionIndexHolder onChangeSend:#selectedVersionIndexHolderChanged to:self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3430
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3431
    selectedVersionHolder := nil asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3432
    selectedVersionHolder onChangeSend:#selectedVersionHolderChanged to:self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3433
      
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3434
    symbolicVersionList := List new.
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3435
    symbolicVersionNameList := List new.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3436
    versionEntriesList := List new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3437
    versionList := List new.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3438
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3439
    canIncludeExtensionsHolder := true asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3440
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3441
    includeCategoryChangesHolder := true asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3442
    includeCategoryChangesHolder addDependent:self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3443
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3444
    includeExtensionsHolder := false asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3445
    includeExtensionsHolder addDependent:self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3446
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3447
    includeVersionMethodsHolder := true asValue.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3448
    includeVersionMethodsHolder addDependent:self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3449
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3450
    "Created: / 08-05-2019 / 10:59:30 / Claus Gittinger"
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  3451
    "Modified: / 28-05-2019 / 15:32:21 / Claus Gittinger"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3452
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3453
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3454
postBuildWith:aBuilder
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3455
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3456
    components which are invisible should be ignored by the panel.
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3457
    Cannot be set via the interface builder.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3458
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3459
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3460
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  3461
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3462
    (self componentAt:#MethodListsPanel) ignoreInvisibleComponents:true.
6642
108b83a88516 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6272
diff changeset
  3463
    super postBuildWith:aBuilder
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3464
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3465
    "Modified: / 08-05-2019 / 11:38:34 / Claus Gittinger"
14076
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3466
!
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3467
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3468
postOpenWith:aBuilder
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3469
    super postOpenWith:aBuilder.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3470
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3471
    self isMultipleVersionBrowser ifTrue:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3472
        self withWaitCursorDo:[
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3473
            self updateVersionList.
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3474
        ]
fbed27a15014 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
  3475
    ]
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3476
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3477
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  3478
!VersionDiffBrowser methodsFor:'menu actions'!
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3479
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3480
browseChange:aChange
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3481
    "browse the change in aChange"
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3482
17663
c59edc00bb70 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17463
diff changeset
  3483
    |cls sel|
2650
447c99ac6f76 oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
  3484
2578
29264fb3847e avoid debugger in browse-menu
Claus Gittinger <cg@exept.de>
parents: 2536
diff changeset
  3485
    aChange isNil ifTrue:[^ self].
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3486
2650
447c99ac6f76 oops - inspect & browse menu was broken.
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
  3487
    cls := aChange changeClass.
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  3488
    cls isNil ifTrue:[
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  3489
        Dialog information:'The class is not present in the image'.
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  3490
        ^ self
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  3491
    ].
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3492
    aChange isMethodChange ifTrue:[
11962
1d931eea22af class definition
Claus Gittinger <cg@exept.de>
parents: 11961
diff changeset
  3493
        sel := aChange changeSelector.
7396
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3494
"/        (cls compiledMethodAt:sel) isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3495
"/            (self confirm:'Method does not exist.\\Browse Class ?' withCRs) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3496
"/                browserClass openInClass:cls
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3497
"/            ].
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3498
"/            sel := nil.
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3499
"/        ]
Claus Gittinger <cg@exept.de>
parents: 7364
diff changeset
  3500
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3501
    self withWaitCursorDo:[
17663
c59edc00bb70 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17463
diff changeset
  3502
        SystemBrowser default openInClass:cls selector:sel.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3503
    ]
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3504
17663
c59edc00bb70 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 17463
diff changeset
  3505
    "Modified (format): / 01-09-2017 / 14:23:56 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3506
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3507
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3508
browseClassInA
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3509
    "browse the selected method."
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3510
    self browseChange:(self selectedChangeInA).
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3511
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3512
    "Modified: / 25-07-2006 / 11:14:02 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3513
!
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3514
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3515
browseClassInB
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3516
    "browse the selected method."
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3517
    self browseChange:(self selectedChangeInB).
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3518
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3519
    "Modified: / 25-07-2006 / 11:13:58 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3520
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3521
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3522
browseClassInM
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3523
    "browse the selected method."
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  3524
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3525
    self browseChange:(self selectedChangesInM first).
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  3526
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3527
    "Modified: / 25-07-2006 / 11:13:54 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3528
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  3529
2469
c78e7a79df34 apply; methodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2468
diff changeset
  3530
createPatchFile
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3531
    "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
  3532
     I.e. a little changeFile to transport those changes."
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  3533
18992
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3534
    self createPatchFileWithVersionCheck:false
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3535
!
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3536
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3537
createPatchFileWithVersionCheck:withVersionCheck
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3538
    "create a patchFile, to patch the old version (versionA) into the new version (versionB).
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3539
     I.e. a little changeFile to transport those changes."
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3540
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3541
    |defaultName diffSet f oldVersion newVersion 
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3542
     vsnMthdA vsnMthdB vsnA vsnB info classBeingCompared|
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3543
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3544
    classChangeSet isNil ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3545
        self warn:'No changes'.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3546
        ^ self
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3547
    ].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3548
    
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3549
    classBeingCompared := classChangeSet classBeingCompared.
18992
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3550
    "/ defaultName := 'patchFile.chg'.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3551
    defaultName := '%1-%2-to-%3.chg'
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3552
                        bindWith:(classBeingCompared isNil ifTrue:['unknown'] ifFalse:[classBeingCompared nameWithoutPrefix])
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3553
                        with:(classChangeSet versionA ? 'old')
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3554
                        with:(classChangeSet versionB ? 'new').
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  3555
    f := Dialog
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3556
            requestFileNameForSave:'Name of patchFile:'
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3557
            default:defaultName.
18992
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3558
    f isEmptyOrNil ifTrue:[^ self].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3559
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  3560
    diffSet := classChangeSet diffSet.
18992
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3561
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3562
    withVersionCheck ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3563
        vsnMthdA := self changeSetA
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3564
                    detect:[:ch | ch isMethodChange
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3565
                                  and:[ch changeClass isMeta
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3566
                                  and:[ch changeSelector = #version]]]
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3567
                    ifNone:nil.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3568
        vsnMthdB := self changeSetA
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3569
                    detect:[:ch | ch isMethodChange
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3570
                                  and:[ch changeClass isMeta
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3571
                                  and:[ch changeSelector = #version]]]
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3572
                    ifNone:nil.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3573
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3574
        vsnMthdA notNil ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3575
            "/ extract the version
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3576
            vsnA := Class revisionStringFromSource:vsnMthdA source.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3577
            vsnA notNil ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3578
                info := Class revisionInfoFromString:vsnA.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3579
                info notNil ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3580
                    vsnA := info at:#revision ifAbsent:nil.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3581
                ] ifFalse:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3582
                    vsnA := nil.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3583
                ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3584
            ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3585
        ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3586
        vsnMthdB notNil ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3587
            "/ extract the version
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3588
            vsnB := Class revisionStringFromSource:vsnMthdB source.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3589
            vsnB notNil ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3590
                info := Class revisionInfoFromString:vsnB.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3591
                info notNil ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3592
                    vsnB := info at:#revision ifAbsent:nil.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3593
                ] ifFalse:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3594
                    vsnB := nil.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3595
                ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3596
            ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3597
        ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3598
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3599
        (vsnA isNil or:[vsnB isNil or:[vsnA = vsnB]]) ifTrue:[
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3600
            self warn:'The generated patch file will not be able to validate/update the class version'.
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3601
        ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3602
    ].
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3603
8f39b8d32487 #UI_ENHANCEMENT by exept
Claus Gittinger <cg@exept.de>
parents: 18991
diff changeset
  3604
self halt:'not yet finished'.
6828
034ea2c4c22a comments
Claus Gittinger <cg@exept.de>
parents: 6792
diff changeset
  3605
9602
46d76851e419 changed: #createPatchFile
Claus Gittinger <cg@exept.de>
parents: 9587
diff changeset
  3606
    "Modified: / 27-10-2010 / 11:34:58 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3607
    "Modified (format): / 08-05-2019 / 11:48:57 / Claus Gittinger"
2469
c78e7a79df34 apply; methodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2468
diff changeset
  3608
!
c78e7a79df34 apply; methodCategoryChange
Claus Gittinger <cg@exept.de>
parents: 2468
diff changeset
  3609
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3610
hideDiffsWithCommentOrFormattingChangeOnlyHolder:newValue
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3611
    "state of hide changes which have no semantic effect has changed"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3612
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3613
    self updateLists.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3614
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3615
    "Created: / 04-02-2017 / 19:50:51 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3616
    "Modified: / 04-02-2017 / 23:14:45 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3617
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3618
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3619
inspectSelectedChangeInA
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3620
    "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
  3621
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3622
    self selectedChangeInA inspect.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3623
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3624
    "Modified: / 25-07-2006 / 11:13:30 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3625
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3626
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3627
inspectSelectedChangeInB
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3628
    "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
  3629
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3630
    self selectedChangeInB inspect.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3631
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3632
    "Modified: / 25-07-2006 / 11:13:22 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3633
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3634
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3635
inspectSelectedChangeInM
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3636
    "inspect the two method changes for the selected 'changed method'."
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3637
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3638
    |changes|
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3639
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3640
    changes := self selectedChangesInM.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3641
    changes do:[:change |
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3642
	change inspect
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3643
    ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3644
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3645
    "Modified: / 25-07-2006 / 11:13:13 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3646
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3647
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3648
mainMenu
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3649
    "if this application runs as an subapplication,
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3650
     the menu bar should not be used."
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3651
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3652
    self masterApplication isNil ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3653
	^ self class mainMenu
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3654
    ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3655
    ^ nil
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3656
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3657
    "Modified: / 25-07-2006 / 11:13:44 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3658
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3659
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3660
menuAHolder
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3661
    ^ [ self class menuA ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3662
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3663
    "Created: / 05-02-2017 / 10:07:15 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3664
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3665
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3666
menuBHolder
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3667
    ^ [ self class menuB ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3668
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3669
    "Created: / 05-02-2017 / 10:07:22 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3670
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3671
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3672
menuMHolder
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3673
    ^ [ self class menuM ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3674
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3675
    "Created: / 05-02-2017 / 10:07:36 / cg"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3676
!
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3677
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3678
menuRemoveClassFromChangeSet
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3679
    |cls ok changedClasses|
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3680
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3681
    classChangeSet notNil ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3682
        "/ only do if we compare a single class
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3683
        (cls := classChangeSet classBeingCompared) notNil ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3684
            ok := classChangeSet diffSet isEmptyOrNil.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3685
            ok ifFalse:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3686
                changedClasses := classChangeSet diffSet changedClasses.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3687
                (changedClasses size == 1
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3688
                and:[ changedClasses anElement theNonMetaclass == cls theNonMetaclass]) ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3689
                    (methodsChangedFiltered isEmptyOrNil
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3690
                    and:[ methodsOnlyInAFiltered isEmptyOrNil
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3691
                    and:[ methodsOnlyInBFiltered isEmptyOrNil ]]) ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3692
                        ok := true.
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3693
                    ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3694
                ]
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3695
            ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3696
            ok ifTrue:[
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3697
                ChangeSet current condenseChangesForClass:cls
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3698
            ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3699
        ].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3700
    ].
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3701
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3702
    "Created: / 08-05-2019 / 11:35:37 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3703
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3704
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3705
menuSelectClass
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3706
    "let user choose a class to be shown"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3707
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3708
    |cls|
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3709
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3710
    cls := Dialog requestClass:'Class to show versions'.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3711
    cls isNil ifTrue:[^ self].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3712
    
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3713
    self classHolder:(cls asValue).
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3714
    classHolder changed.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3715
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3716
    "Created: / 08-05-2019 / 11:44:00 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3717
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3718
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3719
openDocumentation
19250
3b2a5ea6a056 #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 19157
diff changeset
  3720
    "Called when <F1> is pressed"
3b2a5ea6a056 #OTHER by exept
Claus Gittinger <cg@exept.de>
parents: 19157
diff changeset
  3721
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3722
    HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#VERSIONDIFF'
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3723
! !
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3724
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  3725
!VersionDiffBrowser methodsFor:'menu actions - filters'!
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3726
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3727
currentFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3728
    "get the current settings"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3729
    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3730
    |filterParameters|
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3731
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3732
    "/ migration - will be removed
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3733
    filteredMethodNames notEmptyOrNil ifTrue:[
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3734
        filteredMethodNames := filteredMethodNames
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3735
                            collect:[:filter |
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3736
                                filter isAssociation ifTrue:[
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3737
                                    filter.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3738
                                ] ifFalse:[
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3739
                                    filter className ->filter changeSelector.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3740
                                ].    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3741
                            ].        
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3742
    ].
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3743
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3744
    filterParameters := FilterParameters new.
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3745
    filterParameters filteredClassNameMatchPattern:filteredClassNamePatterns.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3746
    filterParameters filteredSelectorMatchPattern:filteredSelectorPatterns.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3747
    filterParameters filteredClassNames:filteredClassNames.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3748
    filterParameters filteredOwnerClassNames:filteredOwnerClassNames.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3749
    filterParameters filteredMethodNames:filteredMethodNames.
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3750
    filterParameters filteredSelectors:filteredSelectors.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3751
    filterParameters filterChangedBefore:filterChangedBefore.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3752
    filterParameters filterChangedAfter:filterChangedAfter.
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3753
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3754
    ^ filterParameters.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3755
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3756
    "Created: / 06-02-2017 / 09:20:07 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3757
    "Modified: / 08-05-2019 / 13:19:46 / Claus Gittinger"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3758
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3759
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3760
exportFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3761
    "generate XML with the current settings
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3762
     (to be pasted into Jabber for interchange)"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3763
    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3764
    |filterParameters|
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3765
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3766
    XMLStandardCoder isNil ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3767
        Smalltalk loadPackage:'stx:goodies/xml/stx'.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3768
    ].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3769
    
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3770
    filterParameters := self currentFilterParameters.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3771
    Workspace 
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3772
        openWith:(XMLStandardCoder encode:filterParameters)
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3773
        title:'Current Filter'
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3774
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3775
    "Created: / 06-02-2017 / 09:19:52 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3776
    "Modified: / 08-05-2019 / 11:56:31 / Claus Gittinger"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3777
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  3778
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3779
filterClassAndPrivateClassesInA
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3780
    "filter all changes for the selected change's class and its private classes (don't show it)."
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3781
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3782
    self filterClassAndPrivateClassesNamed:(self selectedChangeInA nonMetaClassName)
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3783
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3784
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3785
filterClassAndPrivateClassesInB
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3786
    "filter all changes for the selected change's class and its private classes (don't show it)."
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3787
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3788
    self filterClassAndPrivateClassesNamed:(self selectedChangeInB nonMetaClassName)
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3789
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3790
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3791
filterClassAndPrivateClassesInM
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3792
    "filter all changes for the selected change's class and its private classes (don't show it)."
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3793
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3794
    self filterClassAndPrivateClassesNamed:(self selectedChangesInM first nonMetaClassName)
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3795
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3796
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3797
filterClassAndPrivateClassesNamed:nonMetaClassName
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3798
    "filter all changes for the given class and its private classes (don't show it)."
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3799
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3800
    filteredOwnerClassNames isNil ifTrue:[
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3801
        filteredOwnerClassNames := Set new.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3802
    ].    
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3803
    filteredOwnerClassNames add:nonMetaClassName.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3804
    self filterChanged.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3805
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3806
    "Created: / 05-02-2017 / 10:16:45 / cg"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3807
    "Modified: / 05-02-2017 / 11:19:02 / cg"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3808
    "Modified (comment): / 06-02-2017 / 09:13:29 / cg"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3809
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3810
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3811
filterClassInA
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3812
    "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
  3813
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3814
    self filterClassNamed:(self selectedChangeInA nonMetaClassName)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3815
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3816
    "Created: / 05-02-2017 / 10:17:22 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3817
    "Modified: / 05-02-2017 / 11:19:05 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3818
    "Modified (comment): / 06-02-2017 / 09:13:23 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3819
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3820
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3821
filterClassInB
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3822
    "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
  3823
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3824
    self filterClassNamed:(self selectedChangeInB nonMetaClassName)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3825
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3826
    "Created: / 05-02-2017 / 10:16:45 / cg"
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3827
    "Modified: / 05-02-2017 / 11:19:02 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3828
    "Modified (comment): / 06-02-2017 / 09:13:29 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3829
!
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
filterClassInM
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3832
    "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
  3833
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3834
    self filterClassNamed:(self selectedChangesInM first nonMetaClassName)
17341
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
    "Created: / 05-02-2017 / 10:38:06 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3837
    "Modified (comment): / 06-02-2017 / 09:13:33 / cg"
17341
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
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3840
filterClassNamed:nonMetaClassName
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3841
    "filter all changes for the given class (don't show it)."
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3842
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3843
    filteredClassNames isNil ifTrue:[
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3844
        filteredClassNames := Set new.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3845
    ].    
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3846
    filteredClassNames add:nonMetaClassName.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3847
    self filterChanged.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3848
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3849
    "Created: / 05-02-2017 / 10:16:45 / cg"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3850
    "Modified: / 05-02-2017 / 11:19:02 / cg"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3851
    "Modified (comment): / 06-02-2017 / 09:13:29 / cg"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3852
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3853
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3854
filterClassesMatching
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3855
    "ask for a GLOB pattern;
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3856
     filter all changes with matching classnames ."
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3857
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3858
   |pattern|
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3859
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3860
    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
  3861
    pattern isEmptyOrNil ifTrue:[^ self].
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3862
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3863
    filteredClassNamePatterns isNil ifTrue:[
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3864
        filteredClassNamePatterns := OrderedCollection new.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3865
    ].
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3866
    filteredClassNamePatterns add:pattern.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3867
    self filterChanged
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3868
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3869
    "Created: / 05-02-2017 / 11:11:42 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3870
    "Modified: / 06-02-2017 / 09:18:15 / cg"
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3871
!
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3872
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3873
filterMethod:aChange
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3874
    "filter this change (don't show it)."
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3875
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3876
    filteredMethodNames isNil ifTrue:[
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3877
        filteredMethodNames := Set new.
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3878
    ]. 
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3879
    aChange isMethodChange ifTrue:[
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3880
        filteredMethodNames add:(aChange className -> aChange changeSelector).
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3881
    ] ifFalse:[
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3882
    ].
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3883
    
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3884
    self filterChanged.
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3885
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3886
    "Created: / 06-02-2017 / 08:58:17 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3887
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3888
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3889
filterMethodInA
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3890
    "filter this entry (don't show it)."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3891
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3892
    self filterMethod:(self selectedChangeInA)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3893
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3894
    "Created: / 05-02-2017 / 10:11:48 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3895
    "Modified: / 06-02-2017 / 08:58:38 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3896
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3897
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3898
filterMethodInB
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3899
    "filter this entry (don't show it)."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3900
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3901
    self filterMethod:(self selectedChangeInB)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3902
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3903
    "Created: / 05-02-2017 / 10:15:57 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3904
    "Modified: / 06-02-2017 / 08:58:46 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3905
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3906
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3907
filterMethodInM
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3908
    "filter this entry (don't show it)."
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3909
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3910
    self filterMethod:(self selectedChangesInM first)
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3911
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3912
    "Created: / 05-02-2017 / 10:39:10 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3913
    "Modified: / 06-02-2017 / 08:58:59 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3914
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3915
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3916
filterSelectorFromA
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3917
    "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
  3918
18094
ea60fb3ce08a #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18034
diff changeset
  3919
    self filterSelectorFromSet:{self selectedChangeInA}
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3920
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3921
    "Created: / 05-02-2017 / 10:36:08 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3922
    "Modified (comment): / 06-02-2017 / 09:13:48 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3923
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3924
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3925
filterSelectorFromB
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3926
    "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
  3927
18094
ea60fb3ce08a #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18034
diff changeset
  3928
    self filterSelectorFromSet:{self selectedChangeInB}
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3929
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3930
    "Created: / 05-02-2017 / 10:36:14 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3931
    "Modified (comment): / 06-02-2017 / 09:13:52 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3932
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3933
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3934
filterSelectorFromChange:aChange
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3935
    "common to set a filter;
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3936
     gets the change as argument,
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3937
     takes its selector and adds it to the filters"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3938
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3939
    filteredSelectors isNil ifTrue:[
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3940
        filteredSelectors := Set new.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3941
    ].    
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3942
    filteredSelectors add:(aChange changeSelector).
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3943
    self filterChanged.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3944
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3945
    "Created: / 05-02-2017 / 10:39:28 / cg"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3946
    "Modified (comment): / 06-02-2017 / 09:13:55 / cg"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3947
!
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3948
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3949
filterSelectorFromM
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3950
    "filter all changes for the selected change's selector(don't show it)."
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3951
18094
ea60fb3ce08a #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18034
diff changeset
  3952
    self filterSelectorFromSet:{self selectedChangesInM}
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3953
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3954
    "Created: / 05-02-2017 / 10:39:28 / cg"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3955
    "Modified (comment): / 06-02-2017 / 09:13:55 / cg"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3956
!
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3957
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3958
filterSelectorFromSet:setOfChanges
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3959
    "common to set a filter;
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3960
     get the sub-set (A,B,M as argument),
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3961
     takes its first selection and adds it to the filters"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3962
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3963
    filteredSelectors isNil ifTrue:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3964
        filteredSelectors := Set new.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3965
    ].    
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  3966
    filteredSelectors add:(setOfChanges first changeSelector).
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3967
    self filterChanged.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3968
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3969
    "Created: / 05-02-2017 / 10:39:28 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3970
    "Modified (comment): / 06-02-2017 / 09:13:55 / cg"
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3971
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3972
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3973
filterSelectorsMatching
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3974
    "ask for a GLOB pattern;
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3975
     filter all changes with matching selectors."
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3976
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3977
    |pattern|
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3978
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3979
    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
  3980
    pattern isEmptyOrNil ifTrue:[^ self].
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3981
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3982
    filteredSelectorPatterns isNil ifTrue:[
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3983
        filteredSelectorPatterns := OrderedCollection new.
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3984
    ].
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  3985
    filteredSelectorPatterns add:pattern.
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3986
    self filterChanged
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3987
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3988
    "Created: / 06-02-2017 / 02:29:07 / cg"
17348
4b01dfe3fd4b #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17347
diff changeset
  3989
    "Modified: / 06-02-2017 / 09:18:20 / cg"
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3990
!
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  3991
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  3992
forgetFilterNamed
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3993
    "forget a remembered named filter"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  3994
    
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3995
    |filterName filters|
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3996
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  3997
    RememberedFilters isEmptyOrNil ifTrue:[
17952
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  3998
        Dialog warn:'No filter was defined'.
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  3999
        ^ self
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4000
    ].
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4001
    filters := self class rememberedFilters.
17952
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4002
17345
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  4003
    filterName := Dialog 
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  4004
                    request:'Forget Filter Named:' 
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4005
                    list:(filters keys asNewOrderedCollection sort).
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4006
    filterName isEmptyOrNil ifTrue:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4007
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4008
    (Dialog confirm:'Shure to Forget the Filter Named: ',filterName) ifFalse:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4009
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4010
    filters removeKey:filterName.
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  4011
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  4012
    "Created: / 05-02-2017 / 11:12:08 / cg"
17345
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  4013
    "Modified: / 06-02-2017 / 02:17:47 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4014
    "Modified: / 08-05-2019 / 11:53:06 / Claus Gittinger"
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4015
!
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4016
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4017
importFilterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4018
    "ask for XML representation as exported previously.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4019
     (to be pasted from Jabber for interchange)"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4020
    
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4021
    |xml filterParameters|
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4022
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4023
    xml := Dialog requestText:'Paste XML Exported Filter Here and Accept'.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4024
    xml isEmptyOrNil ifTrue:[^ self].
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4025
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4026
    filterParameters := XMLStandardCoder decode:xml.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4027
    (filterParameters isKindOf:FilterParameters) ifTrue:[
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4028
        self setFilterParameters:filterParameters
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4029
    ].
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4030
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4031
    "Created: / 06-02-2017 / 09:51:11 / cg"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4032
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4033
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4034
inspectFilterParameters
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4035
    "inspect the current settings"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4036
    
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4037
    self currentFilterParameters inspect.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4038
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4039
    "Created: / 06-02-2017 / 02:00:55 / cg"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4040
    "Modified: / 06-02-2017 / 09:20:15 / cg"
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  4041
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  4042
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4043
loadFilterNamed
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4044
    "load a remembered named filter"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4045
    
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4046
    |filterName filterParameters filters|
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4047
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4048
    RememberedFilters isEmptyOrNil ifTrue:[
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4049
        Dialog warn:'No filters defined'.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4050
        ^ self.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4051
    ].
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4052
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4053
    filters := self class rememberedFilters.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4054
    
17345
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  4055
    filterName := Dialog 
3d6f4a695823 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17344
diff changeset
  4056
                    request:'Load Filter Named:' 
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4057
                    list:(filters keys asNewOrderedCollection sort).
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4058
    filterName isEmptyOrNil ifTrue:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4059
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4060
    filterParameters := filters at:filterName.
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4061
    self setFilterParameters:filterParameters.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4062
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4063
    "Created: / 06-02-2017 / 01:57:48 / cg"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4064
    "Modified: / 06-02-2017 / 09:51:47 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4065
    "Modified: / 08-05-2019 / 11:53:49 / Claus Gittinger"
11855
52fd36ba842f changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11853
diff changeset
  4066
!
52fd36ba842f changed: #removeClassFromChangeSet
Claus Gittinger <cg@exept.de>
parents: 11853
diff changeset
  4067
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  4068
rememberFilterAs
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4069
    "remember the current settings under a named filter"
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4070
    
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4071
    |filterName filterParameters filters|
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4072
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4073
    filters := self class rememberedFilters.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4074
17346
d0b6964aad35 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17345
diff changeset
  4075
    filterName := Dialog 
d0b6964aad35 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17345
diff changeset
  4076
                    request:'Name of Filter:'
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4077
                    list:(filters keys asNewOrderedCollection sort).
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4078
    filterName isEmptyOrNil ifTrue:[^ self].
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4079
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4080
    filterParameters := self currentFilterParameters.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4081
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4082
    filters at:filterName put:filterParameters.
17344
7902ad271c76 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17342
diff changeset
  4083
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4084
    "Modified: / 06-02-2017 / 09:20:35 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4085
    "Modified: / 08-05-2019 / 11:54:08 / Claus Gittinger"
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4086
!
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4087
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4088
removeAllClassFilters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4089
    "clear all the current class filter (but not named ones)"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4090
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4091
    filteredClassNamePatterns := nil.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4092
    filteredClassNames := nil.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4093
    filteredOwnerClassNames := nil.
17952
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4094
    self filterChanged
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4095
!
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4096
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4097
removeAllSelectorFilters
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4098
    "clear all the current class filter (but not named ones)"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4099
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4100
    filteredSelectorPatterns := nil.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4101
    filteredSelectors := nil.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4102
    self filterChanged
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4103
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4104
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4105
removeClassPatternFilter
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4106
    "clear the current class filter (but not named ones)"
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4107
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4108
    filteredClassNamePatterns := nil.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4109
    self filterChanged
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4110
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4111
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4112
removeSelectorPatternFilter
17952
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4113
    "clear the current selector filter (but not named ones)"
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4114
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4115
    filteredSelectorPatterns := nil.
17952
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4116
    self filterChanged
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4117
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4118
    "Created: / 06-02-2017 / 02:29:07 / cg"
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4119
    "Modified: / 06-02-2017 / 09:18:20 / cg"
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4120
!
b78dac4d2a4c #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17944
diff changeset
  4121
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4122
setFilterChangedAfter:aTimestamp
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4123
    filterChangedAfter := aTimestamp.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4124
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4125
    "Created: / 08-05-2019 / 13:24:11 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4126
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4127
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4128
setFilterChangedBefore:aTimestamp
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4129
    filterChangedBefore := aTimestamp.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4130
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4131
    "Created: / 08-05-2019 / 13:24:07 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4132
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4133
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4134
setFilterParameters:filter
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4135
    "setup from a remembered filter"
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4136
    
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4137
    filteredSelectorPatterns := filter filteredSelectorMatchPattern.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4138
    filteredClassNamePatterns := filter filteredClassNameMatchPattern.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4139
    filteredClassNames := filter filteredClassNames.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4140
    filteredOwnerClassNames := filter filteredOwnerClassNames.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  4141
    filteredMethodNames := filter filteredMethodNames.
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4142
    filteredSelectors := filter filteredSelectors.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4143
    filterChangedBefore := filter filterChangedBefore.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4144
    filterChangedAfter := filter filterChangedAfter.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4145
    
17349
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4146
    self filterChanged.
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4147
2b493c7ccb5e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17348
diff changeset
  4148
    "Created: / 06-02-2017 / 09:51:37 / cg"
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  4149
    "Modified: / 08-05-2019 / 13:20:25 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4150
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4151
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4152
!VersionDiffBrowser methodsFor:'menu actions - searching'!
17931
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4153
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4154
findNextChangeWithStringIn:listOfchanges selectionHolder:whichMethodSelectionHolder
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4155
    "common code to select the next change which contains some string"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4156
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4157
    |string startIdx|
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4158
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4159
    string := Dialog request:'Search for:' initialAnswer:LastSearchString.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4160
    string isEmptyOrNil ifTrue:[^ false].
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4161
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4162
    LastSearchString := string.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4163
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4164
    startIdx := whichMethodSelectionHolder value.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4165
    listOfchanges from:startIdx+1 keysAndValuesDo:[:index :eachChange |
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4166
        (eachChange source includesString:string caseSensitive:false) ifTrue:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4167
            whichMethodSelectionHolder value:index.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4168
            ^ true.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4169
        ]
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4170
    ].
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4171
    ^ false
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4172
!
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4173
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4174
findNextChangeWithStringInA
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4175
    "select the next change which contains some string"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4176
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4177
    (self findNextChangeWithStringIn:methodsOnlyInAFiltered selectionHolder:methodsOnlyInASelection) ifTrue:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4178
        self methodsOnlyInASelectionChanged
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4179
    ] ifFalse:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4180
        self beepInEditor
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4181
    ].
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4182
!
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4183
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4184
findNextChangeWithStringInB
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4185
    "select the next change which contains some string"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4186
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4187
    (self findNextChangeWithStringIn:methodsOnlyInBFiltered selectionHolder:methodsOnlyInBSelection) ifTrue:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4188
        self methodsOnlyInASelectionChanged
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4189
    ]
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4190
!
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4191
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4192
findNextChangeWithStringInM
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4193
    "select the next change which contains some string"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4194
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4195
    (self findNextChangeWithStringInPairs:methodsChangedFiltered selectionHolder:methodsChangedSelection) ifTrue:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4196
        self methodsChangedSelectionChanged
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4197
    ]
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4198
!
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4199
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4200
findNextChangeWithStringInPairs:listOfchangePairs selectionHolder:whichMethodSelectionHolder
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4201
    "select the next change which contains some string"
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4202
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4203
    |string startIdx|
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4204
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4205
    string := Dialog request:'Search for:' initialAnswer:LastSearchString.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4206
    string isEmptyOrNil ifTrue:[^ false].
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4207
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4208
    LastSearchString := string.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4209
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4210
    startIdx := whichMethodSelectionHolder value.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4211
    listOfchangePairs from:startIdx+1 keysAndValuesDo:[:index :eachChangePair |
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4212
        (eachChangePair first source includesString:string caseSensitive:false) ifTrue:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4213
            whichMethodSelectionHolder value:index.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4214
            ^ true.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4215
        ].
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4216
        (eachChangePair second source includesString:string caseSensitive:false) ifTrue:[
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4217
            whichMethodSelectionHolder value:index.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4218
            ^ true.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4219
        ]
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4220
    ].
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4221
    ^ false.
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4222
! !
bb1f70ebf2c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17875
diff changeset
  4223
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4224
!VersionDiffBrowser methodsFor:'menu actions - version list'!
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4225
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4226
findPreviousRevisionWithChangeFor:aSelector
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4227
    "find a previous revision where this method has been changed"
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4228
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4229
    |selector selectedVersion thisVersion prevVersion 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4230
     changeSetOfThis changeSetOfPrevious cls diffSet prevVersionIndex
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4231
     wasEverPresent infoMsg|
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4232
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4233
    selector := aSelector asSymbol.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4234
    wasEverPresent := false.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4235
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4236
    selectedVersion := self selectedVersionHolder value.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4237
    selectedVersion isNil ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4238
        self selectedVersionIndexHolder value:1
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4239
    ] ifFalse:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4240
        (self selectedVersionIndex == self versionList size) ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4241
            self beep.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4242
            ^ self
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4243
        ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4244
    ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4245
    thisVersion := selectedVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4246
    prevVersionIndex := self selectedVersionIndex + 1.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4247
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4248
    cls := classHolder value.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4249
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4250
    self withWaitCursorDo:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4251
        self information:'Retrieving rev %1' with:thisVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4252
        changeSetOfThis := ClassChangeSet changeSetForClass:cls andRevision:thisVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4253
        wasEverPresent := changeSetOfThis includesChangeForSelector:selector.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4254
    ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4255
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4256
    [
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4257
        self withWaitCursorDo:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4258
            prevVersion := self versionList at:prevVersionIndex.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4259
            prevVersion = '...' ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4260
                self updateVersionList.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4261
                prevVersion := self versionList at:prevVersionIndex.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4262
            ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4263
            self information:'Retrieving rev %1' with:prevVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4264
            changeSetOfPrevious := ClassChangeSet changeSetForClass:cls andRevision:prevVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4265
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4266
            self information:'Comparing %1 against %2' with:prevVersion with:thisVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4267
            diffSet := changeSetOfPrevious diffSetsAgainst:changeSetOfThis.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4268
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4269
            "/ possibilities:
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4270
            "/ a) not present in changeSetOfThis, but present in changeSetOfPrevious
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4271
            "/      -> method was removed.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4272
            (diffSet onlyInReceiver includesChangeForSelector:selector) ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4273
                self selectedVersionIndexHolder value:prevVersionIndex-1.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4274
                self information:'Method for %1 was removed in rev. %2' with:selector allBold with:thisVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4275
                ^ self.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4276
            ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4277
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4278
            "/ b) present in changeSetOfThis, but not present in changeSetOfPrevious
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4279
            "/      -> method was added.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4280
            (diffSet onlyInArg includesChangeForSelector:selector) ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4281
                self selectedVersionIndexHolder value:prevVersionIndex-1.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4282
                self information:'Method for %1 was added in rev. %2' with:selector allBold with:thisVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4283
                ^ self.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4284
            ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4285
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4286
            "/ c) present in both and different
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4287
            "/      -> method was edited.
19486
4231b7b4e601 #BUGFIX by exept
Claus Gittinger <cg@exept.de>
parents: 19466
diff changeset
  4288
            (diffSet changed contains:[:pair | pair first selector = selector]) ifTrue:[
19463
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4289
                self selectedVersionIndexHolder value:prevVersionIndex-1.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4290
                self information:'Method for %1 was changed in rev. %2' with:selector allBold with:thisVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4291
                ^ self.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4292
            ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4293
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4294
            "/ d and e) present in none, or present in both, but same code
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4295
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4296
            "/ continue with next pair of versions
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4297
            thisVersion := prevVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4298
            changeSetOfThis := changeSetOfPrevious.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4299
            prevVersionIndex := prevVersionIndex + 1.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4300
            prevVersionIndex > self versionList size ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4301
                wasEverPresent ifFalse:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4302
                    infoMsg := 'This method (%1) was never present before rev. %2'.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4303
                ] ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4304
                    infoMsg := 'This method (%1) was never changed before rev. %2'.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4305
                ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4306
                self information:infoMsg with:selector with:selectedVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4307
                Dialog information:infoMsg with:selector with:selectedVersion.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4308
                ^ self.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4309
            ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4310
        ]
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4311
    ] loop.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4312
!
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4313
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4314
versionMenuCompareAgainstNextVersion
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4315
    "open a version diff on the selected vs. the next versions.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4316
     (i.e. show what was different in the selected one w.r.t the next one)"
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4317
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4318
    |cls selectedVersion nextVersion|
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4319
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4320
    selectedVersion := self selectedVersionHolder value.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4321
    (selectedVersion isNil or:[self selectedVersionIndex == 1]) ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4322
        self beep.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4323
        ^ self
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4324
    ].    
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4325
    nextVersion := self versionList at:(self selectedVersionIndex - 1).
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4326
    cls := classHolder value.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4327
    
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4328
    self class openOnClass:cls versionA:selectedVersion versionB:nextVersion
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4329
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4330
    "Modified: / 23-05-2018 / 11:37:18 / Claus Gittinger"
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4331
!
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4332
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4333
versionMenuCompareAgainstPreviousVersion
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4334
    "open a version diff on the selected vs. the previous version 
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4335
     (i.e. show what was changed in the selected one)"
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4336
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4337
    |cls selectedVersion prevVersion|
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4338
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4339
    selectedVersion := self selectedVersionHolder value.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4340
    selectedVersion isNil ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4341
        self selectedVersionIndexHolder value:1
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4342
    ] ifFalse:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4343
        (self selectedVersionIndex == self versionList size) ifTrue:[
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4344
            self beep.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4345
            ^ self
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4346
        ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4347
    ].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4348
    prevVersion := self versionList at:(self selectedVersionIndex + 1).
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4349
    cls := classHolder value.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4350
    
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4351
    self class openOnClass:cls versionA:prevVersion versionB:selectedVersion
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4352
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4353
    "Modified: / 23-05-2018 / 11:38:13 / Claus Gittinger"
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4354
!
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4355
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4356
versionMenuFindPreviousRevisionWithChangeFor
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4357
    "ask for a selector;
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4358
     find a previous revision where this method has been changed"
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4359
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4360
    |selector|
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4361
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4362
    selector := Dialog request:'Selector:' initialAnswer:LastSearchedSelector.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4363
    selector isEmptyOrNil ifTrue:[^ self].
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4364
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4365
    LastSearchedSelector := selector.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4366
    self findPreviousRevisionWithChangeFor:selector.
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4367
! !
33e02e0e9711 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19440
diff changeset
  4368
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4369
!VersionDiffBrowser methodsFor:'private'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4370
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4371
addAcceptToTextViewMenus
8657
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  4372
    "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
  4373
     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
  4374
     (not the shown text)
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4375
8657
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  4376
     <return: self>
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4377
    "
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4378
8657
4a54180313b5 enable/disable of edit-menu items
Claus Gittinger <cg@exept.de>
parents: 8629
diff changeset
  4379
    |diffTextView leftView rightView singleView|
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4380
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4381
    diffTextView := self diffTextView.
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4382
    leftView := diffTextView leftTextView.
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4383
    rightView := diffTextView rightTextView.
3843
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  4384
    singleView := self componentAt:#singleTextView.
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4385
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4386
    (Array
13547
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4387
        with:leftView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4388
        with:rightView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4389
        with:singleView)
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4390
    do:[:v |
13547
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4391
        |mGen|
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4392
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4393
        mGen := [
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4394
            |m|
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4395
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4396
            m := v editMenu.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4397
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4398
            (m selectorAt:#accept) isNil ifTrue:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4399
                m addLabels:(resources array:#('-' 'Accept'))
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4400
                  selectors:#(nil #accept)
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4401
                  after:#copySelection.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4402
            ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4403
            m
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4404
                actionAt:#accept
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4405
                put:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4406
                    v == singleView ifTrue:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4407
                        self acceptInSingleView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4408
                    ] ifFalse:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4409
                        v == leftView ifTrue:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4410
                           self acceptInLeftView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4411
                        ] ifFalse:[
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4412
                           self acceptInRightView
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4413
                        ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4414
                    ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4415
                ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4416
            m selectorAt:#accept put:nil.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4417
            m enable:#copySelection.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4418
            m setEnable:#accept to:[self canAcceptInCodeView].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4419
            m
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4420
        ].
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4421
        v menuHolder:mGen.
2b11f03e2ccb class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 13305
diff changeset
  4422
        v menuMessage:#value.
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4423
    ]
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4424
!
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4425
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4426
printStringForChange:aChange
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4427
    "generate a print string for a change."
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4428
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4429
    |m changeClassName classOrMetaString useChangesString selectorString
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4430
     singleComparedClass singleComparedClassesName singleComparedMetaclassesName
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4431
     printString class1 class2|
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4432
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4433
    class1 := self classChangeSet class1BeingCompared.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4434
    class2 := self classChangeSet class2BeingCompared.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4435
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4436
    (singleComparedClass := self classBeingCompared) notNil ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4437
        singleComparedClassesName := singleComparedClass name.
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4438
        singleComparedMetaclassesName := singleComparedClass theMetaclass name.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4439
    ].
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4440
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4441
    aChange isClassDefinitionChange ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4442
        ^ aChange printStringWithoutClassName
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4443
    ].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4444
    aChange isDoIt ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4445
        ^ aChange source , ' (doIt)'
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4446
    ].
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  4447
    aChange isNameSpaceCreationChange ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4448
        ^ aChange source
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  4449
    ].
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4450
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  4451
    changeClassName := aChange className.
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  4452
    changeClassName isNil ifTrue:[
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4453
        ^ aChange source
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  4454
    ].
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4455
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4456
    useChangesString := false.
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4457
    classOrMetaString := ''.
10892
98a427ae867b changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 10829
diff changeset
  4458
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4459
    (class1 notNil 
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4460
    and:[ class2 notNil
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4461
    and:[ class1 ~= class2 ]]) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4462
        changeClassName := ''.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4463
    ] ifFalse:[
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4464
        (changeClassName = singleComparedClassesName) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4465
            "/ changeClassName := ''.
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4466
            useChangesString := true.
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4467
        ] ifFalse:[
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4468
            (changeClassName = singleComparedMetaclassesName) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4469
                "/ classOrMetaString := ' class'.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4470
                useChangesString := true.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4471
            ] ifFalse:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4472
                ((changeClassName includes:$:) and:[ changeClassName startsWith:((singleComparedClassesName ? ''),'::') ]) ifTrue:[
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4473
                    changeClassName := changeClassName copyFrom:(singleComparedClassesName,'::') size+1.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4474
                ].
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4475
            ].
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4476
        ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4477
    ].
6272
54b4aec6a387 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6210
diff changeset
  4478
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4479
    selectorString := ''.
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4480
    (aChange isMethodChange) ifTrue:[
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  4481
        selectorString := aChange changeSelector.
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4482
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4483
        aChange changeClass notNil ifTrue:[
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4484
            m := aChange changeMethod.
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4485
            m notNil ifTrue:[
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4486
                m := m originalMethodIfWrapped.
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  4487
                selectorString := m printStringForBrowserWithSelector:aChange changeSelector inClass:aChange changeClass.
11533
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4488
            ].
106faef31ef5 changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 11453
diff changeset
  4489
        ].
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4490
        changeClassName notEmptyOrNil ifTrue:[
19486
4231b7b4e601 #BUGFIX by exept
Claus Gittinger <cg@exept.de>
parents: 19466
diff changeset
  4491
            selectorString := ' » ',selectorString
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4492
        ]
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4493
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4494
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4495
    printString := changeClassName,classOrMetaString,selectorString.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4496
    aChange isMethodCategoryChange ifTrue:[
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4497
        ^ printString, ' (category)'
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4498
    ].
11596
a82461d12ced selection fixes (when filtering)
Claus Gittinger <cg@exept.de>
parents: 11533
diff changeset
  4499
    ^ printString
9587
9f33d5c62efa changed: #printStringForChange:
Claus Gittinger <cg@exept.de>
parents: 9550
diff changeset
  4500
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  4501
    "Modified: / 06-02-2017 / 02:32:08 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4502
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4503
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4504
resetSelectionHolders
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4505
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4506
    reset all selection holders when a new change set is given.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4507
    First set the selection to nil.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4508
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4509
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4510
    "
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4511
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4512
    self methodsChangedSelection value:nil.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4513
    self methodsOnlyInASelection value:nil.
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4514
    self methodsOnlyInBSelection value:nil.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4515
    self diffTextView text1:'' text2:''.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4516
    self methodText value:''.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4517
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4518
"/    self methodsChangedSelectionChanged.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4519
"/    self methodsOnlyInASelectionChanged.
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4520
"/    self methodsOnlyInBSelectionChanged.
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4521
!
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4522
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4523
showDiffTextView
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4524
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4525
    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
  4526
    Add an accept entry to the popup menu.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4527
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4528
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4529
    "
2694
a19deafda6b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2650
diff changeset
  4530
3843
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  4531
    (self componentAt:#diffTextViewBox) raise; beVisible.
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  4532
    (self componentAt:#singleTextView) beInvisible.
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  4533
    (self componentAt:#diffTextView) realizeAllSubViews.
2694
a19deafda6b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2650
diff changeset
  4534
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  4535
    self addAcceptToTextViewMenus.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4536
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4537
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4538
showSingleTextView
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4539
    "
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4540
    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
  4541
    then show the text view.
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4542
    Add an accept entry to the popup menu.
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4543
3147
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4544
    <return: self>
6977e4703d1a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3146
diff changeset
  4545
    "
2507
f5f8a26b7003 checkin from browser
ps
parents: 2501
diff changeset
  4546
3843
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  4547
    (self componentAt:#singleTextView) raise; beVisible.
673fbeb191c9 builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents: 3839
diff changeset
  4548
    (self componentAt:#diffTextViewBox) beInvisible.
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4549
    self addAcceptToTextViewMenus.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4550
!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4551
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4552
showVersionInfoIfNothingSelected
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  4553
    "show the revision info (author, date, time and logMessage), 
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  4554
     if no method is selected"
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4555
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4556
    |revInfo infoText|
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4557
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  4558
    "/ self information:''.
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4559
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4560
    (methodsOnlyInASelection value isNil
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4561
      and:[ methodsOnlyInBSelection value isNil
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4562
      and:[ methodsChangedSelection value isNil]]
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4563
    ) ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4564
        versionInfoList notNil ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4565
            revInfo := versionInfoList detect:[:info | (info at:#revision) = selectedVersionHolder value] ifNone:nil.
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4566
            revInfo notNil ifTrue:[
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4567
                infoText := 'Revision: %1\Author:   %2\Date:     %3\Log:\\%4' withCRs
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4568
                                bindWith:(revInfo at:#revision) 
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4569
                                with:(revInfo at:#author) 
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4570
                                with:(revInfo at:#date)
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4571
                                with:(revInfo at:#logMessage).
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4572
            ].
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4573
        ].    
15621
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4574
        self methodText value:infoText.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4575
        self showSingleTextView.
853a92e576ac class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 15395
diff changeset
  4576
    ].
17334
401029d955a8 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17160
diff changeset
  4577
17342
1e003f22a3c8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17341
diff changeset
  4578
    "Modified: / 05-02-2017 / 11:49:47 / cg"
18674
53730b0e2bee #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18332
diff changeset
  4579
    "Modified (comment): / 13-03-2019 / 10:41:01 / Claus Gittinger"
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4580
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4581
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4582
!VersionDiffBrowser methodsFor:'setup'!
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4583
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4584
setupForClass:aClass againstVersion:aVersionA
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4585
    "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
  4586
     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
  4587
     are updated."
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4588
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4589
    |changeSet|
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4590
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4591
    aClass isNil ifTrue:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4592
        changeSet := nil
2745
8fa3af64f96e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2731
diff changeset
  4593
    ] ifFalse:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4594
        (aClass isRealNameSpace) ifFalse:[
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4595
            aClass isLoaded ifTrue:[
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4596
                changeSet := (ClassChangeSet newForClass:aClass againstVersion:aVersionA).
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4597
            ]
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4598
        ].
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4599
    ].
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4600
    self classChangeSet:changeSet.
2857
0c467f6b1741 handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents: 2856
diff changeset
  4601
    aVersionA isNil ifTrue:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4602
        self class:aClass versionA:'Repository' versionB:'Current'.
2857
0c467f6b1741 handle case if invoked without versionString
Claus Gittinger <cg@exept.de>
parents: 2856
diff changeset
  4603
    ] ifFalse:[
16551
646772e445b9 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16530
diff changeset
  4604
        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
  4605
    ]
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  4606
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  4607
    "Modified: / 28-05-2019 / 15:26:55 / Claus Gittinger"
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4608
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4609
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4610
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
  4611
    "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
  4612
     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
  4613
     are updated."
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4614
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4615
    |changeSet|
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4616
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4617
    changeSet := (ClassChangeSet newForClass:classA labelA:aLabelA andClass:classB labelB:aLabelB).
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4618
    self classChangeSet:changeSet
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4619
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4620
2510
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  4621
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
  4622
    "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
  4623
     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
  4624
     are updated."
2510
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  4625
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4626
    |changeSet|
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4627
9383
dc59d4bf4a56 code deobfuscated:
Claus Gittinger <cg@exept.de>
parents: 9325
diff changeset
  4628
    aClass isRealNameSpace ifFalse:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4629
	aClass isLoaded ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4630
	    changeSet := (ClassChangeSet newForClass:aClass labelA:aLabelA sourceA:aSourceA labelB:aLabelB sourceB:aSourceB).
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4631
	]
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4632
    ].
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4633
    self classChangeSet:changeSet
7499
6bb22d2d1ad9 use isRealNameSpace
Claus Gittinger <cg@exept.de>
parents: 7419
diff changeset
  4634
6bb22d2d1ad9 use isRealNameSpace
Claus Gittinger <cg@exept.de>
parents: 7419
diff changeset
  4635
    "Modified: / 10-11-2006 / 17:15:26 / cg"
2510
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  4636
!
58974b8db9fd checkin from browser
ps
parents: 2507
diff changeset
  4637
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4638
setupForClass:aClass versionA:aVersionA versionB:aVersionB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4639
    "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
  4640
     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
  4641
     are updated."
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4642
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4643
    |changeSet|
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4644
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4645
    aClass isNameSpace ifFalse:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4646
	aClass isLoaded ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4647
	    changeSet := (ClassChangeSet newForClass:aClass versionA:aVersionA versionB:aVersionB).
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4648
	]
2731
5628e2514bfa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
  4649
    ].
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4650
    self classChangeSet:changeSet.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4651
    self class:aClass versionA:aVersionA versionB:aVersionB.
3678
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4652
!
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4653
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4654
setupForDiffSet:diffSet labelA:aLabelA labelB:aLabelB
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4655
    |changeSet|
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4656
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4657
    changeSet := (ClassChangeSet new diffSet:diffSet; labelA:aLabelA; labelB:aLabelB).
7a54c5f8c9fe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3594
diff changeset
  4658
    self classChangeSet:changeSet
2501
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4659
! !
e86fae15642d checkin from browser
ps
parents: 2497
diff changeset
  4660
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4661
!VersionDiffBrowser::ClassChangeSet class methodsFor:'instance creation'!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4662
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4663
changeSetForClass:aClass
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4664
    "return a ChangeSet for the class aClass and its current source.
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4665
     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
  4666
     from the source stream."
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4667
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4668
    ^ ChangeSet forExistingClass:aClass.
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4669
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4670
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4671
changeSetForClass:aClass andRevision:aVersion
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4672
    "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
  4673
     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
  4674
     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
  4675
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4676
    |theSourceCodeManager theSourceStream theChangeSet|
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4677
13305
1debd2a0c5f8 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13151
diff changeset
  4678
    theSourceCodeManager := SourceCodeManagerUtilities sourceCodeManagerFor:aClass.
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4679
    [
13305
1debd2a0c5f8 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13151
diff changeset
  4680
        theSourceStream := theSourceCodeManager getSourceStreamFor:aClass revision:aVersion.
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4681
        theSourceStream notNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4682
            theChangeSet := ChangeSet fromStream:theSourceStream
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4683
        ]
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4684
    ] ensure:[
13305
1debd2a0c5f8 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 13151
diff changeset
  4685
        theSourceStream notNil ifTrue:[theSourceStream close]
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4686
    ].
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4687
    theChangeSet isNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4688
        self error:'Could not read source of class ',aClass name mayProceed:true.
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4689
        ^ nil
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4690
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4691
    self sortChangeSet:theChangeSet.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4692
    ^ theChangeSet
7108
e22911bfd36b sourceCodeManager access
Claus Gittinger <cg@exept.de>
parents: 6828
diff changeset
  4693
e22911bfd36b sourceCodeManager access
Claus Gittinger <cg@exept.de>
parents: 6828
diff changeset
  4694
    "Modified: / 12-09-2006 / 14:24:51 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4695
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4696
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4697
changeSetForClass:aClass andSource:aSource
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4698
    "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
  4699
     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
  4700
     from the source stream.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4701
     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
  4702
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4703
    |theChangeSet theSourceStream|
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4704
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4705
    [
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4706
        theSourceStream := aSource readStream.
17875
c345e9001548 #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 17827
diff changeset
  4707
        theChangeSet := ChangeSet fromStream:theSourceStream.
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4708
    ] ensure:[
15167
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4709
        theSourceStream notNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4710
            theSourceStream close
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4711
        ]
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4712
    ].
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4713
    theChangeSet isNil ifTrue:[
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4714
        self error:'Could not read source of class ',aClass name mayProceed:true.
eb562e8785bc class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 14363
diff changeset
  4715
        ^ nil
3594
12071dccbbe4 #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 3344
diff changeset
  4716
    ].
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4717
    self sortChangeSet:theChangeSet.
4653
0a97ce41f5bd More openErrorSignal change preparations
Stefan Vogel <sv@exept.de>
parents: 4638
diff changeset
  4718
    ^ theChangeSet
17875
c345e9001548 #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 17827
diff changeset
  4719
c345e9001548 #TUNING by stefan
Stefan Vogel <sv@exept.de>
parents: 17827
diff changeset
  4720
    "Modified: / 02-01-2018 / 20:41:55 / stefan"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4721
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4722
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4723
newForClass:aClass againstVersion:aVersionA
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4724
    "return a ClassChangeSet for the class aClass against some verson in the repository.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4725
     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
  4726
     the correspondenting changes."
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4727
8891
fm
parents: 8811
diff changeset
  4728
    |theClassChangeSet|
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4729
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4730
    theClassChangeSet := self new.
8891
fm
parents: 8811
diff changeset
  4731
    theClassChangeSet setupForClass:aClass againstVersion:aVersionA.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4732
    ^ theClassChangeSet
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4733
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4734
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4735
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
  4736
    "return a ClassChangeSet for two classes.
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4737
     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
  4738
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4739
    |aStream sourceA sourceB theChangeSetA theChangeSetB theClassChangeSet|
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4740
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4741
    theClassChangeSet := self new.
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4742
    theClassChangeSet class1BeingCompared:classA class2BeingCompared:classB.
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4743
    theClassChangeSet labelA:aLabelA.
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4744
    theClassChangeSet labelB:aLabelB.
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4745
16615
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4746
    theChangeSetA := ChangeSet forExistingClass:classA withExtensions:true withLooseMethods:true.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4747
    theChangeSetB := ChangeSet forExistingClass:classB withExtensions:true withLooseMethods:true.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4748
    
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4749
"/    aStream := '' writeStream.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4750
"/    Method flushSourceStreamCache.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4751
"/    classA fileOutOn:aStream withTimeStamp:false.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4752
"/    sourceA := aStream contents asString.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4753
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4754
"/    aStream := '' writeStream.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4755
"/    Method flushSourceStreamCache.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4756
"/    classB fileOutOn:aStream withTimeStamp:false.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4757
"/    sourceB := aStream contents asString.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4758
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4759
"/    theChangeSetA:=self changeSetForClass:classA andSource:sourceA.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4760
"/    theChangeSetB:=self changeSetForClass:classB andSource:sourceB.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4761
"/    theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4762
"/    theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new].
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4763
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4764
    "/ just in case (if comparing a class against another),
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4765
    "/ 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
  4766
16615
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4767
"/    theChangeSetB do:[:eachChange |
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4768
"/        eachChange isMethodChange ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4769
"/            eachChange changeClass isMeta ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4770
"/                eachChange changeClass ~~ classA theMetaclass ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4771
"/                    eachChange changeClass:classA theMetaclass.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4772
"/                ]
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4773
"/            ] ifFalse:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4774
"/                eachChange changeClass ~~ classA theNonMetaclass ifTrue:[
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4775
"/                    eachChange changeClass:classA theNonMetaclass.
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4776
"/                ]
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4777
"/            ].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4778
"/        ].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4779
"/    ].
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4780
    "/ remove all #initialize doIts
16615
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4781
    theChangeSetA := theChangeSetA reject:[:eachChange | eachChange isDoIt and:[eachChange isInitialize]].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4782
    theChangeSetB := theChangeSetB reject:[:eachChange | eachChange isDoIt and:[eachChange isInitialize]].
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4783
392076bec163 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16551
diff changeset
  4784
    theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB comparingDifferentClasses:true).
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4785
    ^ theClassChangeSet
2949
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4786
!
7ce4f684026b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2947
diff changeset
  4787
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4788
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
  4789
    "return a ClassChangeSet for the class aClass and the two sources.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4790
     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
  4791
     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
  4792
4128
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  4793
    |theChangeSetA theChangeSetB theClassChangeSet className metaClassName|
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4794
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4795
    theClassChangeSet := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4796
    theClassChangeSet classBeingCompared:aClass.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4797
    theClassChangeSet labelA:aLabelA.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4798
    theClassChangeSet labelB:aLabelB.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4799
    theChangeSetA:=self changeSetForClass:aClass andSource:aSourceA.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4800
    theChangeSetB:=self changeSetForClass:aClass andSource:aSourceB.
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  4801
4128
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  4802
    className := aClass name.
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  4803
    metaClassName := aClass class name.
540bf0752f89 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3853
diff changeset
  4804
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  4805
    aClass isPrivate ifTrue:[
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4806
	theChangeSetA := theChangeSetA select:[:change | change isMethodChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4807
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4808
	theChangeSetA := theChangeSetA select:[:change | change isClassDefinitionChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4809
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4810
	theChangeSetA := theChangeSetA select:[:change | change isDoIt not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4811
							 or:[change receiverClassName = className or:[change receiverClassName = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4812
	theChangeSetB := theChangeSetB select:[:change | change isMethodChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4813
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4814
	theChangeSetB := theChangeSetB select:[:change | change isClassDefinitionChange not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4815
							 or:[change className = className or:[change className = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4816
	theChangeSetB := theChangeSetB select:[:change | change isDoIt not
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4817
							 or:[change receiverClassName = className or:[change receiverClassName = metaClassName]]].
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4818
	"/ there might be more needed...
3730
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  4819
    ].
717e425e843e allow for private classes to be compared
Claus Gittinger <cg@exept.de>
parents: 3687
diff changeset
  4820
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4821
    theChangeSetA isNil
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4822
	ifTrue: [theChangeSetA := ChangeSet new].
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4823
    theChangeSetB isNil
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4824
	ifTrue: [theChangeSetB := ChangeSet new].
2947
59694f799b13 fixed compareWithClass
Claus Gittinger <cg@exept.de>
parents: 2857
diff changeset
  4825
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4826
    theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB).
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4827
    ^ theClassChangeSet
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  4828
!
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  4829
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4830
newForClass:aClass versionA:aVersionA versionB:aVersionB
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4831
    "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
  4832
     The two class version are checked out from the repository and then being
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4833
     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
  4834
     the correspondenting changes."
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4835
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4836
    |theChangeSetA theChangeSetB theClassChangeSet|
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4837
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4838
    theClassChangeSet := self new.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4839
    theClassChangeSet classBeingCompared:aClass.
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4840
    theClassChangeSet versionA:aVersionA.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4841
    theClassChangeSet versionB:aVersionB.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4842
    theClassChangeSet labelA:aVersionA.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4843
    theClassChangeSet labelB:aVersionB.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4844
    theChangeSetA := self changeSetForClass: aClass andRevision: aVersionA.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4845
    theChangeSetB := self changeSetForClass: aClass andRevision: aVersionB.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4846
    theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4847
    theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4848
    theClassChangeSet diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB).
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4849
    ^ theClassChangeSet
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4850
!
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4851
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4852
sortChangeSet:aChangeSet
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4853
    "/ sort by meta and selector
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  4854
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4855
    aChangeSet
14363
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4856
        sort:[:a :b |
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4857
            a == b ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4858
                false
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4859
            ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4860
                a isClassDefinitionChange == b isClassDefinitionChange ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4861
                    a isClassChange == b isClassChange ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4862
                        a isClassChange ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4863
                            a isForMeta == b isForMeta ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4864
                                (a isMethodChange and:[b isMethodChange]) ifTrue:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4865
                                    a className < b className
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4866
                                    or:[ a className = b className
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4867
                                         and:[ a isPrimitiveChange not
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4868
                                         and:[ b isPrimitiveChange not
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  4869
                                         and:[ a changeSelector < b changeSelector ]]]]
14363
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4870
                                ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4871
                                    a isMethodChange not
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4872
                                ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4873
                            ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4874
                                a isForMeta
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4875
                            ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4876
                        ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4877
                            a printString < b printString
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4878
                        ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4879
                    ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4880
                        a isClassChange
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4881
                    ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4882
                ] ifFalse:[
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4883
                    a isClassDefinitionChange
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4884
                ].
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4885
            ]
f70b27db57b6 class: VersionDiffBrowser
Stefan Vogel <sv@exept.de>
parents: 14078
diff changeset
  4886
        ].
17347
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  4887
5fdabadbda8e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17346
diff changeset
  4888
    "Modified: / 06-02-2017 / 02:31:57 / cg"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4889
! !
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4890
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4891
!VersionDiffBrowser::ClassChangeSet methodsFor:'accessing'!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4892
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4893
class1BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4894
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4895
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4896
    ^ class1BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4897
!
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4898
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4899
class1BeingCompared:class1 class2BeingCompared:class2
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4900
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4901
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4902
    class1BeingCompared := class1.
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4903
    class2BeingCompared := class2
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4904
!
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4905
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4906
class2BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4907
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4908
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4909
    ^ class2BeingCompared
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4910
!
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4911
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4912
classBeingCompared
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4913
    "returns the class which is compared"
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4914
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4915
    ^ class1BeingCompared
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4916
!
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  4917
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4918
classBeingCompared:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4919
    "set the value of the class which is compared"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4920
13137
b552b691d338 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 12865
diff changeset
  4921
    class1BeingCompared := class2BeingCompared := something.
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4922
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4923
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4924
diffSet
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4925
    "returns a diffSet containing the different changes.
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4926
     it responds to:
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4927
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4928
     changed         OrderedCollection of arrays containing ChangeSets for methods
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4929
		     which are changed and exists in the class versionA and versionB
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4930
     onlyInArg       ChangeSet for the methods which exists only in the class versionB
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4931
     onlyInReceiver  ChangeSet for the methods which exists only in the class versionA
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4932
    "
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4933
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4934
    ^ diffSet
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4935
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4936
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4937
diffSet:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4938
    "sets the diffSet containing the different changes.
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4939
     it responds to:
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4940
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4941
     changed         OrderedCollection of arrays containing ChangeSets for methods
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4942
		     which are changed and exists in the class versionA and versionB
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4943
     onlyInArg       ChangeSet for the methods which exists only in the class versionB
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4944
     onlyInReceiver  ChangeSet for the methods which exists only in the class versionA
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4945
    "
2695
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4946
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4947
    diffSet := something.
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4948
!
6cf8801118a3 more startup entries
Claus Gittinger <cg@exept.de>
parents: 2694
diff changeset
  4949
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4950
labelA
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4951
    "returns the label for the class versionA"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4952
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4953
    ^ labelA
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4954
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4955
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4956
labelA:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4957
   "sets the label for the class versionA"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4958
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4959
    labelA := something.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4960
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4961
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4962
labelB
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4963
    "returns the label for the class versionB"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4964
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4965
    ^ labelB
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4966
!
2465
0567a72d20a5 added apply & browse
Claus Gittinger <cg@exept.de>
parents: 2419
diff changeset
  4967
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4968
labelB:something
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4969
    "sets the label for the class versionB"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4970
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4971
    labelB := something.
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4972
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4973
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4974
methodsChanged
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  4975
    "returns an OrderedCollection of arrays containing ChangeSets for methods
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  4976
     which are changed and exist in both versionA and versionB
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4977
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4978
     <return: OrderedCollection of Array(2)>
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4979
    "
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4980
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4981
    ^ self diffSet changed
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4982
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4983
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4984
methodsOnlyInA
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  4985
    "returns a ChangeSet for the methods which exist only in versionA"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4986
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4987
    ^ self diffSet onlyInReceiver
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4988
!
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4989
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4990
methodsOnlyInB
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  4991
    "returns a ChangeSet for the methods which exist only in versionB"
2497
ef306e387021 checkin from browser
ps
parents: 2486
diff changeset
  4992
3756
7b7e4b5fd63e refactored
Claus Gittinger <cg@exept.de>
parents: 3753
diff changeset
  4993
    ^ self diffSet onlyInArg
2856
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4994
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4995
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4996
versionA
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4997
    ^ versionA
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4998
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  4999
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5000
versionA:something
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5001
    versionA := something.
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5002
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5003
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5004
versionB
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5005
    ^ versionB
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5006
!
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5007
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5008
versionB:something
754d84dec893 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2853
diff changeset
  5009
    versionB := something.
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5010
! !
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5011
8891
fm
parents: 8811
diff changeset
  5012
!VersionDiffBrowser::ClassChangeSet methodsFor:'misc'!
fm
parents: 8811
diff changeset
  5013
fm
parents: 8811
diff changeset
  5014
removeAllVersionMethods
fm
parents: 8811
diff changeset
  5015
    diffSet removeAllVersionMethods.
fm
parents: 8811
diff changeset
  5016
! !
fm
parents: 8811
diff changeset
  5017
fm
parents: 8811
diff changeset
  5018
!VersionDiffBrowser::ClassChangeSet methodsFor:'setup'!
fm
parents: 8811
diff changeset
  5019
fm
parents: 8811
diff changeset
  5020
setupForClass:aClass againstVersion:aVersionA
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5021
    "return a ClassChangeSet for aClass against some verson of it in the repository.
11453
Claus Gittinger <cg@exept.de>
parents: 11451
diff changeset
  5022
     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
  5023
     the correspondenting changes."
8891
fm
parents: 8811
diff changeset
  5024
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5025
    |resources theChangeSetA theChangeSetB versionCompared|
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5026
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5027
    resources := VersionDiffBrowser resources.
8891
fm
parents: 8811
diff changeset
  5028
fm
parents: 8811
diff changeset
  5029
    self classBeingCompared:aClass.
fm
parents: 8811
diff changeset
  5030
    versionCompared := aVersionA.
fm
parents: 8811
diff changeset
  5031
    aVersionA isNil ifTrue:[
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5032
        self labelA:(versionCompared := aClass revision).
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5033
        self versionA:versionCompared.
8891
fm
parents: 8811
diff changeset
  5034
    ] ifFalse:[
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5035
        aVersionA == #newest ifTrue:[
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5036
            self labelA:(resources string:'Newest').
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5037
        ] ifFalse:[
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5038
            self labelA:versionCompared.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5039
            self versionA:versionCompared.
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5040
        ]
8891
fm
parents: 8811
diff changeset
  5041
    ].
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5042
    self labelB:(resources string:'Current').
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5043
    self activityNotification:(resources string:'Getting source for %1' with:versionCompared).
8891
fm
parents: 8811
diff changeset
  5044
    theChangeSetA := self class changeSetForClass: aClass andRevision: versionCompared.
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5045
    "/ self activityNotification:(VersionDiffBrowser resources string:'Getting current source of %1' with:aClass name).
8891
fm
parents: 8811
diff changeset
  5046
    theChangeSetB := self class changeSetForClass: aClass.
9239
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  5047
    theChangeSetA isNil ifTrue: [theChangeSetA := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  5048
    theChangeSetB isNil ifTrue: [theChangeSetB := ChangeSet new].
1cfdf9dae50b double click; extensions-filter; better printStrings
Claus Gittinger <cg@exept.de>
parents: 8891
diff changeset
  5049
8891
fm
parents: 8811
diff changeset
  5050
    "/ if we are comparing a private class, prune out other changes
fm
parents: 8811
diff changeset
  5051
    aClass isPrivate ifTrue:[
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5052
        theChangeSetA removeAllSuchThat:[:aChange | aChange className ~= aClass name ].
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5053
        theChangeSetB removeAllSuchThat:[:aChange | aChange className ~= aClass name ].
8891
fm
parents: 8811
diff changeset
  5054
    ].
19466
7d04590ee75e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19463
diff changeset
  5055
    self activityNotification:(resources string:'Generating diff-set...').
8891
fm
parents: 8811
diff changeset
  5056
    self diffSet:(theChangeSetA diffSetsAgainst:theChangeSetB).
fm
parents: 8811
diff changeset
  5057
    self activityNotification:nil.
fm
parents: 8811
diff changeset
  5058
    ^ diffSet
18781
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5059
f4361fc90f19 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 18758
diff changeset
  5060
    "Modified: / 28-05-2019 / 15:27:41 / Claus Gittinger"
8891
fm
parents: 8811
diff changeset
  5061
! !
fm
parents: 8811
diff changeset
  5062
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5063
!VersionDiffBrowser::FilterParameters class methodsFor:'documentation'!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5064
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5065
documentation
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5066
"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5067
    documentation to be added.
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5068
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5069
    [author:]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5070
        Claus Gittinger
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5071
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5072
    [instance variables:]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5073
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5074
    [class variables:]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5075
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5076
    [see also:]
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5077
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5078
"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5079
! !
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5080
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5081
!VersionDiffBrowser::FilterParameters methodsFor:'accessing'!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5082
18757
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5083
filterChangedAfter
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5084
    ^ filterChangedAfter
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5085
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5086
    "Created: / 08-05-2019 / 13:15:11 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5087
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5088
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5089
filterChangedAfter:aTimestamp
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5090
    filterChangedAfter := aTimestamp
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5091
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5092
    "Created: / 08-05-2019 / 13:15:07 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5093
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5094
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5095
filterChangedBefore
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5096
    ^ filterChangedBefore
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5097
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5098
    "Created: / 08-05-2019 / 13:14:55 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5099
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5100
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5101
filterChangedBefore:aTimestamp
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5102
    filterChangedBefore := aTimestamp
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5103
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5104
    "Created: / 08-05-2019 / 13:15:04 / Claus Gittinger"
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5105
!
bd9346e7e625 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 18676
diff changeset
  5106
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5107
filteredClassNameMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5108
    ^ filteredClassNameMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5109
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5110
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5111
filteredClassNameMatchPattern:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5112
    filteredClassNameMatchPattern := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5113
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5114
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5115
filteredClassNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5116
    ^ filteredClassNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5117
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5118
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5119
filteredClassNames:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5120
    filteredClassNames := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5121
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5122
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5123
filteredMethodNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5124
    ^ filteredMethodNames
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5125
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5126
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5127
filteredMethodNames:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5128
    filteredMethodNames := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5129
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5130
18991
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5131
filteredOwnerClassNames
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5132
    ^ filteredOwnerClassNames
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5133
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5134
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5135
filteredOwnerClassNames:something
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5136
    filteredOwnerClassNames := something.
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5137
!
4921562a0100 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 18781
diff changeset
  5138
17341
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5139
filteredSelectorMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5140
    ^ filteredSelectorMatchPattern
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5141
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5142
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5143
filteredSelectorMatchPattern:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5144
    filteredSelectorMatchPattern := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5145
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5146
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5147
filteredSelectors
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5148
    ^ filteredSelectors
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5149
!
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5150
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5151
filteredSelectors:something
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5152
    filteredSelectors := something.
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5153
! !
18f1c2894d99 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17340
diff changeset
  5154
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5155
!VersionDiffBrowser class methodsFor:'documentation'!
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5156
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5157
version
16530
e782300feea8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 15633
diff changeset
  5158
    ^ '$Header$'
8811
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  5159
!
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  5160
65e08571a2f3 changed: #openOnClass:labelA:sourceA:labelB:sourceB:title:ifSame:
fm
parents: 8657
diff changeset
  5161
version_CVS
16530
e782300feea8 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 15633
diff changeset
  5162
    ^ '$Header$'
2221
f536ebd184ef initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  5163
! !
12512
072f76033d49 class: VersionDiffBrowser
Claus Gittinger <cg@exept.de>
parents: 11962
diff changeset
  5164