author | Claus Gittinger <cg@exept.de> |
Tue, 29 Nov 2011 11:21:54 +0100 | |
changeset 10912 | a90f6de79d36 |
parent 10676 | b0db71d83075 |
child 11159 | 1815b3c8add1 |
permissions | -rw-r--r-- |
5591 | 1 |
" |
2 |
COPYRIGHT (c) 2000 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 |
" |
|
5592 | 12 |
"{ Package: 'stx:libtool' }" |
5591 | 13 |
|
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
ApplicationModel subclass:#NavigatorModel |
|
17 |
instanceVariableNames:'' |
|
8695 | 18 |
classVariableNames:'AllEntry SuperSendEntry UncommentedEntry' |
5591 | 19 |
poolDictionaries:'' |
20 |
category:'Interface-Browsers-New' |
|
21 |
! |
|
22 |
||
23 |
!NavigatorModel class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2000 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! ! |
|
38 |
||
39 |
!NavigatorModel class methodsFor:'initialization'! |
|
40 |
||
41 |
initialize |
|
8695 | 42 |
AllEntry := '* all *'. |
5591 | 43 |
|
44 |
"Created: / 24.2.2000 / 13:41:29 / cg" |
|
45 |
! ! |
|
46 |
||
47 |
!NavigatorModel class methodsFor:'defaults'! |
|
48 |
||
8754 | 49 |
isPseudoCategory:cat |
50 |
^ cat = self nameListEntryForChanged |
|
51 |
or:[ cat = self nameListEntryForUndocumented |
|
52 |
or:[ cat = self nameListEntryForUnloaded |
|
53 |
or:[ cat = self nameListEntryForALL ]]] |
|
54 |
! |
|
55 |
||
56 |
isPseudoProtocol:protocol |
|
57 |
^ protocol = self nameListEntryForObsolete |
|
58 |
or:[ protocol = self nameListEntryForSuperSend |
|
59 |
or:[ protocol = self nameListEntryForUncommented ]] |
|
60 |
! |
|
61 |
||
7058 | 62 |
markForBeingInChangeList |
63 |
^ ' *' |
|
64 |
||
65 |
"Created: / 29-08-2006 / 10:26:05 / cg" |
|
66 |
! |
|
67 |
||
10248 | 68 |
markForBeingManagedBySVN: package |
69 |
||
70 |
| repo branch mark | |
|
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
71 |
|
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
72 |
ConfigurableFeatures hasSubversionSupportEnabled ifFalse:[^'']. |
10248 | 73 |
package = PackageId noProjectID ifTrue:[^'']. |
74 |
||
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
75 |
"/ use Smalltalk-at to trick the dependency/prerequisite generator |
10248 | 76 |
repo := (Smalltalk at:#SVN::RepositoryManager) current |
77 |
repositoryForPackage: package onlyFromCache: true. |
|
78 |
repo ifNil:[^'']. |
|
79 |
mark := ' [SVN]'. |
|
80 |
branch := repo workingCopy branchOrNil. |
|
81 |
branch ifNotNil:[mark := ' [SVN: ', branch path,']']. |
|
82 |
^mark asText colorizeAllWith: Color gray |
|
83 |
||
84 |
"Created: / 06-04-2010 / 11:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
85 |
"Modified (comment): / 07-09-2011 / 10:43:00 / cg" |
10248 | 86 |
! |
87 |
||
88 |
markForBeingManagedBySVN: package branch: branch |
|
89 |
||
90 |
| mark | |
|
91 |
mark := branch |
|
92 |
ifNil: |
|
93 |
[' [SVN]'] |
|
94 |
ifNotNil: |
|
95 |
[' [SVN: ',branch,']']. |
|
96 |
||
97 |
^mark asText colorizeAllWith: Color gray. |
|
98 |
||
99 |
"Created: / 14-12-2010 / 15:56:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
100 |
! |
|
101 |
||
5591 | 102 |
nameListEntryForALL |
103 |
^ AllEntry ? '* all *' |
|
104 |
||
105 |
"Created: / 24.2.2000 / 13:39:10 / cg" |
|
106 |
"Modified: / 25.2.2000 / 21:18:30 / cg" |
|
107 |
! |
|
108 |
||
8737 | 109 |
nameListEntryForALLWithCount |
110 |
^ '* all (%1) *' |
|
111 |
! |
|
112 |
||
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
113 |
nameListEntryForAnnotated |
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
114 |
^ '* annotated (%1) *' |
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
115 |
|
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
116 |
"Created: / 07-09-2011 / 10:11:40 / cg" |
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
117 |
! |
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
118 |
|
8737 | 119 |
nameListEntryForBookmarked |
120 |
^ '* bookmarked (%1) *' |
|
121 |
! |
|
122 |
||
123 |
nameListEntryForChanged |
|
124 |
^ '* changed *' |
|
125 |
! |
|
126 |
||
127 |
nameListEntryForChangedWithCount |
|
128 |
^ '* changed (%1) *' |
|
129 |
! |
|
130 |
||
8732 | 131 |
nameListEntryForDocumentation |
132 |
^ '* documentation (%1) *' |
|
133 |
! |
|
134 |
||
8929 | 135 |
nameListEntryForExtensions |
136 |
^ '* extensions (%1) *' |
|
137 |
! |
|
138 |
||
10248 | 139 |
nameListEntryForFailedTests |
140 |
^ '* failed tests (%1) *' |
|
141 |
||
142 |
"Created: / 08-03-2010 / 18:26:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
143 |
! |
|
144 |
||
10358 | 145 |
nameListEntryForFullyCovered |
146 |
^ '* covered (%1) *' |
|
147 |
||
148 |
"Created: / 20-07-2011 / 18:20:53 / cg" |
|
149 |
! |
|
150 |
||
8866
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
151 |
nameListEntryForLong |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
152 |
^ '* long (%1) *' |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
153 |
! |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
154 |
|
9087
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
155 |
nameListEntryForMustBeRedefinedInSubclass |
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
156 |
^ '* must be redefined (%1) *' |
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
157 |
! |
43da2b44e13b
added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents:
9026
diff
changeset
|
158 |
|
5591 | 159 |
nameListEntryForNILCategory |
160 |
^ '* no category *' |
|
161 |
! |
|
162 |
||
163 |
nameListEntryForNonStatic |
|
164 |
^ '* instance *' |
|
165 |
! |
|
166 |
||
10359 | 167 |
nameListEntryForNotInstrumented |
168 |
^ '* coverage unknown/not instrumented (%1) *' |
|
169 |
||
170 |
"Created: / 20-07-2011 / 18:41:53 / cg" |
|
171 |
! |
|
172 |
||
8719 | 173 |
nameListEntryForObsolete |
8722 | 174 |
^ '* obsolete (%1) *' |
8719 | 175 |
! |
176 |
||
8929 | 177 |
nameListEntryForOverride |
178 |
^ '* override (%1) *' |
|
179 |
! |
|
180 |
||
10358 | 181 |
nameListEntryForPartiallyCovered |
182 |
^ '* partially covered (%1) *' |
|
183 |
||
184 |
"Created: / 20-07-2011 / 18:21:05 / cg" |
|
185 |
! |
|
186 |
||
10248 | 187 |
nameListEntryForPassedTests |
188 |
^ '* passed tests (%1) *' |
|
189 |
||
190 |
"Created: / 08-03-2010 / 18:26:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
191 |
! |
|
192 |
||
8929 | 193 |
nameListEntryForRedefined |
194 |
^ '* redefined (%1) *' |
|
195 |
! |
|
196 |
||
9026
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
197 |
nameListEntryForRequired |
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
198 |
^ '* required (%1) *' |
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
199 |
! |
e32283a8ff69
added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents:
8929
diff
changeset
|
200 |
|
5591 | 201 |
nameListEntryForStatic |
202 |
^ '* static *' |
|
8695 | 203 |
! |
204 |
||
205 |
nameListEntryForSuperSend |
|
8722 | 206 |
^ '* super (%1) *' |
8695 | 207 |
! |
208 |
||
209 |
nameListEntryForUncommented |
|
8722 | 210 |
^ '* uncommented (%1) *' |
8737 | 211 |
! |
212 |
||
10358 | 213 |
nameListEntryForUncovered |
214 |
^ '* not covered (%1) *' |
|
215 |
||
216 |
"Created: / 20-07-2011 / 18:20:44 / cg" |
|
217 |
! |
|
218 |
||
8754 | 219 |
nameListEntryForUndocumented |
220 |
^ '* undocumented *' |
|
221 |
! |
|
222 |
||
223 |
nameListEntryForUndocumentedWithCount |
|
224 |
^ '* undocumented (%1) *' |
|
225 |
! |
|
226 |
||
227 |
nameListEntryForUnloaded |
|
228 |
^ '* unloaded *' |
|
229 |
! |
|
230 |
||
231 |
nameListEntryForUnloadedWithCount |
|
232 |
^ '* unloaded (%1) *' |
|
233 |
! |
|
234 |
||
8737 | 235 |
nameListEntryForVisited |
236 |
^ '* visited (%1) *' |
|
9129
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
237 |
! |
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
238 |
|
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
239 |
pseudoEntryForegroundColor |
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
240 |
^ UserPreferences current colorForPseudoProtocolsInMethodListInBrowser. |
9129
c4bd6c5e946f
added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents:
9087
diff
changeset
|
241 |
|
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
242 |
"Modified: / 07-09-2011 / 09:59:55 / cg" |
5591 | 243 |
! ! |
244 |
||
245 |
!NavigatorModel class methodsFor:'interface specs'! |
|
246 |
||
247 |
metaSpec |
|
248 |
"This resource specification was automatically generated |
|
249 |
by the UIPainter of ST/X." |
|
250 |
||
251 |
"Do not manually edit this!! If it is corrupted, |
|
252 |
the UIPainter may not be able to read the specification." |
|
253 |
||
254 |
" |
|
7488 | 255 |
UIPainter new openOnClass:Tools::NavigatorModel andSelector:#metaSpec |
256 |
Tools::NavigatorModel new openInterface:#metaSpec |
|
5591 | 257 |
" |
258 |
||
259 |
<resource: #canvas> |
|
260 |
||
261 |
^ |
|
7488 | 262 |
#(FullSpec |
263 |
name: metaSpec |
|
264 |
window: |
|
265 |
(WindowSpec |
|
266 |
label: 'MetaToggles' |
|
267 |
name: 'MetaToggles' |
|
268 |
min: (Point 0 0) |
|
269 |
max: (Point 1024 721) |
|
270 |
bounds: (Rectangle 0 0 300 28) |
|
271 |
) |
|
272 |
component: |
|
273 |
(SpecCollection |
|
274 |
collection: ( |
|
275 |
(RadioButtonSpec |
|
276 |
label: 'Instance' |
|
277 |
name: 'InstanceToggle' |
|
278 |
layout: (LayoutFrame 0 0.0 0 0.0 0 0.5 25 0) |
|
279 |
translateLabel: true |
|
280 |
tabable: true |
|
281 |
model: notMetaToggle |
|
282 |
isTriggerOnDown: true |
|
283 |
select: true |
|
284 |
isToggle: true |
|
285 |
) |
|
286 |
(RadioButtonSpec |
|
287 |
label: 'Class' |
|
288 |
name: 'ClassToggle' |
|
289 |
layout: (LayoutFrame 0 0.5 0 0 0 1.0 25 0) |
|
290 |
translateLabel: true |
|
291 |
labelChannel: metaToggleLabelHolder |
|
292 |
tabable: false |
|
293 |
model: metaToggle |
|
294 |
isTriggerOnDown: true |
|
295 |
select: true |
|
296 |
isToggle: true |
|
297 |
) |
|
298 |
) |
|
5591 | 299 |
|
7488 | 300 |
) |
5591 | 301 |
) |
302 |
! ! |
|
303 |
||
304 |
!NavigatorModel class methodsFor:'misc'! |
|
305 |
||
306 |
classResources |
|
307 |
^ NewSystemBrowser classResources |
|
308 |
! ! |
|
309 |
||
10248 | 310 |
!NavigatorModel class methodsFor:'queries'! |
311 |
||
312 |
hasSubversionSupport |
|
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
313 |
^ ConfigurableFeatures hasSubversionSupportEnabled |
10248 | 314 |
|
315 |
"Created: / 06-04-2010 / 11:09:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
316 |
"Modified: / 07-09-2011 / 10:45:45 / cg" |
10248 | 317 |
! ! |
318 |
||
5591 | 319 |
!NavigatorModel methodsFor:'misc'! |
320 |
||
321 |
resources |
|
8722 | 322 |
"answer the resources of my masterApp, if there is one" |
323 |
||
5591 | 324 |
|m| |
325 |
||
326 |
(m := self masterApplication) notNil ifTrue:[ |
|
8722 | 327 |
^ m resources |
5591 | 328 |
]. |
329 |
^ super resources |
|
330 |
! ! |
|
331 |
||
10248 | 332 |
!NavigatorModel methodsFor:'queries'! |
333 |
||
334 |
hasSubversionSupport |
|
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
335 |
^ ConfigurableFeatures hasSubversionSupportEnabled |
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
336 |
|
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
337 |
"Modified: / 07-09-2011 / 10:45:49 / cg" |
10248 | 338 |
! ! |
339 |
||
5591 | 340 |
!NavigatorModel class methodsFor:'documentation'! |
341 |
||
10359 | 342 |
version |
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
343 |
^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.20 2011-09-07 09:12:17 cg Exp $' |
10359 | 344 |
! |
345 |
||
10248 | 346 |
version_CVS |
10676
b0db71d83075
ask comon feature list if svn is avail
Claus Gittinger <cg@exept.de>
parents:
10359
diff
changeset
|
347 |
^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.20 2011-09-07 09:12:17 cg Exp $' |
8866
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
348 |
! |
c4678ec9944b
added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents:
8754
diff
changeset
|
349 |
|
10248 | 350 |
version_SVN |
351 |
^ '§Id: Tools__NavigatorModel.st 7802 2011-07-05 18:33:36Z vranyj1 §' |
|
5591 | 352 |
! ! |
353 |
||
354 |
NavigatorModel initialize! |