9966
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
Object subclass:#BookmarkVisitor
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'Interface-Bookmarks'
|
|
19 |
!
|
|
20 |
|
|
21 |
!BookmarkVisitor class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
! !
|
|
36 |
|
|
37 |
!BookmarkVisitor methodsFor:'visiting'!
|
|
38 |
|
|
39 |
visit:anObject
|
|
40 |
"visit anObject (visitor pattern).
|
|
41 |
The object should call back one of my visitXXXX methods."
|
|
42 |
|
|
43 |
^ anObject acceptVisitor:self
|
|
44 |
!
|
|
45 |
|
|
46 |
visitBookmark:anObject
|
|
47 |
|
|
48 |
self subclassResponsibility
|
|
49 |
|
|
50 |
"Created: / 23-05-2011 / 10:41:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
51 |
!
|
|
52 |
|
|
53 |
visitBookmarkList:anObject
|
|
54 |
"dispatched back from the visited bookmarkList-object (visitor pattern)"
|
|
55 |
|
|
56 |
"fall back to general object-case - please change as required"
|
|
57 |
|
|
58 |
^ self visit:anObject root
|
|
59 |
|
|
60 |
"Modified: / 02-06-2011 / 21:53:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
61 |
!
|
|
62 |
|
|
63 |
visitClass:anObject
|
|
64 |
|
|
65 |
^self visitBookmark: anObject
|
|
66 |
|
|
67 |
"Modified: / 23-05-2011 / 10:41:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
68 |
!
|
|
69 |
|
|
70 |
visitFile:anObject
|
|
71 |
^ self visitBookmark:anObject
|
|
72 |
!
|
|
73 |
|
|
74 |
visitFolder:anObject
|
|
75 |
|
|
76 |
^self visitBookmark: anObject
|
|
77 |
|
|
78 |
"Modified: / 23-05-2011 / 10:41:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
79 |
!
|
|
80 |
|
|
81 |
visitMethod:anObject
|
|
82 |
|
|
83 |
^self visitBookmark: anObject
|
|
84 |
|
|
85 |
"Modified: / 23-05-2011 / 10:42:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
86 |
!
|
|
87 |
|
|
88 |
visitRecent:anObject
|
|
89 |
^ self visitFolder:anObject
|
|
90 |
!
|
|
91 |
|
|
92 |
visitSeparator:anObject
|
|
93 |
^ self visitBookmark:anObject
|
|
94 |
!
|
|
95 |
|
|
96 |
visitURL:anObject
|
|
97 |
|
|
98 |
^self visitBookmark: anObject
|
|
99 |
|
|
100 |
"Created: / 16-06-2011 / 16:08:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
101 |
! !
|
|
102 |
|
|
103 |
!BookmarkVisitor class methodsFor:'documentation'!
|
|
104 |
|
|
105 |
version_CVS
|
|
106 |
^ '$Header: /cvs/stx/stx/libtool/BookmarkVisitor.st,v 1.1 2011-07-01 13:12:27 cg Exp $'
|
|
107 |
!
|
|
108 |
|
|
109 |
version_SVN
|
|
110 |
^ '§Id§'
|
|
111 |
! !
|