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