18764
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
9971
|
3 |
"
|
10084
|
4 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
|
|
5 |
Copyright (c) 2009-2010 eXept Software AG
|
9971
|
6 |
|
10084
|
7 |
Permission is hereby granted, free of charge, to any person
|
|
8 |
obtaining a copy of this software and associated documentation
|
|
9 |
files (the 'Software'), to deal in the Software without
|
|
10 |
restriction, including without limitation the rights to use,
|
|
11 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12 |
copies of the Software, and to permit persons to whom the
|
|
13 |
Software is furnished to do so, subject to the following
|
|
14 |
conditions:
|
|
15 |
|
|
16 |
The above copyright notice and this permission notice shall be
|
|
17 |
included in all copies or substantial portions of the Software.
|
|
18 |
|
|
19 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
20 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
21 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
22 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
23 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
24 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
25 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
26 |
OTHER DEALINGS IN THE SOFTWARE.
|
9971
|
27 |
"
|
|
28 |
"{ Package: 'stx:libtool' }"
|
|
29 |
|
16197
|
30 |
"{ NameSpace: Smalltalk }"
|
|
31 |
|
9971
|
32 |
ApplicationModel subclass:#BookmarkListEditor
|
|
33 |
instanceVariableNames:'selectionHolder bookmarkListHolder'
|
|
34 |
classVariableNames:''
|
|
35 |
poolDictionaries:''
|
|
36 |
category:'Interface-Bookmarks'
|
|
37 |
!
|
|
38 |
|
|
39 |
!BookmarkListEditor class methodsFor:'documentation'!
|
|
40 |
|
|
41 |
copyright
|
|
42 |
"
|
10084
|
43 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
|
|
44 |
Copyright (c) 2009-2010 eXept Software AG
|
|
45 |
|
|
46 |
Permission is hereby granted, free of charge, to any person
|
|
47 |
obtaining a copy of this software and associated documentation
|
|
48 |
files (the 'Software'), to deal in the Software without
|
|
49 |
restriction, including without limitation the rights to use,
|
|
50 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
51 |
copies of the Software, and to permit persons to whom the
|
|
52 |
Software is furnished to do so, subject to the following
|
|
53 |
conditions:
|
9971
|
54 |
|
10084
|
55 |
The above copyright notice and this permission notice shall be
|
|
56 |
included in all copies or substantial portions of the Software.
|
|
57 |
|
|
58 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
59 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
60 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
61 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
62 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
63 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
64 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
65 |
OTHER DEALINGS IN THE SOFTWARE.
|
9971
|
66 |
"
|
|
67 |
! !
|
|
68 |
|
|
69 |
!BookmarkListEditor class methodsFor:'interface specs'!
|
|
70 |
|
|
71 |
windowSpec
|
|
72 |
"This resource specification was automatically generated
|
|
73 |
by the UIPainter of ST/X."
|
|
74 |
|
|
75 |
"Do not manually edit this!! If it is corrupted,
|
|
76 |
the UIPainter may not be able to read the specification."
|
|
77 |
|
|
78 |
"
|
|
79 |
UIPainter new openOnClass:BookmarkListEditor andSelector:#windowSpec
|
|
80 |
BookmarkListEditor new openInterface:#windowSpec
|
|
81 |
BookmarkListEditor open
|
|
82 |
"
|
|
83 |
|
|
84 |
<resource: #canvas>
|
|
85 |
|
|
86 |
^
|
|
87 |
#(FullSpec
|
|
88 |
name: windowSpec
|
|
89 |
window:
|
|
90 |
(WindowSpec
|
|
91 |
label: 'Bookmark Editor'
|
|
92 |
name: 'Bookmark Editor'
|
|
93 |
min: (Point 10 10)
|
|
94 |
bounds: (Rectangle 0 0 509 430)
|
|
95 |
)
|
|
96 |
component:
|
|
97 |
(SpecCollection
|
|
98 |
collection: (
|
|
99 |
(MenuPanelSpec
|
|
100 |
name: 'ToolBar'
|
|
101 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0)
|
|
102 |
menu: toolbarMenu
|
|
103 |
textDefault: true
|
|
104 |
)
|
|
105 |
(VariableHorizontalPanelSpec
|
|
106 |
name: 'Panel'
|
|
107 |
layout: (LayoutFrame 0 0 30 0 0 1 0 1)
|
|
108 |
component:
|
|
109 |
(SpecCollection
|
|
110 |
collection: (
|
|
111 |
(HierarchicalListViewSpec
|
|
112 |
name: 'BookmarkList'
|
|
113 |
model: selectionHolder
|
|
114 |
menu: contextMenu
|
|
115 |
hasHorizontalScrollBar: true
|
|
116 |
hasVerticalScrollBar: true
|
|
117 |
listModel: bookmarkListHolder
|
|
118 |
useIndex: false
|
|
119 |
highlightMode: line
|
|
120 |
doubleClickSelector: menuRename
|
|
121 |
useDefaultIcons: false
|
|
122 |
)
|
|
123 |
)
|
|
124 |
|
|
125 |
)
|
|
126 |
handles: (Any 1.0)
|
|
127 |
)
|
|
128 |
)
|
|
129 |
|
|
130 |
)
|
|
131 |
)
|
|
132 |
! !
|
|
133 |
|
|
134 |
!BookmarkListEditor class methodsFor:'menu specs'!
|
|
135 |
|
|
136 |
contextMenu
|
|
137 |
"This resource specification was automatically generated
|
|
138 |
by the MenuEditor of ST/X."
|
|
139 |
|
|
140 |
"Do not manually edit this!! If it is corrupted,
|
|
141 |
the MenuEditor may not be able to read the specification."
|
|
142 |
|
|
143 |
"
|
|
144 |
MenuEditor new openOnClass:BookmarkListEditor andSelector:#contextMenu
|
|
145 |
(Menu new fromLiteralArrayEncoding:(BookmarkListEditor contextMenu)) startUp
|
|
146 |
"
|
|
147 |
|
|
148 |
<resource: #menu>
|
|
149 |
|
|
150 |
^
|
|
151 |
#(Menu
|
|
152 |
(
|
|
153 |
(MenuItem
|
|
154 |
label: 'New...'
|
|
155 |
itemValue: menuNewFolder
|
|
156 |
translateLabel: true
|
|
157 |
submenuChannel: newMenu
|
|
158 |
labelImage: (ResourceRetriever ToolbarIconLibrary newDirectory22x22Icon 'New...')
|
|
159 |
)
|
|
160 |
(MenuItem
|
|
161 |
label: 'Rename'
|
|
162 |
itemValue: menuRename
|
|
163 |
translateLabel: true
|
|
164 |
shortcutKey: Rename
|
|
165 |
)
|
|
166 |
(MenuItem
|
|
167 |
enabled: hasSelectionHolder
|
|
168 |
label: 'Remove'
|
|
169 |
itemValue: menuRemove
|
|
170 |
translateLabel: true
|
|
171 |
labelImage: (ResourceRetriever ToolbarIconLibrary deleteIcon 'Remove')
|
|
172 |
)
|
|
173 |
(MenuItem
|
|
174 |
label: '-'
|
|
175 |
)
|
|
176 |
(MenuItem
|
|
177 |
enabled: hasSelectionHolder
|
|
178 |
label: 'Move Up'
|
|
179 |
itemValue: menuMoveUp
|
|
180 |
translateLabel: true
|
|
181 |
isButton: true
|
|
182 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetUpIcon 'Move Up')
|
|
183 |
)
|
|
184 |
(MenuItem
|
|
185 |
enabled: hasSelectionHolder
|
|
186 |
label: 'Move Down'
|
|
187 |
itemValue: menuMoveDown
|
|
188 |
translateLabel: true
|
|
189 |
isButton: true
|
|
190 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownIcon 'Move Down')
|
|
191 |
)
|
|
192 |
(MenuItem
|
|
193 |
enabled: hasSelectionHolder
|
|
194 |
label: 'Move In'
|
|
195 |
itemValue: menuMoveIn
|
|
196 |
translateLabel: true
|
|
197 |
isButton: true
|
|
198 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownRightIcon 'Move In')
|
|
199 |
)
|
|
200 |
(MenuItem
|
|
201 |
enabled: hasSelectionHolder
|
|
202 |
label: 'Move Out'
|
|
203 |
itemValue: menuMoveOut
|
|
204 |
translateLabel: true
|
|
205 |
isButton: true
|
|
206 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetLeftDownIcon 'Move Out')
|
|
207 |
)
|
|
208 |
)
|
|
209 |
nil
|
|
210 |
nil
|
|
211 |
)
|
|
212 |
!
|
|
213 |
|
|
214 |
newMenu
|
|
215 |
"This resource specification was automatically generated
|
|
216 |
by the MenuEditor of ST/X."
|
|
217 |
|
|
218 |
"Do not manually edit this!! If it is corrupted,
|
|
219 |
the MenuEditor may not be able to read the specification."
|
|
220 |
|
|
221 |
"
|
|
222 |
MenuEditor new openOnClass:BookmarkListEditor andSelector:#newMenu
|
|
223 |
(Menu new fromLiteralArrayEncoding:(BookmarkListEditor newMenu)) startUp
|
|
224 |
"
|
|
225 |
|
|
226 |
<resource: #menu>
|
|
227 |
|
|
228 |
^
|
|
229 |
#(Menu
|
|
230 |
(
|
|
231 |
(MenuItem
|
|
232 |
label: 'New Folder'
|
|
233 |
itemValue: menuNew:
|
|
234 |
translateLabel: true
|
|
235 |
labelImage: (ResourceRetriever ToolbarIconLibrary newDirectory22x22Icon 'New Folder')
|
|
236 |
argument: #'Bookmark::Folder'
|
|
237 |
)
|
|
238 |
(MenuItem
|
|
239 |
label: 'New Separator'
|
|
240 |
itemValue: menuNew:
|
|
241 |
translateLabel: true
|
|
242 |
argument: #'Bookmark::Separator'
|
|
243 |
)
|
|
244 |
)
|
|
245 |
nil
|
|
246 |
nil
|
|
247 |
)
|
|
248 |
!
|
|
249 |
|
|
250 |
toolbarMenu
|
|
251 |
"This resource specification was automatically generated
|
|
252 |
by the MenuEditor of ST/X."
|
|
253 |
|
|
254 |
"Do not manually edit this!! If it is corrupted,
|
|
255 |
the MenuEditor may not be able to read the specification."
|
|
256 |
|
14182
|
257 |
|
9971
|
258 |
"
|
|
259 |
MenuEditor new openOnClass:BookmarkListEditor andSelector:#toolbarMenu
|
|
260 |
(Menu new fromLiteralArrayEncoding:(BookmarkListEditor toolbarMenu)) startUp
|
|
261 |
"
|
|
262 |
|
|
263 |
<resource: #menu>
|
|
264 |
|
|
265 |
^
|
|
266 |
#(Menu
|
|
267 |
(
|
|
268 |
(MenuItem
|
14182
|
269 |
activeHelpKey: newItem
|
9971
|
270 |
label: 'New...'
|
|
271 |
itemValue: menuNewFolder
|
|
272 |
isButton: true
|
|
273 |
submenuChannel: newMenu
|
|
274 |
labelImage: (ResourceRetriever ToolbarIconLibrary newDirectory22x22Icon)
|
|
275 |
)
|
|
276 |
(MenuItem
|
|
277 |
enabled: hasSelectionHolder
|
|
278 |
label: 'Remove'
|
|
279 |
itemValue: menuRemove
|
|
280 |
isButton: true
|
|
281 |
shortcutKey: Delete
|
|
282 |
labelImage: (ResourceRetriever ToolbarIconLibrary deleteIcon)
|
|
283 |
)
|
|
284 |
(MenuItem
|
|
285 |
label: '-'
|
|
286 |
)
|
|
287 |
(MenuItem
|
|
288 |
label: 'Save'
|
|
289 |
itemValue: menuSave
|
|
290 |
isButton: true
|
|
291 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveToFileIcon)
|
|
292 |
)
|
|
293 |
(MenuItem
|
|
294 |
label: '-'
|
|
295 |
)
|
|
296 |
(MenuItem
|
|
297 |
enabled: hasSelectionHolder
|
|
298 |
label: 'Move Up'
|
|
299 |
itemValue: menuMoveUp
|
|
300 |
isButton: true
|
|
301 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetUpIcon)
|
|
302 |
)
|
|
303 |
(MenuItem
|
|
304 |
enabled: hasSelectionHolder
|
|
305 |
label: 'Move Down'
|
|
306 |
itemValue: menuMoveDown
|
|
307 |
isButton: true
|
|
308 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownIcon)
|
|
309 |
)
|
|
310 |
(MenuItem
|
|
311 |
enabled: hasSelectionHolder
|
|
312 |
label: 'Move In'
|
|
313 |
itemValue: menuMoveIn
|
|
314 |
isButton: true
|
|
315 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetDownRightIcon)
|
|
316 |
)
|
|
317 |
(MenuItem
|
|
318 |
enabled: hasSelectionHolder
|
|
319 |
label: 'Move Out'
|
|
320 |
itemValue: menuMoveOut
|
|
321 |
isButton: true
|
|
322 |
labelImage: (ResourceRetriever ToolbarIconLibrary moveWidgetLeftDownIcon)
|
|
323 |
)
|
14182
|
324 |
(MenuItem
|
|
325 |
label: '-'
|
|
326 |
)
|
|
327 |
(MenuItem
|
|
328 |
enabled: hasFolderSelectedHolder
|
|
329 |
label: 'Sort by Name'
|
|
330 |
itemValue: menuSortByName
|
|
331 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByName16x16Icon)
|
|
332 |
)
|
9971
|
333 |
)
|
|
334 |
nil
|
|
335 |
nil
|
|
336 |
)
|
|
337 |
! !
|
|
338 |
|
|
339 |
!BookmarkListEditor methodsFor:'accessing'!
|
|
340 |
|
|
341 |
bookmarkList
|
|
342 |
|
|
343 |
^self bookmarkListHolder value
|
|
344 |
|
|
345 |
"Created: / 02-06-2011 / 10:40:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
346 |
!
|
|
347 |
|
|
348 |
bookmarkList: aBookmarkList
|
|
349 |
|
|
350 |
self bookmarkListHolder value: aBookmarkList
|
|
351 |
|
|
352 |
"Created: / 02-06-2011 / 10:40:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
353 |
!
|
|
354 |
|
|
355 |
selection
|
|
356 |
|
|
357 |
^self selectionHolder value
|
|
358 |
|
|
359 |
"Created: / 02-06-2011 / 10:57:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
360 |
!
|
|
361 |
|
|
362 |
selection: anObject
|
|
363 |
|
|
364 |
^self selectionHolder value: anObject
|
|
365 |
|
|
366 |
"Created: / 02-06-2011 / 11:46:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
367 |
! !
|
|
368 |
|
|
369 |
!BookmarkListEditor methodsFor:'aspects'!
|
|
370 |
|
|
371 |
bookmarkListHolder
|
|
372 |
<resource: #uiAspect>
|
|
373 |
|
|
374 |
bookmarkListHolder isNil ifTrue:[
|
|
375 |
bookmarkListHolder := ValueHolder new.
|
|
376 |
].
|
|
377 |
^ bookmarkListHolder.
|
|
378 |
|
|
379 |
"Modified: / 02-06-2011 / 10:39:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
380 |
!
|
|
381 |
|
14182
|
382 |
hasFolderSelectedHolder
|
18764
|
383 |
^ BlockValue
|
14182
|
384 |
with:[:selectionHolder|
|
18764
|
385 |
selectionHolder notNil
|
|
386 |
and:[selectionHolder isFolderBookmark]
|
14182
|
387 |
]
|
18764
|
388 |
argument:self selectionHolder
|
|
389 |
|
|
390 |
"Created: / 02-06-2011 / 10:55:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
391 |
"Modified: / 17-05-2019 / 15:36:41 / Stefan Vogel"
|
|
392 |
"Modified (format): / 17-05-2019 / 16:50:44 / Stefan Vogel"
|
|
393 |
!
|
|
394 |
|
|
395 |
hasSelectionHolder
|
|
396 |
^ BlockValue
|
|
397 |
with:[:selectionHolder| selectionHolder notNil]
|
14182
|
398 |
argument: self selectionHolder
|
|
399 |
|
|
400 |
"Created: / 02-06-2011 / 10:55:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
18764
|
401 |
"Modified: / 17-05-2019 / 15:37:07 / Stefan Vogel"
|
9971
|
402 |
!
|
|
403 |
|
|
404 |
selectionHolder
|
|
405 |
<resource: #uiAspect>
|
|
406 |
|
|
407 |
selectionHolder isNil ifTrue:[
|
|
408 |
selectionHolder := ValueHolder new.
|
|
409 |
].
|
|
410 |
^ selectionHolder.
|
|
411 |
! !
|
|
412 |
|
|
413 |
!BookmarkListEditor methodsFor:'hooks'!
|
|
414 |
|
|
415 |
commonPostOpen
|
|
416 |
| root |
|
|
417 |
|
17318
|
418 |
super commonPostOpen.
|
10865
|
419 |
self bookmarkList isNil ifTrue:[
|
|
420 |
self bookmarkList: BookmarkList forSystemBrowser
|
|
421 |
].
|
9971
|
422 |
root := self bookmarkList root.
|
|
423 |
root isExpanded ifFalse:[root expand].
|
|
424 |
|
|
425 |
"Created: / 02-06-2011 / 10:41:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
426 |
"Modified: / 02-06-2011 / 13:33:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
10865
|
427 |
"Modified (format): / 18-11-2011 / 14:32:36 / cg"
|
9971
|
428 |
! !
|
|
429 |
|
|
430 |
!BookmarkListEditor methodsFor:'menu actions'!
|
|
431 |
|
|
432 |
menuMoveDown
|
|
433 |
|
|
434 |
| sel |
|
|
435 |
|
|
436 |
(sel := self selection) parent moveDown: sel.
|
|
437 |
self selection: sel.
|
|
438 |
|
|
439 |
"Modified: / 02-06-2011 / 11:45:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
440 |
!
|
|
441 |
|
|
442 |
menuMoveIn
|
|
443 |
|
|
444 |
| sel |
|
|
445 |
|
|
446 |
(sel := self selection) parent moveIn: sel.
|
|
447 |
self selection: sel.
|
|
448 |
|
|
449 |
"Modified: / 03-06-2011 / 10:27:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
450 |
!
|
|
451 |
|
|
452 |
menuMoveOut
|
|
453 |
|
|
454 |
| sel |
|
|
455 |
|
|
456 |
(sel := self selection) parent moveOut: sel.
|
|
457 |
self selection: sel.
|
|
458 |
|
|
459 |
"Modified: / 03-06-2011 / 10:28:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
460 |
!
|
|
461 |
|
|
462 |
menuMoveUp
|
|
463 |
|
|
464 |
| sel |
|
|
465 |
|
|
466 |
(sel := self selection) parent moveUp: sel.
|
|
467 |
self selection: sel.
|
|
468 |
|
|
469 |
"Modified: / 02-06-2011 / 11:46:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
470 |
!
|
|
471 |
|
|
472 |
menuNew: className
|
10865
|
473 |
| folder new |
|
9971
|
474 |
|
|
475 |
folder := self selection.
|
10865
|
476 |
folder isNil ifTrue:[folder := self bookmarkList root].
|
9971
|
477 |
folder isFolderBookmark ifFalse: [folder := folder parent].
|
|
478 |
new := (Smalltalk at: className) new.
|
|
479 |
folder add: new.
|
|
480 |
|
|
481 |
"Created: / 02-06-2011 / 11:49:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
482 |
"Modified: / 02-06-2011 / 13:24:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
10865
|
483 |
"Modified: / 18-11-2011 / 14:32:49 / cg"
|
9971
|
484 |
!
|
|
485 |
|
|
486 |
menuNewFolder
|
|
487 |
|
|
488 |
self menuNew: #'Bookmark::Folder'
|
|
489 |
|
|
490 |
"Modified: / 02-06-2011 / 12:00:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
491 |
!
|
|
492 |
|
|
493 |
menuRemove
|
|
494 |
|
|
495 |
self selection parent remove: self selection.
|
|
496 |
|
|
497 |
"Modified: / 02-06-2011 / 13:18:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
498 |
!
|
|
499 |
|
|
500 |
menuRename
|
10865
|
501 |
| sel name |
|
9971
|
502 |
|
|
503 |
sel := self selection.
|
|
504 |
name := Dialog request: 'Enter new name' initialAnswer: sel label asString.
|
10865
|
505 |
name isNil ifTrue:[^self].
|
9971
|
506 |
sel label: name.
|
|
507 |
|
|
508 |
"Modified: / 03-06-2011 / 10:43:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
10865
|
509 |
"Modified: / 18-11-2011 / 14:33:00 / cg"
|
9971
|
510 |
!
|
|
511 |
|
|
512 |
menuSave
|
|
513 |
|
|
514 |
self bookmarkList save.
|
|
515 |
|
|
516 |
"Modified: / 02-06-2011 / 22:53:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
14182
|
517 |
!
|
|
518 |
|
|
519 |
menuSortByName
|
|
520 |
|
|
521 |
| sel |
|
|
522 |
|
|
523 |
((sel := self selection) isNil or:[sel isFolderBookmark not]) ifTrue:[
|
|
524 |
Dialog information:'Please select a folder item first'.
|
|
525 |
^ self.
|
|
526 |
].
|
|
527 |
sel sortChildrenAlphabetically.
|
|
528 |
self selection: sel.
|
9971
|
529 |
! !
|
|
530 |
|
|
531 |
!BookmarkListEditor class methodsFor:'documentation'!
|
|
532 |
|
|
533 |
version_CVS
|
16197
|
534 |
^ '$Header$'
|
9971
|
535 |
!
|
|
536 |
|
|
537 |
version_SVN
|
16197
|
538 |
^ '$Id$'
|
9971
|
539 |
! !
|
14182
|
540 |
|