author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sun, 29 Jan 2012 12:53:39 +0000 | |
branch | jv |
changeset 12123 | 4bde08cebd48 |
parent 10969 | 665814cad40d |
child 12125 | 0c49a3b13e43 |
permissions | -rw-r--r-- |
9892 | 1 |
" |
2 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
10055 | 3 |
All Rights Reserved |
9892 | 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 |
"{ NameSpace: Tools }" |
|
15 |
||
9907 | 16 |
ApplicationModel subclass:#TagsBrowser |
10435 | 17 |
instanceVariableNames:'editedFileHolder commonAspects tagView tagList action tagsMenu |
18 |
menus' |
|
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-Tools-File-Tags' |
|
9892 | 22 |
! |
23 |
||
24 |
SelectionInListModelView subclass:#TagView |
|
10435 | 25 |
instanceVariableNames:'application process fileName tagLineNr filter' |
26 |
classVariableNames:'TypeInset' |
|
27 |
poolDictionaries:'' |
|
28 |
privateIn:TagsBrowser |
|
9892 | 29 |
! |
30 |
||
31 |
!TagsBrowser class methodsFor:'documentation'! |
|
32 |
||
33 |
copyright |
|
34 |
" |
|
35 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
10055 | 36 |
All Rights Reserved |
9892 | 37 |
|
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
||
45 |
||
46 |
" |
|
9919 | 47 |
! |
48 |
||
49 |
documentation |
|
50 |
" |
|
51 |
a simple tag-support view, which can be plugged into another (file) application |
|
52 |
for indexing. |
|
53 |
Supports a bunch of languages somehow, but none really perfect. |
|
54 |
Uses ctags if present, if not, has naive fallback tag generation support. |
|
55 |
||
10055 | 56 |
Good enough for me, doing occasional work in other languages (of course, is not able |
57 |
to compete with a specialized editor tools loke notepad++, emacs or similar. |
|
9919 | 58 |
" |
9892 | 59 |
! ! |
60 |
||
61 |
!TagsBrowser class methodsFor:'interface specs'! |
|
62 |
||
63 |
windowSpec |
|
64 |
"This resource specification was automatically generated |
|
65 |
by the UIPainter of ST/X." |
|
66 |
||
67 |
"Do not manually edit this!! If it is corrupted, |
|
68 |
the UIPainter may not be able to read the specification." |
|
69 |
||
70 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
71 |
UIPainter new openOnClass:Tools::TagsBrowser andSelector:#windowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
72 |
Tools::TagsBrowser new openInterface:#windowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
73 |
Tools::TagsBrowser open |
9892 | 74 |
" |
75 |
||
76 |
<resource: #canvas> |
|
77 |
||
78 |
^ |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
79 |
#(FullSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
80 |
name: windowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
81 |
window: |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
82 |
(WindowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
83 |
label: 'TagsBrowser' |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
84 |
name: 'TagsBrowser' |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
85 |
min: (Point 10 10) |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
86 |
max: (Point 1024 768) |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
87 |
bounds: (Rectangle 0 0 300 337) |
9892 | 88 |
) |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
89 |
component: |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
90 |
(SpecCollection |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
91 |
collection: ( |
9942 | 92 |
(MenuPanelSpec |
93 |
name: 'ToolBar1' |
|
94 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0) |
|
95 |
level: 0 |
|
96 |
menu: toolBarMenu |
|
97 |
textDefault: true |
|
98 |
) |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
99 |
(ArbitraryComponentSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
100 |
name: 'Browser' |
9942 | 101 |
layout: (LayoutFrame 0 0 30 0 0 1 0 1) |
102 |
level: -1 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
103 |
menu: middleButtonMenu |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
104 |
hasHorizontalScrollBar: true |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
105 |
hasVerticalScrollBar: true |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
106 |
miniScrollerHorizontal: true |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
107 |
miniScrollerVertical: false |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
108 |
hasBorder: false |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
109 |
component: tagView |
9892 | 110 |
) |
111 |
) |
|
112 |
||
113 |
) |
|
114 |
) |
|
115 |
! ! |
|
116 |
||
117 |
!TagsBrowser class methodsFor:'menu specs'! |
|
118 |
||
119 |
assemblerMenuSlice |
|
120 |
"This resource specification was automatically generated |
|
121 |
by the MenuEditor of ST/X." |
|
122 |
||
123 |
"Do not manually edit this!! If it is corrupted, |
|
124 |
the MenuEditor may not be able to read the specification." |
|
125 |
||
126 |
" |
|
9920 | 127 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#assemblerMenuSlice |
128 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser assemblerMenuSlice)) startUp |
|
9892 | 129 |
" |
130 |
||
131 |
<resource: #menu> |
|
132 |
||
133 |
^ |
|
9920 | 134 |
#(Menu |
135 |
( |
|
136 |
(MenuItem |
|
137 |
label: '-' |
|
138 |
isVisible: editedFileHasAssemblerSuffix |
|
9892 | 139 |
) |
9920 | 140 |
(MenuItem |
141 |
enabled: tagTypesPresentHolder |
|
142 |
label: 'Hide local labels' |
|
143 |
translateLabel: true |
|
144 |
isVisible: editedFileHasAssemblerSuffix |
|
145 |
hideMenuOnActivated: false |
|
146 |
indication: hideLocalLabels: |
|
9892 | 147 |
) |
9920 | 148 |
(MenuItem |
149 |
enabled: tagTypesPresentHolder |
|
150 |
label: 'Hide data labels' |
|
151 |
translateLabel: true |
|
152 |
isVisible: editedFileHasAssemblerSuffix |
|
153 |
hideMenuOnActivated: false |
|
154 |
indication: hideDataLabels: |
|
9892 | 155 |
) |
9920 | 156 |
(MenuItem |
157 |
enabled: tagTypesPresentHolder |
|
158 |
label: 'Hide text labels' |
|
159 |
translateLabel: true |
|
160 |
isVisible: editedFileHasAssemblerSuffix |
|
161 |
hideMenuOnActivated: false |
|
162 |
indication: hideTextLabels: |
|
9892 | 163 |
) |
164 |
) |
|
165 |
nil |
|
166 |
nil |
|
167 |
) |
|
168 |
! |
|
169 |
||
170 |
cMenuSlice |
|
171 |
"This resource specification was automatically generated |
|
172 |
by the MenuEditor of ST/X." |
|
173 |
||
174 |
"Do not manually edit this!! If it is corrupted, |
|
175 |
the MenuEditor may not be able to read the specification." |
|
176 |
||
177 |
" |
|
9920 | 178 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#cMenuSlice |
179 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser cMenuSlice)) startUp |
|
9892 | 180 |
" |
181 |
||
182 |
<resource: #menu> |
|
183 |
||
184 |
^ |
|
185 |
#(Menu |
|
186 |
( |
|
187 |
(MenuItem |
|
188 |
label: '-' |
|
189 |
isVisible: editedFileHasCSuffix |
|
190 |
) |
|
191 |
(MenuItem |
|
192 |
enabled: tagTypesPresentHolder |
|
193 |
label: 'Classes, Functions && Variables only' |
|
194 |
translateLabel: true |
|
195 |
isVisible: editedFileHasCSuffix |
|
196 |
indication: classesFunctionsAndVariablesOnly: |
|
197 |
) |
|
198 |
(MenuItem |
|
199 |
enabled: tagTypesPresentHolder |
|
200 |
label: 'Classes only' |
|
201 |
translateLabel: true |
|
202 |
isVisible: editedFileHasCSuffix |
|
203 |
indication: classesOnly: |
|
204 |
) |
|
205 |
(MenuItem |
|
206 |
enabled: tagTypesPresentHolder |
|
207 |
label: 'Functions only' |
|
208 |
translateLabel: true |
|
209 |
isVisible: editedFileHasCSuffix |
|
210 |
indication: functionsOnly: |
|
211 |
) |
|
212 |
(MenuItem |
|
213 |
enabled: tagTypesPresentHolder |
|
214 |
label: 'Variables only' |
|
215 |
translateLabel: true |
|
216 |
isVisible: editedFileHasCSuffix |
|
217 |
indication: variablesOnly: |
|
218 |
) |
|
219 |
(MenuItem |
|
220 |
enabled: tagTypesPresentHolder |
|
221 |
label: 'Types only' |
|
222 |
translateLabel: true |
|
223 |
isVisible: editedFileHasCSuffix |
|
224 |
indication: typesOnly: |
|
225 |
) |
|
226 |
(MenuItem |
|
227 |
enabled: tagTypesPresentHolder |
|
228 |
label: 'Structs only' |
|
229 |
translateLabel: true |
|
230 |
isVisible: editedFileHasCSuffix |
|
231 |
indication: structsOnly: |
|
232 |
) |
|
233 |
(MenuItem |
|
234 |
enabled: tagTypesPresentHolder |
|
235 |
label: 'Defines only' |
|
236 |
translateLabel: true |
|
237 |
isVisible: editedFileHasCSuffix |
|
238 |
indication: definesOnly: |
|
239 |
) |
|
240 |
(MenuItem |
|
241 |
label: '-' |
|
242 |
isVisible: editedFileHasCSuffix |
|
243 |
) |
|
244 |
(MenuItem |
|
245 |
enabled: tagTypesPresentHolder |
|
246 |
label: 'Hide classes' |
|
247 |
translateLabel: true |
|
248 |
isVisible: editedFileHasCSuffix |
|
9920 | 249 |
hideMenuOnActivated: false |
9892 | 250 |
indication: hideClasses: |
251 |
) |
|
252 |
(MenuItem |
|
253 |
enabled: tagTypesPresentHolder |
|
254 |
label: 'Hide functions' |
|
255 |
translateLabel: true |
|
256 |
isVisible: editedFileHasCSuffix |
|
9920 | 257 |
hideMenuOnActivated: false |
9892 | 258 |
indication: hideFunctions: |
259 |
) |
|
260 |
(MenuItem |
|
261 |
enabled: tagTypesPresentHolder |
|
262 |
label: 'Hide variables' |
|
263 |
translateLabel: true |
|
264 |
isVisible: editedFileHasCSuffix |
|
9920 | 265 |
hideMenuOnActivated: false |
9892 | 266 |
indication: hideVariables: |
267 |
) |
|
268 |
(MenuItem |
|
269 |
enabled: tagTypesPresentHolder |
|
270 |
label: 'Hide typedefs' |
|
271 |
translateLabel: true |
|
272 |
isVisible: editedFileHasCSuffix |
|
9920 | 273 |
hideMenuOnActivated: false |
9892 | 274 |
indication: hideTypedefs: |
275 |
) |
|
276 |
(MenuItem |
|
277 |
enabled: tagTypesPresentHolder |
|
278 |
label: 'Hide structures' |
|
279 |
translateLabel: true |
|
280 |
isVisible: editedFileHasCSuffix |
|
9920 | 281 |
hideMenuOnActivated: false |
9892 | 282 |
indication: hideStructures: |
283 |
) |
|
284 |
(MenuItem |
|
285 |
enabled: tagTypesPresentHolder |
|
286 |
label: 'Hide struct members' |
|
287 |
translateLabel: true |
|
288 |
isVisible: editedFileHasCSuffix |
|
9920 | 289 |
hideMenuOnActivated: false |
9892 | 290 |
indication: hideStructMembers: |
291 |
) |
|
292 |
(MenuItem |
|
293 |
enabled: tagTypesPresentHolder |
|
294 |
label: 'Hide defines' |
|
295 |
translateLabel: true |
|
296 |
isVisible: editedFileHasCSuffix |
|
9920 | 297 |
hideMenuOnActivated: false |
9892 | 298 |
indication: hideDefines: |
299 |
) |
|
300 |
(MenuItem |
|
301 |
label: '-' |
|
302 |
isVisible: editedFileHasCSuffix |
|
303 |
) |
|
304 |
(MenuItem |
|
305 |
enabled: tagTypesPresentHolder |
|
306 |
label: 'Hide static' |
|
307 |
translateLabel: true |
|
308 |
isVisible: editedFileHasCSuffix |
|
9920 | 309 |
hideMenuOnActivated: false |
9892 | 310 |
indication: hideStatic: |
311 |
) |
|
312 |
) |
|
313 |
nil |
|
314 |
nil |
|
315 |
) |
|
316 |
! |
|
317 |
||
318 |
javaMenuSlice |
|
319 |
"This resource specification was automatically generated |
|
320 |
by the MenuEditor of ST/X." |
|
321 |
||
322 |
"Do not manually edit this!! If it is corrupted, |
|
323 |
the MenuEditor may not be able to read the specification." |
|
324 |
||
325 |
" |
|
9920 | 326 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaMenuSlice |
327 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaMenuSlice)) startUp |
|
9892 | 328 |
" |
329 |
||
330 |
<resource: #menu> |
|
331 |
||
332 |
^ |
|
9920 | 333 |
#(Menu |
334 |
( |
|
335 |
(MenuItem |
|
336 |
label: '-' |
|
337 |
isVisible: editedFileHasJavaSuffix |
|
9892 | 338 |
) |
9920 | 339 |
(MenuItem |
340 |
enabled: tagTypesPresentHolder |
|
341 |
label: 'Classes only' |
|
342 |
translateLabel: true |
|
343 |
isVisible: editedFileHasJavaSuffix |
|
344 |
indication: javaClassesOnly: |
|
9892 | 345 |
) |
9920 | 346 |
(MenuItem |
347 |
enabled: tagTypesPresentHolder |
|
348 |
label: 'Methods only' |
|
349 |
translateLabel: true |
|
350 |
isVisible: editedFileHasJavaSuffix |
|
351 |
indication: javaMethodsOnly: |
|
9892 | 352 |
) |
9920 | 353 |
(MenuItem |
354 |
enabled: tagTypesPresentHolder |
|
355 |
label: 'Classes && Methods only' |
|
356 |
translateLabel: true |
|
357 |
isVisible: editedFileHasJavaSuffix |
|
358 |
indication: javaClassesAndMethodsOnly: |
|
359 |
) |
|
360 |
(MenuItem |
|
361 |
label: '-' |
|
362 |
isVisible: editedFileHasJavaSuffix |
|
9892 | 363 |
) |
9920 | 364 |
(MenuItem |
365 |
enabled: tagTypesPresentHolder |
|
366 |
label: 'Hide packages' |
|
367 |
translateLabel: true |
|
368 |
isVisible: editedFileHasJavaSuffix |
|
369 |
hideMenuOnActivated: false |
|
370 |
indication: hideJavaPackages: |
|
9892 | 371 |
) |
9920 | 372 |
(MenuItem |
373 |
enabled: tagTypesPresentHolder |
|
374 |
label: 'Hide classes' |
|
375 |
translateLabel: true |
|
376 |
isVisible: editedFileHasJavaSuffix |
|
377 |
hideMenuOnActivated: false |
|
378 |
indication: hideJavaClasses: |
|
9892 | 379 |
) |
9920 | 380 |
(MenuItem |
381 |
enabled: tagTypesPresentHolder |
|
382 |
label: 'Hide methods' |
|
383 |
translateLabel: true |
|
384 |
isVisible: editedFileHasJavaSuffix |
|
385 |
hideMenuOnActivated: false |
|
386 |
indication: hideJavaMethods: |
|
9892 | 387 |
) |
9920 | 388 |
(MenuItem |
389 |
enabled: tagTypesPresentHolder |
|
390 |
label: 'Hide fields' |
|
391 |
translateLabel: true |
|
392 |
isVisible: editedFileHasJavaSuffix |
|
393 |
hideMenuOnActivated: false |
|
394 |
indication: hideJavaFields: |
|
9892 | 395 |
) |
396 |
) |
|
397 |
nil |
|
398 |
nil |
|
399 |
) |
|
400 |
! |
|
401 |
||
402 |
javaScriptMenuSlice |
|
403 |
"This resource specification was automatically generated |
|
404 |
by the MenuEditor of ST/X." |
|
405 |
||
406 |
"Do not manually edit this!! If it is corrupted, |
|
407 |
the MenuEditor may not be able to read the specification." |
|
408 |
||
409 |
" |
|
9920 | 410 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
411 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
9892 | 412 |
" |
413 |
||
414 |
<resource: #menu> |
|
415 |
||
416 |
^ |
|
9920 | 417 |
#(Menu |
418 |
( |
|
419 |
(MenuItem |
|
420 |
label: '-' |
|
421 |
isVisible: editedFileHasJavaScriptSuffix |
|
9892 | 422 |
) |
9920 | 423 |
(MenuItem |
424 |
enabled: tagTypesPresentHolder |
|
425 |
label: 'Functions only' |
|
426 |
translateLabel: true |
|
427 |
isVisible: editedFileHasJavaScriptSuffix |
|
428 |
hideMenuOnActivated: false |
|
429 |
indication: functionsOnly: |
|
9892 | 430 |
) |
9920 | 431 |
(MenuItem |
432 |
enabled: tagTypesPresentHolder |
|
433 |
label: 'Variables only' |
|
434 |
translateLabel: true |
|
435 |
isVisible: editedFileHasJavaScriptSuffix |
|
436 |
hideMenuOnActivated: false |
|
437 |
indication: variablesOnly: |
|
438 |
) |
|
9892 | 439 |
) |
440 |
nil |
|
441 |
nil |
|
442 |
) |
|
443 |
! |
|
444 |
||
445 |
lispMenuSlice |
|
446 |
"This resource specification was automatically generated |
|
447 |
by the MenuEditor of ST/X." |
|
448 |
||
449 |
"Do not manually edit this!! If it is corrupted, |
|
450 |
the MenuEditor may not be able to read the specification." |
|
451 |
||
452 |
" |
|
9920 | 453 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#lispMenuSlice |
454 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser lispMenuSlice)) startUp |
|
9892 | 455 |
" |
456 |
||
457 |
<resource: #menu> |
|
458 |
||
459 |
^ |
|
460 |
#(Menu |
|
461 |
( |
|
462 |
(MenuItem |
|
463 |
label: '-' |
|
464 |
isVisible: editedFileHasLispSuffix |
|
465 |
) |
|
466 |
(MenuItem |
|
467 |
enabled: tagTypesPresentHolder |
|
9920 | 468 |
label: 'Documentation only' |
469 |
translateLabel: true |
|
470 |
isVisible: editedFileHasLispSuffix |
|
471 |
indication: documentationOnly: |
|
472 |
) |
|
473 |
(MenuItem |
|
474 |
enabled: tagTypesPresentHolder |
|
9892 | 475 |
label: 'Classes only' |
476 |
translateLabel: true |
|
477 |
isVisible: editedFileHasLispSuffix |
|
478 |
indication: classesOnly: |
|
479 |
) |
|
480 |
(MenuItem |
|
481 |
enabled: tagTypesPresentHolder |
|
482 |
label: 'Methods only' |
|
483 |
translateLabel: true |
|
484 |
isVisible: editedFileHasLispSuffix |
|
485 |
indication: methodsOnly: |
|
486 |
) |
|
487 |
(MenuItem |
|
488 |
enabled: tagTypesPresentHolder |
|
489 |
label: 'Functions only' |
|
490 |
translateLabel: true |
|
491 |
isVisible: editedFileHasLispSuffix |
|
492 |
indication: functionsOnly: |
|
493 |
) |
|
494 |
(MenuItem |
|
495 |
enabled: tagTypesPresentHolder |
|
496 |
label: 'Variables only' |
|
497 |
translateLabel: true |
|
498 |
isVisible: editedFileHasLispSuffix |
|
499 |
indication: variablesOnly: |
|
500 |
) |
|
501 |
(MenuItem |
|
502 |
enabled: tagTypesPresentHolder |
|
503 |
label: 'Macros only' |
|
504 |
translateLabel: true |
|
505 |
isVisible: editedFileHasLispSuffix |
|
506 |
indication: macrosOnly: |
|
507 |
) |
|
508 |
(MenuItem |
|
509 |
label: '-' |
|
510 |
isVisible: editedFileHasLispSuffix |
|
511 |
) |
|
512 |
(MenuItem |
|
513 |
enabled: tagTypesPresentHolder |
|
9920 | 514 |
label: 'Hide documentation' |
515 |
translateLabel: true |
|
516 |
isVisible: editedFileHasLispSuffix |
|
517 |
hideMenuOnActivated: false |
|
518 |
indication: hideDocumentation: |
|
519 |
) |
|
520 |
(MenuItem |
|
521 |
enabled: tagTypesPresentHolder |
|
9892 | 522 |
label: 'Hide classes' |
523 |
translateLabel: true |
|
524 |
isVisible: editedFileHasLispSuffix |
|
9920 | 525 |
hideMenuOnActivated: false |
9892 | 526 |
indication: hideClasses: |
527 |
) |
|
528 |
(MenuItem |
|
529 |
enabled: tagTypesPresentHolder |
|
530 |
label: 'Hide methods' |
|
531 |
translateLabel: true |
|
532 |
isVisible: editedFileHasLispSuffix |
|
9920 | 533 |
hideMenuOnActivated: false |
9892 | 534 |
indication: hideLispMethods: |
535 |
) |
|
536 |
(MenuItem |
|
537 |
enabled: tagTypesPresentHolder |
|
538 |
label: 'Hide functions' |
|
539 |
translateLabel: true |
|
540 |
isVisible: editedFileHasLispSuffix |
|
9920 | 541 |
hideMenuOnActivated: false |
9892 | 542 |
indication: hideFunctions: |
543 |
) |
|
544 |
(MenuItem |
|
545 |
enabled: tagTypesPresentHolder |
|
546 |
label: 'Hide variables' |
|
547 |
translateLabel: true |
|
548 |
isVisible: editedFileHasLispSuffix |
|
9920 | 549 |
hideMenuOnActivated: false |
9892 | 550 |
indication: hideVariables: |
551 |
) |
|
552 |
(MenuItem |
|
553 |
enabled: tagTypesPresentHolder |
|
554 |
label: 'Hide macros' |
|
555 |
translateLabel: true |
|
556 |
isVisible: editedFileHasLispSuffix |
|
9920 | 557 |
hideMenuOnActivated: false |
9892 | 558 |
indication: hideLispMacros: |
559 |
) |
|
560 |
(MenuItem |
|
561 |
enabled: tagTypesPresentHolder |
|
562 |
label: 'Hide constants' |
|
563 |
translateLabel: true |
|
564 |
isVisible: editedFileHasLispSuffix |
|
9920 | 565 |
hideMenuOnActivated: false |
9892 | 566 |
indication: hideLispConstants: |
567 |
) |
|
568 |
(MenuItem |
|
569 |
enabled: tagTypesPresentHolder |
|
570 |
label: 'Hide evaluations' |
|
571 |
translateLabel: true |
|
572 |
isVisible: editedFileHasLispSuffix |
|
9920 | 573 |
hideMenuOnActivated: false |
9892 | 574 |
indication: hideLispEvaluations: |
575 |
) |
|
576 |
(MenuItem |
|
577 |
enabled: tagTypesPresentHolder |
|
578 |
label: 'Hide structs' |
|
579 |
translateLabel: true |
|
580 |
isVisible: editedFileHasLispSuffix |
|
9920 | 581 |
hideMenuOnActivated: false |
9892 | 582 |
indication: hideStructures: |
583 |
) |
|
584 |
) |
|
585 |
nil |
|
586 |
nil |
|
587 |
) |
|
588 |
! |
|
589 |
||
590 |
makefileMenuSlice |
|
591 |
"This resource specification was automatically generated |
|
592 |
by the MenuEditor of ST/X." |
|
593 |
||
594 |
"Do not manually edit this!! If it is corrupted, |
|
595 |
the MenuEditor may not be able to read the specification." |
|
596 |
||
597 |
" |
|
9920 | 598 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#makefileMenuSlice |
599 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser makefileMenuSlice)) startUp |
|
9892 | 600 |
" |
601 |
||
602 |
<resource: #menu> |
|
603 |
||
604 |
^ |
|
9920 | 605 |
#(Menu |
606 |
( |
|
607 |
(MenuItem |
|
608 |
label: '-' |
|
609 |
isVisible: editedFileIsMakefile |
|
9892 | 610 |
) |
9920 | 611 |
(MenuItem |
612 |
enabled: tagTypesPresentHolder |
|
613 |
label: 'Targets only' |
|
614 |
translateLabel: true |
|
615 |
isVisible: editedFileIsMakefile |
|
616 |
hideMenuOnActivated: false |
|
617 |
indication: targetsOnly: |
|
9892 | 618 |
) |
619 |
) |
|
620 |
nil |
|
621 |
nil |
|
622 |
) |
|
623 |
! |
|
624 |
||
625 |
middleButtonMenu |
|
626 |
"This resource specification was automatically generated |
|
627 |
by the MenuEditor of ST/X." |
|
628 |
||
629 |
"Do not manually edit this!! If it is corrupted, |
|
630 |
the MenuEditor may not be able to read the specification." |
|
631 |
||
632 |
" |
|
633 |
MenuEditor new openOnClass:CBrowser::TagsBrowser andSelector:#middleButtonMenu |
|
634 |
(Menu new fromLiteralArrayEncoding:(CBrowser::TagsBrowser middleButtonMenu)) startUp |
|
635 |
" |
|
636 |
||
637 |
<resource: #menu> |
|
638 |
||
639 |
^ |
|
640 |
#(Menu |
|
641 |
( |
|
642 |
(MenuItem |
|
643 |
enabled: tagTypesPresentHolder |
|
644 |
label: 'Group by Type' |
|
645 |
translateLabel: true |
|
646 |
indication: groupedByType: |
|
647 |
) |
|
648 |
(MenuItem |
|
649 |
label: '-' |
|
650 |
) |
|
651 |
(MenuItem |
|
652 |
label: 'Sort by Name' |
|
653 |
translateLabel: true |
|
654 |
indication: sortedByName: |
|
655 |
) |
|
656 |
(MenuItem |
|
657 |
label: 'Sort by Name ignoring case' |
|
658 |
translateLabel: true |
|
659 |
indication: sortedByNameIgnoringCase: |
|
660 |
) |
|
661 |
(MenuItem |
|
662 |
label: 'Sort by Name (ignore leading underscores)' |
|
663 |
translateLabel: true |
|
664 |
indication: sortedByNameIgnoringLeadingUnderscores: |
|
665 |
) |
|
666 |
(MenuItem |
|
667 |
label: 'Sort by Name (ignore leading underscores and case)' |
|
668 |
translateLabel: true |
|
669 |
indication: sortedByNameIgnoringLeadingUnderscoresAndCase: |
|
670 |
) |
|
671 |
(MenuItem |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
672 |
label: 'Sort by LineNumber' |
9892 | 673 |
translateLabel: true |
674 |
indication: sortedByLineNumber: |
|
675 |
) |
|
676 |
(MenuItem |
|
677 |
label: 'C Menu Slice' |
|
678 |
translateLabel: true |
|
679 |
submenuChannel: cMenuSlice |
|
680 |
isMenuSlice: true |
|
681 |
) |
|
682 |
(MenuItem |
|
683 |
label: 'Java Menu Slice' |
|
684 |
translateLabel: true |
|
685 |
submenuChannel: javaMenuSlice |
|
686 |
isMenuSlice: true |
|
687 |
) |
|
688 |
(MenuItem |
|
689 |
label: 'JavaScript Menu Slice' |
|
690 |
translateLabel: true |
|
691 |
submenuChannel: javaScriptMenuSlice |
|
692 |
isMenuSlice: true |
|
693 |
) |
|
694 |
(MenuItem |
|
695 |
label: 'TCL Menu Slice' |
|
696 |
translateLabel: true |
|
697 |
submenuChannel: tclMenuSlice |
|
698 |
isMenuSlice: true |
|
699 |
) |
|
700 |
(MenuItem |
|
701 |
label: 'Assembler Menu Slice' |
|
702 |
translateLabel: true |
|
703 |
submenuChannel: assemblerMenuSlice |
|
704 |
isMenuSlice: true |
|
705 |
) |
|
706 |
(MenuItem |
|
707 |
label: 'Lisp Menu Slice' |
|
708 |
translateLabel: true |
|
709 |
submenuChannel: lispMenuSlice |
|
710 |
isMenuSlice: true |
|
711 |
) |
|
712 |
(MenuItem |
|
713 |
label: 'Python Menu Slice' |
|
714 |
translateLabel: true |
|
715 |
submenuChannel: pythonMenuSlice |
|
716 |
isMenuSlice: true |
|
717 |
) |
|
718 |
(MenuItem |
|
719 |
label: 'OZ Menu Slice' |
|
720 |
translateLabel: true |
|
721 |
submenuChannel: ozMenuSlice |
|
722 |
isMenuSlice: true |
|
723 |
) |
|
724 |
(MenuItem |
|
725 |
label: 'Makefile Menu Slice' |
|
726 |
translateLabel: true |
|
727 |
submenuChannel: makefileMenuSlice |
|
728 |
isMenuSlice: true |
|
729 |
) |
|
730 |
(MenuItem |
|
731 |
label: '-' |
|
732 |
) |
|
733 |
(MenuItem |
|
734 |
label: 'Update' |
|
735 |
itemValue: updateTagList |
|
736 |
translateLabel: true |
|
737 |
) |
|
738 |
) |
|
739 |
nil |
|
740 |
nil |
|
741 |
) |
|
742 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
743 |
"Modified: / 05-05-2011 / 14:38:52 / cg" |
9892 | 744 |
! |
745 |
||
746 |
ozMenuSlice |
|
747 |
"This resource specification was automatically generated |
|
748 |
by the MenuEditor of ST/X." |
|
749 |
||
750 |
"Do not manually edit this!! If it is corrupted, |
|
751 |
the MenuEditor may not be able to read the specification." |
|
752 |
||
753 |
" |
|
9920 | 754 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#ozMenuSlice |
755 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser ozMenuSlice)) startUp |
|
9892 | 756 |
" |
757 |
||
758 |
<resource: #menu> |
|
759 |
||
760 |
^ |
|
9920 | 761 |
#(Menu |
762 |
( |
|
763 |
(MenuItem |
|
764 |
label: '-' |
|
765 |
isVisible: editedFileHasOzSuffix |
|
9892 | 766 |
) |
9920 | 767 |
(MenuItem |
768 |
enabled: tagTypesPresentHolder |
|
769 |
label: 'Hide classes' |
|
770 |
translateLabel: true |
|
771 |
isVisible: editedFileHasOzSuffix |
|
772 |
hideMenuOnActivated: false |
|
773 |
indication: hideOzClasses: |
|
9892 | 774 |
) |
9920 | 775 |
(MenuItem |
776 |
enabled: tagTypesPresentHolder |
|
777 |
label: 'Hide methods' |
|
778 |
translateLabel: true |
|
779 |
isVisible: editedFileHasOzSuffix |
|
780 |
hideMenuOnActivated: false |
|
781 |
indication: hideOzMethods: |
|
9892 | 782 |
) |
9920 | 783 |
(MenuItem |
784 |
enabled: tagTypesPresentHolder |
|
785 |
label: 'Hide functions' |
|
786 |
translateLabel: true |
|
787 |
isVisible: editedFileHasOzSuffix |
|
788 |
hideMenuOnActivated: false |
|
789 |
indication: hideOzFunctions: |
|
9892 | 790 |
) |
791 |
) |
|
792 |
nil |
|
793 |
nil |
|
794 |
) |
|
795 |
! |
|
796 |
||
797 |
pythonMenuSlice |
|
798 |
"This resource specification was automatically generated |
|
799 |
by the MenuEditor of ST/X." |
|
800 |
||
801 |
"Do not manually edit this!! If it is corrupted, |
|
802 |
the MenuEditor may not be able to read the specification." |
|
803 |
||
804 |
" |
|
9920 | 805 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#pythonMenuSlice |
806 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser pythonMenuSlice)) startUp |
|
9892 | 807 |
" |
808 |
||
809 |
<resource: #menu> |
|
810 |
||
811 |
^ |
|
9920 | 812 |
#(Menu |
813 |
( |
|
814 |
(MenuItem |
|
815 |
label: '-' |
|
816 |
isVisible: editedFileHasPythonSuffix |
|
817 |
) |
|
818 |
(MenuItem |
|
819 |
enabled: tagTypesPresentHolder |
|
820 |
label: 'Classes only' |
|
821 |
translateLabel: true |
|
822 |
isVisible: editedFileHasPythonSuffix |
|
823 |
indication: pythonClassesOnly: |
|
9892 | 824 |
) |
9920 | 825 |
(MenuItem |
826 |
enabled: tagTypesPresentHolder |
|
827 |
label: 'Methods only' |
|
828 |
translateLabel: true |
|
829 |
isVisible: editedFileHasPythonSuffix |
|
830 |
indication: pythonMethodsOnly: |
|
9892 | 831 |
) |
9920 | 832 |
(MenuItem |
833 |
enabled: tagTypesPresentHolder |
|
834 |
label: 'Functions only' |
|
835 |
translateLabel: true |
|
836 |
isVisible: editedFileHasPythonSuffix |
|
837 |
indication: pythonFunctionsOnly: |
|
9892 | 838 |
) |
9920 | 839 |
(MenuItem |
840 |
label: '-' |
|
841 |
isVisible: editedFileHasPythonSuffix |
|
9892 | 842 |
) |
9920 | 843 |
(MenuItem |
844 |
enabled: tagTypesPresentHolder |
|
845 |
label: 'Hide classes' |
|
846 |
translateLabel: true |
|
847 |
isVisible: editedFileHasPythonSuffix |
|
848 |
hideMenuOnActivated: false |
|
849 |
indication: hidePythonClasses: |
|
9892 | 850 |
) |
9920 | 851 |
(MenuItem |
852 |
enabled: tagTypesPresentHolder |
|
853 |
label: 'Hide methods' |
|
854 |
translateLabel: true |
|
855 |
isVisible: editedFileHasPythonSuffix |
|
856 |
hideMenuOnActivated: false |
|
857 |
indication: hidePythonMethods: |
|
9892 | 858 |
) |
9920 | 859 |
(MenuItem |
860 |
enabled: tagTypesPresentHolder |
|
861 |
label: 'Hide functions' |
|
862 |
translateLabel: true |
|
863 |
isVisible: editedFileHasPythonSuffix |
|
864 |
hideMenuOnActivated: false |
|
865 |
indication: hidePythonFunctions: |
|
9892 | 866 |
) |
867 |
) |
|
868 |
nil |
|
869 |
nil |
|
870 |
) |
|
871 |
! |
|
872 |
||
873 |
tclMenuSlice |
|
874 |
"This resource specification was automatically generated |
|
875 |
by the MenuEditor of ST/X." |
|
876 |
||
877 |
"Do not manually edit this!! If it is corrupted, |
|
878 |
the MenuEditor may not be able to read the specification." |
|
879 |
||
880 |
" |
|
9920 | 881 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#tclMenuSlice |
882 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser tclMenuSlice)) startUp |
|
9892 | 883 |
" |
884 |
||
885 |
<resource: #menu> |
|
886 |
||
887 |
^ |
|
9920 | 888 |
#(Menu |
889 |
( |
|
890 |
(MenuItem |
|
891 |
label: '-' |
|
892 |
isVisible: editedFileHasTCLSuffix |
|
9892 | 893 |
) |
9920 | 894 |
(MenuItem |
895 |
enabled: tagTypesPresentHolder |
|
896 |
label: 'Hide variables' |
|
897 |
translateLabel: true |
|
898 |
isVisible: editedFileHasTCLSuffix |
|
899 |
hideMenuOnActivated: false |
|
900 |
indication: hideVariables: |
|
9892 | 901 |
) |
902 |
) |
|
903 |
nil |
|
904 |
nil |
|
905 |
) |
|
9942 | 906 |
! |
907 |
||
908 |
toolBarMenu |
|
909 |
"This resource specification was automatically generated |
|
910 |
by the MenuEditor of ST/X." |
|
911 |
||
912 |
"Do not manually edit this!! If it is corrupted, |
|
913 |
the MenuEditor may not be able to read the specification." |
|
914 |
||
915 |
" |
|
916 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#toolBarMenu |
|
917 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser toolBarMenu)) startUp |
|
918 |
" |
|
919 |
||
920 |
<resource: #menu> |
|
921 |
||
922 |
^ |
|
923 |
#(Menu |
|
924 |
( |
|
925 |
(MenuItem |
|
926 |
label: 'updateTagList' |
|
927 |
itemValue: updateTagList |
|
928 |
translateLabel: true |
|
929 |
isButton: true |
|
930 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
931 |
) |
|
10435 | 932 |
(MenuItem |
933 |
label: '-' |
|
934 |
) |
|
935 |
(MenuItem |
|
936 |
label: 'SortByName' |
|
937 |
itemValue: sortByName |
|
938 |
translateLabel: true |
|
939 |
isButton: true |
|
940 |
indication: sortIsByName |
|
941 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByName16x16Icon) |
|
942 |
) |
|
943 |
(MenuItem |
|
944 |
label: 'SortByLineNumber' |
|
945 |
itemValue: sortByLineNumber |
|
946 |
translateLabel: true |
|
947 |
isButton: true |
|
948 |
indication: sortIsByLineNumber |
|
949 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByLineNumber16x16Icon) |
|
10763 | 950 |
) |
9942 | 951 |
) |
952 |
nil |
|
953 |
nil |
|
954 |
) |
|
9892 | 955 |
! ! |
956 |
||
957 |
!TagsBrowser methodsFor:'accessing'! |
|
958 |
||
9942 | 959 |
action:aOneArgBlock |
960 |
"set the action, which is called with the selected tag |
|
961 |
" |
|
962 |
action := aOneArgBlock. |
|
963 |
||
964 |
"Modified: / 23-06-2011 / 16:36:59 / cg" |
|
965 |
! |
|
966 |
||
9907 | 967 |
editedFile |
968 |
^ self editedFileHolder value |
|
969 |
||
970 |
"Created: / 06-05-2011 / 13:56:20 / cg" |
|
971 |
! |
|
972 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
973 |
editedFile:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
974 |
self editedFileHolder value:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
975 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
976 |
"Created: / 07-05-2011 / 14:48:58 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
977 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
978 |
|
9907 | 979 |
editedFileHolder |
980 |
"gets the holder, which keeps the current edited file |
|
981 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
982 |
editedFileHolder isNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
983 |
editedFileHolder := nil asValue. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
984 |
editedFileHolder addDependent:self. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
985 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
986 |
^ editedFileHolder. |
9907 | 987 |
|
988 |
"Created: / 06-05-2011 / 13:52:39 / cg" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
989 |
"Modified: / 07-05-2011 / 10:15:30 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
990 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
991 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
992 |
editedFileHolder:aHolder |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
993 |
"gets the holder, which keeps the current edited file |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
994 |
" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
995 |
editedFileHolder notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
996 |
editedFileHolder removeDependent:self. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
997 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
998 |
editedFileHolder := aHolder. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
999 |
editedFileHolder notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1000 |
editedFileHolder addDependent:self. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1001 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1002 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1003 |
"Created: / 07-05-2011 / 10:16:18 / cg" |
9907 | 1004 |
! |
1005 |
||
9892 | 1006 |
filter:aString |
1007 |
tagView filter:aString. |
|
9907 | 1008 |
! |
1009 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1010 |
tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1011 |
commonAspects notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1012 |
^ commonAspects tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1013 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1014 |
^ Filename tempDirectory |
9907 | 1015 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1016 |
"Created: / 07-05-2011 / 15:42:44 / cg" |
9892 | 1017 |
! ! |
1018 |
||
1019 |
!TagsBrowser methodsFor:'accessing filters'! |
|
1020 |
||
1021 |
classesFunctionsAndVariablesOnly |
|
1022 |
^ tagList classesFunctionsAndVariablesOnly |
|
1023 |
! |
|
1024 |
||
1025 |
classesFunctionsAndVariablesOnly:aBool |
|
1026 |
aBool ifTrue:[ |
|
1027 |
tagList hideClasses:false. |
|
1028 |
tagList hideFunctions:false. |
|
1029 |
tagList hideVariables:false. |
|
1030 |
]. |
|
1031 |
tagList classesFunctionsAndVariablesOnly:aBool. |
|
1032 |
self updateTagList |
|
1033 |
||
1034 |
"Modified: / 05-05-2011 / 15:33:13 / cg" |
|
1035 |
! |
|
1036 |
||
1037 |
classesOnly |
|
1038 |
^ tagList classesOnly |
|
1039 |
! |
|
1040 |
||
1041 |
classesOnly:aBool |
|
1042 |
aBool ifTrue:[ |
|
1043 |
tagList hideClasses:false. |
|
1044 |
]. |
|
1045 |
tagList classesOnly:aBool. |
|
1046 |
self updateTagList |
|
1047 |
||
1048 |
"Modified: / 05-05-2011 / 15:33:07 / cg" |
|
1049 |
! |
|
1050 |
||
1051 |
definesOnly |
|
1052 |
^ tagList definesOnly |
|
1053 |
! |
|
1054 |
||
1055 |
definesOnly:aBool |
|
1056 |
aBool ifTrue:[ |
|
1057 |
tagList hideDefines:false. |
|
1058 |
]. |
|
1059 |
tagList definesOnly:aBool. |
|
1060 |
self updateTagList |
|
1061 |
! |
|
1062 |
||
9920 | 1063 |
documentationOnly |
1064 |
^ tagList documentationOnly |
|
1065 |
||
1066 |
"Created: / 08-05-2011 / 10:50:52 / cg" |
|
1067 |
! |
|
1068 |
||
1069 |
documentationOnly:aBool |
|
1070 |
aBool ifTrue:[ |
|
1071 |
tagList hideDocumentation:false. |
|
1072 |
]. |
|
1073 |
tagList documentationOnly:aBool. |
|
1074 |
self updateTagList |
|
1075 |
||
1076 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1077 |
! |
|
1078 |
||
9892 | 1079 |
functionsAndVariablesOnly |
1080 |
^ tagList functionsAndVariablesOnly |
|
1081 |
! |
|
1082 |
||
1083 |
functionsAndVariablesOnly:aBool |
|
1084 |
aBool ifTrue:[ |
|
1085 |
tagList hideFunctions:false. |
|
1086 |
tagList hideVariables:false. |
|
1087 |
]. |
|
1088 |
tagList functionsAndVariablesOnly:aBool. |
|
1089 |
self updateTagList |
|
1090 |
! |
|
1091 |
||
1092 |
functionsOnly |
|
1093 |
^ tagList functionsOnly |
|
1094 |
! |
|
1095 |
||
1096 |
functionsOnly:aBool |
|
1097 |
aBool ifTrue:[ |
|
1098 |
tagList hideFunctions:false. |
|
1099 |
]. |
|
1100 |
tagList functionsOnly:aBool. |
|
1101 |
self updateTagList |
|
1102 |
! |
|
1103 |
||
1104 |
hideClasses |
|
1105 |
^ tagList hideClasses |
|
1106 |
! |
|
1107 |
||
1108 |
hideClasses:aBool |
|
1109 |
tagList hideClasses:aBool. |
|
1110 |
self updateTagList |
|
1111 |
! |
|
1112 |
||
1113 |
hideDataLabels |
|
1114 |
^ tagList hideDataLabels |
|
1115 |
! |
|
1116 |
||
1117 |
hideDataLabels:aBool |
|
1118 |
tagList hideDataLabels:aBool. |
|
1119 |
self updateTagList |
|
1120 |
! |
|
1121 |
||
1122 |
hideDefines |
|
1123 |
^ tagList hideDefines |
|
1124 |
! |
|
1125 |
||
1126 |
hideDefines:aBool |
|
1127 |
tagList hideDefines:aBool. |
|
1128 |
self updateTagList |
|
1129 |
! |
|
1130 |
||
9920 | 1131 |
hideDocumentation |
1132 |
^ tagList hideDocumentation |
|
1133 |
||
1134 |
"Created: / 08-05-2011 / 10:56:45 / cg" |
|
1135 |
! |
|
1136 |
||
1137 |
hideDocumentation:aBool |
|
1138 |
tagList hideDocumentation:aBool. |
|
1139 |
self updateTagList |
|
1140 |
||
1141 |
"Created: / 08-05-2011 / 10:56:49 / cg" |
|
1142 |
! |
|
1143 |
||
9892 | 1144 |
hideFunctionProtoTypes |
1145 |
^ tagList hideFunctionProtoTypes |
|
1146 |
! |
|
1147 |
||
1148 |
hideFunctionProtoTypes:aBool |
|
1149 |
tagList hideFunctionProtoTypes:aBool. |
|
1150 |
self updateTagList |
|
1151 |
! |
|
1152 |
||
1153 |
hideFunctions |
|
1154 |
^ tagList hideFunctions |
|
1155 |
! |
|
1156 |
||
1157 |
hideFunctions:aBool |
|
1158 |
tagList hideFunctions:aBool. |
|
1159 |
self updateTagList |
|
1160 |
! |
|
1161 |
||
1162 |
hideJavaClasses |
|
1163 |
^ tagList hideJavaClasses |
|
1164 |
! |
|
1165 |
||
1166 |
hideJavaClasses:aBool |
|
1167 |
tagList hideJavaClasses:aBool. |
|
1168 |
self updateTagList |
|
1169 |
! |
|
1170 |
||
1171 |
hideJavaFields |
|
1172 |
^ tagList hideJavaFields |
|
1173 |
! |
|
1174 |
||
1175 |
hideJavaFields:aBool |
|
1176 |
tagList hideJavaFields:aBool. |
|
1177 |
self updateTagList |
|
1178 |
! |
|
1179 |
||
1180 |
hideJavaInterfaces |
|
1181 |
^ tagList hideJavaInterfaces |
|
1182 |
! |
|
1183 |
||
1184 |
hideJavaInterfaces:aBool |
|
1185 |
tagList hideJavaInterfaces:aBool. |
|
1186 |
self updateTagList |
|
1187 |
! |
|
1188 |
||
1189 |
hideJavaMethods |
|
1190 |
^ tagList hideJavaMethods |
|
1191 |
! |
|
1192 |
||
1193 |
hideJavaMethods:aBool |
|
1194 |
tagList hideJavaMethods:aBool. |
|
1195 |
self updateTagList |
|
1196 |
! |
|
1197 |
||
1198 |
hideJavaPackages |
|
1199 |
^ tagList hideJavaPackages |
|
1200 |
! |
|
1201 |
||
1202 |
hideJavaPackages:aBool |
|
1203 |
tagList hideJavaPackages:aBool. |
|
1204 |
self updateTagList |
|
1205 |
! |
|
1206 |
||
1207 |
hideLispConstants |
|
1208 |
^ tagList hideLispConstants |
|
1209 |
! |
|
1210 |
||
1211 |
hideLispConstants:aBool |
|
1212 |
tagList hideLispConstants:aBool. |
|
1213 |
self updateTagList |
|
1214 |
! |
|
1215 |
||
1216 |
hideLispEvaluations |
|
1217 |
^ tagList hideLispEvaluations |
|
1218 |
! |
|
1219 |
||
1220 |
hideLispEvaluations:aBool |
|
1221 |
tagList hideLispEvaluations:aBool. |
|
1222 |
self updateTagList |
|
1223 |
! |
|
1224 |
||
1225 |
hideLispMacros |
|
1226 |
^ tagList hideLispMacros |
|
1227 |
! |
|
1228 |
||
1229 |
hideLispMacros:aBool |
|
1230 |
tagList hideLispMacros:aBool. |
|
1231 |
self updateTagList |
|
1232 |
! |
|
1233 |
||
1234 |
hideLispMethods |
|
1235 |
^ tagList hideLispMethods |
|
1236 |
! |
|
1237 |
||
1238 |
hideLispMethods:aBool |
|
1239 |
tagList hideLispMethods:aBool. |
|
1240 |
self updateTagList |
|
1241 |
! |
|
1242 |
||
1243 |
hideLocalLabels |
|
1244 |
^ tagList hideLocalLabels |
|
1245 |
! |
|
1246 |
||
1247 |
hideLocalLabels:aBool |
|
1248 |
tagList hideLocalLabels:aBool. |
|
1249 |
self updateTagList |
|
1250 |
! |
|
1251 |
||
1252 |
hideOzClasses |
|
1253 |
^ tagList hideOzClasses |
|
1254 |
! |
|
1255 |
||
1256 |
hideOzClasses:aBool |
|
1257 |
tagList hideOzClasses:aBool. |
|
1258 |
self updateTagList |
|
1259 |
! |
|
1260 |
||
1261 |
hideOzFunctions |
|
1262 |
^ tagList hideOzFunctions |
|
1263 |
! |
|
1264 |
||
1265 |
hideOzFunctions:aBool |
|
1266 |
tagList hideOzFunctions:aBool. |
|
1267 |
self updateTagList |
|
1268 |
! |
|
1269 |
||
1270 |
hideOzMethods |
|
1271 |
^ tagList hideOzMethods |
|
1272 |
! |
|
1273 |
||
1274 |
hideOzMethods:aBool |
|
1275 |
tagList hideOzMethods:aBool. |
|
1276 |
self updateTagList |
|
1277 |
! |
|
1278 |
||
1279 |
hidePythonClasses |
|
1280 |
^ tagList hidePythonClasses |
|
1281 |
! |
|
1282 |
||
1283 |
hidePythonClasses:aBool |
|
1284 |
tagList hidePythonClasses:aBool. |
|
1285 |
self updateTagList |
|
1286 |
! |
|
1287 |
||
1288 |
hidePythonFunctions |
|
1289 |
^ tagList hidePythonFunctions |
|
1290 |
! |
|
1291 |
||
1292 |
hidePythonFunctions:aBool |
|
1293 |
tagList hidePythonFunctions:aBool. |
|
1294 |
self updateTagList |
|
1295 |
! |
|
1296 |
||
1297 |
hidePythonMethods |
|
1298 |
^ tagList hidePythonMethods |
|
1299 |
! |
|
1300 |
||
1301 |
hidePythonMethods:aBool |
|
1302 |
tagList hidePythonMethods:aBool. |
|
1303 |
self updateTagList |
|
1304 |
! |
|
1305 |
||
1306 |
hideStatic |
|
1307 |
^ tagList hideStatic |
|
1308 |
! |
|
1309 |
||
1310 |
hideStatic:aBool |
|
1311 |
tagList hideStatic:aBool. |
|
1312 |
self updateTagList |
|
1313 |
! |
|
1314 |
||
1315 |
hideStructMembers |
|
1316 |
^ tagList hideStructMembers |
|
1317 |
! |
|
1318 |
||
1319 |
hideStructMembers:aBool |
|
1320 |
tagList hideStructMembers:aBool. |
|
1321 |
self updateTagList |
|
1322 |
! |
|
1323 |
||
1324 |
hideStructures |
|
1325 |
^ tagList hideStructures |
|
1326 |
! |
|
1327 |
||
1328 |
hideStructures:aBool |
|
1329 |
tagList hideStructures:aBool. |
|
1330 |
self updateTagList |
|
1331 |
! |
|
1332 |
||
1333 |
hideTextLabels |
|
1334 |
^ tagList hideTextLabels |
|
1335 |
! |
|
1336 |
||
1337 |
hideTextLabels:aBool |
|
1338 |
tagList hideTextLabels:aBool. |
|
1339 |
self updateTagList |
|
1340 |
! |
|
1341 |
||
1342 |
hideTypedefs |
|
1343 |
^ tagList hideTypedefs |
|
1344 |
! |
|
1345 |
||
1346 |
hideTypedefs:aBool |
|
1347 |
tagList hideTypedefs:aBool. |
|
1348 |
self updateTagList |
|
1349 |
! |
|
1350 |
||
1351 |
hideVariables |
|
1352 |
^ tagList hideVariables |
|
1353 |
! |
|
1354 |
||
1355 |
hideVariables:aBool |
|
1356 |
tagList hideVariables:aBool. |
|
1357 |
self updateTagList |
|
1358 |
! |
|
1359 |
||
1360 |
javaClassesAndMethodsOnly |
|
1361 |
^ tagList javaClassesAndMethodsOnly |
|
1362 |
! |
|
1363 |
||
1364 |
javaClassesAndMethodsOnly:aBool |
|
1365 |
aBool ifTrue:[ |
|
1366 |
tagList hideJavaClasses:false. |
|
1367 |
tagList hideJavaMethods:false. |
|
1368 |
]. |
|
1369 |
tagList javaClassesAndMethodsOnly:aBool. |
|
1370 |
self updateTagList |
|
1371 |
! |
|
1372 |
||
1373 |
javaClassesOnly |
|
1374 |
^ tagList javaClassesOnly |
|
1375 |
! |
|
1376 |
||
1377 |
javaClassesOnly:aBool |
|
1378 |
aBool ifTrue:[ |
|
1379 |
tagList hideJavaClasses:false. |
|
1380 |
]. |
|
1381 |
tagList javaClassesOnly:aBool. |
|
1382 |
self updateTagList |
|
1383 |
! |
|
1384 |
||
1385 |
javaMethodsOnly |
|
1386 |
^ tagList javaMethodsOnly |
|
1387 |
! |
|
1388 |
||
1389 |
javaMethodsOnly:aBool |
|
1390 |
aBool ifTrue:[ |
|
1391 |
tagList hideJavaMethods:false. |
|
1392 |
]. |
|
1393 |
tagList javaMethodsOnly:aBool. |
|
1394 |
self updateTagList |
|
1395 |
! |
|
1396 |
||
1397 |
macrosOnly |
|
1398 |
^ tagList macrosOnly |
|
1399 |
||
1400 |
"Created: / 07-06-2010 / 12:08:42 / cg" |
|
1401 |
! |
|
1402 |
||
1403 |
macrosOnly:aBool |
|
1404 |
aBool ifTrue:[ |
|
1405 |
tagList hideLispMacros:false. |
|
1406 |
]. |
|
1407 |
tagList macrosOnly:aBool. |
|
1408 |
self updateTagList |
|
1409 |
||
1410 |
"Created: / 07-06-2010 / 12:09:08 / cg" |
|
1411 |
! |
|
1412 |
||
1413 |
methodsOnly |
|
1414 |
^ tagList methodsOnly |
|
1415 |
||
1416 |
"Created: / 07-06-2010 / 12:11:55 / cg" |
|
1417 |
! |
|
1418 |
||
1419 |
methodsOnly:aBool |
|
1420 |
aBool ifTrue:[ |
|
1421 |
tagList hideLispMethods:false. |
|
1422 |
]. |
|
1423 |
tagList methodsOnly:aBool. |
|
1424 |
self updateTagList |
|
1425 |
||
1426 |
"Created: / 07-06-2010 / 12:12:03 / cg" |
|
1427 |
! |
|
1428 |
||
1429 |
pythonClassesOnly |
|
1430 |
^ tagList pythonClassesOnly |
|
1431 |
! |
|
1432 |
||
1433 |
pythonClassesOnly:aBool |
|
1434 |
aBool ifTrue:[ |
|
1435 |
tagList hidePythonClasses:false. |
|
1436 |
]. |
|
1437 |
tagList pythonClassesOnly:aBool. |
|
1438 |
self updateTagList |
|
1439 |
! |
|
1440 |
||
1441 |
pythonFunctionsOnly |
|
1442 |
^ tagList pythonFunctionsOnly |
|
1443 |
! |
|
1444 |
||
1445 |
pythonFunctionsOnly:aBool |
|
1446 |
aBool ifTrue:[ |
|
1447 |
tagList hidePythonFunctions:false. |
|
1448 |
]. |
|
1449 |
tagList pythonFunctionsOnly:aBool. |
|
1450 |
self updateTagList |
|
1451 |
! |
|
1452 |
||
1453 |
pythonMethodsOnly |
|
1454 |
^ tagList pythonMethodsOnly |
|
1455 |
! |
|
1456 |
||
1457 |
pythonMethodsOnly:aBool |
|
1458 |
aBool ifTrue:[ |
|
1459 |
tagList hidePythonMethods:false. |
|
1460 |
]. |
|
1461 |
tagList pythonMethodsOnly:aBool. |
|
1462 |
self updateTagList |
|
1463 |
! |
|
1464 |
||
1465 |
structsOnly |
|
1466 |
^ tagList structsOnly |
|
1467 |
||
1468 |
"Created: / 25-06-2010 / 10:54:46 / cg" |
|
1469 |
! |
|
1470 |
||
1471 |
structsOnly:aBool |
|
1472 |
tagList structsOnly:aBool. |
|
1473 |
self updateTagList |
|
1474 |
||
1475 |
"Created: / 25-06-2010 / 10:54:52 / cg" |
|
1476 |
! |
|
1477 |
||
1478 |
tagTypesPresent |
|
1479 |
^ tagList tagTypesPresent |
|
1480 |
! |
|
1481 |
||
1482 |
tagTypesPresentHolder |
|
1483 |
^ [ self tagTypesPresent ] |
|
1484 |
! |
|
1485 |
||
1486 |
targetsOnly |
|
1487 |
^ tagList targetsOnly |
|
1488 |
! |
|
1489 |
||
1490 |
targetsOnly:aBool |
|
1491 |
tagList targetsOnly:aBool. |
|
1492 |
self updateTagList |
|
1493 |
! |
|
1494 |
||
1495 |
typesOnly |
|
1496 |
^ tagList typesOnly |
|
1497 |
! |
|
1498 |
||
1499 |
typesOnly:aBool |
|
1500 |
aBool ifTrue:[ |
|
1501 |
tagList hideTypedefs:false. |
|
1502 |
]. |
|
1503 |
tagList typesOnly:aBool. |
|
1504 |
self updateTagList |
|
1505 |
! |
|
1506 |
||
1507 |
variablesOnly |
|
1508 |
^ tagList variablesOnly |
|
1509 |
! |
|
1510 |
||
1511 |
variablesOnly:aBool |
|
1512 |
aBool ifTrue:[ |
|
1513 |
tagList hideVariables:false. |
|
1514 |
]. |
|
1515 |
tagList variablesOnly:aBool. |
|
1516 |
self updateTagList |
|
1517 |
||
1518 |
"Modified: / 05-05-2011 / 15:33:18 / cg" |
|
1519 |
! ! |
|
1520 |
||
1521 |
!TagsBrowser methodsFor:'accessing presentation aspects'! |
|
1522 |
||
1523 |
groupedByType |
|
1524 |
^ tagList groupedByType |
|
1525 |
||
1526 |
"Created: / 05-05-2011 / 14:51:29 / cg" |
|
1527 |
! |
|
1528 |
||
1529 |
groupedByType:aBool |
|
1530 |
tagList groupedByType:aBool |
|
1531 |
||
1532 |
"Created: / 05-05-2011 / 14:51:33 / cg" |
|
1533 |
! |
|
1534 |
||
1535 |
sorted |
|
1536 |
^ tagList sorted |
|
1537 |
! |
|
1538 |
||
1539 |
sorted:aBool |
|
1540 |
tagList sorted:aBool |
|
1541 |
! |
|
1542 |
||
1543 |
sortedByLineNumber |
|
1544 |
^ tagList sortedByLineNumber |
|
1545 |
! |
|
1546 |
||
1547 |
sortedByLineNumber:aBool |
|
1548 |
tagList sortedByLineNumber:aBool |
|
1549 |
! |
|
1550 |
||
1551 |
sortedByName |
|
1552 |
^ tagList sortedByName |
|
1553 |
! |
|
1554 |
||
1555 |
sortedByName:aBool |
|
1556 |
tagList sortedByName:aBool |
|
1557 |
! |
|
1558 |
||
1559 |
sortedByNameIgnoringCase |
|
1560 |
^ tagList sortedByNameIgnoringCase |
|
1561 |
! |
|
1562 |
||
1563 |
sortedByNameIgnoringCase:aBool |
|
1564 |
tagList sortedByNameIgnoringCase:aBool |
|
1565 |
! |
|
1566 |
||
1567 |
sortedByNameIgnoringLeadingUnderscores |
|
1568 |
^ tagList sortedByNameIgnoringLeadingUnderscores |
|
1569 |
! |
|
1570 |
||
1571 |
sortedByNameIgnoringLeadingUnderscores:aBool |
|
1572 |
tagList sortedByNameIgnoringLeadingUnderscores:aBool |
|
1573 |
! |
|
1574 |
||
1575 |
sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1576 |
^ tagList sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1577 |
! |
|
1578 |
||
1579 |
sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1580 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1581 |
! |
|
1582 |
||
1583 |
sortedByType |
|
1584 |
^ tagList sortedByType |
|
1585 |
! |
|
1586 |
||
1587 |
sortedByType:aBool |
|
1588 |
tagList sortedByType:aBool |
|
1589 |
! ! |
|
1590 |
||
1591 |
!TagsBrowser methodsFor:'aspects'! |
|
1592 |
||
1593 |
editedFileHasAssemblerSuffix |
|
1594 |
^builder booleanValueAspectFor: #editedFileHasAssemblerSuffix |
|
1595 |
||
1596 |
||
1597 |
! |
|
1598 |
||
1599 |
editedFileHasCSuffix |
|
1600 |
^builder booleanValueAspectFor: #editedFileHasCSuffix |
|
1601 |
||
1602 |
||
1603 |
! |
|
1604 |
||
1605 |
editedFileHasEiffelSuffix |
|
1606 |
^builder booleanValueAspectFor: #editedFileHasEiffelSuffix |
|
1607 |
||
1608 |
||
1609 |
! |
|
1610 |
||
1611 |
editedFileHasFortranSuffix |
|
1612 |
^builder booleanValueAspectFor: #editedFileHasFortranSuffix |
|
1613 |
||
1614 |
||
1615 |
! |
|
1616 |
||
1617 |
editedFileHasJavaScriptSuffix |
|
1618 |
^builder booleanValueAspectFor: #editedFileHasJavaScriptSuffix |
|
1619 |
||
1620 |
"Created: / 28-06-2010 / 13:09:15 / cg" |
|
1621 |
! |
|
1622 |
||
1623 |
editedFileHasJavaSuffix |
|
1624 |
^builder booleanValueAspectFor: #editedFileHasJavaSuffix |
|
1625 |
||
1626 |
||
1627 |
! |
|
1628 |
||
1629 |
editedFileHasLispSuffix |
|
1630 |
^builder booleanValueAspectFor: #editedFileHasLispSuffix |
|
1631 |
||
1632 |
||
1633 |
! |
|
1634 |
||
1635 |
editedFileHasOzSuffix |
|
1636 |
^builder booleanValueAspectFor: #editedFileHasOzSuffix |
|
1637 |
! |
|
1638 |
||
1639 |
editedFileHasPythonSuffix |
|
1640 |
^builder booleanValueAspectFor: #editedFileHasPythonSuffix |
|
1641 |
||
1642 |
||
1643 |
! |
|
1644 |
||
1645 |
editedFileHasRubySuffix |
|
1646 |
^builder booleanValueAspectFor: #editedFileHasRubySuffix |
|
1647 |
! |
|
1648 |
||
1649 |
editedFileHasSmalltalkSuffix |
|
1650 |
^builder booleanValueAspectFor: #editedFileHasSmalltalkSuffix |
|
1651 |
||
1652 |
||
1653 |
! |
|
1654 |
||
1655 |
editedFileHasTCLSuffix |
|
1656 |
^builder booleanValueAspectFor: #editedFileHasTCLSuffix |
|
1657 |
||
1658 |
||
1659 |
! |
|
1660 |
||
1661 |
editedFileIsMakefile |
|
1662 |
^builder booleanValueAspectFor: #editedFileIsMakefile |
|
1663 |
! |
|
1664 |
||
1665 |
remoteCtagsModel |
|
1666 |
||
1667 |
|holder| |
|
1668 |
||
1669 |
(holder := builder bindingAt:#remoteCtagsModel) isNil ifTrue:[ |
|
1670 |
holder := false asValue. |
|
1671 |
builder aspectAt:#remoteCtagsModel put:holder. |
|
1672 |
]. |
|
1673 |
^ holder. |
|
1674 |
! |
|
1675 |
||
10435 | 1676 |
sortIsByLineNumber |
1677 |
^ builder booleanValueAspectFor: #sortIsByLineNumber |
|
1678 |
||
1679 |
"Created: / 03-08-2011 / 11:17:48 / cg" |
|
1680 |
! |
|
1681 |
||
1682 |
sortIsByName |
|
1683 |
^ builder booleanValueAspectFor: #sortIsByName |
|
1684 |
||
1685 |
"Created: / 03-08-2011 / 11:17:52 / cg" |
|
1686 |
! |
|
1687 |
||
9892 | 1688 |
tagList |
1689 |
"returns the tagList |
|
1690 |
" |
|
1691 |
^ tagList |
|
1692 |
! |
|
1693 |
||
1694 |
tagView |
|
1695 |
"returns the widget which shows the tags |
|
1696 |
" |
|
1697 |
^ tagView |
|
1698 |
! ! |
|
1699 |
||
1700 |
!TagsBrowser methodsFor:'change & update'! |
|
1701 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1702 |
delayedEditedFileChanged |
9892 | 1703 |
"called when the current editing file has changed. |
1704 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
1705 |
" |
|
1706 |
||
1707 |
self updateFileTypeHolders. |
|
1708 |
self updateTagList. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1709 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1710 |
"Created: / 07-05-2011 / 15:36:52 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1711 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1712 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1713 |
editedFileChanged |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1714 |
self enqueueDelayedAction:[self delayedEditedFileChanged]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1715 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1716 |
"Modified: / 07-05-2011 / 15:37:00 / cg" |
9892 | 1717 |
! |
1718 |
||
1719 |
update:something with:aparameter from:changedObject |
|
1720 |
changedObject == self editedFileHolder ifTrue:[ |
|
1721 |
tagList removeAll. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1722 |
self editedFileChanged. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1723 |
^ self |
9892 | 1724 |
]. |
1725 |
super update:something with:aparameter from:changedObject |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1726 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1727 |
"Modified: / 07-05-2011 / 15:36:43 / cg" |
9892 | 1728 |
! |
1729 |
||
1730 |
updateFileTypeHolders |
|
1731 |
"called when the current editing file has changed. |
|
1732 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
1733 |
" |
|
1734 |
||
1735 |
|edFile suffix mime| |
|
1736 |
||
1737 |
(edFile := self editedFile) notNil ifTrue:[ |
|
1738 |
suffix := edFile suffix. |
|
1739 |
]. |
|
1740 |
||
1741 |
mime := TagList tagMimeTypeForFile:edFile. |
|
1742 |
||
1743 |
"/ valueHolder mime(s) |
|
1744 |
#( |
|
1745 |
(editedFileHasJavaSuffix 'text/java' ) |
|
1746 |
(editedFileHasJavaScriptSuffix ('text/javaScript' 'text/javascript' 'application/x-javascript') ) |
|
1747 |
(editedFileHasCSuffix 'text/c') |
|
1748 |
(editedFileHasEiffelSuffix 'text/eiffel') |
|
1749 |
(editedFileHasFortranSuffix 'text/fortran') |
|
1750 |
(editedFileHasPythonSuffix 'text/python') |
|
1751 |
(editedFileHasOzSuffix 'text/oz') |
|
1752 |
(editedFileHasLispSuffix ('text/lisp' 'text/lisp-arc' 'text/scheme') ) |
|
1753 |
(editedFileHasSmalltalkSuffix 'text/smalltalk') |
|
1754 |
(editedFileHasTCLSuffix 'text/tcl') |
|
1755 |
(editedFileHasAssemblerSuffix 'text/asm') |
|
1756 |
(editedFileIsMakefile 'text/make') |
|
1757 |
(editedFileHasRubySuffix 'text/ruby') |
|
1758 |
) pairsDo:[:holderName :mimeTypeOrTypes | |
|
1759 |
|holder| |
|
1760 |
||
1761 |
holder := self perform:holderName. |
|
1762 |
mimeTypeOrTypes isString ifTrue:[ |
|
1763 |
holder value:(mime = mimeTypeOrTypes) |
|
1764 |
] ifFalse:[ |
|
1765 |
holder value:(mimeTypeOrTypes includes:mime) |
|
1766 |
]. |
|
1767 |
]. |
|
1768 |
||
1769 |
"Modified: / 28-06-2010 / 17:11:05 / cg" |
|
9943 | 1770 |
! |
1771 |
||
1772 |
updateForLine:lineNr |
|
1773 |
"/ highlight the tag for a particular line in the edittext |
|
1774 |
"/ called via a hook via the masterapp from the editView... |
|
1775 |
||
1776 |
|bestTag| |
|
1777 |
||
1778 |
bestTag := tagList bestTagForLine:lineNr. |
|
1779 |
bestTag notNil ifTrue:[ |
|
1780 |
tagView setSelection:(tagList identityIndexOf:bestTag). |
|
1781 |
] ifFalse:[ |
|
1782 |
"/ remember line in case the tag-list is being generated |
|
1783 |
tagView tagLineNr:lineNr |
|
1784 |
]. |
|
1785 |
||
1786 |
"Modified: / 23-06-2011 / 17:28:26 / cg" |
|
9892 | 1787 |
! ! |
1788 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1789 |
!TagsBrowser methodsFor:'hooks for ccbrowser'! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1790 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1791 |
buildTarget |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1792 |
commonAspects notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1793 |
^ commonAspects buildTarget |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1794 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1795 |
^ nil |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1796 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1797 |
"Created: / 07-05-2011 / 15:38:20 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1798 |
! ! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1799 |
|
9892 | 1800 |
!TagsBrowser methodsFor:'menu actions'! |
1801 |
||
1802 |
middleButtonMenu |
|
1803 |
^ [ |
|
1804 |
|menu suffix file item| |
|
1805 |
||
1806 |
menus isNil ifTrue:[ |
|
1807 |
menus := IdentityDictionary new. |
|
1808 |
]. |
|
1809 |
||
1810 |
menu := nil. |
|
1811 |
||
1812 |
(file := self editedFile) notNil ifTrue:[ |
|
1813 |
(tagList supportsFile:file) ifTrue:[ |
|
1814 |
menu := menus at:#exists ifAbsentPut:[ |
|
1815 |
menu := self class middleButtonMenu decodeAsLiteralArray. |
|
1816 |
menu receiver:self. |
|
1817 |
menu findGuiResourcesIn:self. |
|
1818 |
menu |
|
1819 |
]. |
|
1820 |
menu := MenuPanel menu:menu receiver:self. |
|
1821 |
] ifFalse:[ |
|
1822 |
suffix := file suffix. |
|
1823 |
||
1824 |
suffix size ~~ 0 ifTrue:[ |
|
1825 |
menu := menus at:#new ifAbsentPut:[ |
|
1826 |
menu := Menu new. |
|
1827 |
item := MenuItem label:('assign ', (Text string:suffix emphasis:#underline), ' to:'). |
|
1828 |
item enabled:false. |
|
1829 |
menu addItem:item. |
|
1830 |
menu addItem:(MenuItem label:'-'). |
|
1831 |
||
1832 |
tagList class tagsSuffixes keysAndValuesDo:[:aKey :aValue| |
|
1833 |
item := MenuItem label:(' - ', aKey ) |
|
1834 |
value:[ |list| |
|
1835 |
list := aValue asOrderedCollection. |
|
1836 |
list add:(suffix asLowercase). |
|
1837 |
tagList class tagsSuffixes at:aKey put:list. |
|
1838 |
self editedFileChanged. |
|
1839 |
]. |
|
1840 |
menu addItem:item. |
|
1841 |
]. |
|
1842 |
menu |
|
1843 |
]. |
|
1844 |
||
1845 |
] |
|
1846 |
]. |
|
1847 |
]. |
|
1848 |
menu |
|
1849 |
] |
|
1850 |
! |
|
1851 |
||
10435 | 1852 |
sortByLineNumber |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1853 |
tagList sortedByLineNumber:true. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1854 |
self sortIsByName value:false. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1855 |
self sortIsByLineNumber value:true. |
10435 | 1856 |
|
1857 |
"Created: / 03-08-2011 / 11:04:51 / cg" |
|
1858 |
! |
|
1859 |
||
1860 |
sortByName |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1861 |
tagList sortedByName:true. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1862 |
self sortIsByLineNumber value:false. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1863 |
self sortIsByName value:true. |
10435 | 1864 |
|
1865 |
"Created: / 03-08-2011 / 11:04:37 / cg" |
|
1866 |
! |
|
1867 |
||
9892 | 1868 |
updateTagList |
1869 |
"reload tags |
|
1870 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1871 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1872 |
|file target| |
9892 | 1873 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1874 |
(true "(self tagsVisibilityHolder value == true)" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1875 |
and:[(file := self editedFile) notNil |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1876 |
and:[tagList supportsFile:file]] |
9892 | 1877 |
) ifTrue:[ |
1878 |
(target := self buildTarget) notNil ifTrue:[ |
|
1879 |
(target isRemote and:[self tagsRemoteHolder value]) ifFalse:[ |
|
1880 |
target := nil |
|
1881 |
] |
|
1882 |
]. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1883 |
tagView generateTagsFor:file onTarget:target |
9892 | 1884 |
] ifFalse:[ |
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1885 |
tagView stopGeneratingTags |
9892 | 1886 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1887 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1888 |
"Modified: / 07-05-2011 / 11:50:50 / cg" |
9892 | 1889 |
! ! |
1890 |
||
1891 |
!TagsBrowser methodsFor:'startup & release'! |
|
1892 |
||
1893 |
cloneWith:anApplication |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1894 |
"/ |browser| |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1895 |
"/ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1896 |
"/ (browser := anApplication tagsBrowser) notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1897 |
"/ self tagsVisibilityHolder value:(browser tagsVisibilityHolder value) |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1898 |
"/ ] |
9892 | 1899 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1900 |
"Modified: / 07-05-2011 / 11:54:48 / cg" |
9892 | 1901 |
! |
1902 |
||
1903 |
initialize |
|
1904 |
super initialize. |
|
1905 |
||
1906 |
tagList := TagList new. |
|
1907 |
tagView := TagView new. |
|
1908 |
||
1909 |
tagView application:self. |
|
1910 |
tagView list:tagList. |
|
1911 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1912 |
tagView action:[:i| |tag| |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1913 |
action notNil ifTrue:[ |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1914 |
tag := tagList at:i ifAbsent:nil. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1915 |
tag notNil ifTrue:[ action value:tag ]. |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1916 |
] |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1917 |
]. |
10435 | 1918 |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
1919 |
"Modified: / 03-08-2011 / 11:19:49 / cg" |
10435 | 1920 |
! |
1921 |
||
1922 |
postBuildWith:aBuilder |
|
1923 |
super postBuildWith:aBuilder. |
|
1924 |
||
1925 |
self sortIsByName value:true. |
|
1926 |
||
1927 |
"Created: / 03-08-2011 / 11:19:44 / cg" |
|
9892 | 1928 |
! ! |
1929 |
||
1930 |
!TagsBrowser::TagView methodsFor:'accessing'! |
|
1931 |
||
1932 |
application |
|
1933 |
"returns my application, the TagsBrowser |
|
1934 |
" |
|
1935 |
^ application |
|
1936 |
! |
|
1937 |
||
1938 |
application:theTagsBrowser |
|
1939 |
"set my application, the TagsBrowser |
|
1940 |
" |
|
1941 |
application := theTagsBrowser. |
|
1942 |
! |
|
1943 |
||
1944 |
filter:aString |
|
1945 |
filter := aString. |
|
1946 |
list filter:aString. |
|
1947 |
! |
|
1948 |
||
1949 |
tagLineNr:lineNr |
|
1950 |
"remember line nr for which a tag should be highlighted. |
|
1951 |
(will set my selection late, when the taglist is available" |
|
1952 |
||
1953 |
tagLineNr := lineNr |
|
1954 |
! ! |
|
1955 |
||
1956 |
!TagsBrowser::TagView methodsFor:'drawing'! |
|
1957 |
||
1958 |
drawLabelAt:anIndex x:x y:y h:h |
|
1959 |
"draw the label at position x/y without clearing the background |
|
1960 |
" |
|
1961 |
|item label type |
|
1962 |
y0 "{ Class: SmallInteger }" |
|
1963 |
| |
|
1964 |
item := list at:anIndex ifAbsent:nil. |
|
1965 |
item isNil ifTrue:[^ self]. |
|
1966 |
||
1967 |
self paint:fgColor on:bgColor. |
|
1968 |
||
1969 |
label := item printString. |
|
1970 |
y0 := y - ((font height) + 1 - h // 2) + font ascent. |
|
1971 |
type := item typeIdentifierInList. |
|
1972 |
||
1973 |
type notNil ifTrue:[ |
|
1974 |
type := Text string:type emphasis:#bold. |
|
1975 |
type displayOn:self x:x y:y0. |
|
1976 |
]. |
|
1977 |
(self isInSelection:anIndex) ifTrue:[ |
|
1978 |
self paint:hilightFgColor on:hilightBgColor |
|
1979 |
]. |
|
1980 |
label displayOn:self x:(x + TypeInset) y:y0 |
|
1981 |
! |
|
1982 |
||
1983 |
drawSelectionFrameAt:lnNr x:x w:w |
|
1984 |
"draw the background and foreground of the selection frame |
|
1985 |
at a lineNr. |
|
1986 |
" |
|
1987 |
|item |
|
1988 |
x0 "{ Class:SmallInteger }" |
|
1989 |
x1 "{ Class: SmallInteger }" |
|
1990 |
y0 "{ Class:SmallInteger }" |
|
1991 |
y1 "{ Class:SmallInteger }" |
|
1992 |
hL "{ Class:SmallInteger }" |
|
1993 |
wL "{ Class:SmallInteger }" |
|
1994 |
| |
|
1995 |
(item := list at:lnNr ifAbsent:nil) isNil ifTrue:[ |
|
1996 |
"/ list might change during drawing; item no longer visible |
|
1997 |
^ self |
|
1998 |
]. |
|
1999 |
||
2000 |
"/ CLEAR THE BACKGROUND |
|
2001 |
||
2002 |
y0 := self yVisibleOfLine:lnNr. |
|
2003 |
y1 := self yVisibleOfLine:(lnNr + 1). |
|
2004 |
hL := y1 - y0. |
|
2005 |
||
2006 |
x0 := textStartLeft - viewOrigin x + TypeInset - 4. |
|
2007 |
x1 := (self widthOfContents - viewOrigin x) max:(width - margin). |
|
2008 |
wL := x1 - x0. |
|
2009 |
||
2010 |
wL > 0 ifFalse:[^ self]. |
|
2011 |
||
2012 |
self paint:hilightBgColor. |
|
2013 |
self fillRectangleX:x0 y:y0 width:wL height:hL. |
|
2014 |
||
2015 |
"/ DRAW THE FRAME |
|
2016 |
||
2017 |
hilightFrameColor notNil ifTrue:[ |
|
2018 |
hilightLevel == 0 ifTrue:[ |
|
2019 |
self paint:hilightFrameColor. |
|
2020 |
self displayRectangleX:x0 y:y0 width:wL height:hL. |
|
2021 |
^ self. |
|
2022 |
] |
|
2023 |
] ifFalse:[ |
|
2024 |
hilightStyle == #motif ifTrue:[ |
|
2025 |
self paint:bgColor. |
|
2026 |
y1 := y0 + 1. |
|
2027 |
self displayRectangleX:x0 + 1 y:y1 width:wL - 2 height:hL - 2. |
|
2028 |
] |
|
2029 |
]. |
|
2030 |
||
2031 |
hilightLevel ~~ 0 ifTrue:[ |
|
2032 |
"/ draw edge |
|
2033 |
self drawEdgesForX:x0 y:y0 width:wL height:hL level:hilightLevel. |
|
2034 |
] |
|
2035 |
! ! |
|
2036 |
||
2037 |
!TagsBrowser::TagView methodsFor:'generating tags'! |
|
2038 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
2039 |
generateTagsFor:aFile onTarget:aTarget |
9892 | 2040 |
"generate tags for a file (optionally on a remote target) |
2041 |
" |
|
2042 |
|tagFile| |
|
2043 |
||
2044 |
Tag autoload. |
|
2045 |
||
2046 |
self stopGeneratingTags. |
|
2047 |
||
2048 |
aFile isNil ifTrue:[ |
|
2049 |
^ self |
|
2050 |
]. |
|
2051 |
fileName := aFile asFilename. |
|
2052 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2053 |
"/ (tagFile := application changes backupFor:fileName) isNil ifTrue:[ |
9892 | 2054 |
tagFile := fileName. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2055 |
"/ ]. |
9892 | 2056 |
|
2057 |
process := [ |
|
2058 |
[ |
|
2059 |
Error handle:[:ex| |
|
2060 |
Transcript show:'TagGenerator error cought:'; showCR:ex errorString. |
|
2061 |
ex suspendedContext fullPrintAllOn:Transcript. |
|
2062 |
(Dialog |
|
2063 |
confirm:(resources stringWithCRs:'Error encountered while generating tags:\\ %1\\Debug ?' with:ex description) |
|
2064 |
yesLabel:'Debug' |
|
2065 |
) ifTrue:[ |
|
2066 |
ex reject |
|
2067 |
]. |
|
2068 |
] do:[ |
|
2069 |
|bestTag| |
|
2070 |
||
2071 |
self enabled:false. |
|
2072 |
list add:nil. |
|
2073 |
list add:(Tag label:('Generating Tags ...' allBold) pattern:nil). |
|
2074 |
list filter:filter. |
|
2075 |
||
2076 |
list |
|
2077 |
fromFile:tagFile |
|
2078 |
in:(application tempDirectory) |
|
2079 |
onTarget:aTarget. |
|
2080 |
||
2081 |
tagLineNr notNil ifTrue:[ |
|
2082 |
bestTag := list bestTagForLine:tagLineNr. |
|
2083 |
bestTag notNil ifTrue:[ |
|
2084 |
self setSelection:(list identityIndexOf:bestTag). |
|
2085 |
]. |
|
2086 |
tagLineNr := nil |
|
2087 |
]. |
|
2088 |
] |
|
2089 |
] valueNowOrOnUnwindDo:[ |
|
2090 |
process := nil. |
|
2091 |
self enabled:true. |
|
2092 |
]. |
|
2093 |
] forkAt:4. |
|
2094 |
||
2095 |
process priorityRange:(4 to:8). |
|
2096 |
||
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
2097 |
"Modified: / 07-05-2011 / 15:39:26 / cg" |
9892 | 2098 |
! |
2099 |
||
2100 |
stopGeneratingTags |
|
2101 |
"stop the process which generates the tags |
|
2102 |
" |
|
2103 |
|task| |
|
2104 |
||
2105 |
||
2106 |
(task := process) notNil ifTrue:[ |
|
2107 |
process := nil. |
|
2108 |
||
2109 |
Exception handle:[:ex| |
|
2110 |
] do:[ |
|
2111 |
task terminateWithAllSubprocessesInGroup. |
|
2112 |
task waitUntilTerminated. |
|
2113 |
] |
|
2114 |
]. |
|
2115 |
fileName := nil. |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
2116 |
list removeAll. |
9892 | 2117 |
! ! |
2118 |
||
2119 |
!TagsBrowser::TagView methodsFor:'initialize & release'! |
|
2120 |
||
2121 |
destroy |
|
2122 |
self stopGeneratingTags. |
|
2123 |
super destroy. |
|
2124 |
! |
|
2125 |
||
2126 |
initialize |
|
2127 |
||
2128 |
TypeInset := 16. |
|
2129 |
||
2130 |
super initialize. |
|
2131 |
highlightMode := #line. |
|
2132 |
! ! |
|
2133 |
||
2134 |
!TagsBrowser::TagView methodsFor:'protocol'! |
|
2135 |
||
2136 |
heightOfLineAt:aLineNr |
|
2137 |
"returns the total height for a line at an index( including lineSpacing ... ) |
|
2138 |
" |
|
2139 |
^ lineSpacing + font height |
|
2140 |
! |
|
2141 |
||
2142 |
widthOfWidestLineBetween:firstLine and:lastLine |
|
2143 |
"return the width in pixels of the widest line in a range |
|
2144 |
" |
|
2145 |
|width| |
|
2146 |
||
2147 |
width := super widthOfWidestLineBetween:firstLine and:lastLine. |
|
2148 |
^ width + TypeInset |
|
2149 |
! ! |
|
2150 |
||
2151 |
!TagsBrowser class methodsFor:'documentation'! |
|
2152 |
||
2153 |
version_CVS |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
2154 |
^ '§Header: /cvs/stx/stx/libtool/Tools__TagsBrowser.st,v 1.10 2011/08/03 09:21:07 cg Exp §' |
10055 | 2155 |
! |
2156 |
||
2157 |
version_SVN |
|
12123
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
2158 |
^ '$Id$' |
4bde08cebd48
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10969
diff
changeset
|
2159 |
! ! |