Tools__ChangeSetDiffTool.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 17 Mar 2012 10:21:50 +0000
branchjv
changeset 12192 15f47901fb64
parent 12179 47f98e7d6de1
child 12198 414e7b69ecda
permissions -rw-r--r--
Fixes in Diff2/Diff3 text views
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     1
"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     2
 Copyright (c) 2007-2010 Jan Vrany
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     3
 Copyright (c) 2009-2010 eXept Software AG
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     4
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     5
 Permission is hereby granted, free of charge, to any person
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     6
 obtaining a copy of this software and associated documentation
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     7
 files (the 'Software'), to deal in the Software without
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     8
 restriction, including without limitation the rights to use,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
     9
 copy, modify, merge, publish, distribute, sublicense, and/or sell
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    10
 copies of the Software, and to permit persons to whom the
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    11
 Software is furnished to do so, subject to the following
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    12
 conditions:
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    13
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    14
 The above copyright notice and this permission notice shall be
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    15
 included in all copies or substantial portions of the Software.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    16
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    17
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    18
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    19
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    20
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    21
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    22
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    23
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    24
 OTHER DEALINGS IN THE SOFTWARE.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    25
"
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
    26
"{ Package: 'stx:libtool' }"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    27
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    28
"{ NameSpace: Tools }"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    29
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    30
ApplicationModel subclass:#ChangeSetDiffTool
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    31
	instanceVariableNames:'listHolder singleSelectionHolder diffsetHolder titleHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    32
		firstColSelectionHolder navigatorPanelSpecHolder diffMenuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    33
		diffsetHolderPrivate selectionHolder versionATextHolder
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    34
		versionBTextHolder versionBaseTextHolder textDiffToolHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    35
		textDiffToolWindowSpecHolder'
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    36
	classVariableNames:''
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    37
	poolDictionaries:''
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    38
	category:'Interface-Diff'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    39
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    40
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    41
SimpleDialog subclass:#OpenDialog
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    42
	instanceVariableNames:'doAcceptEnabled changesetSpecAHolder changesetSpecBHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    43
		changesetSpecBaseHolder'
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    44
	classVariableNames:'LastDirectory'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    45
	poolDictionaries:''
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    46
	privateIn:ChangeSetDiffTool
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    47
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    48
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    49
!ChangeSetDiffTool class methodsFor:'documentation'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    50
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    51
copyright
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    52
"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    53
 Copyright (c) 2007-2010 Jan Vrany
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    54
 Copyright (c) 2009-2010 eXept Software AG
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    55
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    56
 Permission is hereby granted, free of charge, to any person
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    57
 obtaining a copy of this software and associated documentation
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    58
 files (the 'Software'), to deal in the Software without
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    59
 restriction, including without limitation the rights to use,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    60
 copy, modify, merge, publish, distribute, sublicense, and/or sell
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    61
 copies of the Software, and to permit persons to whom the
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    62
 Software is furnished to do so, subject to the following
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    63
 conditions:
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    64
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    65
 The above copyright notice and this permission notice shall be
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    66
 included in all copies or substantial portions of the Software.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    67
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    68
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    69
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    70
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    71
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    72
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    73
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    74
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    75
 OTHER DEALINGS IN THE SOFTWARE.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    76
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
    77
"
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    78
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    79
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    80
documentation
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    81
"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    82
    Tool for viewing/merging differences between two change sets
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    83
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    84
    [author:]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    85
        Jan Vrany <jan.vrany@fit.cvut.cz>
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    86
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    87
    [instance variables:]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    88
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    89
    [class variables:]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    90
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    91
    [see also:]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    92
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    93
"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    94
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    95
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    96
examples
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    97
"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    98
  Starting the application:
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
    99
                                                                [exBegin]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   100
    Tools::ChangeSetDiffTool open
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   101
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   102
                                                                [exEnd]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   103
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   104
  Show differences between CVS HEAD and SVN jv-branch 
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   105
  NewSystemBrowser:
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   106
                                                                [exBegin]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   107
    | cvsCs svnCs |
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   108
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   109
    cvsCs := ChangeSet fromFile:'/home/jv/Private/Projects/SmalltalkX/sources/branches/exept@HEAD/stx/libtool/Tools__NewSystemBrowser.st'.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   110
    svnCs := ChangeSet fromFile:'/home/jv/Private/Projects/SmalltalkX/sources/branches/jv2/build/stx/libtool/Tools__NewSystemBrowser.st'.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   111
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   112
    Tools::ChangeSetDiffTool new
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   113
        open;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   114
        fileMenuOpenOnDiffBetween: cvsCs and: svnCs.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   115
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   116
                                                                [exEnd]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   117
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   118
  Show differences between CVS HEAD and SVN jv-branch and
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   119
  base version of NewSystemBrowser:
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   120
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   121
                                                                [exBegin]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   122
    | cvsBaseCs cvsCs svnCs |
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   123
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   124
    cvsBaseCs := ChangeSet fromFile:'/home/jv/Private/Projects/SmalltalkX/sources/branches/exept@2012-01-01/stx/libtool/Tools__NewSystemBrowser.st'.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   125
    cvsCs := ChangeSet fromFile:'/home/jv/Private/Projects/SmalltalkX/sources/branches/exept@HEAD/stx/libtool/Tools__NewSystemBrowser.st'.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   126
    svnCs := ChangeSet fromFile:'/home/jv/Private/Projects/SmalltalkX/sources/branches/jv2/build/stx/libtool/Tools__NewSystemBrowser.st'.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   127
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   128
    Tools::ChangeSetDiffTool new
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   129
        open;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   130
        fileMenuOpenOnDiffBetween: cvsCs and: svnCs base: cvsBaseCs
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   131
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   132
                                                                [exEnd]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   133
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   134
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   135
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   136
"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   137
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   138
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   139
!ChangeSetDiffTool class methodsFor:'accessing - defaults'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   140
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   141
versionAColor
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   142
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   143
    ^Color green lightened lightened
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   144
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   145
    "Created: / 01-11-2009 / 10:14:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   146
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   147
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   148
versionBColor
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   149
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   150
    ^Color blue lightened lightened
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   151
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   152
    "Created: / 01-11-2009 / 10:14:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   153
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   154
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   155
versionBaseColor
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   156
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   157
    ^Color yellow lightened lightened
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   158
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   159
    "Created: / 01-11-2009 / 10:14:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   160
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   161
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   162
versionNotPresentText
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   163
    ^ 'Not present' asText allItalic colorizeAllWith:Color gray lighter
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   164
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   165
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   166
!ChangeSetDiffTool class methodsFor:'image specs'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   167
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   168
versionA24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   169
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   170
    ^ToolbarIconLibrary versionA24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   171
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   172
    "Created: / 24-03-2010 / 20:49:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   173
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   174
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   175
versionB24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   176
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   177
    ^ToolbarIconLibrary versionB24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   178
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   179
    "Created: / 24-03-2010 / 20:50:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   180
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   181
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   182
!ChangeSetDiffTool class methodsFor:'interface specs'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   183
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   184
labelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   185
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   186
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   187
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   188
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   189
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   190
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   191
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   192
     UIPainter new openOnClass:SVN::DiffBrowser andSelector:#labelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   193
     SVN::DiffBrowser new openInterface:#labelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   194
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   195
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   196
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   197
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   198
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   199
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   200
        name: labelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   201
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   202
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   203
          label: 'Label'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   204
          name: 'Label'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   205
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   206
          bounds: (Rectangle 0 0 600 48)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   207
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   208
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   209
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   210
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   211
           (UISubSpecification
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   212
              name: 'LabelA'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   213
              layout: (LayoutFrame 0 0 0 0 0 1 0 0.5)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   214
              minorKey: versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   215
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   216
           (UISubSpecification
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   217
              name: 'LabelB'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   218
              layout: (LayoutFrame 0 0 0 0.5 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   219
              minorKey: versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   220
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   221
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   222
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   223
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   224
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   225
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   226
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   227
oneColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   228
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   229
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   230
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   231
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   232
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   233
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   234
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   235
     UIPainter new openOnClass:Tools::ChangeSetDiffBrowser andSelector:#oneColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   236
     Tools::ChangeSetDiffBrowser new openInterface:#oneColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   237
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   238
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   239
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   240
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   241
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   242
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   243
        name: oneColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   244
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   245
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   246
          label: 'One Column Navigator'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   247
          name: 'One Column Navigator'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   248
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   249
          bounds: (Rectangle 0 0 300 300)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   250
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   251
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   252
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   253
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   254
           (SubCanvasSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   255
              name: 'DiffList'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   256
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   257
              hasHorizontalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   258
              hasVerticalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   259
              majorKey: #'Tools::ChangeSetDiffList'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   260
              subAspectHolders: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   261
             (Array
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   262
                
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   263
               (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   264
                  subAspect: inGeneratorHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   265
                  aspect: diffsetHolderPrivate
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   266
                ) 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   267
               (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   268
                  subAspect: listEntryLabelGenerator
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   269
                  aspect: diffListEntryLabelGeneratorAspect
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   270
                )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   271
                
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   272
               (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   273
                  subAspect: menuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   274
                  aspect: listMenuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   275
                ) 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   276
               (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   277
                  subAspect: outGeneratorHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   278
                  aspect: selectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   279
                )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   280
              )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   281
              createNewApplication: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   282
              createNewBuilder: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   283
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   284
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   285
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   286
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   287
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   288
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   289
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   290
twoColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   291
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   292
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   293
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   294
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   295
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   296
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   297
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   298
     UIPainter new openOnClass:Tools::ChangeSetDiffBrowser andSelector:#twoColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   299
     Tools::ChangeSetDiffBrowser new openInterface:#twoColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   300
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   301
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   302
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   303
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   304
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   305
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   306
        name: twoColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   307
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   308
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   309
          label: 'Two Column Navigator'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   310
          name: 'Two Column Navigator'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   311
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   312
          bounds: (Rectangle 0 0 300 300)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   313
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   314
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   315
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   316
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   317
           (VariableHorizontalPanelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   318
              name: 'Columns'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   319
              layout: (LayoutFrame 0 0 0 0 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   320
              component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   321
             (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   322
                collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   323
                 (SubCanvasSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   324
                    name: 'FirstColumn'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   325
                    hasHorizontalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   326
                    hasVerticalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   327
                    majorKey: #'Tools::ChangeSetDiffList'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   328
                    subAspectHolders: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   329
                   (Array
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   330
                      
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   331
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   332
                        subAspect: inGeneratorHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   333
                        aspect: diffsetHolderPrivate
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   334
                      ) 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   335
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   336
                        subAspect: listEntryLabelGenerator
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   337
                        aspect: diffListEntryLabelGeneratorAspect
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   338
                      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   339
                      
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   340
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   341
                        subAspect: menuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   342
                        aspect: listMenuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   343
                      ) 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   344
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   345
                        subAspect: outGeneratorHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   346
                        aspect: firstColSelectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   347
                      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   348
                    )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   349
                    createNewApplication: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   350
                    createNewBuilder: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   351
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   352
                 (SubCanvasSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   353
                    name: 'SecondColumn'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   354
                    hasHorizontalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   355
                    hasVerticalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   356
                    majorKey: #'Tools::ChangeSetDiffList'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   357
                    subAspectHolders: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   358
                   (Array
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   359
                      
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   360
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   361
                        subAspect: inGeneratorHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   362
                        aspect: firstColSelectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   363
                      ) 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   364
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   365
                        subAspect: listEntryLabelGenerator
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   366
                        aspect: diffListEntryLabelGeneratorAspect
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   367
                      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   368
                      
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   369
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   370
                        subAspect: menuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   371
                        aspect: listMenuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   372
                      ) 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   373
                     (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   374
                        subAspect: outGeneratorHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   375
                        aspect: selectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   376
                      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   377
                    )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   378
                    createNewApplication: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   379
                    createNewBuilder: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   380
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   381
                 )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   382
               
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   383
              )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   384
              handles: (Any 0.5 1.0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   385
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   386
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   387
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   388
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   389
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   390
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   391
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   392
windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   393
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   394
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   395
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   396
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   397
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   398
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   399
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   400
     UIPainter new openOnClass:Tools::ChangeSetDiffTool andSelector:#windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   401
     Tools::ChangeSetDiffTool new openInterface:#windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   402
     Tools::ChangeSetDiffTool open
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   403
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   404
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   405
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   406
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   407
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   408
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   409
        name: windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   410
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   411
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   412
          label: 'Diff Browser'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   413
          name: 'Diff Browser'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   414
          min: (Point 10 10)
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   415
          bounds: (Rectangle 0 0 1024 768)
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   416
          menu: mainMenu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   417
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   418
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   419
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   420
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   421
           (UISubSpecification
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   422
              name: 'Label'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   423
              layout: (LayoutFrame 0 0 0 0 0 1 56 0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   424
              minorKey: labelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   425
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   426
           (VariableVerticalPanelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   427
              name: 'Panel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   428
              layout: (LayoutFrame 0 0 56 0 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   429
              showHandle: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   430
              component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   431
             (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   432
                collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   433
                 (SubCanvasSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   434
                    name: 'NavigatorPanel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   435
                    hasHorizontalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   436
                    hasVerticalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   437
                    specHolder: navigatorPanelSpecHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   438
                    createNewBuilder: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   439
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   440
                 (SubCanvasSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   441
                    name: 'TextDiff'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   442
                    majorKey: #'Tools::TextDiffTool'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   443
                    minorKey: windowSpecForEmbedding
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   444
                    specHolder: textDiffToolWindowSpecHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   445
                    clientHolder: textDiffToolHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   446
                    createNewBuilder: false
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   447
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   448
                 )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   449
               
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   450
              )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   451
              handles: (Any 0.5 1.0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   452
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   453
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   454
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   455
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   456
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   457
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   458
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   459
!ChangeSetDiffTool class methodsFor:'interface specs - labels'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   460
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   461
versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   462
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   463
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   464
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   465
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   466
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   467
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   468
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   469
     UIPainter new openOnClass:Tools::ChangeSetDiffTool andSelector:#versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   470
     Tools::ChangeSetDiffTool new openInterface:#versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   471
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   472
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   473
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   474
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   475
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   476
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   477
        name: versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   478
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   479
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   480
          label: 'Version A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   481
          name: 'Version A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   482
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   483
          bounds: (Rectangle 0 0 300 30)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   484
          backgroundColor: (Color 79.6078431372549 90.5882352941177 69.4117647058823)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   485
          forceRecursiveBackground: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   486
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   487
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   488
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   489
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   490
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   491
              label: 'versionA24x24'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   492
              name: 'VersionAIcon'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   493
              layout: (LayoutFrame 0 0 -12 0.5 27 0 12 0.5)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   494
              hasCharacterOrientedLabel: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   495
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   496
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   497
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   498
              label: 'Version A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   499
              name: 'VersionALabel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   500
              layout: (LayoutFrame 30 0 0 0 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   501
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   502
              labelChannel: versionALabelHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   503
              resizeForLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   504
              adjust: left
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   505
            )
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   506
           (LabelSpec
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   507
              label: '(A)'
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   508
              name: 'ALabel'
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   509
              layout: (LayoutFrame -30 1 0 0 0 1 0 1)
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   510
              translateLabel: true
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   511
            )
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   512
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   513
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   514
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   515
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   516
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   517
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   518
versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   519
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   520
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   521
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   522
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   523
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   524
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   525
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   526
     UIPainter new openOnClass:Tools::ChangeSetDiffTool andSelector:#versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   527
     Tools::ChangeSetDiffTool new openInterface:#versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   528
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   529
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   530
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   531
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   532
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   533
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   534
        name: versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   535
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   536
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   537
          label: 'Version B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   538
          name: 'Version B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   539
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   540
          bounds: (Rectangle 0 0 300 30)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   541
          backgroundColor: (Color 100.0 90.5882352941177 60.0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   542
          forceRecursiveBackground: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   543
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   544
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   545
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   546
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   547
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   548
              label: 'versionB24x24'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   549
              name: 'VersionBIcon'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   550
              layout: (LayoutFrame 0 0 -12 0.5 27 0 12 0.5)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   551
              hasCharacterOrientedLabel: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   552
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   553
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   554
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   555
              label: 'Version B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   556
              name: 'VersionBLabel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   557
              layout: (LayoutFrame 30 0 0 0 167 0 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   558
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   559
              labelChannel: versionBLabelHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   560
              resizeForLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   561
              adjust: left
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   562
              useDynamicPreferredWidth: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   563
              usePreferredWidth: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   564
            )
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   565
             (LabelSpec
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   566
             label: '(B)'
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   567
             name: 'BLabel'
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   568
             layout: (LayoutFrame -30 1 0 0 0 1 0 1)
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   569
             translateLabel: true
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   570
            )
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   571
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   572
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   573
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   574
      )
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   575
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   576
    "Modified: / 16-12-2011 / 14:17:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   577
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   578
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   579
!ChangeSetDiffTool class methodsFor:'menu specs'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   580
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   581
listMenu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   582
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   583
     by the MenuEditor of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   584
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   585
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   586
     the MenuEditor may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   587
12192
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   588
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   589
    "
12192
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   590
     MenuEditor new openOnClass:Tools::ChangeSetDiffTool andSelector:#listMenu
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   591
     (Menu new fromLiteralArrayEncoding:(Tools::ChangeSetDiffTool listMenu)) startUp
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   592
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   593
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   594
    <resource: #menu>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   595
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   596
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   597
     #(Menu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   598
        (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   599
         (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   600
            label: 'Browse'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   601
            itemValue: listMenuBrowse
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   602
            translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   603
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   604
         (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   605
            label: '-'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   606
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   607
         (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   608
            label: 'Load version A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   609
            itemValue: listMenuLoadVersionA
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   610
            nameKey: LoadVersionA
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   611
            translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   612
            labelImage: (ResourceRetriever #'SVN::IconLibrary' versionA16x16 'Load version A')
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   613
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   614
         (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   615
            label: 'Load version B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   616
            itemValue: listMenuLoadVersionB
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   617
            nameKey: LoadVersionB
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   618
            translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   619
            labelImage: (ResourceRetriever #'SVN::IconLibrary' versionB16x16 'Load version B')
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   620
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   621
         (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   622
            label: '-'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   623
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   624
         (MenuItem
12192
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   625
            label: 'Open in...'
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   626
            translateLabel: true
12192
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   627
            submenu: 
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   628
           (Menu
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   629
              (
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   630
               (MenuItem
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   631
                  enabled: hasSelection
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   632
                  label: 'Inspector'
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   633
                  itemValue: listMenuInspect
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   634
                  translateLabel: true
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   635
                )
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   636
               (MenuItem
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   637
                  label: 'kdiff3'
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   638
                  itemValue: listMenuOpenInExternal:
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   639
                  translateLabel: true
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   640
                  argument: 'kdiff3'
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   641
                )
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   642
               (MenuItem
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   643
                  label: 'meld'
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   644
                  itemValue: listMenuOpenInExternal:
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   645
                  translateLabel: true
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   646
                  argument: 'meld'
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   647
                )
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   648
               )
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   649
              nil
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   650
              nil
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
   651
            )
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   652
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   653
         )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   654
        nil
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   655
        nil
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   656
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   657
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   658
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   659
mainMenu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   660
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   661
     by the MenuEditor of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   662
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   663
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   664
     the MenuEditor may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   665
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   666
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   667
    "
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   668
     MenuEditor new openOnClass:Tools::ChangeSetDiffTool andSelector:#mainMenu
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   669
     (Menu new fromLiteralArrayEncoding:(Tools::ChangeSetDiffTool mainMenu)) startUp
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   670
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   671
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   672
    <resource: #menu>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   673
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   674
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   675
     #(Menu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   676
        (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   677
         (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   678
            label: 'File'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   679
            translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   680
            submenu: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   681
           (Menu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   682
              (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   683
               (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   684
                  label: 'Open'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   685
                  itemValue: fileMenuOpen
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   686
                  translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   687
                  shortcutKey: Ctrlo
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   688
                )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   689
               (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   690
                  enabled: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   691
                  label: 'Save as patch '
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   692
                  itemValue: fileMenuSaveAsPatch
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   693
                  translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   694
                )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   695
               (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   696
                  label: '-'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   697
                )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   698
               (MenuItem
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   699
                  label: 'Exit'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   700
                  itemValue: closeRequest
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   701
                  translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   702
                )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   703
               )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   704
              nil
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   705
              nil
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   706
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   707
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   708
         (MenuItem
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   709
            label: 'Changeset'
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   710
            translateLabel: true
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   711
            submenu: 
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   712
           (Menu
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   713
              (
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   714
               (MenuItem
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   715
                  label: 'Browse changes (A)'
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   716
                  itemValue: changesetMenuBrowseA
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   717
                  translateLabel: true
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   718
                )
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   719
                (MenuItem
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   720
                    label: 'Browse changes (B)'
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   721
                    itemValue: changesetMenuBrowseB
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   722
                    translateLabel: true
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   723
                    )
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   724
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   725
               )
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   726
              nil
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   727
              nil
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   728
            )
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   729
          )
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   730
         (MenuItem
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   731
            label: 'Diff'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   732
            translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   733
            submenuChannel: listMenu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   734
          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   735
         )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   736
        nil
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   737
        nil
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   738
      )
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   739
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   740
    "Modified: / 16-12-2011 / 14:24:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   741
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   742
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   743
!ChangeSetDiffTool class methodsFor:'plugIn spec'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   744
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   745
aspectSelectors
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   746
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   747
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   748
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   749
    "Do not manually edit this. If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   750
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   751
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   752
    "Return a description of exported aspects;
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   753
     these can be connected to aspects of an embedding application
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   754
     (if this app is embedded in a subCanvas)."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   755
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   756
    ^ #(
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   757
        #diffsetHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   758
      ).
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   759
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   760
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   761
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   762
!ChangeSetDiffTool methodsFor:'accessing'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   763
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   764
beSingleColumn
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   765
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   766
    self navigatorPanelSpecHolder value: #oneColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   767
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   768
    "Created: / 20-11-2009 / 20:41:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   769
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   770
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   771
beTwoColumn
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   772
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   773
    self navigatorPanelSpecHolder value: #twoColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   774
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   775
    "Created: / 20-11-2009 / 20:42:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   776
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   777
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   778
beTwoColumn: aBoolean
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   779
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   780
    aBoolean
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   781
        ifTrue:[self beTwoColumn]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   782
        ifFalse:[self beSingleColumn]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   783
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   784
    "Created: / 20-11-2009 / 20:43:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   785
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   786
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   787
diffset
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   788
    
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   789
    ^self diffsetHolder value
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   790
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   791
    "Created: / 05-12-2009 / 11:53:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   792
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   793
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   794
diffset: aDiff3Set
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   795
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   796
    self diffsetHolder value: aDiff3Set
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   797
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   798
    "Created: / 01-11-2009 / 09:33:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   799
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   800
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   801
patchset
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   802
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   803
    | patchset |
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   804
    patchset := ChangeSet new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   805
    self diffset do:
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   806
        [:diff|patchset add:diff versionA].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   807
    ^patchset
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   808
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   809
    "Created: / 05-12-2009 / 11:54:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   810
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   811
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   812
selection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   813
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   814
    ^self selectionHolder value
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   815
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   816
    "Created: / 22-10-2008 / 11:30:03 / Jan Vrany <vranyj1@fel.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   817
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   818
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   819
selection: selection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   820
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   821
    ^self selectionHolder value: selection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   822
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   823
    "Created: / 22-10-2008 / 11:30:11 / Jan Vrany <vranyj1@fel.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   824
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   825
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   826
title: aString
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   827
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   828
    self titleHolder value: aString
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   829
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   830
    "Created: / 19-11-2009 / 15:44:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   831
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   832
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   833
!ChangeSetDiffTool methodsFor:'accessing - selection'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   834
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   835
theSingleSelectedObject
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   836
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   837
    | sel selSize obj |
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   838
    sel := self selection.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   839
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   840
    (sel isCollection and:[self isString not])
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   841
        ifFalse:[^sel].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   842
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   843
    selSize := 0.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   844
    obj := nil.        
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   845
    sel do:
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   846
        [:each|
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   847
        selSize := selSize + 1.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   848
        selSize > 1 ifTrue:[^nil].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   849
        obj := each].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   850
    ^obj
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   851
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   852
    "Created: / 10-11-2009 / 11:12:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   853
    "Modified: / 20-11-2009 / 19:54:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   854
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   855
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   856
!ChangeSetDiffTool methodsFor:'accessing - subapps'!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   857
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   858
textDiff2Tool
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   859
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   860
    ^TextDiff2Tool new
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   861
        labelAHolder: self versionALabelHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   862
         textAHolder: self versionATextHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   863
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   864
        labelBHolder: self versionBLabelHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   865
         textBHolder: self versionBTextHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   866
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   867
        yourself
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   868
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   869
    "Created: / 16-03-2012 / 13:58:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   870
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   871
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   872
textDiff3Tool
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   873
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   874
    ^TextDiff3Tool new
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   875
        labelCHolder: self versionBaseLabelHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   876
         textCHolder: self versionBaseTextHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   877
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   878
        labelBHolder: self versionBLabelHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   879
         textBHolder: self versionBTextHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   880
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   881
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   882
        labelAHolder: self versionALabelHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   883
         textAHolder: self versionATextHolder;
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   884
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   885
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   886
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   887
        yourself
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   888
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   889
    "Created: / 16-03-2012 / 15:16:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   890
! !
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
   891
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   892
!ChangeSetDiffTool methodsFor:'aspects'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   893
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   894
diffListEntryLabelGeneratorAspect
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   895
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   896
    ^nil
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   897
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   898
    "Created: / 24-11-2009 / 10:01:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   899
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   900
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   901
diffsetHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   902
    "return/create the 'diffsetHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   903
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   904
    diffsetHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   905
        diffsetHolder := ValueHolder new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   906
        diffsetHolder addDependent:self.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   907
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   908
    ^ diffsetHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   909
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   910
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   911
diffsetHolder:aValueHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   912
    "set the 'diffsetHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   913
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   914
    |oldValue newValue|
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   915
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   916
    diffsetHolder notNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   917
        oldValue := diffsetHolder value.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   918
        diffsetHolder removeDependent:self.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   919
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   920
    diffsetHolder := aValueHolder.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   921
    diffsetHolder notNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   922
        diffsetHolder addDependent:self.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   923
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   924
    newValue := diffsetHolder value.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   925
    oldValue ~~ newValue ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   926
        self update:#value with:newValue from:diffsetHolder.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   927
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   928
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   929
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   930
diffsetHolderPrivate
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   931
    "return/create the 'diffSetHolderPrivate' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   932
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   933
    diffsetHolderPrivate isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   934
        diffsetHolderPrivate := ValueHolder with: (self diffsetHolder value).
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   935
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   936
    ^ diffsetHolderPrivate
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   937
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   938
    "Created: / 05-12-2009 / 11:03:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   939
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   940
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   941
firstColSelectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   942
    "return/create the valueHolder 'firstColSelectionHolder'"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   943
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   944
    firstColSelectionHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   945
        firstColSelectionHolder := ValueHolder with:nil "defaultValue here".
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   946
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   947
    ^ firstColSelectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   948
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   949
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   950
hasSelectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   951
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   952
    |holder|
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   953
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   954
    (holder := builder bindingAt:#hasSelectionHolder) isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   955
        holder := (AspectAdaptor forAspect: #notEmptyOrNil)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   956
            subjectChannel: self selectionHolder.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   957
        builder aspectAt:#hasSelectionHolder put: holder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   958
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   959
    ^ holder.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   960
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   961
    "Created: / 22-10-2008 / 11:34:36 / Jan Vrany <vranyj1@fel.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   962
    "Modified: / 22-10-2008 / 12:38:47 / Jan Vrany <vranyj1@fel.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   963
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   964
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   965
listHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   966
    "return/create the 'listHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   967
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   968
    listHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   969
        listHolder := ValueHolder new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   970
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   971
    ^ listHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   972
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   973
    "Modified: / 01-11-2009 / 16:57:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   974
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   975
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   976
listMenuHolder
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   977
    diffMenuHolder isNil ifTrue:[ 
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   978
        diffMenuHolder := ValueHolder with:(Menu decodeFromLiteralArray: self class listMenu) 
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   979
    ].
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   980
    ^ diffMenuHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   981
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   982
    "Created: / 21-11-2009 / 18:52:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   983
    "Modified: / 09-12-2009 / 23:34:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
   984
    "Modified: / 18-11-2011 / 14:57:47 / cg"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   985
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   986
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   987
nameAspect
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   988
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   989
    ^(AspectAdaptor forAspect: #name)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   990
        subjectChannel: self diffsetHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   991
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   992
    "Created: / 01-11-2009 / 11:14:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   993
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   994
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   995
navigatorPanelSpecHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   996
    <resource: #uiAspect>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   997
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   998
    navigatorPanelSpecHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
   999
        navigatorPanelSpecHolder := ValueHolder with: #twoColumnNavigatorSpec.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1000
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1001
    ^ navigatorPanelSpecHolder.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1002
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1003
    "Modified: / 20-11-2009 / 20:12:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1004
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1005
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1006
selectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1007
    "return/create the 'selectionHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1008
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1009
    selectionHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1010
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1011
        selectionHolder := ValueHolder new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1012
        selectionHolder addDependent:self.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1013
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1014
    ^ selectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1015
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1016
    "Modified (format): / 06-07-2011 / 12:25:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1017
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1018
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1019
singleSelectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1020
    "return/create the 'singleSelectionHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1021
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1022
    singleSelectionHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1023
        singleSelectionHolder := ValueHolder new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1024
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1025
    ^ singleSelectionHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1026
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1027
    "Modified: / 10-11-2009 / 11:09:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1028
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1029
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1030
textDiffToolHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1031
    "return/create the 'textDiffToolHolder' value holder (automatically generated)"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1032
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1033
    textDiffToolHolder isNil ifTrue:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1034
        textDiffToolHolder := ValueHolder with: self textDiff2Tool.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1035
    ].
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1036
    ^ textDiffToolHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1037
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1038
    "Modified: / 16-03-2012 / 13:57:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1039
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1040
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1041
textDiffToolHolder:something
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1042
    "set the 'textDiffToolHolder' value holder (automatically generated)"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1043
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1044
    textDiffToolHolder := something.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1045
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1046
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1047
textDiffToolWindowSpecHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1048
    "return/create the 'textDiffToolWindowSpecHolder' value holder (automatically generated)"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1049
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1050
    textDiffToolWindowSpecHolder isNil ifTrue:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1051
        textDiffToolWindowSpecHolder := #windowSpecForEmbedding asValue.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1052
    ].
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1053
    ^ textDiffToolWindowSpecHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1054
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1055
    "Modified: / 16-03-2012 / 13:57:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1056
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1057
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1058
textDiffToolWindowSpecHolder:something
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1059
    "set the 'textDiffToolWindowSpecHolder' value holder (automatically generated)"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1060
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1061
    textDiffToolWindowSpecHolder := something.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1062
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1063
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1064
titleHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1065
    "return/create the 'titleHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1066
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1067
    titleHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1068
        titleHolder := ValueHolder with: 'Diff Browser'.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1069
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1070
    ^ titleHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1071
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1072
    "Modified: / 01-11-2009 / 14:04:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1073
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1074
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1075
versionALabelHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1076
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1077
    ^(AspectAdaptor forAspect: #versionALabel)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1078
        subjectChannel: self diffsetHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1079
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1080
    "Created: / 09-04-2011 / 23:30:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1081
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1082
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1083
versionATextHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1084
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1085
    versionATextHolder isNil ifTrue:[
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1086
        versionATextHolder := ValueHolder new
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1087
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1088
    ^versionATextHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1089
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1090
    "Created: / 06-07-2011 / 12:05:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1091
    "Modified: / 18-11-2011 / 14:57:56 / cg"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1092
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1093
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1094
versionBLabelHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1095
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1096
    ^(AspectAdaptor forAspect: #versionBLabel)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1097
        subjectChannel: self diffsetHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1098
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1099
    "Created: / 09-04-2011 / 23:30:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1100
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1101
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1102
versionBTextHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1103
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1104
    versionBTextHolder isNil ifTrue:[
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1105
        versionBTextHolder := ValueHolder new
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1106
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1107
    ^versionBTextHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1108
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1109
    "Created: / 06-07-2011 / 12:05:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1110
    "Modified: / 18-11-2011 / 14:57:59 / cg"
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1111
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1112
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1113
versionBaseLabelHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1114
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1115
    ^(AspectAdaptor forAspect: #versionBaseLabel)
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1116
        subjectChannel: self diffsetHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1117
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1118
    "Created: / 16-03-2012 / 15:18:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1119
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1120
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1121
versionBaseTextHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1122
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1123
    versionBaseTextHolder isNil ifTrue:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1124
        versionBaseTextHolder := ValueHolder new
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1125
    ].
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1126
    ^versionBaseTextHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1127
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1128
    "Modified: / 18-11-2011 / 14:57:59 / cg"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1129
    "Created: / 16-03-2012 / 15:19:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1130
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1131
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1132
!ChangeSetDiffTool methodsFor:'change & update'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1133
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1134
diffsetChanged
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1135
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1136
    | ds |
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1137
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1138
    ds := self diffsetHolder value.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1139
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1140
    self diffsetHolderPrivate value: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1141
        (self isOneColumnBrowser 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1142
            ifTrue:[ds flattened]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1143
            ifFalse:[ds value]).
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1144
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1145
    self versionALabelHolder value: ds versionALabel.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1146
    self versionBLabelHolder value: ds versionBLabel.
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1147
    self versionBaseLabelHolder value: ds versionBaseLabel.
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1148
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1149
    "Created: / 05-12-2009 / 11:03:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1150
    "Modified: / 29-06-2011 / 08:24:18 / Jan Vrany <enter your email here>"
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1151
    "Modified: / 16-03-2012 / 15:42:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1152
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1153
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1154
selectionChanged
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1155
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1156
    | diffItem |
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1157
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1158
    diffItem := self theSingleSelectedObject.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1159
    self singleSelectionHolder value: diffItem.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1160
    diffItem isNil ifTrue:[^self].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1161
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1162
    self versionATextHolder setValue: diffItem versionAText.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1163
    self versionBTextHolder setValue: diffItem versionBText.
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1164
    self versionBaseTextHolder setValue: diffItem versionBaseText.
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1165
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1166
    self versionATextHolder changed: #value.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1167
    self versionBTextHolder changed: #value.
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1168
    self versionBaseTextHolder changed: #value
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1169
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1170
    "Created: / 22-10-2008 / 11:29:24 / Jan Vrany <vranyj1@fel.cvut.cz>"
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1171
    "Modified: / 16-03-2012 / 15:19:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1172
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1173
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1174
update: aspect with: param from: sender
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1175
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1176
    sender == selectionHolder ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1177
        self selectionChanged.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1178
        ^self.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1179
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1180
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1181
    sender == diffsetHolder ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1182
        self diffsetChanged.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1183
        ^self.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1184
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1185
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1186
    ^super update: aspect with: param from: sender
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1187
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1188
    "Created: / 05-12-2009 / 11:02:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1189
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1190
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1191
updateListMenu
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1192
    |menu diffs loadA loadB|
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1193
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1194
    menu := self listMenuHolder value.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1195
    diffs := self selection ? #().
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1196
    loadA := menu atNameKey:#LoadVersionA.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1197
    loadA disable.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1198
    loadB := menu atNameKey:#LoadVersionB.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1199
    loadB disable.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1200
    (diffs select:[:e | true ]) do:[:diff | 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1201
        diff versionA 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1202
            ifNotNil:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1203
                loadA enable.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1204
                loadA label:'Load version ' , diff versionALabel
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1205
            ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1206
        diff versionB 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1207
            ifNotNil:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1208
                loadB
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1209
                    label:'Load version ' , diff versionBLabel;
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1210
                    enable
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1211
            ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1212
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1213
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1214
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1215
!ChangeSetDiffTool methodsFor:'initialization'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1216
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1217
initialize
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1218
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1219
    super initialize.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1220
    self createBuilder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1221
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1222
    "Created: / 22-10-2008 / 12:37:14 / Jan Vrany <vranyj1@fel.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1223
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1224
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1225
!ChangeSetDiffTool methodsFor:'menu actions'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1226
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1227
changesetMenuBrowse: changeset
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1228
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1229
    Tools::ChangeSetBrowser2 openOn: changeset
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1230
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1231
    "Created: / 16-12-2011 / 14:31:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1232
!
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1233
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1234
changesetMenuBrowseA
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1235
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1236
    self changesetMenuBrowse: self diffsetHolder value changesetA
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1237
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1238
    "Created: / 16-12-2011 / 14:23:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1239
!
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1240
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1241
changesetMenuBrowseB
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1242
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1243
    self changesetMenuBrowse: self diffsetHolder value changesetB
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1244
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1245
    "Created: / 16-12-2011 / 14:27:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1246
!
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1247
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1248
fileMenuOpen
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1249
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1250
    | dlg a b base|
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1251
    dlg := OpenDialog new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1252
    dlg open ifFalse:[^self].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1253
    a := dlg changeSetA.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1254
    b := dlg changeSetB.
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1255
    base := dlg changeSetBase.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1256
    ^self fileMenuOpenOnDiffBetween: a and: b base: base.
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1257
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1258
    "Modified: / 16-03-2012 / 13:51:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1259
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1260
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1261
fileMenuOpenOnDiffBetween: a and: b
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1262
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1263
    ^self fileMenuOpenOnDiffBetween: a and: b base: nil.
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1264
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1265
    "Modified: / 29-06-2011 / 08:10:17 / Jan Vrany <enter your email here>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1266
    "Modified: / 06-07-2011 / 12:56:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1267
    "Created: / 16-03-2012 / 14:07:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1268
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1269
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1270
fileMenuOpenOnDiffBetween: a and: b base: base
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1271
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1272
    self diffset: (ChangeSetDiff versionA: a versionB: b versionBase: base).
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1273
    base notNil ifTrue:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1274
        textDiffToolHolder value isDiff3 ifFalse:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1275
            textDiffToolHolder value: self textDiff3Tool.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1276
        ].
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1277
    ] ifFalse:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1278
        textDiffToolHolder value isDiff2 ifFalse:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1279
            textDiffToolHolder value: self textDiff2Tool.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1280
        ].
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1281
    ]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1282
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1283
    "Modified: / 29-06-2011 / 08:10:17 / Jan Vrany <enter your email here>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1284
    "Created: / 16-03-2012 / 13:49:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1285
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1286
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1287
fileMenuSaveAsPatch
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1288
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1289
    | filename |
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1290
    filename := Smalltalk::Dialog requestFileName: 'Enter filename' default:'patch.chg' ifFail:[^self].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1291
    self patchset fileOutAs: filename.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1292
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1293
    "Modified: / 05-12-2009 / 12:37:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1294
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1295
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1296
listMenuBrowse
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1297
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1298
    | items |
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1299
    items := self selection collect:[:e|e]. "/must do collect as selection is an iterator..."
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1300
    items size == 1 ifTrue:[
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1301
        | item cls sel |
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1302
        item:= items anElement.
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1303
        cls := item changeClass.
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1304
        sel := item changeSelector.
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1305
        cls notNil ifTrue:[
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1306
            sel notNil ifTrue:[
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1307
                UserPreferences current systemBrowserClass
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1308
                    openInClass:cls selector:sel
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1309
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1310
            ] ifFalse:[
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1311
                UserPreferences current systemBrowserClass
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1312
                    browseClass: cls
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1313
            ]
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1314
        ] ifFalse:[
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1315
            Dialog warn: (self class resources at: 'Oops, class is gone')
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1316
        ]
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1317
    ] ifFalse:[
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1318
        Dialog error: 'Not yet implemented (Tools::ChangeSetDiffTool>>listMenuBrowse)'.                        
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1319
    ]
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1320
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1321
    "Created: / 30-11-2011 / 11:30:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1322
!
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1323
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1324
listMenuInspect
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1325
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1326
    (self selection collect:[:e|e]) inspect
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1327
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1328
    "Modified: / 24-11-2009 / 12:51:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1329
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1330
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1331
listMenuLoadVersionA
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1332
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1333
    self selection do:
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1334
        [:diff|diff versionA apply]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1335
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1336
    "Modified: / 09-12-2009 / 23:09:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1337
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1338
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1339
listMenuLoadVersionB
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1340
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1341
    self selection do:
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1342
        [:diff|diff versionB apply]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1343
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1344
    "Modified: / 09-12-2009 / 23:10:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12192
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1345
!
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1346
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1347
listMenuOpenInExternal: command
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1348
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1349
    (OperatingSystem canExecuteCommand: command) ifFalse:[
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1350
        Dialog warn: 'Sorry. ', command , ' is not installed or not in PATH'
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1351
    ].
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1352
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1353
    self selection do:[:item|
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1354
        | base a b cmd |
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1355
        item versionBase notNil ifTrue:[
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1356
            base := Filename newTemporary.
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1357
            base writingFileDo:[:s|s nextPutAll: item versionBase source].
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1358
        ].
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1359
        a := Filename newTemporary.
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1360
        a writingFileDo:[:s|s nextPutAll: item versionA source].
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1361
        b := Filename newTemporary.
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1362
        b writingFileDo:[:s|s nextPutAll: item versionB source].
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1363
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1364
        base isNil ifTrue:[
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1365
            cmd := '%1 %2 %3' bindWith: command with: a pathName with: b pathName
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1366
        ] ifFalse:[
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1367
            cmd := '%1 %4 %2 %3 ' bindWith: command with: a pathName with: b pathName with: base pathName.
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1368
        ].
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1369
        [ OperatingSystem executeCommand: cmd.
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1370
        a remove.
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1371
        b remove.
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1372
        base notNil ifTrue:[base remove]. ] fork
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1373
    ]
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1374
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1375
    "Modified: / 17-03-2012 / 08:55:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1376
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1377
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1378
!ChangeSetDiffTool methodsFor:'queries'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1379
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1380
canBrowse
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1381
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1382
    ^true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1383
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1384
    "^[self selection notNil 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1385
        and:[self selection versionA notNil]]"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1386
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1387
    "Created: / 02-11-2009 / 18:32:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1388
    "Modified: / 21-11-2009 / 18:46:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1389
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1390
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1391
hasSelection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1392
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1393
    ^[self selection notNil]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1394
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1395
    "Created: / 03-11-2009 / 10:48:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1396
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1397
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1398
isOneColumnBrowser
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1399
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1400
    ^self navigatorPanelSpecHolder value = #oneColumnNavigatorSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1401
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1402
    "Created: / 05-12-2009 / 11:04:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1403
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1404
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1405
!ChangeSetDiffTool::OpenDialog class methodsFor:'image specs'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1406
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1407
versionA24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1408
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1409
    ^ToolbarIconLibrary versionA24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1410
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1411
    "Created: / 24-03-2010 / 20:49:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1412
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1413
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1414
versionB24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1415
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1416
    ^ToolbarIconLibrary versionB24x24
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1417
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1418
    "Created: / 24-03-2010 / 20:50:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1419
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1420
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1421
!ChangeSetDiffTool::OpenDialog class methodsFor:'interface specs'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1422
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1423
windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1424
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1425
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1426
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1427
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1428
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1429
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1430
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1431
     UIPainter new openOnClass:Tools::ChangeSetDiffBrowser::OpenDialog andSelector:#windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1432
     Tools::ChangeSetDiffBrowser::OpenDialog new openInterface:#windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1433
     Tools::ChangeSetDiffBrowser::OpenDialog open
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1434
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1435
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1436
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1437
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1438
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1439
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1440
        name: windowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1441
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1442
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1443
          label: 'Open...'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1444
          name: 'Open...'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1445
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1446
          bounds: (Rectangle 0 0 640 130)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1447
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1448
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1449
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1450
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1451
           (VariableHorizontalPanelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1452
              name: 'ChangeSetsSpecPanel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1453
              layout: (LayoutFrame 0 0 0 0 0 1 -30 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1454
              barWidth: 3
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1455
              showHandle: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1456
              component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1457
             (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1458
                collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1459
                 (ViewSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1460
                    name: 'A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1461
                    component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1462
                   (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1463
                      collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1464
                       (UISubSpecification
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1465
                          name: 'SubSpecification1'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1466
                          layout: (LayoutFrame 0 0 0 0 0 1 30 0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1467
                          minorKey: versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1468
                        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1469
                       (SubCanvasSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1470
                          name: 'ChangesetASpec'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1471
                          layout: (LayoutFrame 0 0 30 0 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1472
                          hasHorizontalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1473
                          hasVerticalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1474
                          majorKey: #'Tools::ChangeSetSelectionDialog'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1475
                          minorKey: windowSpecForEmbedding
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1476
                          subAspectHolders: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1477
                         (Array
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1478
                            
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1479
                           (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1480
                              subAspect: specHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1481
                              aspect: changesetSpecAHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1482
                            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1483
                          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1484
                          createNewApplication: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1485
                          createNewBuilder: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1486
                        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1487
                       )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1488
                     
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1489
                    )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1490
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1491
                 (ViewSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1492
                    name: 'B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1493
                    component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1494
                   (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1495
                      collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1496
                       (UISubSpecification
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1497
                          name: 'SubSpecification2'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1498
                          layout: (LayoutFrame 0 0 0 0 0 1 30 0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1499
                          minorKey: versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1500
                        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1501
                       (SubCanvasSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1502
                          name: 'SubCanvas1'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1503
                          layout: (LayoutFrame 0 0 30 0 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1504
                          hasHorizontalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1505
                          hasVerticalScrollBar: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1506
                          majorKey: #'Tools::ChangeSetSelectionDialog'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1507
                          minorKey: windowSpecForEmbedding
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1508
                          subAspectHolders: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1509
                         (Array
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1510
                            
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1511
                           (SubChannelInfoSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1512
                              subAspect: specHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1513
                              aspect: changesetSpecBHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1514
                            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1515
                          )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1516
                          createNewApplication: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1517
                          createNewBuilder: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1518
                        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1519
                       )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1520
                     
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1521
                    )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1522
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1523
                 )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1524
               
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1525
              )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1526
              handles: (Any 0.5 1.0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1527
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1528
           (HorizontalPanelViewSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1529
              name: 'ButtonPanel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1530
              layout: (LayoutFrame 3 0 -30 1 -3 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1531
              horizontalLayout: right
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1532
              verticalLayout: center
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1533
              horizontalSpace: 3
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1534
              verticalSpace: 3
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1535
              reverseOrderIfOKAtLeft: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1536
              component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1537
             (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1538
                collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1539
                 (ActionButtonSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1540
                    label: 'OK'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1541
                    name: 'Button1'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1542
                    translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1543
                    model: doAccept
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1544
                    enableChannel: doAcceptEnabled
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1545
                    extent: (Point 125 22)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1546
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1547
                 (ActionButtonSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1548
                    label: 'Cancel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1549
                    name: 'Button2'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1550
                    translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1551
                    model: doCancel
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1552
                    extent: (Point 125 22)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1553
                  )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1554
                 )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1555
               
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1556
              )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1557
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1558
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1559
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1560
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1561
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1562
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1563
    "Modified: / 06-07-2011 / 11:32:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1564
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1565
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1566
!ChangeSetDiffTool::OpenDialog class methodsFor:'interface specs - labels'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1567
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1568
versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1569
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1570
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1571
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1572
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1573
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1574
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1575
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1576
     UIPainter new openOnClass:Tools::ChangeSetDiffBrowser::OpenDialog andSelector:#versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1577
     Tools::ChangeSetDiffBrowser::OpenDialog new openInterface:#versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1578
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1579
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1580
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1581
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1582
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1583
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1584
        name: versionALabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1585
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1586
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1587
          label: 'Version A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1588
          name: 'Changeset A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1589
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1590
          bounds: (Rectangle 0 0 300 30)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1591
          backgroundColor: (Color 79.6078431372549 90.5882352941177 69.4117647058823)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1592
          forceRecursiveBackground: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1593
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1594
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1595
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1596
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1597
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1598
              label: 'versionA24x24'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1599
              name: 'VersionAIcon'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1600
              layout: (LayoutFrame 0 0 -12 0.5 27 0 12 0.5)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1601
              hasCharacterOrientedLabel: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1602
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1603
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1604
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1605
              label: 'Version A'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1606
              name: 'VersionALabel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1607
              layout: (LayoutFrame 30 0 5 0 0 1 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1608
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1609
              resizeForLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1610
              adjust: left
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1611
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1612
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1613
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1614
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1615
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1616
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1617
    "Modified: / 06-07-2011 / 11:24:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1618
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1619
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1620
versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1621
    "This resource specification was automatically generated
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1622
     by the UIPainter of ST/X."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1623
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1624
    "Do not manually edit this!! If it is corrupted,
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1625
     the UIPainter may not be able to read the specification."
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1626
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1627
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1628
     UIPainter new openOnClass:Tools::ChangeSetDiffBrowser::OpenDialog andSelector:#versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1629
     Tools::ChangeSetDiffBrowser::OpenDialog new openInterface:#versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1630
    "
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1631
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1632
    <resource: #canvas>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1633
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1634
    ^ 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1635
     #(FullSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1636
        name: versionBLabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1637
        window: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1638
       (WindowSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1639
          label: 'Version B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1640
          name: 'Changeset B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1641
          min: (Point 10 10)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1642
          bounds: (Rectangle 0 0 300 30)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1643
          backgroundColor: (Color 100.0 90.5882352941177 60.0)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1644
          forceRecursiveBackground: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1645
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1646
        component: 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1647
       (SpecCollection
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1648
          collection: (
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1649
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1650
              label: 'versionB24x24'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1651
              name: 'VersionBIcon'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1652
              layout: (LayoutFrame 0 0 -12 0.5 27 0 12 0.5)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1653
              hasCharacterOrientedLabel: false
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1654
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1655
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1656
           (LabelSpec
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1657
              label: 'Version B'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1658
              name: 'VersionBLabel'
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1659
              layout: (LayoutFrame 30 0 5 0 97 0 0 1)
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1660
              translateLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1661
              resizeForLabel: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1662
              adjust: left
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1663
              useDynamicPreferredWidth: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1664
              usePreferredWidth: true
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1665
            )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1666
           )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1667
         
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1668
        )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1669
      )
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1670
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1671
    "Modified: / 06-07-2011 / 11:24:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1672
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1673
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1674
!ChangeSetDiffTool::OpenDialog methodsFor:'accessing'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1675
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1676
changeSetA
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1677
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1678
    | specA |
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1679
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1680
    specA := self changesetSpecAHolder value.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1681
    ^specA ifNil:[nil] ifNotNil:[specA changeSet]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1682
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1683
    "Created: / 06-07-2011 / 11:36:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1684
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1685
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1686
changeSetB
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1687
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1688
    | specB |
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1689
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1690
    specB := self changesetSpecBHolder value.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1691
    ^specB ifNil:[nil] ifNotNil:[specB changeSet]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1692
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1693
    "Created: / 06-07-2011 / 11:36:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1694
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1695
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1696
changeSetBase
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1697
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1698
    | specBase |
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1699
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1700
    specBase := self changesetSpecBaseHolder value.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1701
    ^specBase ifNil:[nil] ifNotNil:[specBase changeSet]
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1702
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1703
    "Created: / 16-03-2012 / 13:48:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1704
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1705
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1706
!ChangeSetDiffTool::OpenDialog methodsFor:'aspects'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1707
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1708
changesetSpecAHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1709
    "return/create the 'changesetSpecAHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1710
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1711
    changesetSpecAHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1712
        changesetSpecAHolder := ValueHolder new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1713
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1714
    ^ changesetSpecAHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1715
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1716
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1717
changesetSpecAHolder:something
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1718
    "set the 'changesetSpecAHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1719
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1720
    changesetSpecAHolder := something.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1721
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1722
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1723
changesetSpecBHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1724
    "return/create the 'changesetSpecBHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1725
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1726
    changesetSpecBHolder isNil ifTrue:[
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1727
        changesetSpecBHolder := ValueHolder new.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1728
    ].
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1729
    ^ changesetSpecBHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1730
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1731
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1732
changesetSpecBHolder:something
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1733
    "set the 'changesetSpecBHolder' value holder (automatically generated)"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1734
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1735
    changesetSpecBHolder := something.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1736
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1737
12179
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1738
changesetSpecBaseHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1739
    "return/create the 'changesetSpecBHolder' value holder (automatically generated)"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1740
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1741
    changesetSpecBaseHolder isNil ifTrue:[
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1742
        changesetSpecBaseHolder := ValueHolder new.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1743
    ].
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1744
    ^ changesetSpecBaseHolder
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1745
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1746
    "Created: / 16-03-2012 / 13:48:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1747
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1748
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1749
changesetSpecBaseHolder:something
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1750
    "set the 'changesetSpecBHolder' value holder (automatically generated)"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1751
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1752
    changesetSpecBaseHolder := something.
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1753
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1754
    "Created: / 16-03-2012 / 13:49:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1755
!
47f98e7d6de1 Improvments towards merge tool
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12128
diff changeset
  1756
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1757
doAcceptEnabled
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1758
    <resource: #uiAspect>
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1759
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1760
    ^BlockValue 
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1761
        with:[:a :b|a value notNil and:[b value notNil]]
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1762
        argument:self changesetSpecAHolder
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1763
        argument:self changesetSpecAHolder.
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1764
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1765
    "Modified: / 06-07-2011 / 11:26:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1766
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1767
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1768
!ChangeSetDiffTool::OpenDialog methodsFor:'events'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1769
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1770
closeAccept
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1771
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1772
    ^super closeAccept
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1773
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1774
    "Created: / 06-07-2011 / 12:09:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1775
! !
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1776
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1777
!ChangeSetDiffTool class methodsFor:'documentation'!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1778
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1779
version_CVS
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1780
    ^ '§Header: /cvs/stx/stx/libtool/Tools__ChangeSetDiffTool.st,v 1.5 2011/12/19 08:39:53 vrany Exp §'
10194
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1781
!
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1782
ce5e1fc44d81 initial checkin
vrany
parents:
diff changeset
  1783
version_SVN
12192
15f47901fb64 Fixes in Diff2/Diff3 text views
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12179
diff changeset
  1784
    ^ '$Id: Tools__ChangeSetDiffTool.st 7938 2012-03-17 10:21:50Z vranyj1 $'
12125
0c49a3b13e43 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12123
diff changeset
  1785
! !