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