9977
|
1 |
"
|
10069
|
2 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
|
|
3 |
All Rights Reserved
|
9977
|
4 |
|
10069
|
5 |
Permission is hereby granted, free of charge, to any person
|
|
6 |
obtaining a copy of this software and associated documentation
|
|
7 |
files (the 'Software'), to deal in the Software without
|
|
8 |
restriction, including without limitation the rights to use,
|
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10 |
copies of the Software, and to permit persons to whom the
|
|
11 |
Software is furnished to do so, subject to the following
|
|
12 |
conditions:
|
|
13 |
|
|
14 |
The above copyright notice and this permission notice shall be
|
|
15 |
included in all copies or substantial portions of the Software.
|
|
16 |
|
|
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24 |
OTHER DEALINGS IN THE SOFTWARE.
|
9977
|
25 |
"
|
|
26 |
"{ Package: 'stx:libtool' }"
|
|
27 |
|
|
28 |
"{ NameSpace: Tools }"
|
|
29 |
|
|
30 |
ApplicationModel subclass:#DiffCodeView2DemoApp
|
|
31 |
instanceVariableNames:'view'
|
|
32 |
classVariableNames:''
|
|
33 |
poolDictionaries:''
|
|
34 |
category:'Interface-CodeView'
|
|
35 |
!
|
|
36 |
|
|
37 |
!DiffCodeView2DemoApp class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
copyright
|
|
40 |
"
|
10069
|
41 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
|
|
42 |
All Rights Reserved
|
|
43 |
|
|
44 |
Permission is hereby granted, free of charge, to any person
|
|
45 |
obtaining a copy of this software and associated documentation
|
|
46 |
files (the 'Software'), to deal in the Software without
|
|
47 |
restriction, including without limitation the rights to use,
|
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49 |
copies of the Software, and to permit persons to whom the
|
|
50 |
Software is furnished to do so, subject to the following
|
|
51 |
conditions:
|
9977
|
52 |
|
10069
|
53 |
The above copyright notice and this permission notice shall be
|
|
54 |
included in all copies or substantial portions of the Software.
|
|
55 |
|
|
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
63 |
OTHER DEALINGS IN THE SOFTWARE.
|
9977
|
64 |
"
|
|
65 |
! !
|
|
66 |
|
|
67 |
!DiffCodeView2DemoApp class methodsFor:'interface specs'!
|
|
68 |
|
|
69 |
windowSpec
|
|
70 |
"This resource specification was automatically generated
|
|
71 |
by the UIPainter of ST/X."
|
|
72 |
|
|
73 |
"Do not manually edit this!! If it is corrupted,
|
|
74 |
the UIPainter may not be able to read the specification."
|
|
75 |
|
|
76 |
"
|
|
77 |
UIPainter new openOnClass:Tools::DiffCodeView2DemoApp andSelector:#windowSpec
|
|
78 |
Tools::DiffCodeView2DemoApp new openInterface:#windowSpec
|
|
79 |
Tools::DiffCodeView2DemoApp open
|
|
80 |
"
|
|
81 |
|
|
82 |
<resource: #canvas>
|
|
83 |
|
|
84 |
^
|
|
85 |
#(FullSpec
|
|
86 |
name: windowSpec
|
|
87 |
window:
|
|
88 |
(WindowSpec
|
|
89 |
label: 'DiffCodeView2 Demo App'
|
|
90 |
name: 'DiffCodeView2 Demo App'
|
|
91 |
min: (Point 0 0)
|
|
92 |
bounds: (Rectangle 0 0 748 375)
|
|
93 |
)
|
|
94 |
component:
|
|
95 |
(SpecCollection
|
|
96 |
collection: (
|
|
97 |
(NonScrollableArbitraryComponentSpec
|
|
98 |
name: 'DiffCodeView2'
|
|
99 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
100 |
component: diffCodeView2
|
|
101 |
)
|
|
102 |
)
|
|
103 |
|
|
104 |
)
|
|
105 |
)
|
|
106 |
! !
|
|
107 |
|
|
108 |
!DiffCodeView2DemoApp methodsFor:'accessing'!
|
|
109 |
|
|
110 |
text1
|
|
111 |
|
|
112 |
^
|
|
113 |
'multipleClassRepositoryDiffBrowserSpec
|
|
114 |
"This resource specification was automatically generated
|
|
115 |
by the UIPainter of ST/X."
|
|
116 |
|
|
117 |
"Do not manually edit this!! If it is corrupted,
|
|
118 |
the UIPainter may not be able to read the specification."
|
|
119 |
|
|
120 |
"
|
|
121 |
UIPainter new openOnClass:NewSystemBrowser andSelector:#multipleClassRepositoryDiffBrowserSpec
|
|
122 |
NewSystemBrowser new openInterface:#multipleClassRepositoryDiffBrowserSpec
|
|
123 |
"
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
^
|
|
128 |
#(#FullSpec
|
|
129 |
#name: #multipleClassRepositoryDiffBrowserSpec
|
|
130 |
|
|
131 |
#window:
|
|
132 |
#(#WindowSpec
|
|
133 |
#label: ''CCB (Cool Class Browser)''
|
|
134 |
#name: ''ClassBrowser''
|
|
135 |
#min: #(#Point 0 0)
|
|
136 |
#bounds: #(#Rectangle 661 213 1123 513)
|
|
137 |
)
|
|
138 |
#component:
|
|
139 |
#(#SpecCollection
|
|
140 |
#collection: #(
|
|
141 |
#(#VariableVerticalPanelSpec
|
|
142 |
#name: ''VariableVerticalPanel1''
|
|
143 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
144 |
#showHandle: false
|
|
145 |
#snapMode: #both
|
|
146 |
#handlePosition: #left
|
|
147 |
#component:
|
|
148 |
#(#SpecCollection
|
|
149 |
#collection: #(
|
|
150 |
#(#SubCanvasSpec
|
|
151 |
#name: ''Navigator''
|
|
152 |
#autoHideScrollBars: false
|
|
153 |
#majorKey: #''NavigatorCanvas''
|
|
154 |
|
|
155 |
|
|
156 |
#minorKey: #multipleClassDiffBrowserSpec
|
|
157 |
)
|
|
158 |
#(#SubCanvasSpec
|
|
159 |
#name: ''DiffView''
|
|
160 |
#hasHorizontalScrollBar: false
|
|
161 |
|
|
162 |
|
|
163 |
#hasVerticalScrollBar: false
|
|
164 |
#majorKey: #VersionDiffBrowser
|
|
165 |
#minorKey: #windowSpec
|
|
166 |
#createNewApplication: true
|
|
167 |
#createNewBuilder: true
|
|
168 |
#postBuildCallback: #versionDiffViewerCreated:
|
|
169 |
)
|
|
170 |
)
|
|
171 |
|
|
172 |
)
|
|
173 |
#handles: #(#Any 0.3 1.0)
|
|
174 |
)
|
|
175 |
)
|
|
176 |
|
|
177 |
)
|
|
178 |
)
|
|
179 |
|
|
180 |
|
|
181 |
'
|
|
182 |
|
|
183 |
"Modified: / 22-06-2010 / 22:25:20 / Jakub <zelenja7@fel.cvut.cz>"
|
|
184 |
"Created: / 01-08-2010 / 20:34:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
185 |
!
|
|
186 |
|
|
187 |
text2
|
|
188 |
|
|
189 |
^
|
|
190 |
'multipleClassRepositoryDiffBrowserSpec
|
|
191 |
"This resource specification was automatically generated
|
|
192 |
by the UIPainter of ST/X."
|
|
193 |
|
|
194 |
"Do not manually edit this!! If it is corrupted,
|
|
195 |
the UIPainter may not be able to read the specification."
|
|
196 |
|
|
197 |
"
|
|
198 |
UIPainter new openOnClass:NewSystemBrowser andSelector:#multipleClassRepositoryDiffBrowserSpec
|
|
199 |
NewSystemBrowser new openInterface:#multipleClassRepositoryDiffBrowserSpec
|
|
200 |
"
|
|
201 |
|
|
202 |
<resource: #canvas>
|
|
203 |
|
|
204 |
^
|
|
205 |
#(#FullSpec
|
|
206 |
#name: #multipleClassRepositoryDiffBrowserSpec
|
|
207 |
#window:
|
|
208 |
#(#WindowSpec
|
|
209 |
#label: ''ClassBrowser''
|
|
210 |
#name: ''ClassBrowser''
|
|
211 |
#min: #(#Point 0 0)
|
|
212 |
#bounds: #(#Rectangle 661 213 1123 513)
|
|
213 |
)
|
|
214 |
#component:
|
|
215 |
#(#SpecCollection
|
|
216 |
#collection: #(
|
|
217 |
#(#VariableVerticalPanelSpec
|
|
218 |
#name: ''VariableVerticalPanel1''
|
|
219 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
220 |
#showHandle: false
|
|
221 |
#snapMode: #both
|
|
222 |
#handlePosition: #left
|
|
223 |
#component:
|
|
224 |
#(#SpecCollection
|
|
225 |
#collection: #(
|
|
226 |
#(#SubCanvasSpec
|
|
227 |
#name: ''Navigator''
|
|
228 |
#autoHideScrollBars: false
|
|
229 |
#majorKey: #''NavigatorCanvas''
|
|
230 |
|
|
231 |
|
|
232 |
#minorKey: #multipleClassDiffBrowserSpec
|
|
233 |
)
|
|
234 |
#(#SubCanvasSpec
|
|
235 |
#name: ''DiffView''
|
|
236 |
#hasHorizontalScrollBar: false
|
|
237 |
|
|
238 |
|
|
239 |
#hasVerticalScrollBar: false
|
|
240 |
#majorKey: #VersionDiffBrowser
|
|
241 |
#minorKey: #windowSpec
|
|
242 |
#createNewApplication: true
|
|
243 |
#createNewBuilder: true
|
|
244 |
#postBuildCallback: #versionDiffViewerCreated:
|
|
245 |
)
|
|
246 |
)
|
|
247 |
|
|
248 |
)
|
|
249 |
#handles: #(#Any 0.3 1.0)
|
|
250 |
)
|
|
251 |
)
|
|
252 |
|
|
253 |
)
|
|
254 |
)
|
|
255 |
|
|
256 |
|
|
257 |
'
|
|
258 |
|
|
259 |
"Created: / 06-03-2010 / 10:39:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
260 |
"Modified: / 22-06-2010 / 22:25:20 / Jakub <zelenja7@fel.cvut.cz>"
|
|
261 |
"Modified: / 08-07-2010 / 15:17:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
262 |
! !
|
|
263 |
|
|
264 |
!DiffCodeView2DemoApp methodsFor:'accessing - views'!
|
|
265 |
|
|
266 |
diffCodeView2
|
|
267 |
|
|
268 |
view := DiffCodeView2 new.
|
|
269 |
|
|
270 |
view text1: 'abc
|
|
271 |
def' text2: 'def
|
|
272 |
ghi'.
|
|
273 |
|
|
274 |
"/ view text1: self text1 text2: self text2.
|
|
275 |
^view
|
|
276 |
|
|
277 |
"Created: / 06-03-2010 / 10:38:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
278 |
"Modified: / 08-07-2010 / 15:29:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
279 |
! !
|
|
280 |
|
|
281 |
!DiffCodeView2DemoApp methodsFor:'hooks'!
|
|
282 |
|
|
283 |
commonPostOpen
|
|
284 |
|
|
285 |
[ Delay waitForSeconds: 1.
|
|
286 |
view text1: self text1 text2: self text2
|
|
287 |
] fork
|
|
288 |
|
|
289 |
"Modified: / 08-07-2010 / 15:27:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
290 |
! !
|
|
291 |
|
|
292 |
!DiffCodeView2DemoApp class methodsFor:'documentation'!
|
|
293 |
|
|
294 |
version_CVS
|
10069
|
295 |
^ '$Header: /cvs/stx/stx/libtool/Tools__DiffCodeView2DemoApp.st,v 1.2 2011-07-03 17:50:00 cg Exp $'
|
9977
|
296 |
!
|
|
297 |
|
|
298 |
version_SVN
|
|
299 |
^ '§Id: Tools__DiffCodeView2DemoApp.st 7611 2010-08-01 18:42:05Z vranyj1 §'
|
|
300 |
! !
|