author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 08 Sep 2015 01:03:02 +0100 | |
branch | jv |
changeset 1004 | e48adfaf3541 |
parent 994 | 73e11bcc0ff1 |
child 1005 | fe6be0a71dbe |
permissions | -rw-r--r-- |
289 | 1 |
"{ Package: 'stx:goodies/monticello' }" |
2 |
||
970 | 3 |
"{ NameSpace: Smalltalk }" |
4 |
||
289 | 5 |
ApplicationModel subclass:#MCRepositoryBrowser |
911 | 6 |
instanceVariableNames:'repositoriesHolder packagesHolder versionsHolder |
7 |
selectedVersionHolder worker selectedVersionDetailsHolder |
|
8 |
selectedRepositoryHolder targetPackage targetNamespace |
|
9 |
lastPackage targetPackageHolder targetNamespaceNameHolder |
|
10 |
updateChangefileHolder selectedPackageHolder' |
|
11 |
classVariableNames:'LastAddedRepository LastAddedURLString' |
|
12 |
poolDictionaries:'' |
|
13 |
category:'SCM-Monticello-St/X UI' |
|
289 | 14 |
! |
15 |
||
16 |
||
563
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
17 |
!MCRepositoryBrowser class methodsFor:'initialization'! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
18 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
19 |
initialize |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
20 |
"/ self installInLauncher. - now done in phase 2 |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
21 |
ObjectMemory addDependent:self. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
22 |
! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
23 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
24 |
installInLauncher |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
25 |
|menuItem action| |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
26 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
27 |
NewLauncher isNil ifTrue:[^ self]. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
28 |
ToolbarIconLibrary isNil ifTrue:[^ self]. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
29 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
30 |
"/ NewLauncher removeUserTool:#TestRunner2. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
31 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
32 |
"Class may be changed, and we want to start the changed class" |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
33 |
"/ action := (MessageSend receiver:(Smalltalk at:self name) selector:#open). |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
34 |
action := [ (Smalltalk at:self name) open ]. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
35 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
36 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
37 |
"Install in Tools menu" |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
38 |
menuItem := (MenuItem label:'Monticello Browser') |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
39 |
nameKey:#MonticelloBrowser; |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
40 |
"/labelImage:self startSUnitIcon; |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
41 |
value:action; |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
42 |
isButton:false. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
43 |
NewLauncher |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
44 |
addMenuItem:menuItem |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
45 |
from:self |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
46 |
in:'menu.tools.programming' |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
47 |
position:nil |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
48 |
space:false. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
49 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
50 |
"Created: / 05-05-2012 / 19:12:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
51 |
! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
52 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
53 |
update:something with:aParameter from:changedObject |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
54 |
something == #initialized ifTrue:[ |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
55 |
changedObject == ObjectMemory ifTrue:[ |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
56 |
self installInLauncher. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
57 |
ObjectMemory removeDependent:self. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
58 |
] |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
59 |
]. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
60 |
! ! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
61 |
|
485 | 62 |
!MCRepositoryBrowser class methodsFor:'help specs'! |
63 |
||
64 |
flyByHelpSpec |
|
65 |
"This resource specification was automatically generated |
|
66 |
by the UIHelpTool of ST/X." |
|
67 |
||
68 |
"Do not manually edit this!! If it is corrupted, |
|
69 |
the UIHelpTool may not be able to read the specification." |
|
70 |
||
71 |
" |
|
72 |
UIHelpTool openOnClass:MCRepositoryBrowser |
|
73 |
" |
|
74 |
||
75 |
<resource: #help> |
|
76 |
||
77 |
^ super flyByHelpSpec addPairsFrom:#( |
|
78 |
||
558 | 79 |
#browseVersion |
80 |
'Open a changelist browser on the selected version' |
|
81 |
||
485 | 82 |
#loadVersion |
83 |
'Load the selected version' |
|
84 |
||
85 |
#targetNamespace |
|
86 |
'Namespace override. Change via the "Loading"-Menu' |
|
87 |
||
88 |
#targetPackage |
|
89 |
'ST/X Package override. Change via the "Loading"-Menu' |
|
90 |
||
91 |
) |
|
92 |
||
93 |
"Created: / 07-09-2011 / 15:13:00 / cg" |
|
94 |
! ! |
|
95 |
||
289 | 96 |
!MCRepositoryBrowser class methodsFor:'interface specs'! |
97 |
||
98 |
packageDetailsSpec |
|
99 |
"This resource specification was automatically generated |
|
100 |
by the UIPainter of ST/X." |
|
101 |
||
102 |
"Do not manually edit this!! If it is corrupted, |
|
103 |
the UIPainter may not be able to read the specification." |
|
104 |
||
105 |
" |
|
472 | 106 |
UIPainter new openOnClass:MCRepositoryBrowser andSelector:#packageDetailsSpec |
107 |
MCRepositoryBrowser new openInterface:#packageDetailsSpec |
|
289 | 108 |
" |
109 |
||
110 |
<resource: #canvas> |
|
111 |
||
112 |
^ |
|
113 |
#(FullSpec |
|
472 | 114 |
name: packageDetailsSpec |
289 | 115 |
window: |
116 |
(WindowSpec |
|
117 |
label: 'MC Package Details' |
|
118 |
name: 'MC Package Details' |
|
119 |
min: (Point 10 10) |
|
120 |
bounds: (Rectangle 0 0 533 326) |
|
121 |
) |
|
122 |
component: |
|
123 |
(SpecCollection |
|
124 |
collection: ( |
|
125 |
(TextEditorSpec |
|
126 |
name: 'PackageDetails' |
|
127 |
layout: (LayoutFrame 0 0 0 0 0 1 -30 1) |
|
128 |
model: selectedVersionDetailsHolder |
|
129 |
hasHorizontalScrollBar: true |
|
130 |
hasVerticalScrollBar: true |
|
131 |
isReadOnly: true |
|
132 |
hasKeyboardFocusInitially: false |
|
133 |
) |
|
485 | 134 |
(LabelSpec |
135 |
name: 'Label1' |
|
136 |
layout: (LayoutFrame 2 0 -30 1 -1 0.5 -2 1) |
|
137 |
activeHelpKey: targetNamespace |
|
138 |
level: -1 |
|
139 |
translateLabel: true |
|
140 |
labelChannel: targetNamespaceNameHolder |
|
141 |
adjust: left |
|
142 |
) |
|
143 |
(LabelSpec |
|
144 |
name: 'Label2' |
|
145 |
layout: (LayoutFrame 1 0.5 -30 1 -2 1 -2 1) |
|
146 |
activeHelpKey: targetPackage |
|
147 |
level: -1 |
|
148 |
translateLabel: true |
|
149 |
labelChannel: targetPackageHolder |
|
150 |
adjust: left |
|
151 |
) |
|
289 | 152 |
) |
153 |
||
154 |
) |
|
155 |
) |
|
156 |
! |
|
157 |
||
158 |
windowSpec |
|
159 |
"This resource specification was automatically generated |
|
160 |
by the UIPainter of ST/X." |
|
161 |
||
162 |
"Do not manually edit this!! If it is corrupted, |
|
163 |
the UIPainter may not be able to read the specification." |
|
164 |
||
165 |
" |
|
166 |
UIPainter new openOnClass:MCRepositoryBrowser andSelector:#windowSpec |
|
167 |
MCRepositoryBrowser new openInterface:#windowSpec |
|
168 |
MCRepositoryBrowser open |
|
169 |
" |
|
170 |
||
171 |
<resource: #canvas> |
|
172 |
||
173 |
^ |
|
174 |
#(FullSpec |
|
175 |
name: windowSpec |
|
176 |
window: |
|
177 |
(WindowSpec |
|
178 |
label: 'MC Repository Browser' |
|
179 |
name: 'MC Repository Browser' |
|
180 |
min: (Point 10 10) |
|
181 |
bounds: (Rectangle 0 0 796 497) |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
182 |
menu: mainMenu |
289 | 183 |
) |
184 |
component: |
|
185 |
(SpecCollection |
|
186 |
collection: ( |
|
187 |
(VariableVerticalPanelSpec |
|
188 |
name: 'VariableVerticalPanel1' |
|
189 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
190 |
component: |
|
191 |
(SpecCollection |
|
192 |
collection: ( |
|
193 |
(VariableHorizontalPanelSpec |
|
194 |
name: 'VariableHorizontalPanel1' |
|
195 |
component: |
|
196 |
(SpecCollection |
|
197 |
collection: ( |
|
198 |
(SubCanvasSpec |
|
199 |
name: 'RepositoryList' |
|
200 |
hasHorizontalScrollBar: false |
|
201 |
hasVerticalScrollBar: false |
|
202 |
majorKey: MCRepositoryList |
|
203 |
subAspectHolders: |
|
204 |
(Array |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
205 |
|
435 | 206 |
(SubChannelInfoSpec |
207 |
subAspect: menuHolder |
|
208 |
aspect: repositoryListMenu |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
209 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
210 |
(SubChannelInfoSpec |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
211 |
subAspect: inGeneratorHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
212 |
aspect: repositoriesHolder |
435 | 213 |
) |
289 | 214 |
|
215 |
(SubChannelInfoSpec |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
216 |
subAspect: outGeneratorHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
217 |
aspect: packagesHolder |
289 | 218 |
) |
219 |
(SubChannelInfoSpec |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
220 |
subAspect: selectionHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
221 |
aspect: selectedRepositoryHolder |
289 | 222 |
) |
223 |
) |
|
224 |
createNewApplication: true |
|
225 |
createNewBuilder: true |
|
226 |
) |
|
227 |
(SubCanvasSpec |
|
228 |
name: 'PackageList' |
|
229 |
hasHorizontalScrollBar: false |
|
230 |
hasVerticalScrollBar: false |
|
231 |
majorKey: MCPackageList |
|
232 |
subAspectHolders: |
|
233 |
(Array |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
234 |
|
435 | 235 |
(SubChannelInfoSpec |
236 |
subAspect: menuHolder |
|
237 |
aspect: packageListMenu |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
238 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
239 |
(SubChannelInfoSpec |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
240 |
subAspect: inGeneratorHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
241 |
aspect: packagesHolder |
435 | 242 |
) |
289 | 243 |
|
244 |
(SubChannelInfoSpec |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
245 |
subAspect: outGeneratorHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
246 |
aspect: versionsHolder |
289 | 247 |
) |
248 |
(SubChannelInfoSpec |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
249 |
subAspect: selectionHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
250 |
aspect: selectedPackageHolder |
289 | 251 |
) |
252 |
) |
|
253 |
createNewApplication: true |
|
254 |
createNewBuilder: true |
|
255 |
) |
|
472 | 256 |
(ViewSpec |
257 |
name: 'Box1' |
|
258 |
component: |
|
259 |
(SpecCollection |
|
260 |
collection: ( |
|
261 |
(SubCanvasSpec |
|
262 |
name: 'VersionList' |
|
263 |
layout: (LayoutFrame 0 0 0 0 0 1 -30 1) |
|
264 |
hasHorizontalScrollBar: false |
|
265 |
hasVerticalScrollBar: false |
|
266 |
majorKey: MCVersionList |
|
267 |
subAspectHolders: |
|
268 |
(Array |
|
269 |
||
270 |
(SubChannelInfoSpec |
|
271 |
subAspect: inGeneratorHolder |
|
272 |
aspect: versionsHolder |
|
273 |
) |
|
274 |
(SubChannelInfoSpec |
|
275 |
subAspect: menuHolder |
|
276 |
aspect: versionsMenu |
|
277 |
) |
|
278 |
||
279 |
(SubChannelInfoSpec |
|
280 |
subAspect: selectionHolder |
|
281 |
aspect: selectedVersionHolder |
|
282 |
) |
|
283 |
) |
|
284 |
createNewApplication: true |
|
285 |
createNewBuilder: true |
|
286 |
) |
|
287 |
(ActionButtonSpec |
|
558 | 288 |
label: 'Browse' |
289 |
name: 'Button1' |
|
290 |
layout: (LayoutFrame 0 0 -30 1 0 0.5 0 1) |
|
291 |
activeHelpKey: browseVersion |
|
292 |
translateLabel: true |
|
293 |
model: versionBrowser |
|
294 |
enableChannel: hasVersionSelectedHolder |
|
295 |
) |
|
296 |
(ActionButtonSpec |
|
472 | 297 |
label: 'Load' |
298 |
name: 'LoadButton' |
|
558 | 299 |
layout: (LayoutFrame 0 0.5 -30 1 0 1 0 1) |
300 |
activeHelpKey: loadVersion |
|
472 | 301 |
translateLabel: true |
302 |
model: versionLoad |
|
303 |
enableChannel: hasVersionSelectedHolder |
|
304 |
) |
|
305 |
) |
|
306 |
||
289 | 307 |
) |
308 |
) |
|
309 |
) |
|
310 |
||
311 |
) |
|
312 |
handles: (Any 0.333333333333333 0.666666666666667 1.0) |
|
313 |
) |
|
314 |
(UISubSpecification |
|
315 |
name: 'SubSpecification1' |
|
316 |
minorKey: packageDetailsSpec |
|
317 |
) |
|
318 |
) |
|
319 |
||
320 |
) |
|
321 |
handles: (Any 0.5 1.0) |
|
322 |
) |
|
323 |
) |
|
324 |
||
325 |
) |
|
326 |
) |
|
485 | 327 |
|
558 | 328 |
"Modified: / 16-03-2012 / 10:51:24 / cg" |
289 | 329 |
! ! |
330 |
||
331 |
!MCRepositoryBrowser class methodsFor:'menu specs'! |
|
332 |
||
472 | 333 |
loadingMenu |
334 |
"This resource specification was automatically generated |
|
335 |
by the MenuEditor of ST/X." |
|
336 |
||
337 |
"Do not manually edit this!! If it is corrupted, |
|
338 |
the MenuEditor may not be able to read the specification." |
|
339 |
||
340 |
||
341 |
" |
|
342 |
MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#loadingMenu |
|
343 |
(Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser loadingMenu)) startUp |
|
344 |
" |
|
345 |
||
346 |
<resource: #menu> |
|
347 |
||
348 |
^ |
|
349 |
#(Menu |
|
350 |
( |
|
351 |
(MenuItem |
|
352 |
label: 'Set Target Package...' |
|
353 |
itemValue: setTargetPackage |
|
354 |
) |
|
355 |
(MenuItem |
|
356 |
label: 'Set Target Namespace...' |
|
357 |
itemValue: setTargetNamespace |
|
358 |
) |
|
495 | 359 |
(MenuItem |
360 |
label: '-' |
|
361 |
) |
|
362 |
(MenuItem |
|
772 | 363 |
label: 'Update Changefile when Loading' |
495 | 364 |
indication: updateChangefileHolder |
365 |
) |
|
472 | 366 |
) |
367 |
nil |
|
368 |
nil |
|
369 |
) |
|
370 |
! |
|
371 |
||
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
372 |
mainMenu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
373 |
"This resource specification was automatically generated |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
374 |
by the MenuEditor of ST/X." |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
375 |
|
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
376 |
"Do not manually edit this!! If it is corrupted, |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
377 |
the MenuEditor may not be able to read the specification." |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
378 |
|
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
379 |
|
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
380 |
" |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
381 |
MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#mainMenu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
382 |
(Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser mainMenu)) startUp |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
383 |
" |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
384 |
|
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
385 |
<resource: #menu> |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
386 |
|
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
387 |
^ |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
388 |
#(Menu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
389 |
( |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
390 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
391 |
label: 'File' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
392 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
393 |
submenu: |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
394 |
(Menu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
395 |
( |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
396 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
397 |
label: 'Exit' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
398 |
itemValue: closeRequest |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
399 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
400 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
401 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
402 |
nil |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
403 |
nil |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
404 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
405 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
406 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
407 |
label: 'Repository' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
408 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
409 |
submenuChannel: repositoryListMenu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
410 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
411 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
412 |
label: 'Package' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
413 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
414 |
submenuChannel: packageListMenu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
415 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
416 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
417 |
label: 'Version' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
418 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
419 |
submenuChannel: versionsMenu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
420 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
421 |
(MenuItem |
472 | 422 |
label: 'Loading' |
423 |
translateLabel: true |
|
424 |
submenuChannel: loadingMenu |
|
425 |
) |
|
426 |
(MenuItem |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
427 |
label: 'Help' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
428 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
429 |
startGroup: conditionalRight |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
430 |
submenu: |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
431 |
(Menu |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
432 |
( |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
433 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
434 |
label: 'Documentation' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
435 |
itemValue: openDocumentation |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
436 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
437 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
438 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
439 |
label: '-' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
440 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
441 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
442 |
label: 'About this Application...' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
443 |
itemValue: openAboutThisApplication |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
444 |
translateLabel: true |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
445 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
446 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
447 |
nil |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
448 |
nil |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
449 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
450 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
451 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
452 |
nil |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
453 |
nil |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
454 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
455 |
! |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
456 |
|
435 | 457 |
packageListMenu |
458 |
"This resource specification was automatically generated |
|
459 |
by the MenuEditor of ST/X." |
|
460 |
||
461 |
"Do not manually edit this!! If it is corrupted, |
|
462 |
the MenuEditor may not be able to read the specification." |
|
463 |
||
464 |
||
465 |
" |
|
466 |
MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#packageListMenu |
|
467 |
(Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser packageListMenu)) startUp |
|
468 |
" |
|
469 |
||
470 |
<resource: #menu> |
|
471 |
||
472 |
^ |
|
473 |
#(Menu |
|
474 |
( |
|
475 |
(MenuItem |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
476 |
enabled: packageSelectedAndOperatingSystemIsWindows |
468 | 477 |
label: 'No Menuentry Yet' |
435 | 478 |
translateLabel: true |
479 |
) |
|
480 |
) |
|
481 |
nil |
|
482 |
nil |
|
483 |
) |
|
468 | 484 |
|
485 |
"Modified: / 07-09-2011 / 11:44:38 / cg" |
|
435 | 486 |
! |
487 |
||
488 |
repositoryListMenu |
|
489 |
"This resource specification was automatically generated |
|
490 |
by the MenuEditor of ST/X." |
|
491 |
||
492 |
"Do not manually edit this!! If it is corrupted, |
|
493 |
the MenuEditor may not be able to read the specification." |
|
494 |
||
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
495 |
|
435 | 496 |
" |
497 |
MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#repositoryListMenu |
|
498 |
(Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser repositoryListMenu)) startUp |
|
499 |
" |
|
500 |
||
501 |
<resource: #menu> |
|
502 |
||
503 |
^ |
|
504 |
#(Menu |
|
505 |
( |
|
506 |
(MenuItem |
|
773 | 507 |
label: 'Add Repository (URL)...' |
435 | 508 |
itemValue: repositoryAdd |
772 | 509 |
) |
510 |
(MenuItem |
|
773 | 511 |
label: 'Add Repository (Expression)...' |
512 |
itemValue: repositoryAddFromExpressionString |
|
513 |
) |
|
514 |
(MenuItem |
|
772 | 515 |
label: 'Add Directory Repository...' |
516 |
itemValue: directoryRepositoryAdd |
|
435 | 517 |
) |
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
518 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
519 |
label: '-' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
520 |
) |
559 | 521 |
(MenuItem |
484 | 522 |
enabled: hasRepositorySelectedHolder |
923 | 523 |
label: 'Remove from List' |
524 |
itemValue: repositoryRemove |
|
525 |
) |
|
526 |
(MenuItem |
|
527 |
enabled: hasRepositorySelectedHolder |
|
484 | 528 |
label: 'Flush Cache' |
529 |
itemValue: repositoryFlushCache |
|
530 |
) |
|
531 |
(MenuItem |
|
532 |
label: '-' |
|
533 |
) |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
534 |
(MenuItem |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
535 |
enabled: repositoryIsDirectory |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
536 |
label: 'Browse Directory' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
537 |
itemValue: repositoryBrowseDirectory |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
538 |
) |
516 | 539 |
(MenuItem |
540 |
label: '-' |
|
541 |
) |
|
542 |
(MenuItem |
|
543 |
label: 'Inspect' |
|
544 |
itemValue: repositoryInspect |
|
545 |
) |
|
435 | 546 |
) |
547 |
nil |
|
548 |
nil |
|
549 |
) |
|
550 |
! |
|
551 |
||
289 | 552 |
versionsMenu |
553 |
"This resource specification was automatically generated |
|
554 |
by the MenuEditor of ST/X." |
|
555 |
||
556 |
"Do not manually edit this!! If it is corrupted, |
|
557 |
the MenuEditor may not be able to read the specification." |
|
558 |
||
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
559 |
|
289 | 560 |
" |
561 |
MenuEditor new openOnClass:MCRepositoryBrowser andSelector:#versionsMenu |
|
562 |
(Menu new fromLiteralArrayEncoding:(MCRepositoryBrowser versionsMenu)) startUp |
|
563 |
" |
|
564 |
||
565 |
<resource: #menu> |
|
566 |
||
567 |
^ |
|
568 |
#(Menu |
|
569 |
( |
|
570 |
(MenuItem |
|
472 | 571 |
enabled: hasVersionSelectedHolder |
289 | 572 |
label: 'Load' |
573 |
itemValue: versionLoad |
|
574 |
) |
|
575 |
(MenuItem |
|
472 | 576 |
enabled: hasVersionSelectedHolder |
468 | 577 |
label: 'Load into Package...' |
289 | 578 |
itemValue: versionLoadIntoPackage |
579 |
) |
|
580 |
(MenuItem |
|
581 |
label: '-' |
|
582 |
) |
|
583 |
(MenuItem |
|
584 |
enabled: hasVersionSelectedHolder |
|
585 |
label: 'Browse' |
|
586 |
itemValue: versionBrowser |
|
587 |
) |
|
588 |
(MenuItem |
|
472 | 589 |
enabled: hasVersionSelectedHolder |
468 | 590 |
label: 'Browse Unloadable' |
289 | 591 |
itemValue: versionBrowseUnloadable |
592 |
) |
|
593 |
(MenuItem |
|
594 |
label: '-' |
|
595 |
) |
|
596 |
(MenuItem |
|
984
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
597 |
label: 'Compare' |
935
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
598 |
itemValue: versionCompareWithImage |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
599 |
) |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
600 |
(MenuItem |
1004
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
601 |
label: '-' |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
602 |
) |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
603 |
(MenuItem |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
604 |
label: 'Update Code...' |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
605 |
itemValue: versionUpdateCode |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
606 |
) |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
607 |
(MenuItem |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
608 |
enabled: canUpdateSplicemap |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
609 |
label: 'Update Splicemap...' |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
610 |
itemValue: versionUpdateSplicemap |
984
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
611 |
) |
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
612 |
(MenuItem |
935
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
613 |
label: '-' |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
614 |
) |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
615 |
(MenuItem |
921 | 616 |
label: 'Save .mcz File As...' |
617 |
itemValue: saveMCZFileAs |
|
618 |
) |
|
619 |
(MenuItem |
|
984
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
620 |
label: '-' |
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
621 |
) |
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
622 |
(MenuItem |
921 | 623 |
label: 'Show in File Browser' |
624 |
itemValue: showPackageInFileBrowser |
|
625 |
) |
|
626 |
(MenuItem |
|
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
627 |
enabled: hasVersionSelectedAndOperatingSystemIsWindowsHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
628 |
label: 'Show in Winzip' |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
629 |
itemValue: showPackageInWinZip |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
630 |
) |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
631 |
(MenuItem |
289 | 632 |
enabled: hasVersionSelectedHolder |
633 |
label: 'Inspect' |
|
634 |
itemValue: versionInspect |
|
635 |
) |
|
636 |
) |
|
637 |
nil |
|
638 |
nil |
|
639 |
) |
|
640 |
! ! |
|
641 |
||
563
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
642 |
!MCRepositoryBrowser class methodsFor:'menu-about'! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
643 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
644 |
aboutThisApplicationText |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
645 |
|msg| |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
646 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
647 |
msg := super aboutThisApplicationText. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
648 |
msg := msg , '\\Written by:\\ Jan Vrany (jan.vrany@fit.cvut.cz)\ Claus Gittinger (cg@exept.de).'. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
649 |
^msg withCRs. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
650 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
651 |
"Created: / 05-05-2012 / 19:23:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
652 |
! ! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
653 |
|
540 | 654 |
!MCRepositoryBrowser class methodsFor:'startup'! |
655 |
||
656 |
openOnPrimaryRepository |
|
657 |
"the primary repository is the one into which we checkin by default. |
|
658 |
(see MCSettingsApplication)" |
|
659 |
||
660 |
^ self openOnPrimaryRepositoryForPackage:nil |
|
661 |
||
662 |
"Created: / 03-12-2011 / 10:41:03 / cg" |
|
663 |
! |
|
664 |
||
665 |
openOnPrimaryRepositoryForPackage:anSTXPackageIdOrNil |
|
666 |
"the primary repository is the one into which we checkin by default. |
|
667 |
(see MCSettingsApplication)" |
|
668 |
||
970 | 669 |
|repository| |
540 | 670 |
|
671 |
repository := UserPreferences current at:#mcPrimaryRepository ifAbsent:nil. |
|
970 | 672 |
^ self openOnRepository:repository forPackage:anSTXPackageIdOrNil |
673 |
||
674 |
"Created: / 03-12-2011 / 10:42:01 / cg" |
|
675 |
! |
|
676 |
||
677 |
openOnRepository:aRepository forPackage:anSTXPackageIdOrNil |
|
678 |
"the primary repository is the one into which we checkin by default. |
|
679 |
(see MCSettingsApplication)" |
|
680 |
||
681 |
|browser| |
|
540 | 682 |
|
683 |
browser := self new. |
|
684 |
browser allButOpen. |
|
970 | 685 |
browser selectedRepository:aRepository. |
540 | 686 |
anSTXPackageIdOrNil notNil ifTrue:[ |
687 |
browser selectedPackage:anSTXPackageIdOrNil. |
|
688 |
]. |
|
689 |
browser openWindow. |
|
690 |
^ browser. |
|
691 |
||
692 |
"Created: / 03-12-2011 / 10:42:01 / cg" |
|
693 |
! ! |
|
694 |
||
289 | 695 |
!MCRepositoryBrowser methodsFor:'accessing'! |
696 |
||
540 | 697 |
selectedPackage:aPackageName |
698 |
|listEntry packageListApp| |
|
699 |
||
700 |
packageListApp := (builder componentAt:#PackageList) application. |
|
701 |
listEntry := packageListApp listHolder value detect:[:listEntry | listEntry name = aPackageName] ifNone:nil. |
|
702 |
packageListApp selectionHolder value:listEntry. |
|
703 |
||
704 |
"Created: / 04-12-2011 / 09:30:00 / cg" |
|
705 |
! |
|
706 |
||
707 |
selectedRepository:aRepository |
|
708 |
|rep fakeEntry listEntry repListApp| |
|
709 |
||
710 |
rep := self repositoriesHolder value detect:[:e | e = aRepository] ifNone:nil. |
|
711 |
rep notNil ifTrue:[ |
|
712 |
repListApp := (builder componentAt:#RepositoryList) application. |
|
713 |
fakeEntry := repListApp makeEntry:rep. |
|
714 |
listEntry := repListApp listHolder value detect:[:listEntry | listEntry repository = fakeEntry repository]. |
|
715 |
repListApp selectionHolder value:listEntry. |
|
716 |
] |
|
717 |
||
718 |
"Created: / 03-12-2011 / 10:44:16 / cg" |
|
719 |
! |
|
720 |
||
289 | 721 |
selectedVersion |
722 |
"return the value in 'selectedVersionHolder'" |
|
723 |
||
724 |
^ self selectedVersionHolder value |
|
540 | 725 |
|
726 |
"Modified (comment): / 04-12-2011 / 09:28:52 / cg" |
|
289 | 727 |
! |
728 |
||
729 |
selectedVersion: newValue |
|
730 |
"set the value in 'selectedVersionHolder'" |
|
731 |
||
732 |
self selectedVersionHolder value: newValue |
|
733 |
! |
|
734 |
||
735 |
selectedVersionAsMCVersion |
|
540 | 736 |
| entry | |
289 | 737 |
|
738 |
entry := self selectedVersionHolder value. |
|
739 |
^entry ifNil:[nil] ifNotNil:[entry asMCVersion]. |
|
740 |
||
741 |
"Created: / 13-10-2010 / 17:48:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
540 | 742 |
"Modified (format): / 04-12-2011 / 09:29:01 / cg" |
289 | 743 |
! ! |
744 |
||
745 |
!MCRepositoryBrowser methodsFor:'aspect-queries'! |
|
746 |
||
1004
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
747 |
canUpdateSplicemap |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
748 |
^ ConfigurableFeatures hasMercurialSupport |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
749 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
750 |
"Created: / 08-09-2015 / 00:56:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
751 |
! |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
752 |
|
484 | 753 |
hasRepositorySelectedHolder |
754 |
^ BlockValue |
|
755 |
with:[:h | h value notNil] |
|
756 |
argument:(self selectedRepositoryHolder) |
|
757 |
||
758 |
"Created: / 13-10-2010 / 17:08:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
759 |
"Modified: / 07-09-2011 / 13:14:17 / cg" |
|
760 |
"Created: / 07-09-2011 / 15:00:44 / cg" |
|
761 |
! |
|
762 |
||
460
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
763 |
hasVersionSelectedAndOperatingSystemIsWindowsHolder |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
764 |
^[self hasVersionSelectedHolder value |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
765 |
and:[ OperatingSystem isMSWINDOWSlike ]] |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
766 |
|
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
767 |
"Created: / 25-08-2011 / 08:49:24 / cg" |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
768 |
! |
46f1637ee276
give it a more professional look (unfinished)
Claus Gittinger <cg@exept.de>
parents:
435
diff
changeset
|
769 |
|
289 | 770 |
hasVersionSelectedHolder |
472 | 771 |
^ BlockValue |
772 |
with:[:h | h value notNil] |
|
773 |
argument:(self selectedVersionHolder) |
|
289 | 774 |
|
775 |
"Created: / 13-10-2010 / 17:08:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
472 | 776 |
"Modified: / 07-09-2011 / 13:14:17 / cg" |
463 | 777 |
! |
778 |
||
563
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
779 |
packageSelectedAndOperatingSystemIsWindows |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
780 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
781 |
^[ |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
782 |
OperatingSystem isMSWINDOWSlike |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
783 |
and:[selectedPackageHolder value notNil] |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
784 |
] |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
785 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
786 |
"Created: / 05-05-2012 / 19:20:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
787 |
! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
788 |
|
463 | 789 |
repositoryIsDirectory |
790 |
^ BlockValue |
|
484 | 791 |
with:[:h | h value notNil |
792 |
and:[ h value repository isKindOf: MCDirectoryRepository ]] |
|
463 | 793 |
argument:[ self selectedRepositoryHolder ] |
794 |
||
795 |
"Created: / 31-08-2011 / 09:08:54 / cg" |
|
289 | 796 |
! ! |
797 |
||
798 |
!MCRepositoryBrowser methodsFor:'aspects'! |
|
799 |
||
800 |
packagesHolder |
|
801 |
packagesHolder isNil ifTrue:[ |
|
802 |
packagesHolder := ValueHolder new. |
|
803 |
]. |
|
804 |
^ packagesHolder |
|
540 | 805 |
|
806 |
"Modified (comment): / 04-12-2011 / 09:27:57 / cg" |
|
289 | 807 |
! |
808 |
||
809 |
packagesHolder:something |
|
540 | 810 |
packagesHolder := something. |
289 | 811 |
|
540 | 812 |
"Modified (comment): / 04-12-2011 / 09:28:01 / cg" |
289 | 813 |
! |
814 |
||
815 |
repositoriesHolder |
|
816 |
repositoriesHolder isNil ifTrue:[ |
|
463 | 817 |
repositoriesHolder := ValueHolder with:(MCRepositoryGroup default repositories). |
289 | 818 |
]. |
819 |
^ repositoriesHolder |
|
820 |
||
821 |
"Modified: / 16-09-2010 / 18:33:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
540 | 822 |
"Modified (comment): / 04-12-2011 / 09:28:06 / cg" |
289 | 823 |
! |
824 |
||
825 |
repositoriesHolder:something |
|
540 | 826 |
repositoriesHolder := something. |
827 |
||
828 |
"Modified (comment): / 04-12-2011 / 09:28:09 / cg" |
|
829 |
! |
|
289 | 830 |
|
540 | 831 |
selectedPackageHolder |
832 |
selectedPackageHolder isNil ifTrue:[ |
|
833 |
selectedPackageHolder := nil asValue. |
|
834 |
]. |
|
835 |
^ selectedPackageHolder |
|
836 |
||
837 |
"Created: / 04-12-2011 / 09:27:50 / cg" |
|
289 | 838 |
! |
839 |
||
463 | 840 |
selectedRepositoryHolder |
841 |
selectedRepositoryHolder isNil ifTrue:[ |
|
842 |
selectedRepositoryHolder := nil asValue. |
|
843 |
]. |
|
844 |
^ selectedRepositoryHolder |
|
845 |
||
846 |
"Created: / 31-08-2011 / 09:09:56 / cg" |
|
847 |
! |
|
848 |
||
289 | 849 |
selectedVersionDetailsHolder |
850 |
<resource: #uiAspect> |
|
851 |
||
852 |
selectedVersionDetailsHolder isNil ifTrue:[ |
|
853 |
selectedVersionDetailsHolder := '' asValue. |
|
854 |
]. |
|
855 |
^ selectedVersionDetailsHolder. |
|
856 |
||
857 |
"Modified: / 17-09-2010 / 15:17:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
540 | 858 |
"Modified (comment): / 03-12-2011 / 11:08:52 / cg" |
289 | 859 |
! |
860 |
||
861 |
selectedVersionHolder |
|
862 |
selectedVersionHolder isNil ifTrue:[ |
|
863 |
selectedVersionHolder := ValueHolder with:nil "defaultValue here". |
|
864 |
selectedVersionHolder onChangeSend: #updateVersionDetails to: self. |
|
865 |
]. |
|
866 |
^ selectedVersionHolder |
|
867 |
||
868 |
"Modified: / 17-09-2010 / 15:23:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
540 | 869 |
"Modified (comment): / 04-12-2011 / 09:28:21 / cg" |
289 | 870 |
! |
871 |
||
872 |
selectedVersionHolder:something |
|
873 |
selectedVersionHolder := something. |
|
874 |
! |
|
875 |
||
485 | 876 |
targetNamespaceNameHolder |
877 |
<resource: #uiAspect> |
|
878 |
||
879 |
targetNamespaceNameHolder isNil ifTrue:[ |
|
880 |
targetNamespaceNameHolder := ValueHolder new. |
|
881 |
]. |
|
882 |
^ targetNamespaceNameHolder. |
|
540 | 883 |
|
884 |
"Modified (comment): / 03-12-2011 / 11:09:03 / cg" |
|
485 | 885 |
! |
886 |
||
887 |
targetPackageHolder |
|
888 |
<resource: #uiAspect> |
|
889 |
||
890 |
targetPackageHolder isNil ifTrue:[ |
|
891 |
targetPackageHolder := ValueHolder new. |
|
892 |
]. |
|
893 |
^ targetPackageHolder. |
|
540 | 894 |
|
895 |
"Modified (comment): / 03-12-2011 / 11:09:09 / cg" |
|
485 | 896 |
! |
897 |
||
495 | 898 |
updateChangefileHolder |
899 |
updateChangefileHolder isNil ifTrue:[ |
|
900 |
updateChangefileHolder := false asValue. |
|
901 |
]. |
|
902 |
^ updateChangefileHolder |
|
903 |
||
904 |
"Created: / 07-09-2011 / 15:54:03 / cg" |
|
905 |
! |
|
906 |
||
289 | 907 |
versionsHolder |
908 |
versionsHolder isNil ifTrue:[ |
|
909 |
versionsHolder := ValueHolder new. |
|
910 |
]. |
|
911 |
^ versionsHolder |
|
540 | 912 |
|
913 |
"Modified (comment): / 04-12-2011 / 09:28:30 / cg" |
|
289 | 914 |
! |
915 |
||
916 |
versionsHolder:something |
|
540 | 917 |
versionsHolder := something. |
289 | 918 |
|
540 | 919 |
"Modified (comment): / 04-12-2011 / 09:28:33 / cg" |
289 | 920 |
! ! |
921 |
||
922 |
!MCRepositoryBrowser methodsFor:'menu actions'! |
|
923 |
||
559 | 924 |
addRepository:rep |
779 | 925 |
| files didWarn | |
559 | 926 |
|
779 | 927 |
didWarn := false. |
559 | 928 |
Error handle:[:ex | |
779 | 929 |
Dialog warn:'Exception: ',ex description. |
930 |
didWarn := true. |
|
559 | 931 |
] do:[ |
932 |
files := rep allFileNames. |
|
933 |
]. |
|
934 |
files isNil ifTrue:[ |
|
779 | 935 |
didWarn ifFalse:[ |
936 |
Dialog warn:'repository does not exist or is inaccessable.'. |
|
937 |
]. |
|
559 | 938 |
^ self. |
939 |
]. |
|
940 |
||
941 |
MCRepositoryGroup default addRepository:rep. |
|
942 |
self repositoriesHolder value:(MCRepositoryGroup default repositories) |
|
943 |
||
944 |
"Created: / 20-03-2012 / 17:37:17 / cg" |
|
945 |
! |
|
946 |
||
772 | 947 |
directoryRepositoryAdd |
948 |
|repStr rep| |
|
949 |
||
950 |
repStr := Dialog requestDirectoryName:'Directory repository to add:'. |
|
951 |
repStr isEmptyOrNil ifTrue:[^ self]. |
|
952 |
||
953 |
rep := MCDirectoryRepository directory:repStr. |
|
954 |
self addRepository:rep |
|
955 |
||
956 |
"Created: / 29-08-2011 / 12:25:40 / cg" |
|
957 |
! |
|
958 |
||
563
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
959 |
openDocumentation |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
960 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/monticellobrowser.html'. |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
961 |
|
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
962 |
"Created: / 05-05-2012 / 19:26:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
963 |
! |
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
964 |
|
923 | 965 |
removeRepository:rep |
966 |
MCRepositoryGroup default removeRepository:rep. |
|
967 |
self repositoriesHolder value:(MCRepositoryGroup default repositories) |
|
968 |
! |
|
969 |
||
463 | 970 |
repositoryAdd |
781 | 971 |
|repStr rep url initialURL| |
463 | 972 |
|
896 | 973 |
initialURL := LastAddedURLString ? 'http://www.squeaksource.com/project'. |
779 | 974 |
repStr := Dialog |
781 | 975 |
request:'Repository to add (file- or HTTP-URL):' |
976 |
initialAnswer:initialURL |
|
977 |
initialSelection:((initialURL findString:'project') to:(initialURL size)). |
|
978 |
||
463 | 979 |
repStr isEmptyOrNil ifTrue:[^ self]. |
980 |
||
896 | 981 |
(repStr startsWith:'www.') ifTrue:[ |
982 |
repStr := 'http://',repStr. |
|
983 |
]. |
|
984 |
||
768 | 985 |
Error handle:[:ex | |
896 | 986 |
LastAddedURLString := repStr. |
768 | 987 |
Dialog warn:'Invalid URL (',ex description,')'. |
988 |
^ self |
|
989 |
] do:[ |
|
911 | 990 |
url := URI fromString:repStr. |
768 | 991 |
]. |
896 | 992 |
url isNil ifTrue:[ |
993 |
LastAddedURLString := repStr. |
|
994 |
Dialog warn:'Invalid URL'. |
|
995 |
^ self |
|
996 |
]. |
|
768 | 997 |
|
463 | 998 |
url method = 'http' ifTrue:[ |
999 |
rep := MCHttpRepository |
|
1000 |
location: repStr |
|
1001 |
user: '' |
|
1002 |
password: '' |
|
911 | 1003 |
] ifFalse:[ |
1004 |
url method = 'ftp' ifTrue:[ |
|
1005 |
rep := MCFtpRepository |
|
1006 |
host: url host |
|
1007 |
directory: url path |
|
1008 |
user: url user |
|
1009 |
password: (url password ? 'anonymous') |
|
1010 |
] ifFalse:[ |
|
1011 |
url isFileScheme ifTrue:[ |
|
1012 |
rep := MCDirectoryRepository directory:repStr. |
|
1013 |
]. |
|
1014 |
] |
|
463 | 1015 |
]. |
1016 |
rep isNil ifTrue:[ |
|
896 | 1017 |
LastAddedURLString := repStr. |
1018 |
Dialog warn:'Cannot figure out access scheme from URL.'. |
|
463 | 1019 |
^ self. |
911 | 1020 |
]. |
1021 |
self withWaitCursorDo:[ |
|
1022 |
self addRepository:rep |
|
463 | 1023 |
]. |
559 | 1024 |
|
1025 |
"Created: / 29-08-2011 / 12:25:40 / cg" |
|
1026 |
! |
|
1027 |
||
1028 |
repositoryAddFromExpressionString |
|
779 | 1029 |
|str repStr rep| |
559 | 1030 |
|
779 | 1031 |
rep := LastAddedRepository ? 'XMLSchemaCodeGen'. |
1032 |
||
1033 |
str := 'MCHttpRepository |
|
1034 |
location: ''http://www.squeaksource.com/',rep,''' |
|
559 | 1035 |
user: '''' |
1036 |
password: '''' |
|
1037 |
'. |
|
779 | 1038 |
repStr := Dialog |
1039 |
requestText:'Repository to add:' |
|
1040 |
initialAnswer:str |
|
1041 |
initialSelection:(str findRangeOfString:rep). |
|
1042 |
||
559 | 1043 |
repStr isEmptyOrNil ifTrue:[^ self]. |
1044 |
||
463 | 1045 |
Error handle:[:ex | |
779 | 1046 |
Transcript showCR:ex description |
463 | 1047 |
] do:[ |
559 | 1048 |
rep := Parser evaluate:repStr. |
463 | 1049 |
]. |
559 | 1050 |
rep isNil ifTrue:[ |
1051 |
Dialog warn:'cannot figure out access scheme.'. |
|
463 | 1052 |
^ self. |
1053 |
]. |
|
780 | 1054 |
self withWaitCursorDo:[ |
1055 |
self addRepository:rep |
|
1056 |
] |
|
463 | 1057 |
|
559 | 1058 |
"Created: / 20-03-2012 / 17:34:33 / cg" |
463 | 1059 |
! |
1060 |
||
1061 |
repositoryBrowseDirectory |
|
879 | 1062 |
"open a filebrowser on the selected directory-repository" |
463 | 1063 |
|
1064 |
|fn| |
|
1065 |
||
1066 |
fn := self selectedRepositoryHolder value repository directory asFilename. |
|
1067 |
fn exists ifFalse:[ |
|
1068 |
Dialog warn:'No such directory'. |
|
1069 |
^ self. |
|
1070 |
]. |
|
1071 |
UserPreferences current fileBrowserClass openIn:fn |
|
1072 |
||
1073 |
"Created: / 31-08-2011 / 09:16:33 / cg" |
|
1074 |
! |
|
1075 |
||
484 | 1076 |
repositoryFlushCache |
1077 |
"flush the repository cache - useful only in case of an aborted file load" |
|
1078 |
||
1079 |
self selectedRepositoryHolder value repository flushCache |
|
1080 |
||
1081 |
"Created: / 07-09-2011 / 15:02:21 / cg" |
|
1082 |
! |
|
1083 |
||
516 | 1084 |
repositoryInspect |
1085 |
"for debugging" |
|
1086 |
||
1087 |
self selectedRepositoryHolder value repository inspect |
|
1088 |
||
1089 |
"Created: / 25-11-2011 / 11:33:09 / cg" |
|
1090 |
! |
|
1091 |
||
923 | 1092 |
repositoryRemove |
1093 |
|entry rep| |
|
1094 |
||
1095 |
entry := self selectedRepositoryHolder value. |
|
1096 |
entry isNil ifTrue:[^ self]. |
|
1097 |
rep := entry repository. |
|
1098 |
self withWaitCursorDo:[ |
|
1099 |
self removeRepository:rep |
|
1100 |
]. |
|
1101 |
! |
|
1102 |
||
921 | 1103 |
saveMCZFileAs |
1104 |
|entry fn| |
|
1105 |
||
1106 |
entry := self selectedVersionHolder value. |
|
1107 |
fn := Dialog |
|
1108 |
requestFileNameForSave:'Save MCZ file as:' |
|
1109 |
default:entry name |
|
1110 |
fromDirectory:nil. |
|
1111 |
||
1112 |
self saveVersionFileToTempThenDo:[:tempFile | |
|
1113 |
tempFile moveTo:(fn asFilename). |
|
1114 |
]. |
|
1115 |
! |
|
1116 |
||
1117 |
saveVersionFileToTempThenDo:aBlock |
|
1118 |
|entry tempFile fileStream| |
|
1119 |
||
1120 |
tempFile := Filename newTemporary withSuffix:'zip'. |
|
1121 |
||
1122 |
self withReadCursorDo:[ |
|
1123 |
entry := self selectedVersionHolder value. |
|
1124 |
entry repository |
|
1125 |
readStreamForFileNamed:entry name do:[:s | |
|
1126 |
fileStream := tempFile writeStream. |
|
1127 |
s reset. |
|
1128 |
s copyToEndInto:fileStream. |
|
1129 |
fileStream close. |
|
1130 |
]. |
|
1131 |
]. |
|
1132 |
aBlock value:tempFile |
|
1133 |
! |
|
1134 |
||
472 | 1135 |
setTargetNamespace |
1136 |
"specify an st/x namespace to be used as default" |
|
1137 |
||
1138 |
| nsName | |
|
1139 |
||
1140 |
nsName := Dialog |
|
1141 |
requestNameSpace:'Namepace to load code into:' |
|
1142 |
initialAnswer:targetNamespace. |
|
1143 |
nsName isEmptyOrNil ifTrue:[^self]. |
|
1144 |
||
1145 |
targetNamespace := nsName. |
|
485 | 1146 |
self targetNamespaceNameHolder value:('Target-Namespace: ',targetNamespace). |
472 | 1147 |
|
1148 |
"Created: / 07-09-2011 / 12:49:42 / cg" |
|
1149 |
! |
|
1150 |
||
1151 |
setTargetPackage |
|
1152 |
"specify an st/x package identifier to be used as default" |
|
933
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1153 |
|
472 | 1154 |
| package | |
1155 |
||
1156 |
package := Dialog |
|
933
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1157 |
requestProject:'Default Smalltalk/X package to load code into:' |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1158 |
initialAnswer:targetPackage |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1159 |
suggestions:#(). |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1160 |
package isNil ifTrue:[ |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1161 |
^ self |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1162 |
]. |
472 | 1163 |
targetPackage := lastPackage := package. |
933
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1164 |
self targetPackageHolder value:('Target-Package: ' , targetPackage). |
472 | 1165 |
|
1166 |
"Created: / 07-09-2011 / 12:47:15 / cg" |
|
933
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1167 |
"Modified: / 06-10-2014 / 23:38:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
472 | 1168 |
! |
1169 |
||
921 | 1170 |
showPackageInFileBrowser |
1171 |
self saveVersionFileToTempThenDo:[:tempFile | |
|
1172 |
UserPreferences current fileBrowserClass |
|
1173 |
openOnFileNamed:tempFile |
|
1174 |
]. |
|
1175 |
! |
|
468 | 1176 |
|
921 | 1177 |
showPackageInWinZip |
1178 |
self saveVersionFileToTempThenDo:[:tempFile | |
|
1179 |
Win32OperatingSystem |
|
1180 |
openApplicationForDocument:tempFile operation:#open |
|
472 | 1181 |
]. |
468 | 1182 |
|
1183 |
"Created: / 07-09-2011 / 11:46:08 / cg" |
|
1184 |
! |
|
1185 |
||
289 | 1186 |
versionBrowseUnloadable |
1187 |
||
1188 |
| version snapshot loader unloadables | |
|
1189 |
version := self selectedVersionAsMCVersion. |
|
1190 |
version ifNil:[^self]. |
|
1191 |
snapshot := version snapshot. |
|
1192 |
loader := MCPackageLoader new |
|
1193 |
installSnapshot: snapshot; |
|
1194 |
yourself. |
|
1195 |
loader analyze. |
|
1196 |
unloadables := ChangeSet withAll: |
|
1197 |
(loader unloadableDefinitions collect: |
|
1198 |
[:def|def asChange]). |
|
1199 |
||
432
e66073959001
csbrowser2 in: #versionBrowseUnloadable
Claus Gittinger <cg@exept.de>
parents:
291
diff
changeset
|
1200 |
(Tools::ChangeSetBrowser2 |
503 | 1201 |
on: unloadables |
1202 |
label: version info name , ' (unloadable definitions)') |
|
289 | 1203 |
beTwoColumn; |
503 | 1204 |
targetNamespace:targetNamespace; |
1205 |
targetPackage:targetPackage; |
|
289 | 1206 |
open |
1207 |
||
1208 |
"Modified: / 26-10-2010 / 23:04:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
503 | 1209 |
"Modified: / 07-09-2011 / 20:17:15 / cg" |
289 | 1210 |
! |
1211 |
||
1212 |
versionBrowser |
|
1213 |
||
1214 |
| version snapshot | |
|
462
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1215 |
|
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1216 |
self withWaitCursorDo:[ |
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1217 |
version := self selectedVersionAsMCVersion. |
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1218 |
version ifNil:[^self]. |
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1219 |
snapshot := version snapshot. |
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1220 |
(Tools::ChangeSetBrowser2 |
916 | 1221 |
on: (snapshot asChangeSet name:('ChangeSet for: ',version fileName)) |
503 | 1222 |
label: version info name) |
462
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1223 |
beTwoColumn; |
503 | 1224 |
targetNamespace:targetNamespace; |
1225 |
targetPackage:targetPackage; |
|
462
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1226 |
open |
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1227 |
]. |
289 | 1228 |
|
1229 |
"Modified: / 04-08-2011 / 19:03:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
503 | 1230 |
"Modified: / 07-09-2011 / 20:17:36 / cg" |
289 | 1231 |
! |
1232 |
||
935
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1233 |
versionCompareWithImage |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1234 |
|
1004
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1235 |
| version package snapshot snapshotCS | |
935
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1236 |
|
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1237 |
self withWaitCursorDo:[ |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1238 |
version := self selectedVersionAsMCVersion. |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1239 |
version isNil ifTrue:[ ^ self ]. |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1240 |
snapshot := version snapshot. |
982
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1241 |
snapshotCS := snapshot asChangeSet. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1242 |
snapshotCS name: version info name. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1243 |
ProjectDefinition allSubclassesDo:[ :def | |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1244 |
((def class compiledMethodAt: #monticelloName) notNil and:[ |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1245 |
def monticelloName = version package name]) ifTrue:[ |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1246 |
package := def package. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1247 |
]. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1248 |
]. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1249 |
package := Dialog requestProject:(resources string: 'Package to compare with') initialAnswer:package suggestions: nil. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1250 |
package isNil ifTrue:[ ^ self ]. |
1004
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1251 |
self versionCompareWithImagePackage: package. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1252 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1253 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1254 |
"Modified: / 07-09-2015 / 18:41:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1255 |
! |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1256 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1257 |
versionCompareWithImagePackage: package |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1258 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1259 |
| version snapshotCS packageCS diffset diffCS | |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1260 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1261 |
self withWaitCursorDo:[ |
982
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1262 |
packageCS := ChangeSet forPackage: package. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1263 |
"/ Remove St/X specific method and classes (used for package management) |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1264 |
packageCS := packageCS reject:[:chg | |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1265 |
chg changeClass theNonMetaclass isProjectDefinition or:[ chg isMethodDefinitionChange and:[ AbstractSourceCodeManager isVersionMethodSelector: chg selector ]] |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1266 |
]. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1267 |
diffset := snapshotCS diffSetsAgainst: packageCS. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1268 |
diffCS := ChangeSet new. |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1269 |
diffCS addAll: (diffset onlyInReceiver). |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1270 |
diffCS addAll: (diffset changed collect:[:pair | pair first ]). |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1271 |
diffCS addAll: (diffset onlyInArg collect:[ :chg | chg asAntiChange ]). |
984
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
1272 |
"/ Filter out Organization change - not needed for Smalltalk/X |
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
1273 |
(diffCS first isOtherChange and:[ diffCS first source startsWith: '" Organization:' ]) ifTrue:[ |
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
1274 |
diffCS removeFirst. |
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
1275 |
]. |
993
331ce2db4c82
Another fix in "Compare" changeset computation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
984
diff
changeset
|
1276 |
"/ Sort so that class definitions are first and |
331ce2db4c82
Another fix in "Compare" changeset computation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
984
diff
changeset
|
1277 |
"/ class removals last. |
331ce2db4c82
Another fix in "Compare" changeset computation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
984
diff
changeset
|
1278 |
diffCS sort:[ :a :b | (a isClassDefinitionChange and:[b isClassDefinitionChange not]) or:[ a isClassRemoveChange not and:[ b isClassRemoveChange ] ] ]. |
994 | 1279 |
"/ Set the package so when applied, the change goes to the |
1280 |
"/ correct package (if not overriden by 'target package'. |
|
1281 |
diffCS do:[:each | each package: package ]. |
|
984
269c09751322
Fixed "Compare" changeset creation to ease applying it
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
982
diff
changeset
|
1282 |
|
982
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1283 |
diffCS name: (resources string: 'Diffs between %1 (MC version) and %2 (in image)' with: version info name with: package). |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1284 |
(Tools::ChangeSetBrowser2 on: diffCS) |
935
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1285 |
beOneColumn; |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1286 |
showSame: false; |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1287 |
targetNamespace:targetNamespace; |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1288 |
targetPackage:targetPackage; |
982
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1289 |
allowRemove: true; |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1290 |
open |
935
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1291 |
]. |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1292 |
|
1004
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1293 |
"Created: / 07-09-2015 / 18:41:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
935
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1294 |
! |
5e40fb19c435
Added menu entry to show diff against the code in the image
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
933
diff
changeset
|
1295 |
|
289 | 1296 |
versionInspect |
1297 |
||
1298 |
| v | |
|
1299 |
v := self selectedVersionAsMCVersion. |
|
1300 |
v ifNotNil:[v inspect] |
|
1301 |
||
1302 |
"Modified: / 13-10-2010 / 17:48:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1303 |
! |
|
1304 |
||
1305 |
versionLoad |
|
472 | 1306 |
"load into the default (or previously set) package" |
289 | 1307 |
|
462
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1308 |
| entry | |
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1309 |
|
289 | 1310 |
entry := self selectedVersionHolder value. |
472 | 1311 |
entry notNil ifTrue:[ |
484 | 1312 |
self withWaitCursorDo:[ |
933
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1313 |
| version package | |
761 | 1314 |
|
1315 |
version := entry asMCVersion. |
|
933
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1316 |
package := targetPackage. |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1317 |
package isNil ifTrue:[ |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1318 |
version package name notNil ifTrue:[ |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1319 |
"/ Just a guess... |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1320 |
package := 'stx:goodies/', (version package name asLowercase replaceAll: $- with: $_) |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1321 |
] ifFalse:[ |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1322 |
package := PackageId noProjectID. |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1323 |
]. |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1324 |
package := Dialog |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1325 |
requestProject:'Smalltalk/X package to load code into:' |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1326 |
initialAnswer:package |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1327 |
suggestions:#(). |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1328 |
package isNil ifTrue:[ |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1329 |
^ self |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1330 |
]. |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1331 |
]. |
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1332 |
self versionLoad: version into:package |
484 | 1333 |
] |
472 | 1334 |
]. |
289 | 1335 |
|
484 | 1336 |
"Modified: / 07-09-2011 / 14:51:57 / cg" |
933
3d57bd5bac92
Ask for package to load code in, if default is not specified.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
924
diff
changeset
|
1337 |
"Modified: / 06-10-2014 / 23:39:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
289 | 1338 |
! |
1339 |
||
1340 |
versionLoad: version into: package |
|
1341 |
||
462
bc04bf43bf7a
comment/format in: #versionLoad
Claus Gittinger <cg@exept.de>
parents:
460
diff
changeset
|
1342 |
self withWaitCursorDo:[ |
472 | 1343 |
MCStXNamespaceQuery |
502 | 1344 |
answer:(NameSpace name:targetNamespace ? 'Smalltalk') |
472 | 1345 |
do: [ |
1346 |
MCStXPackageQuery |
|
1347 |
answer: package |
|
1348 |
do: [ |
|
1349 |
MCInteractiveLoadingQuery answer: true do:[ |
|
924 | 1350 |
self updateChangefileHolder value ifTrue:[ |
495 | 1351 |
version load |
1352 |
] ifFalse:[ |
|
1353 |
Class withoutUpdatingChangesDo:[ |
|
1354 |
version load |
|
1355 |
] |
|
1356 |
]. |
|
472 | 1357 |
] |
1358 |
]. |
|
1359 |
]. |
|
289 | 1360 |
]. |
1361 |
||
1362 |
"Created: / 09-11-2010 / 13:25:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1363 |
"Modified: / 06-03-2011 / 20:44:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
502 | 1364 |
"Modified: / 07-09-2011 / 20:16:19 / cg" |
289 | 1365 |
! |
1366 |
||
1367 |
versionLoadIntoPackage |
|
472 | 1368 |
"specify an st/x package identifier" |
289 | 1369 |
|
1370 |
| version package | |
|
472 | 1371 |
|
289 | 1372 |
version := self selectedVersionAsMCVersion. |
1373 |
version ifNil:[^self]. |
|
472 | 1374 |
|
289 | 1375 |
package := Dialog |
1376 |
requestProject:'Smalltalk/X package to load code into' |
|
472 | 1377 |
initialAnswer:lastPackage |
1378 |
suggestions:#(). |
|
289 | 1379 |
package ifNil:[^self]. |
472 | 1380 |
|
1381 |
lastPackage := package. |
|
289 | 1382 |
self versionLoad: version into: package |
1383 |
||
1384 |
"Modified: / 09-11-2010 / 13:33:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
472 | 1385 |
"Modified: / 07-09-2011 / 12:47:51 / cg" |
1004
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1386 |
! |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1387 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1388 |
versionUpdateCode |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1389 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1390 |
| version package snapshot snapshotCS | |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1391 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1392 |
self withWaitCursorDo:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1393 |
version := self selectedVersionAsMCVersion. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1394 |
version isNil ifTrue:[ ^ self ]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1395 |
snapshot := version snapshot. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1396 |
snapshotCS := snapshot asChangeSet. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1397 |
snapshotCS name: version info name. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1398 |
ProjectDefinition allSubclassesDo:[ :def | |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1399 |
((def class compiledMethodAt: #monticelloName) notNil and:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1400 |
def monticelloName = version package name]) ifTrue:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1401 |
package := def package. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1402 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1403 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1404 |
package isNil ifTrue:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1405 |
Dialog warn: (resources string: 'No package found for Monticello package ''%1''' with: version package name). |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1406 |
^ self |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1407 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1408 |
self versionCompareWithImagePackage: package. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1409 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1410 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1411 |
"Created: / 07-09-2015 / 18:36:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1412 |
! |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1413 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1414 |
versionUpdateSplicemap |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1415 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1416 |
| version package dialog revset packageDef splicemap | |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1417 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1418 |
self withWaitCursorDo:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1419 |
version := self selectedVersionAsMCVersion. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1420 |
version isNil ifTrue:[ ^ self ]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1421 |
ProjectDefinition allSubclassesDo:[ :def | |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1422 |
((def class compiledMethodAt: #monticelloName) notNil and:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1423 |
def monticelloName = version package name]) ifTrue:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1424 |
package := def package. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1425 |
packageDef := def. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1426 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1427 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1428 |
package isNil ifTrue:[ |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1429 |
Dialog warn: (resources string: 'No package found for Monticello package ''%1''' with: version package name). |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1430 |
^ self |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1431 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1432 |
revset := 'grep(''%1'')' bindWith: version info name. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1433 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1434 |
dialog := HGChangesetDialog new. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1435 |
dialog repository: (HGPackageWorkingCopy named:package) repository . |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1436 |
dialog revset: revset asHGRevset. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1437 |
dialog open ifFalse:[ ^ self ]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1438 |
splicemap := { dialog changeset id literalArrayEncoding . version info literalArrayEncodingWithoutAncestors } |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1439 |
, packageDef monticelloSplicemap. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1440 |
packageDef theMetaclass |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1441 |
compile: (packageDef monticelloSplicemap_codeFor:splicemap) |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1442 |
classified:(packageDef class lookupMethodFor: #monticelloSplicemap) category |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1443 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1444 |
]. |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1445 |
|
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1446 |
"Created: / 07-09-2015 / 18:37:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e48adfaf3541
Added support for ancestry splicemaps.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
994
diff
changeset
|
1447 |
"Modified: / 08-09-2015 / 00:07:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
289 | 1448 |
! ! |
1449 |
||
1450 |
!MCRepositoryBrowser methodsFor:'updating'! |
|
1451 |
||
1452 |
updateVersionDetails |
|
540 | 1453 |
| versionEntry version | |
289 | 1454 |
|
1455 |
worker ifNotNil:[worker terminate. worker := nil]. |
|
1456 |
versionEntry := self selectedVersion. |
|
1457 |
versionEntry ifNil:[selectedVersionDetailsHolder value:'No version selected'. ^self]. |
|
540 | 1458 |
"/ async is not a good idea - if it takes long, user might start to click around... |
1459 |
"/ worker := |
|
1460 |
"/ [[selectedVersionDetailsHolder value:'Reading ',versionEntry name,'...'. |
|
1461 |
"/ version := versionEntry asMCVersion. |
|
1462 |
"/ version ifNotNil: |
|
1463 |
"/ [selectedVersionDetailsHolder value: version summary]] ensure:[worker := nil]] newProcess. |
|
1464 |
"/ worker resume. |
|
1465 |
||
1466 |
self withWaitCursorDo:[ |
|
1467 |
selectedVersionDetailsHolder value:'Reading ',versionEntry name,'...'. |
|
777 | 1468 |
ZipArchive zipFileFormatErrorSignal handle:[:ex | |
1469 |
(Dialog confirm:'Zipfile format error encountered while reading (corrupt file?).\\Debug?' withCRs) |
|
1470 |
ifTrue:[ex reject]. |
|
1471 |
] do:[ |
|
1472 |
version := versionEntry asMCVersion. |
|
1473 |
]. |
|
540 | 1474 |
version ifNotNil:[ |
1475 |
selectedVersionDetailsHolder value: version summary |
|
1476 |
] |
|
1477 |
]. |
|
289 | 1478 |
|
1479 |
"Created: / 17-09-2010 / 15:23:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1480 |
"Modified: / 26-10-2010 / 22:08:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
540 | 1481 |
"Modified (comment): / 03-12-2011 / 11:11:28 / cg" |
289 | 1482 |
! ! |
1483 |
||
1484 |
!MCRepositoryBrowser class methodsFor:'documentation'! |
|
1485 |
||
1486 |
version |
|
970 | 1487 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryBrowser.st,v 1.38 2015-02-09 13:57:08 cg Exp $' |
289 | 1488 |
! |
1489 |
||
1490 |
version_CVS |
|
970 | 1491 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCRepositoryBrowser.st,v 1.38 2015-02-09 13:57:08 cg Exp $' |
289 | 1492 |
! |
1493 |
||
982
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1494 |
version_HG |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1495 |
|
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1496 |
^ '$Changeset: <not expanded> $' |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1497 |
! |
230ed8c7d051
Fix in repository browser: include removals in "Compare with Image" changeset
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
970
diff
changeset
|
1498 |
|
289 | 1499 |
version_SVN |
970 | 1500 |
^ '$Id: MCRepositoryBrowser.st,v 1.38 2015-02-09 13:57:08 cg Exp $' |
289 | 1501 |
! ! |
563
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
1502 |
|
761 | 1503 |
|
563
098783ae2b50
Added Launcher>Tools>Programming>Monticello Browser menu item
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
559
diff
changeset
|
1504 |
MCRepositoryBrowser initialize! |