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