author | Claus Gittinger <cg@exept.de> |
Mon, 15 Jul 2019 18:47:18 +0200 | |
changeset 18902 | c2dea21fb224 |
parent 18753 | ed2954913df7 |
child 19291 | 017eaf208581 |
permissions | -rw-r--r-- |
9892 | 1 |
" |
14484 | 2 |
COPYRIGHT (c) 2002 by eXept Software AG |
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 |
13632 | 18 |
menus tagsValid tagListGenerator' |
10435 | 19 |
classVariableNames:'' |
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-Tools-File-Tags' |
|
9892 | 22 |
! |
23 |
||
24 |
SelectionInListModelView subclass:#TagView |
|
14561 | 25 |
instanceVariableNames:'application process fileName tagLineNr itemHeight' |
10435 | 26 |
classVariableNames:'TypeInset' |
27 |
poolDictionaries:'' |
|
28 |
privateIn:TagsBrowser |
|
9892 | 29 |
! |
30 |
||
31 |
!TagsBrowser class methodsFor:'documentation'! |
|
32 |
||
33 |
copyright |
|
34 |
" |
|
14484 | 35 |
COPYRIGHT (c) 2002 by eXept Software AG |
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 |
||
10763 | 61 |
!TagsBrowser class methodsFor:'help specs'! |
62 |
||
17916 | 63 |
helpSpec |
64 |
^ super helpSpec addPairsFrom:#( |
|
10763 | 65 |
|
10769 | 66 |
#updateTagList |
67 |
'Update (regenerate) the tag list' |
|
68 |
||
10763 | 69 |
#sortByName |
70 |
'Sort by name (ignoring case and leading underscores)' |
|
71 |
||
72 |
#sortByLineNumber |
|
73 |
'Sort by line number' |
|
74 |
||
75 |
#functionsOnly |
|
14563 | 76 |
'Show only Functions (see popup menu for more options)' |
14544 | 77 |
|
78 |
#structsOnly |
|
14563 | 79 |
'Show only Structures (see popup menu for more options)' |
10763 | 80 |
|
11721 | 81 |
#toggleTagFilter |
14563 | 82 |
'Toggle name filter to show only tags which match a pattern' |
11721 | 83 |
|
84 |
#tagFilter |
|
14563 | 85 |
'Pattern to filter tags by name.\Multiple OR-patterns are separated by ";"' |
11721 | 86 |
|
10763 | 87 |
) |
88 |
||
89 |
"Created: / 06-10-2011 / 12:04:51 / cg" |
|
90 |
! ! |
|
91 |
||
9892 | 92 |
!TagsBrowser class methodsFor:'interface specs'! |
93 |
||
94 |
windowSpec |
|
95 |
"This resource specification was automatically generated |
|
96 |
by the UIPainter of ST/X." |
|
97 |
||
98 |
"Do not manually edit this!! If it is corrupted, |
|
99 |
the UIPainter may not be able to read the specification." |
|
100 |
||
101 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
102 |
UIPainter new openOnClass:Tools::TagsBrowser andSelector:#windowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
103 |
Tools::TagsBrowser new openInterface:#windowSpec |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
104 |
Tools::TagsBrowser open |
9892 | 105 |
" |
106 |
||
107 |
<resource: #canvas> |
|
108 |
||
14543 | 109 |
^ |
110 |
#(FullSpec |
|
111 |
name: windowSpec |
|
112 |
window: |
|
113 |
(WindowSpec |
|
114 |
label: 'TagsBrowser' |
|
115 |
name: 'TagsBrowser' |
|
116 |
min: (Point 10 10) |
|
117 |
bounds: (Rectangle 0 0 300 337) |
|
118 |
) |
|
119 |
component: |
|
120 |
(SpecCollection |
|
121 |
collection: ( |
|
15248 | 122 |
(VerticalPanelViewSpec |
123 |
name: 'VerticalPanel1' |
|
124 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
125 |
horizontalLayout: fit |
|
126 |
verticalLayout: topFit |
|
14543 | 127 |
horizontalSpace: 3 |
128 |
verticalSpace: 3 |
|
129 |
elementsChangeSize: true |
|
130 |
component: |
|
131 |
(SpecCollection |
|
132 |
collection: ( |
|
15248 | 133 |
(HorizontalPanelViewSpec |
134 |
name: 'TagToolbarHorizontalPanel' |
|
135 |
horizontalLayout: leftFit |
|
136 |
verticalLayout: center |
|
137 |
horizontalSpace: 3 |
|
138 |
verticalSpace: 3 |
|
139 |
ignoreInvisibleComponents: false |
|
140 |
elementsChangeSize: true |
|
141 |
component: |
|
142 |
(SpecCollection |
|
143 |
collection: ( |
|
144 |
(MenuPanelSpec |
|
145 |
name: 'ToolBar1' |
|
146 |
level: 0 |
|
147 |
menu: toolBarMenu |
|
148 |
extent: (Point 196 30) |
|
149 |
usePreferredWidth: true |
|
150 |
textDefault: true |
|
151 |
useDynamicPreferredWidth: true |
|
152 |
) |
|
153 |
) |
|
154 |
||
155 |
) |
|
156 |
extent: (Point 300 30) |
|
14543 | 157 |
) |
15248 | 158 |
(HorizontalPanelViewSpec |
159 |
name: 'TagFilterPanel' |
|
14543 | 160 |
visibilityChannel: tagFilterFieldVisibleHolder |
15248 | 161 |
horizontalLayout: leftFit |
162 |
verticalLayout: center |
|
163 |
horizontalSpace: 3 |
|
164 |
verticalSpace: 3 |
|
165 |
ignoreInvisibleComponents: false |
|
166 |
elementsChangeSize: true |
|
167 |
component: |
|
168 |
(SpecCollection |
|
169 |
collection: ( |
|
170 |
(LabelSpec |
|
171 |
label: 'Filter:' |
|
172 |
name: 'Label1' |
|
173 |
translateLabel: true |
|
174 |
resizeForLabel: true |
|
175 |
adjust: left |
|
176 |
useDefaultExtent: true |
|
177 |
) |
|
178 |
(InputFieldSpec |
|
179 |
name: 'TagFilterInputField' |
|
180 |
activeHelpKey: tagFilter |
|
181 |
model: tagFilterPatternHolder |
|
182 |
immediateAccept: true |
|
183 |
acceptOnReturn: true |
|
184 |
acceptOnTab: true |
|
185 |
acceptOnPointerLeave: true |
|
186 |
extent: (Point 254 22) |
|
187 |
) |
|
188 |
) |
|
189 |
||
190 |
) |
|
191 |
extent: (Point 300 30) |
|
192 |
) |
|
193 |
(ArbitraryComponentSpec |
|
194 |
name: 'Browser' |
|
195 |
level: -1 |
|
196 |
menu: middleButtonMenu |
|
197 |
hasHorizontalScrollBar: true |
|
198 |
hasVerticalScrollBar: true |
|
199 |
miniScrollerHorizontal: true |
|
200 |
miniScrollerVertical: false |
|
201 |
hasBorder: false |
|
202 |
component: tagView |
|
203 |
extent: (Point 300 271) |
|
14543 | 204 |
) |
205 |
) |
|
206 |
||
207 |
) |
|
208 |
) |
|
209 |
) |
|
210 |
||
211 |
) |
|
212 |
) |
|
9892 | 213 |
! ! |
214 |
||
215 |
!TagsBrowser class methodsFor:'menu specs'! |
|
216 |
||
217 |
assemblerMenuSlice |
|
218 |
"This resource specification was automatically generated |
|
219 |
by the MenuEditor of ST/X." |
|
220 |
||
221 |
"Do not manually edit this!! If it is corrupted, |
|
222 |
the MenuEditor may not be able to read the specification." |
|
223 |
||
224 |
" |
|
9920 | 225 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#assemblerMenuSlice |
226 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser assemblerMenuSlice)) startUp |
|
9892 | 227 |
" |
228 |
||
229 |
<resource: #menu> |
|
230 |
||
14484 | 231 |
^ |
9920 | 232 |
#(Menu |
14484 | 233 |
( |
234 |
(MenuItem |
|
235 |
label: '-' |
|
236 |
isVisible: editedFileHasAssemblerSuffix |
|
237 |
) |
|
238 |
(MenuItem |
|
239 |
enabled: tagTypesPresentHolder |
|
240 |
label: 'Hide Local Labels (Style1: Starting with ".")' |
|
241 |
translateLabel: true |
|
242 |
isVisible: editedFileHasAssemblerSuffix |
|
243 |
hideMenuOnActivated: false |
|
244 |
indication: hideLocalLabels: |
|
245 |
) |
|
246 |
(MenuItem |
|
247 |
enabled: tagTypesPresentHolder |
|
248 |
label: 'Hide Local Labels (Style2: Not Starting with "_")' |
|
249 |
translateLabel: true |
|
250 |
isVisible: editedFileHasAssemblerSuffix |
|
251 |
hideMenuOnActivated: false |
|
252 |
indication: hideLocalLabels2: |
|
253 |
) |
|
254 |
(MenuItem |
|
255 |
enabled: tagTypesPresentHolder |
|
256 |
label: 'Hide Local Labels (Style3: "L[0-9]+")' |
|
257 |
translateLabel: true |
|
258 |
isVisible: editedFileHasAssemblerSuffix |
|
259 |
hideMenuOnActivated: false |
|
260 |
indication: hideLocalLabels3: |
|
261 |
) |
|
262 |
(MenuItem |
|
263 |
enabled: tagTypesPresentHolder |
|
264 |
label: 'Hide Data Labels' |
|
265 |
translateLabel: true |
|
266 |
isVisible: editedFileHasAssemblerSuffix |
|
267 |
hideMenuOnActivated: false |
|
268 |
indication: hideDataLabels: |
|
269 |
) |
|
270 |
(MenuItem |
|
271 |
enabled: tagTypesPresentHolder |
|
272 |
label: 'Hide Text Labels' |
|
273 |
translateLabel: true |
|
274 |
isVisible: editedFileHasAssemblerSuffix |
|
275 |
hideMenuOnActivated: false |
|
276 |
indication: hideTextLabels: |
|
277 |
) |
|
278 |
) |
|
279 |
nil |
|
280 |
nil |
|
9892 | 281 |
) |
11465 | 282 |
|
11503 | 283 |
"Modified: / 13-05-2012 / 11:26:28 / cg" |
9892 | 284 |
! |
285 |
||
286 |
cMenuSlice |
|
287 |
"This resource specification was automatically generated |
|
288 |
by the MenuEditor of ST/X." |
|
289 |
||
290 |
"Do not manually edit this!! If it is corrupted, |
|
291 |
the MenuEditor may not be able to read the specification." |
|
292 |
||
293 |
" |
|
9920 | 294 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#cMenuSlice |
295 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser cMenuSlice)) startUp |
|
9892 | 296 |
" |
297 |
||
298 |
<resource: #menu> |
|
299 |
||
14484 | 300 |
^ |
9892 | 301 |
#(Menu |
14484 | 302 |
( |
303 |
(MenuItem |
|
304 |
label: '-' |
|
305 |
isVisible: editedFileHasCSuffix |
|
306 |
) |
|
307 |
(MenuItem |
|
308 |
enabled: tagTypesPresentHolder |
|
309 |
label: 'Classes, Functions && Variables Only' |
|
310 |
translateLabel: true |
|
311 |
isVisible: editedFileHasCSuffix |
|
312 |
indication: classesFunctionsAndVariablesOnly: |
|
313 |
) |
|
314 |
(MenuItem |
|
315 |
enabled: tagTypesPresentHolder |
|
316 |
label: 'Classes Only' |
|
317 |
translateLabel: true |
|
318 |
isVisible: editedFileHasCSuffix |
|
319 |
indication: classesOnly: |
|
320 |
) |
|
321 |
(MenuItem |
|
322 |
enabled: tagTypesPresentHolder |
|
323 |
label: 'Functions Only' |
|
324 |
translateLabel: true |
|
325 |
isVisible: editedFileHasCSuffix |
|
326 |
indication: functionsOnly: |
|
327 |
) |
|
328 |
(MenuItem |
|
329 |
enabled: tagTypesPresentHolder |
|
330 |
label: 'Variables Only' |
|
331 |
translateLabel: true |
|
332 |
isVisible: editedFileHasCSuffix |
|
333 |
indication: variablesOnly: |
|
334 |
) |
|
335 |
(MenuItem |
|
336 |
enabled: tagTypesPresentHolder |
|
337 |
label: 'Types Only' |
|
338 |
translateLabel: true |
|
339 |
isVisible: editedFileHasCSuffix |
|
340 |
indication: typesOnly: |
|
341 |
) |
|
342 |
(MenuItem |
|
343 |
enabled: tagTypesPresentHolder |
|
344 |
label: 'Structs Only' |
|
345 |
translateLabel: true |
|
346 |
isVisible: editedFileHasCSuffix |
|
347 |
indication: structsOnly: |
|
348 |
) |
|
349 |
(MenuItem |
|
350 |
enabled: tagTypesPresentHolder |
|
351 |
label: 'Defines Only' |
|
352 |
translateLabel: true |
|
353 |
isVisible: editedFileHasCSuffix |
|
354 |
indication: definesOnly: |
|
355 |
) |
|
356 |
(MenuItem |
|
357 |
label: '-' |
|
358 |
isVisible: editedFileHasCSuffix |
|
359 |
) |
|
360 |
(MenuItem |
|
361 |
enabled: tagTypesPresentHolder |
|
362 |
label: 'Hide Classes' |
|
363 |
translateLabel: true |
|
364 |
isVisible: editedFileHasCSuffix |
|
365 |
hideMenuOnActivated: false |
|
366 |
indication: hideClasses: |
|
367 |
) |
|
368 |
(MenuItem |
|
369 |
enabled: tagTypesPresentHolder |
|
370 |
label: 'Hide Functions' |
|
371 |
translateLabel: true |
|
372 |
isVisible: editedFileHasCSuffix |
|
373 |
hideMenuOnActivated: false |
|
374 |
indication: hideFunctions: |
|
375 |
) |
|
376 |
(MenuItem |
|
377 |
enabled: tagTypesPresentHolder |
|
378 |
label: 'Hide Variables' |
|
379 |
translateLabel: true |
|
380 |
isVisible: editedFileHasCSuffix |
|
381 |
hideMenuOnActivated: false |
|
382 |
indication: hideVariables: |
|
383 |
) |
|
384 |
(MenuItem |
|
385 |
enabled: tagTypesPresentHolder |
|
386 |
label: 'Hide Typedefs' |
|
387 |
translateLabel: true |
|
388 |
isVisible: editedFileHasCSuffix |
|
389 |
hideMenuOnActivated: false |
|
390 |
indication: hideTypedefs: |
|
391 |
) |
|
392 |
(MenuItem |
|
393 |
enabled: tagTypesPresentHolder |
|
394 |
label: 'Hide Structures' |
|
395 |
translateLabel: true |
|
396 |
isVisible: editedFileHasCSuffix |
|
397 |
hideMenuOnActivated: false |
|
398 |
indication: hideStructures: |
|
399 |
) |
|
400 |
(MenuItem |
|
401 |
enabled: tagTypesPresentHolder |
|
402 |
label: 'Hide Struct Members' |
|
403 |
translateLabel: true |
|
404 |
isVisible: editedFileHasCSuffix |
|
405 |
hideMenuOnActivated: false |
|
406 |
indication: hideStructMembers: |
|
407 |
) |
|
408 |
(MenuItem |
|
409 |
enabled: tagTypesPresentHolder |
|
410 |
label: 'Hide Defines' |
|
411 |
translateLabel: true |
|
412 |
isVisible: editedFileHasCSuffix |
|
413 |
hideMenuOnActivated: false |
|
414 |
indication: hideDefines: |
|
415 |
) |
|
416 |
(MenuItem |
|
417 |
enabled: tagTypesPresentHolder |
|
418 |
label: 'Hide Labels' |
|
419 |
translateLabel: true |
|
420 |
isVisible: editedFileHasCSuffix |
|
421 |
hideMenuOnActivated: false |
|
422 |
indication: hideLabels: |
|
423 |
) |
|
424 |
(MenuItem |
|
425 |
label: '-' |
|
426 |
isVisible: editedFileHasCSuffix |
|
427 |
) |
|
428 |
(MenuItem |
|
429 |
enabled: tagTypesPresentHolder |
|
430 |
label: 'Hide Static' |
|
431 |
translateLabel: true |
|
432 |
isVisible: editedFileHasCSuffix |
|
433 |
hideMenuOnActivated: false |
|
434 |
indication: hideStatic: |
|
435 |
) |
|
436 |
) |
|
437 |
nil |
|
438 |
nil |
|
9892 | 439 |
) |
440 |
! |
|
441 |
||
11761 | 442 |
dartMenuSlice |
443 |
"This resource specification was automatically generated |
|
444 |
by the MenuEditor of ST/X." |
|
445 |
||
446 |
"Do not manually edit this!! If it is corrupted, |
|
447 |
the MenuEditor may not be able to read the specification." |
|
448 |
||
449 |
" |
|
450 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaMenuSlice |
|
451 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaMenuSlice)) startUp |
|
452 |
" |
|
453 |
||
454 |
<resource: #menu> |
|
455 |
||
14484 | 456 |
^ |
11761 | 457 |
#(Menu |
17553 | 458 |
( |
459 |
(MenuItem |
|
460 |
label: '-' |
|
461 |
isVisible: editedFileHasDartSuffix |
|
462 |
) |
|
463 |
(MenuItem |
|
464 |
enabled: tagTypesPresentHolder |
|
465 |
label: 'Classes Only' |
|
466 |
translateLabel: true |
|
467 |
isVisible: editedFileHasDartSuffix |
|
468 |
indication: classesOnly: |
|
469 |
) |
|
470 |
(MenuItem |
|
471 |
enabled: tagTypesPresentHolder |
|
472 |
label: 'Methods Only' |
|
473 |
translateLabel: true |
|
474 |
isVisible: editedFileHasDartSuffix |
|
475 |
indication: methodsOnly: |
|
476 |
) |
|
477 |
(MenuItem |
|
478 |
enabled: tagTypesPresentHolder |
|
479 |
label: 'Classes && Methods Only' |
|
480 |
translateLabel: true |
|
481 |
isVisible: editedFileHasDartSuffix |
|
482 |
indication: classesAndMethodsOnly: |
|
483 |
) |
|
484 |
(MenuItem |
|
485 |
label: '-' |
|
486 |
isVisible: editedFileHasDartSuffix |
|
487 |
) |
|
488 |
(MenuItem |
|
489 |
enabled: tagTypesPresentHolder |
|
490 |
label: 'Hide Packages' |
|
491 |
translateLabel: true |
|
492 |
isVisible: false "editedFileHasDartSuffix" |
|
493 |
hideMenuOnActivated: false |
|
494 |
indication: hidePackages: |
|
495 |
) |
|
496 |
(MenuItem |
|
497 |
enabled: tagTypesPresentHolder |
|
498 |
label: 'Hide Classes' |
|
499 |
translateLabel: true |
|
500 |
isVisible: editedFileHasDartSuffix |
|
501 |
hideMenuOnActivated: false |
|
502 |
indication: hideClasses: |
|
503 |
) |
|
504 |
(MenuItem |
|
505 |
enabled: tagTypesPresentHolder |
|
506 |
label: 'Hide Interfaces' |
|
507 |
translateLabel: true |
|
508 |
isVisible: editedFileHasDartSuffix |
|
509 |
hideMenuOnActivated: false |
|
510 |
indication: hideInterfaces: |
|
511 |
) |
|
512 |
(MenuItem |
|
513 |
enabled: tagTypesPresentHolder |
|
514 |
label: 'Hide Methods' |
|
515 |
translateLabel: true |
|
516 |
isVisible: editedFileHasDartSuffix |
|
517 |
hideMenuOnActivated: false |
|
518 |
indication: hideMethods: |
|
519 |
) |
|
520 |
(MenuItem |
|
521 |
enabled: tagTypesPresentHolder |
|
522 |
label: 'Hide Fields' |
|
523 |
translateLabel: true |
|
524 |
isVisible: editedFileHasDartSuffix |
|
525 |
hideMenuOnActivated: false |
|
526 |
indication: hideFields: |
|
527 |
) |
|
528 |
) |
|
529 |
nil |
|
530 |
nil |
|
11761 | 531 |
) |
532 |
||
17553 | 533 |
"Modified: / 22-06-2017 / 10:52:06 / cg" |
11761 | 534 |
! |
535 |
||
14578 | 536 |
htmlMenuSlice |
537 |
"This resource specification was automatically generated |
|
538 |
by the MenuEditor of ST/X." |
|
539 |
||
540 |
"Do not manually edit this!! If it is corrupted, |
|
541 |
the MenuEditor may not be able to read the specification." |
|
542 |
||
543 |
" |
|
544 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#lispMenuSlice |
|
545 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser lispMenuSlice)) startUp |
|
546 |
" |
|
547 |
||
548 |
<resource: #menu> |
|
549 |
||
550 |
^ |
|
551 |
#(Menu |
|
552 |
( |
|
553 |
(MenuItem |
|
554 |
label: '-' |
|
555 |
isVisible: editedFileHasHtmlSuffix |
|
556 |
) |
|
557 |
(MenuItem |
|
558 |
enabled: tagTypesPresentHolder |
|
559 |
label: 'Anchors Only' |
|
560 |
translateLabel: true |
|
561 |
isVisible: editedFileHasHtmlSuffix |
|
562 |
indication: anchorsOnly: |
|
563 |
) |
|
564 |
(MenuItem |
|
565 |
enabled: tagTypesPresentHolder |
|
566 |
label: 'Headlines Only' |
|
567 |
translateLabel: true |
|
568 |
isVisible: editedFileHasHtmlSuffix |
|
569 |
indication: headlinesOnly: |
|
570 |
) |
|
571 |
) |
|
572 |
nil |
|
573 |
nil |
|
574 |
) |
|
575 |
! |
|
576 |
||
9892 | 577 |
javaMenuSlice |
578 |
"This resource specification was automatically generated |
|
579 |
by the MenuEditor of ST/X." |
|
580 |
||
581 |
"Do not manually edit this!! If it is corrupted, |
|
582 |
the MenuEditor may not be able to read the specification." |
|
583 |
||
584 |
" |
|
9920 | 585 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaMenuSlice |
586 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaMenuSlice)) startUp |
|
9892 | 587 |
" |
588 |
||
589 |
<resource: #menu> |
|
590 |
||
14484 | 591 |
^ |
9920 | 592 |
#(Menu |
17553 | 593 |
( |
594 |
(MenuItem |
|
595 |
label: '-' |
|
596 |
isVisible: editedFileHasJavaSuffix |
|
597 |
) |
|
598 |
(MenuItem |
|
599 |
enabled: tagTypesPresentHolder |
|
600 |
label: 'Classes Only' |
|
601 |
translateLabel: true |
|
602 |
isVisible: editedFileHasJavaSuffix |
|
603 |
indication: classesOnly: |
|
604 |
) |
|
605 |
(MenuItem |
|
606 |
enabled: tagTypesPresentHolder |
|
607 |
label: 'Methods OnLy' |
|
608 |
translateLabel: true |
|
609 |
isVisible: editedFileHasJavaSuffix |
|
610 |
indication: methodsOnly: |
|
611 |
) |
|
612 |
(MenuItem |
|
613 |
enabled: tagTypesPresentHolder |
|
614 |
label: 'Classes && Methods Only' |
|
615 |
translateLabel: true |
|
616 |
isVisible: editedFileHasJavaSuffix |
|
617 |
indication: classesAndMethodsOnly: |
|
618 |
) |
|
619 |
(MenuItem |
|
620 |
label: '-' |
|
621 |
isVisible: editedFileHasJavaSuffix |
|
622 |
) |
|
623 |
(MenuItem |
|
624 |
enabled: tagTypesPresentHolder |
|
625 |
label: 'Hide Packages' |
|
626 |
translateLabel: true |
|
627 |
isVisible: editedFileHasJavaSuffix |
|
628 |
hideMenuOnActivated: false |
|
629 |
indication: hidePackages: |
|
630 |
) |
|
631 |
(MenuItem |
|
632 |
enabled: tagTypesPresentHolder |
|
633 |
label: 'Hide Classes' |
|
634 |
translateLabel: true |
|
635 |
isVisible: editedFileHasJavaSuffix |
|
636 |
hideMenuOnActivated: false |
|
637 |
indication: hideClasses: |
|
638 |
) |
|
639 |
(MenuItem |
|
640 |
enabled: tagTypesPresentHolder |
|
641 |
label: 'Hide Methods' |
|
642 |
translateLabel: true |
|
643 |
isVisible: editedFileHasJavaSuffix |
|
644 |
hideMenuOnActivated: false |
|
645 |
indication: hideMethods: |
|
646 |
) |
|
647 |
(MenuItem |
|
648 |
enabled: tagTypesPresentHolder |
|
649 |
label: 'Hide Fields' |
|
650 |
translateLabel: true |
|
651 |
isVisible: editedFileHasJavaSuffix |
|
652 |
hideMenuOnActivated: false |
|
653 |
indication: hideFields: |
|
654 |
) |
|
655 |
) |
|
656 |
nil |
|
657 |
nil |
|
9892 | 658 |
) |
17553 | 659 |
|
660 |
"Modified: / 22-06-2017 / 10:52:30 / cg" |
|
9892 | 661 |
! |
662 |
||
663 |
javaScriptMenuSlice |
|
664 |
"This resource specification was automatically generated |
|
665 |
by the MenuEditor of ST/X." |
|
666 |
||
667 |
"Do not manually edit this!! If it is corrupted, |
|
668 |
the MenuEditor may not be able to read the specification." |
|
669 |
||
670 |
" |
|
9920 | 671 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
672 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
9892 | 673 |
" |
674 |
||
675 |
<resource: #menu> |
|
676 |
||
14484 | 677 |
^ |
9920 | 678 |
#(Menu |
14484 | 679 |
( |
680 |
(MenuItem |
|
681 |
label: '-' |
|
682 |
isVisible: editedFileHasJavaScriptSuffix |
|
683 |
) |
|
684 |
(MenuItem |
|
685 |
enabled: tagTypesPresentHolder |
|
686 |
label: 'Functions Only' |
|
687 |
translateLabel: true |
|
688 |
isVisible: editedFileHasJavaScriptSuffix |
|
689 |
hideMenuOnActivated: false |
|
690 |
indication: functionsOnly: |
|
691 |
) |
|
692 |
(MenuItem |
|
693 |
enabled: tagTypesPresentHolder |
|
694 |
label: 'Variables Only' |
|
695 |
translateLabel: true |
|
696 |
isVisible: editedFileHasJavaScriptSuffix |
|
697 |
hideMenuOnActivated: false |
|
698 |
indication: variablesOnly: |
|
699 |
) |
|
700 |
) |
|
701 |
nil |
|
702 |
nil |
|
9892 | 703 |
) |
704 |
! |
|
705 |
||
706 |
lispMenuSlice |
|
707 |
"This resource specification was automatically generated |
|
708 |
by the MenuEditor of ST/X." |
|
709 |
||
710 |
"Do not manually edit this!! If it is corrupted, |
|
711 |
the MenuEditor may not be able to read the specification." |
|
712 |
||
713 |
" |
|
9920 | 714 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#lispMenuSlice |
715 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser lispMenuSlice)) startUp |
|
9892 | 716 |
" |
717 |
||
718 |
<resource: #menu> |
|
719 |
||
14484 | 720 |
^ |
9892 | 721 |
#(Menu |
14484 | 722 |
( |
723 |
(MenuItem |
|
724 |
label: '-' |
|
725 |
isVisible: editedFileHasLispSuffix |
|
726 |
) |
|
727 |
(MenuItem |
|
728 |
enabled: tagTypesPresentHolder |
|
729 |
label: 'Documentation Only' |
|
730 |
translateLabel: true |
|
731 |
isVisible: editedFileHasLispSuffix |
|
732 |
indication: documentationOnly: |
|
733 |
) |
|
734 |
(MenuItem |
|
735 |
enabled: tagTypesPresentHolder |
|
736 |
label: 'Classes Only' |
|
737 |
translateLabel: true |
|
738 |
isVisible: editedFileHasLispSuffix |
|
739 |
indication: classesOnly: |
|
740 |
) |
|
741 |
(MenuItem |
|
742 |
enabled: tagTypesPresentHolder |
|
743 |
label: 'Methods Only' |
|
744 |
translateLabel: true |
|
745 |
isVisible: editedFileHasLispSuffix |
|
746 |
indication: methodsOnly: |
|
747 |
) |
|
748 |
(MenuItem |
|
749 |
enabled: tagTypesPresentHolder |
|
750 |
label: 'Functions Only' |
|
751 |
translateLabel: true |
|
752 |
isVisible: editedFileHasLispSuffix |
|
753 |
indication: functionsOnly: |
|
754 |
) |
|
755 |
(MenuItem |
|
756 |
enabled: tagTypesPresentHolder |
|
757 |
label: 'Variables Only' |
|
758 |
translateLabel: true |
|
759 |
isVisible: editedFileHasLispSuffix |
|
760 |
indication: variablesOnly: |
|
761 |
) |
|
762 |
(MenuItem |
|
763 |
enabled: tagTypesPresentHolder |
|
764 |
label: 'Macros Only' |
|
765 |
translateLabel: true |
|
766 |
isVisible: editedFileHasLispSuffix |
|
767 |
indication: macrosOnly: |
|
768 |
) |
|
769 |
(MenuItem |
|
770 |
label: '-' |
|
771 |
isVisible: editedFileHasLispSuffix |
|
772 |
) |
|
773 |
(MenuItem |
|
774 |
enabled: tagTypesPresentHolder |
|
775 |
label: 'Hide Documentation' |
|
776 |
translateLabel: true |
|
777 |
isVisible: editedFileHasLispSuffix |
|
778 |
hideMenuOnActivated: false |
|
779 |
indication: hideDocumentation: |
|
780 |
) |
|
781 |
(MenuItem |
|
782 |
enabled: tagTypesPresentHolder |
|
783 |
label: 'Hide Classes' |
|
784 |
translateLabel: true |
|
785 |
isVisible: editedFileHasLispSuffix |
|
786 |
hideMenuOnActivated: false |
|
787 |
indication: hideClasses: |
|
788 |
) |
|
789 |
(MenuItem |
|
790 |
enabled: tagTypesPresentHolder |
|
791 |
label: 'Hide Methods' |
|
792 |
translateLabel: true |
|
793 |
isVisible: editedFileHasLispSuffix |
|
794 |
hideMenuOnActivated: false |
|
795 |
indication: hideLispMethods: |
|
796 |
) |
|
797 |
(MenuItem |
|
798 |
enabled: tagTypesPresentHolder |
|
799 |
label: 'Hide Functions' |
|
800 |
translateLabel: true |
|
801 |
isVisible: editedFileHasLispSuffix |
|
802 |
hideMenuOnActivated: false |
|
803 |
indication: hideFunctions: |
|
804 |
) |
|
805 |
(MenuItem |
|
806 |
enabled: tagTypesPresentHolder |
|
807 |
label: 'Hide Variables' |
|
808 |
translateLabel: true |
|
809 |
isVisible: editedFileHasLispSuffix |
|
810 |
hideMenuOnActivated: false |
|
811 |
indication: hideVariables: |
|
812 |
) |
|
813 |
(MenuItem |
|
814 |
enabled: tagTypesPresentHolder |
|
815 |
label: 'Hide Macros' |
|
816 |
translateLabel: true |
|
817 |
isVisible: editedFileHasLispSuffix |
|
818 |
hideMenuOnActivated: false |
|
819 |
indication: hideLispMacros: |
|
820 |
) |
|
821 |
(MenuItem |
|
822 |
enabled: tagTypesPresentHolder |
|
823 |
label: 'Hide Constants' |
|
824 |
translateLabel: true |
|
825 |
isVisible: editedFileHasLispSuffix |
|
826 |
hideMenuOnActivated: false |
|
827 |
indication: hideLispConstants: |
|
828 |
) |
|
829 |
(MenuItem |
|
830 |
enabled: tagTypesPresentHolder |
|
831 |
label: 'Hide Evaluations' |
|
832 |
translateLabel: true |
|
833 |
isVisible: editedFileHasLispSuffix |
|
834 |
hideMenuOnActivated: false |
|
835 |
indication: hideLispEvaluations: |
|
836 |
) |
|
837 |
(MenuItem |
|
838 |
enabled: tagTypesPresentHolder |
|
839 |
label: 'Hide Structs' |
|
840 |
translateLabel: true |
|
841 |
isVisible: editedFileHasLispSuffix |
|
842 |
hideMenuOnActivated: false |
|
843 |
indication: hideStructures: |
|
844 |
) |
|
845 |
) |
|
846 |
nil |
|
847 |
nil |
|
9892 | 848 |
) |
849 |
! |
|
850 |
||
14348 | 851 |
luaMenuSlice |
852 |
"This resource specification was automatically generated |
|
853 |
by the MenuEditor of ST/X." |
|
854 |
||
855 |
"Do not manually edit this!! If it is corrupted, |
|
856 |
the MenuEditor may not be able to read the specification." |
|
857 |
||
858 |
" |
|
859 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
|
860 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
861 |
" |
|
862 |
||
863 |
<resource: #menu> |
|
864 |
||
14484 | 865 |
^ |
14348 | 866 |
#(Menu |
14484 | 867 |
( |
868 |
(MenuItem |
|
869 |
label: '-' |
|
870 |
isVisible: editedFileHasLuaSuffix |
|
871 |
) |
|
872 |
(MenuItem |
|
873 |
enabled: tagTypesPresentHolder |
|
874 |
label: 'Functions Only' |
|
875 |
translateLabel: true |
|
876 |
isVisible: editedFileHasLuaSuffix |
|
877 |
hideMenuOnActivated: false |
|
878 |
indication: functionsOnly: |
|
879 |
) |
|
880 |
(MenuItem |
|
881 |
enabled: tagTypesPresentHolder |
|
882 |
label: 'Variables Only' |
|
883 |
translateLabel: true |
|
884 |
isVisible: editedFileHasLuaSuffix |
|
885 |
hideMenuOnActivated: false |
|
886 |
indication: variablesOnly: |
|
887 |
) |
|
888 |
) |
|
889 |
nil |
|
890 |
nil |
|
14348 | 891 |
) |
892 |
! |
|
893 |
||
9892 | 894 |
makefileMenuSlice |
895 |
"This resource specification was automatically generated |
|
896 |
by the MenuEditor of ST/X." |
|
897 |
||
898 |
"Do not manually edit this!! If it is corrupted, |
|
899 |
the MenuEditor may not be able to read the specification." |
|
900 |
||
901 |
" |
|
9920 | 902 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#makefileMenuSlice |
903 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser makefileMenuSlice)) startUp |
|
9892 | 904 |
" |
905 |
||
906 |
<resource: #menu> |
|
907 |
||
14484 | 908 |
^ |
9920 | 909 |
#(Menu |
14484 | 910 |
( |
911 |
(MenuItem |
|
912 |
label: '-' |
|
913 |
isVisible: editedFileIsMakefile |
|
914 |
) |
|
915 |
(MenuItem |
|
916 |
enabled: tagTypesPresentHolder |
|
917 |
label: 'Targets Only' |
|
918 |
translateLabel: true |
|
919 |
isVisible: editedFileIsMakefile |
|
920 |
hideMenuOnActivated: false |
|
921 |
indication: targetsOnly: |
|
922 |
) |
|
923 |
) |
|
924 |
nil |
|
925 |
nil |
|
9892 | 926 |
) |
927 |
! |
|
928 |
||
929 |
middleButtonMenu |
|
930 |
"This resource specification was automatically generated |
|
931 |
by the MenuEditor of ST/X." |
|
932 |
||
933 |
"Do not manually edit this!! If it is corrupted, |
|
934 |
the MenuEditor may not be able to read the specification." |
|
935 |
||
936 |
" |
|
937 |
MenuEditor new openOnClass:CBrowser::TagsBrowser andSelector:#middleButtonMenu |
|
938 |
(Menu new fromLiteralArrayEncoding:(CBrowser::TagsBrowser middleButtonMenu)) startUp |
|
939 |
" |
|
940 |
||
941 |
<resource: #menu> |
|
942 |
||
14484 | 943 |
^ |
9892 | 944 |
#(Menu |
14578 | 945 |
( |
946 |
(MenuItem |
|
947 |
enabled: tagTypesPresentHolder |
|
948 |
label: 'Group by Type' |
|
949 |
translateLabel: true |
|
950 |
indication: groupedByType: |
|
951 |
) |
|
952 |
(MenuItem |
|
953 |
label: '-' |
|
954 |
) |
|
955 |
(MenuItem |
|
956 |
label: 'Sort by Name' |
|
957 |
translateLabel: true |
|
958 |
indication: sortedByName: |
|
959 |
) |
|
960 |
(MenuItem |
|
961 |
label: 'Sort by Name Ignoring Case' |
|
962 |
translateLabel: true |
|
963 |
indication: sortedByNameIgnoringCase: |
|
964 |
) |
|
965 |
(MenuItem |
|
966 |
label: 'Sort by Name (Ignore Leading Underscores)' |
|
967 |
translateLabel: true |
|
968 |
indication: sortedByNameIgnoringLeadingUnderscores: |
|
969 |
) |
|
970 |
(MenuItem |
|
971 |
label: 'Sort by Name (Ignore Leading Underscores and Case)' |
|
972 |
translateLabel: true |
|
973 |
indication: sortedByNameIgnoringLeadingUnderscoresAndCase: |
|
974 |
) |
|
975 |
(MenuItem |
|
976 |
label: 'Sort by Line Number' |
|
977 |
translateLabel: true |
|
978 |
indication: sortedByLineNumber: |
|
979 |
) |
|
980 |
(MenuItem |
|
981 |
label: 'C Menu Slice' |
|
982 |
translateLabel: true |
|
983 |
submenuChannel: cMenuSlice |
|
984 |
isMenuSlice: true |
|
985 |
) |
|
986 |
(MenuItem |
|
987 |
label: 'Smalltalk Menu Slice' |
|
988 |
translateLabel: true |
|
989 |
submenuChannel: smalltalkMenuSlice |
|
990 |
isMenuSlice: true |
|
991 |
) |
|
992 |
(MenuItem |
|
993 |
label: 'Java Menu Slice' |
|
994 |
translateLabel: true |
|
995 |
submenuChannel: javaMenuSlice |
|
996 |
isMenuSlice: true |
|
997 |
) |
|
998 |
(MenuItem |
|
999 |
label: 'JavaScript Menu Slice' |
|
1000 |
translateLabel: true |
|
1001 |
submenuChannel: javaScriptMenuSlice |
|
1002 |
isMenuSlice: true |
|
1003 |
) |
|
1004 |
(MenuItem |
|
1005 |
label: 'Dart Menu Slice' |
|
1006 |
translateLabel: true |
|
1007 |
submenuChannel: dartMenuSlice |
|
1008 |
isMenuSlice: true |
|
1009 |
) |
|
1010 |
(MenuItem |
|
1011 |
label: 'TCL Menu Slice' |
|
1012 |
translateLabel: true |
|
1013 |
submenuChannel: tclMenuSlice |
|
1014 |
isMenuSlice: true |
|
1015 |
) |
|
1016 |
(MenuItem |
|
1017 |
label: 'Assembler Menu Slice' |
|
1018 |
translateLabel: true |
|
1019 |
submenuChannel: assemblerMenuSlice |
|
1020 |
isMenuSlice: true |
|
1021 |
) |
|
1022 |
(MenuItem |
|
1023 |
label: 'Lisp Menu Slice' |
|
1024 |
translateLabel: true |
|
1025 |
submenuChannel: lispMenuSlice |
|
1026 |
isMenuSlice: true |
|
1027 |
) |
|
1028 |
(MenuItem |
|
1029 |
label: 'Lua Menu Slice' |
|
1030 |
translateLabel: true |
|
1031 |
submenuChannel: luaMenuSlice |
|
1032 |
isMenuSlice: true |
|
1033 |
) |
|
1034 |
(MenuItem |
|
1035 |
label: 'Python Menu Slice' |
|
1036 |
translateLabel: true |
|
1037 |
submenuChannel: pythonMenuSlice |
|
1038 |
isMenuSlice: true |
|
17553 | 1039 |
isVisible: editedFileHasPythonSuffix |
14578 | 1040 |
) |
1041 |
(MenuItem |
|
16281 | 1042 |
label: 'ObjC Menu Slice' |
1043 |
translateLabel: true |
|
1044 |
submenuChannel: objcMenuSlice |
|
1045 |
isMenuSlice: true |
|
1046 |
) |
|
1047 |
(MenuItem |
|
14578 | 1048 |
label: 'OZ Menu Slice' |
1049 |
translateLabel: true |
|
1050 |
submenuChannel: ozMenuSlice |
|
1051 |
isMenuSlice: true |
|
1052 |
) |
|
1053 |
(MenuItem |
|
1054 |
label: 'Makefile Menu Slice' |
|
1055 |
translateLabel: true |
|
1056 |
submenuChannel: makefileMenuSlice |
|
1057 |
isMenuSlice: true |
|
1058 |
) |
|
1059 |
(MenuItem |
|
1060 |
label: 'HTML Menu Slice' |
|
1061 |
translateLabel: true |
|
1062 |
submenuChannel: htmlMenuSlice |
|
1063 |
isMenuSlice: true |
|
1064 |
) |
|
1065 |
(MenuItem |
|
1066 |
label: '-' |
|
1067 |
) |
|
1068 |
(MenuItem |
|
1069 |
label: 'Update' |
|
1070 |
itemValue: updateTagList |
|
1071 |
translateLabel: true |
|
1072 |
) |
|
1073 |
) |
|
1074 |
nil |
|
1075 |
nil |
|
9892 | 1076 |
) |
1077 |
||
17553 | 1078 |
"Modified: / 22-06-2017 / 11:25:17 / cg" |
9892 | 1079 |
! |
1080 |
||
16281 | 1081 |
objcMenuSlice |
1082 |
"This resource specification was automatically generated |
|
1083 |
by the MenuEditor of ST/X." |
|
1084 |
||
1085 |
"Do not manually edit this!! If it is corrupted, |
|
1086 |
the MenuEditor may not be able to read the specification." |
|
1087 |
||
1088 |
" |
|
1089 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#objcMenuSlice |
|
1090 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser objcMenuSlice)) startUp |
|
1091 |
" |
|
1092 |
||
1093 |
<resource: #menu> |
|
1094 |
||
1095 |
^ |
|
1096 |
#(Menu |
|
1097 |
( |
|
1098 |
(MenuItem |
|
1099 |
label: '-' |
|
1100 |
isVisible: editedFileHasObjcSuffix |
|
1101 |
) |
|
1102 |
(MenuItem |
|
1103 |
enabled: tagTypesPresentHolder |
|
1104 |
label: 'Hide Classes' |
|
1105 |
translateLabel: true |
|
1106 |
isVisible: editedFileHasObjcSuffix |
|
1107 |
hideMenuOnActivated: false |
|
1108 |
indication: hideObjcClasses: |
|
1109 |
) |
|
1110 |
(MenuItem |
|
1111 |
enabled: tagTypesPresentHolder |
|
1112 |
label: 'Hide Methods' |
|
1113 |
translateLabel: true |
|
1114 |
isVisible: editedFileHasObjcSuffix |
|
1115 |
hideMenuOnActivated: false |
|
1116 |
indication: hideObjcMethods: |
|
1117 |
) |
|
1118 |
) |
|
1119 |
nil |
|
1120 |
nil |
|
1121 |
) |
|
1122 |
! |
|
1123 |
||
9892 | 1124 |
ozMenuSlice |
1125 |
"This resource specification was automatically generated |
|
1126 |
by the MenuEditor of ST/X." |
|
1127 |
||
1128 |
"Do not manually edit this!! If it is corrupted, |
|
1129 |
the MenuEditor may not be able to read the specification." |
|
1130 |
||
1131 |
" |
|
9920 | 1132 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#ozMenuSlice |
1133 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser ozMenuSlice)) startUp |
|
9892 | 1134 |
" |
1135 |
||
1136 |
<resource: #menu> |
|
1137 |
||
14484 | 1138 |
^ |
9920 | 1139 |
#(Menu |
14484 | 1140 |
( |
1141 |
(MenuItem |
|
1142 |
label: '-' |
|
1143 |
isVisible: editedFileHasOzSuffix |
|
1144 |
) |
|
1145 |
(MenuItem |
|
1146 |
enabled: tagTypesPresentHolder |
|
1147 |
label: 'Hide Classes' |
|
1148 |
translateLabel: true |
|
1149 |
isVisible: editedFileHasOzSuffix |
|
1150 |
hideMenuOnActivated: false |
|
1151 |
indication: hideOzClasses: |
|
1152 |
) |
|
1153 |
(MenuItem |
|
1154 |
enabled: tagTypesPresentHolder |
|
1155 |
label: 'Hide Methods' |
|
1156 |
translateLabel: true |
|
1157 |
isVisible: editedFileHasOzSuffix |
|
1158 |
hideMenuOnActivated: false |
|
1159 |
indication: hideOzMethods: |
|
1160 |
) |
|
1161 |
(MenuItem |
|
1162 |
enabled: tagTypesPresentHolder |
|
1163 |
label: 'Hide Functions' |
|
1164 |
translateLabel: true |
|
1165 |
isVisible: editedFileHasOzSuffix |
|
1166 |
hideMenuOnActivated: false |
|
1167 |
indication: hideOzFunctions: |
|
1168 |
) |
|
1169 |
) |
|
1170 |
nil |
|
1171 |
nil |
|
9892 | 1172 |
) |
1173 |
! |
|
1174 |
||
1175 |
pythonMenuSlice |
|
1176 |
"This resource specification was automatically generated |
|
1177 |
by the MenuEditor of ST/X." |
|
1178 |
||
1179 |
"Do not manually edit this!! If it is corrupted, |
|
1180 |
the MenuEditor may not be able to read the specification." |
|
1181 |
||
1182 |
" |
|
9920 | 1183 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#pythonMenuSlice |
1184 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser pythonMenuSlice)) startUp |
|
9892 | 1185 |
" |
1186 |
||
1187 |
<resource: #menu> |
|
1188 |
||
14484 | 1189 |
^ |
9920 | 1190 |
#(Menu |
17553 | 1191 |
( |
1192 |
(MenuItem |
|
1193 |
label: '-' |
|
1194 |
"/ isVisible: editedFileHasPythonSuffix |
|
1195 |
) |
|
1196 |
(MenuItem |
|
1197 |
enabled: tagTypesPresentHolder |
|
1198 |
label: 'Classes Only' |
|
1199 |
translateLabel: true |
|
1200 |
"/ isVisible: editedFileHasPythonSuffix |
|
1201 |
indication: classesOnly: |
|
1202 |
) |
|
1203 |
(MenuItem |
|
1204 |
enabled: tagTypesPresentHolder |
|
1205 |
label: 'Methods Only' |
|
1206 |
translateLabel: true |
|
1207 |
"/ isVisible: editedFileHasPythonSuffix |
|
1208 |
indication: methodsOnly: |
|
1209 |
) |
|
1210 |
(MenuItem |
|
1211 |
enabled: tagTypesPresentHolder |
|
1212 |
label: 'Functions Only' |
|
1213 |
translateLabel: true |
|
1214 |
"/ isVisible: editedFileHasPythonSuffix |
|
1215 |
indication: functionsOnly: |
|
1216 |
) |
|
1217 |
(MenuItem |
|
1218 |
label: '-' |
|
1219 |
"/ isVisible: editedFileHasPythonSuffix |
|
1220 |
) |
|
1221 |
(MenuItem |
|
1222 |
enabled: tagTypesPresentHolder |
|
1223 |
label: 'Hide Classes' |
|
1224 |
translateLabel: true |
|
1225 |
isVisible: editedFileHasPythonSuffix |
|
1226 |
hideMenuOnActivated: false |
|
1227 |
indication: hideClasses: |
|
1228 |
) |
|
1229 |
(MenuItem |
|
1230 |
enabled: tagTypesPresentHolder |
|
1231 |
label: 'Hide Methods' |
|
1232 |
translateLabel: true |
|
1233 |
isVisible: editedFileHasPythonSuffix |
|
1234 |
hideMenuOnActivated: false |
|
1235 |
indication: hideMethods: |
|
1236 |
) |
|
1237 |
(MenuItem |
|
1238 |
enabled: tagTypesPresentHolder |
|
1239 |
label: 'Hide Functions' |
|
1240 |
translateLabel: true |
|
1241 |
isVisible: editedFileHasPythonSuffix |
|
1242 |
hideMenuOnActivated: false |
|
1243 |
indication: hideFunctions: |
|
1244 |
) |
|
1245 |
) |
|
1246 |
nil |
|
1247 |
nil |
|
9892 | 1248 |
) |
17553 | 1249 |
|
1250 |
"Modified: / 22-06-2017 / 11:26:02 / cg" |
|
9892 | 1251 |
! |
1252 |
||
11761 | 1253 |
smalltalkMenuSlice |
1254 |
"This resource specification was automatically generated |
|
1255 |
by the MenuEditor of ST/X." |
|
1256 |
||
1257 |
"Do not manually edit this!! If it is corrupted, |
|
1258 |
the MenuEditor may not be able to read the specification." |
|
1259 |
||
1260 |
" |
|
16281 | 1261 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#smalltalkMenuSlice |
1262 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser smalltalkMenuSlice)) startUp |
|
11761 | 1263 |
" |
1264 |
||
1265 |
<resource: #menu> |
|
1266 |
||
14484 | 1267 |
^ |
11761 | 1268 |
#(Menu |
16281 | 1269 |
( |
1270 |
(MenuItem |
|
1271 |
label: '-' |
|
1272 |
isVisible: editedFileHasSmalltalkSuffix |
|
1273 |
) |
|
1274 |
(MenuItem |
|
1275 |
enabled: tagTypesPresentHolder |
|
1276 |
label: 'Hide Classes' |
|
1277 |
translateLabel: true |
|
1278 |
isVisible: editedFileHasSmalltalkSuffix |
|
1279 |
hideMenuOnActivated: false |
|
1280 |
indication: hideClasses: |
|
1281 |
) |
|
1282 |
(MenuItem |
|
1283 |
enabled: tagTypesPresentHolder |
|
1284 |
label: 'Hide Methods' |
|
1285 |
translateLabel: true |
|
1286 |
isVisible: editedFileHasSmalltalkSuffix |
|
1287 |
hideMenuOnActivated: false |
|
1288 |
indication: hideMethods: |
|
1289 |
) |
|
1290 |
) |
|
1291 |
nil |
|
1292 |
nil |
|
11761 | 1293 |
) |
1294 |
||
1295 |
"Created: / 21-08-2012 / 20:59:28 / cg" |
|
1296 |
! |
|
1297 |
||
9892 | 1298 |
tclMenuSlice |
1299 |
"This resource specification was automatically generated |
|
1300 |
by the MenuEditor of ST/X." |
|
1301 |
||
1302 |
"Do not manually edit this!! If it is corrupted, |
|
1303 |
the MenuEditor may not be able to read the specification." |
|
1304 |
||
1305 |
" |
|
9920 | 1306 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#tclMenuSlice |
1307 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser tclMenuSlice)) startUp |
|
9892 | 1308 |
" |
1309 |
||
1310 |
<resource: #menu> |
|
1311 |
||
14484 | 1312 |
^ |
9920 | 1313 |
#(Menu |
14484 | 1314 |
( |
1315 |
(MenuItem |
|
1316 |
label: '-' |
|
1317 |
isVisible: editedFileHasTCLSuffix |
|
1318 |
) |
|
1319 |
(MenuItem |
|
1320 |
enabled: tagTypesPresentHolder |
|
1321 |
label: 'Hide Variables' |
|
1322 |
translateLabel: true |
|
1323 |
isVisible: editedFileHasTCLSuffix |
|
1324 |
hideMenuOnActivated: false |
|
1325 |
indication: hideVariables: |
|
1326 |
) |
|
1327 |
) |
|
1328 |
nil |
|
1329 |
nil |
|
9892 | 1330 |
) |
9942 | 1331 |
! |
1332 |
||
1333 |
toolBarMenu |
|
1334 |
"This resource specification was automatically generated |
|
1335 |
by the MenuEditor of ST/X." |
|
1336 |
||
1337 |
"Do not manually edit this!! If it is corrupted, |
|
1338 |
the MenuEditor may not be able to read the specification." |
|
1339 |
||
10763 | 1340 |
|
9942 | 1341 |
" |
1342 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#toolBarMenu |
|
1343 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser toolBarMenu)) startUp |
|
1344 |
" |
|
1345 |
||
1346 |
<resource: #menu> |
|
1347 |
||
14543 | 1348 |
^ |
9942 | 1349 |
#(Menu |
14543 | 1350 |
( |
1351 |
(MenuItem |
|
1352 |
activeHelpKey: updateTagList |
|
1353 |
label: 'updateTagList' |
|
1354 |
itemValue: updateTagList |
|
1355 |
isButton: true |
|
1356 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
1357 |
) |
|
1358 |
(MenuItem |
|
1359 |
label: '-' |
|
1360 |
) |
|
1361 |
(MenuItem |
|
1362 |
activeHelpKey: sortByName |
|
1363 |
label: 'SortByName' |
|
1364 |
itemValue: sortByName |
|
1365 |
isButton: true |
|
1366 |
indication: sortIsByName |
|
1367 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByName16x16Icon) |
|
1368 |
) |
|
1369 |
(MenuItem |
|
1370 |
activeHelpKey: sortByLineNumber |
|
1371 |
label: 'SortByLineNumber' |
|
1372 |
itemValue: sortByLineNumber |
|
1373 |
isButton: true |
|
1374 |
indication: sortIsByLineNumber |
|
1375 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByLineNumber16x16Icon) |
|
1376 |
) |
|
1377 |
(MenuItem |
|
1378 |
label: '-' |
|
1379 |
) |
|
1380 |
(MenuItem |
|
1381 |
activeHelpKey: functionsOnly |
|
1382 |
label: 'FunctionsOnly' |
|
1383 |
itemValue: functionsOnly: |
|
1384 |
isButton: true |
|
1385 |
indication: functionsOnlyHolder |
|
1386 |
labelImage: (ResourceRetriever ToolbarIconLibrary functionsOnly16x16Icon) |
|
1387 |
) |
|
1388 |
(MenuItem |
|
14544 | 1389 |
activeHelpKey: structsOnly |
14543 | 1390 |
label: 'StructsOnly' |
1391 |
itemValue: structsOnly: |
|
1392 |
isButton: true |
|
14544 | 1393 |
isVisible: structsOnlyVisibleHolder |
14543 | 1394 |
indication: structsOnlyHolder |
1395 |
labelImage: (ResourceRetriever ToolbarIconLibrary structsOnly16x16Icon) |
|
1396 |
) |
|
1397 |
(MenuItem |
|
1398 |
activeHelpKey: toggleTagFilter |
|
1399 |
label: 'TagFilter' |
|
1400 |
isButton: true |
|
1401 |
indication: tagFilterFieldVisibleHolder |
|
1402 |
labelImage: (ResourceRetriever ToolbarIconLibrary filter16x16Icon) |
|
1403 |
) |
|
1404 |
) |
|
1405 |
nil |
|
1406 |
nil |
|
9942 | 1407 |
) |
11721 | 1408 |
! ! |
10772 | 1409 |
|
9892 | 1410 |
!TagsBrowser methodsFor:'accessing'! |
1411 |
||
9907 | 1412 |
editedFile |
1413 |
^ self editedFileHolder value |
|
1414 |
||
1415 |
"Created: / 06-05-2011 / 13:56:20 / cg" |
|
1416 |
! |
|
1417 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1418 |
editedFile:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1419 |
self editedFileHolder value:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1420 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1421 |
"Created: / 07-05-2011 / 14:48:58 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1422 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1423 |
|
9907 | 1424 |
editedFileHolder |
1425 |
"gets the holder, which keeps the current edited file |
|
1426 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1427 |
editedFileHolder isNil ifTrue:[ |
14484 | 1428 |
editedFileHolder := nil asValue. |
1429 |
editedFileHolder addDependent:self. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1430 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1431 |
^ editedFileHolder. |
9907 | 1432 |
|
1433 |
"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
|
1434 |
"Modified: / 07-05-2011 / 10:15:30 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1435 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1436 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1437 |
editedFileHolder:aHolder |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1438 |
"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
|
1439 |
" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1440 |
editedFileHolder notNil ifTrue:[ |
14484 | 1441 |
editedFileHolder removeDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1442 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1443 |
editedFileHolder := aHolder. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1444 |
editedFileHolder notNil ifTrue:[ |
14484 | 1445 |
editedFileHolder addDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1446 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1447 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1448 |
"Created: / 07-05-2011 / 10:16:18 / cg" |
9907 | 1449 |
! |
1450 |
||
9892 | 1451 |
filter:aString |
1452 |
tagView filter:aString. |
|
9907 | 1453 |
! |
1454 |
||
16047 | 1455 |
tagsMenu:aMenuOrNil |
1456 |
"set the menu to be shown in the tag list" |
|
1457 |
||
1458 |
tagsMenu := aMenuOrNil. |
|
13630 | 1459 |
! |
1460 |
||
14484 | 1461 |
tagsValid |
13341 | 1462 |
^ tagsValid ? false |
1463 |
! |
|
1464 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1465 |
tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1466 |
commonAspects notNil ifTrue:[ |
14484 | 1467 |
^ commonAspects tempDirectory |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1468 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1469 |
^ Filename tempDirectory |
9907 | 1470 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1471 |
"Created: / 07-05-2011 / 15:42:44 / cg" |
9892 | 1472 |
! ! |
1473 |
||
17812 | 1474 |
!TagsBrowser methodsFor:'accessing presentation aspects'! |
1475 |
||
1476 |
groupedByType |
|
1477 |
^ tagList groupedByType |
|
1478 |
||
1479 |
"Created: / 05-05-2011 / 14:51:29 / cg" |
|
1480 |
! |
|
1481 |
||
1482 |
groupedByType:aBool |
|
1483 |
tagList groupedByType:aBool |
|
1484 |
||
1485 |
"Created: / 05-05-2011 / 14:51:33 / cg" |
|
1486 |
! |
|
1487 |
||
1488 |
sorted |
|
1489 |
^ tagList sorted |
|
1490 |
! |
|
1491 |
||
1492 |
sorted:aBool |
|
1493 |
tagList sorted:aBool |
|
1494 |
! |
|
1495 |
||
1496 |
sortedByLineNumber |
|
1497 |
^ tagList sortedByLineNumber |
|
1498 |
! |
|
1499 |
||
1500 |
sortedByLineNumber:aBool |
|
1501 |
tagList sortedByLineNumber:aBool |
|
1502 |
! |
|
1503 |
||
1504 |
sortedByName |
|
1505 |
^ tagList sortedByName |
|
1506 |
! |
|
1507 |
||
1508 |
sortedByName:aBool |
|
1509 |
tagList sortedByName:aBool |
|
1510 |
! |
|
1511 |
||
1512 |
sortedByNameIgnoringCase |
|
1513 |
^ tagList sortedByNameIgnoringCase |
|
1514 |
! |
|
1515 |
||
1516 |
sortedByNameIgnoringCase:aBool |
|
1517 |
tagList sortedByNameIgnoringCase:aBool |
|
1518 |
! |
|
1519 |
||
1520 |
sortedByNameIgnoringLeadingUnderscores |
|
1521 |
^ tagList sortedByNameIgnoringLeadingUnderscores |
|
1522 |
! |
|
1523 |
||
1524 |
sortedByNameIgnoringLeadingUnderscores:aBool |
|
1525 |
tagList sortedByNameIgnoringLeadingUnderscores:aBool |
|
1526 |
! |
|
1527 |
||
1528 |
sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1529 |
^ tagList sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1530 |
! |
|
1531 |
||
1532 |
sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1533 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1534 |
! |
|
1535 |
||
1536 |
sortedByType |
|
1537 |
^ tagList sortedByType |
|
1538 |
! |
|
1539 |
||
1540 |
sortedByType:aBool |
|
1541 |
tagList sortedByType:aBool |
|
1542 |
! ! |
|
1543 |
||
1544 |
!TagsBrowser methodsFor:'accessing-behavior'! |
|
1545 |
||
1546 |
action:aOneArgBlock |
|
1547 |
"set the action, which is called with the selected tag, |
|
1548 |
if the user selects one" |
|
1549 |
||
1550 |
action := aOneArgBlock. |
|
1551 |
||
1552 |
"Modified: / 23-06-2011 / 16:36:59 / cg" |
|
1553 |
! ! |
|
1554 |
||
1555 |
!TagsBrowser methodsFor:'accessing-filters'! |
|
9892 | 1556 |
|
14578 | 1557 |
anchorsOnly |
1558 |
^ tagList anchorsOnly |
|
1559 |
! |
|
1560 |
||
1561 |
anchorsOnly:aBool |
|
1562 |
"/ aBool ifTrue:[ |
|
1563 |
"/ tagList hideAnchors:false. |
|
1564 |
"/ ]. |
|
1565 |
tagList anchorsOnly:aBool. |
|
1566 |
self updateTagList |
|
1567 |
||
1568 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1569 |
! |
|
1570 |
||
17553 | 1571 |
classesAndFunctionsOnly |
1572 |
^ tagList classesAndFunctionsOnly |
|
1573 |
||
1574 |
"Created: / 22-06-2017 / 10:31:51 / cg" |
|
1575 |
! |
|
1576 |
||
1577 |
classesAndFunctionsOnly:aBool |
|
1578 |
aBool ifTrue:[ |
|
1579 |
tagList hideClasses:false. |
|
1580 |
tagList hideFunctions:false. |
|
1581 |
]. |
|
1582 |
tagList classesAndFunctionsOnly:aBool. |
|
1583 |
self updateTagList |
|
1584 |
||
1585 |
"Created: / 22-06-2017 / 10:31:59 / cg" |
|
1586 |
! |
|
1587 |
||
1588 |
classesAndMethodsOnly |
|
1589 |
^ tagList classesAndMethodsOnly |
|
1590 |
||
1591 |
"Created: / 22-06-2017 / 10:31:35 / cg" |
|
1592 |
! |
|
1593 |
||
1594 |
classesAndMethodsOnly:aBool |
|
1595 |
aBool ifTrue:[ |
|
1596 |
tagList hideClasses:false. |
|
1597 |
tagList hideMethods:false. |
|
1598 |
]. |
|
1599 |
tagList classesAndMethodsOnly:aBool. |
|
1600 |
self updateTagList |
|
1601 |
||
1602 |
"Created: / 22-06-2017 / 10:31:22 / cg" |
|
1603 |
! |
|
1604 |
||
9892 | 1605 |
classesFunctionsAndVariablesOnly |
1606 |
^ tagList classesFunctionsAndVariablesOnly |
|
1607 |
! |
|
1608 |
||
1609 |
classesFunctionsAndVariablesOnly:aBool |
|
1610 |
aBool ifTrue:[ |
|
14484 | 1611 |
tagList hideClasses:false. |
1612 |
tagList hideFunctions:false. |
|
1613 |
tagList hideVariables:false. |
|
9892 | 1614 |
]. |
1615 |
tagList classesFunctionsAndVariablesOnly:aBool. |
|
1616 |
self updateTagList |
|
1617 |
||
1618 |
"Modified: / 05-05-2011 / 15:33:13 / cg" |
|
1619 |
! |
|
1620 |
||
1621 |
classesOnly |
|
1622 |
^ tagList classesOnly |
|
1623 |
! |
|
1624 |
||
1625 |
classesOnly:aBool |
|
1626 |
aBool ifTrue:[ |
|
14484 | 1627 |
tagList hideClasses:false. |
9892 | 1628 |
]. |
1629 |
tagList classesOnly:aBool. |
|
1630 |
self updateTagList |
|
1631 |
||
1632 |
"Modified: / 05-05-2011 / 15:33:07 / cg" |
|
1633 |
! |
|
1634 |
||
13076 | 1635 |
dartClassesAndMethodsOnly |
17553 | 1636 |
^ self classesAndMethodsOnly |
1637 |
"/ ^ tagList dartClassesAndMethodsOnly |
|
1638 |
||
1639 |
"Modified: / 22-06-2017 / 10:30:13 / cg" |
|
13076 | 1640 |
! |
1641 |
||
1642 |
dartClassesAndMethodsOnly:aBool |
|
17553 | 1643 |
self classesAndMethodsOnly:aBool |
1644 |
"/ aBool ifTrue:[ |
|
1645 |
"/ tagList hideDartClasses:false. |
|
1646 |
"/ tagList hideDartMethods:false. |
|
1647 |
"/ ]. |
|
1648 |
"/ tagList dartClassesAndMethodsOnly:aBool. |
|
1649 |
"/ self updateTagList |
|
1650 |
||
1651 |
"Modified: / 22-06-2017 / 10:30:25 / cg" |
|
13076 | 1652 |
! |
1653 |
||
11761 | 1654 |
dartClassesOnly |
17553 | 1655 |
^ self classesOnly |
1656 |
"/ ^ tagList dartClassesOnly |
|
1657 |
||
1658 |
"Modified: / 22-06-2017 / 10:32:35 / cg" |
|
11761 | 1659 |
! |
1660 |
||
1661 |
dartClassesOnly:aBool |
|
17553 | 1662 |
self classesOnly:aBool |
1663 |
"/ aBool ifTrue:[ |
|
1664 |
"/ tagList hideDartClasses:false. |
|
1665 |
"/ ]. |
|
1666 |
"/ tagList dartClassesOnly:aBool. |
|
1667 |
"/ self updateTagList |
|
1668 |
||
1669 |
"Modified: / 22-06-2017 / 10:32:26 / cg" |
|
11761 | 1670 |
! |
1671 |
||
13076 | 1672 |
dartMethodsOnly |
17553 | 1673 |
^ self methodsOnly |
1674 |
"/ ^ tagList dartMethodsOnly |
|
1675 |
||
1676 |
"Modified: / 22-06-2017 / 10:32:44 / cg" |
|
13076 | 1677 |
! |
1678 |
||
1679 |
dartMethodsOnly:aBool |
|
17553 | 1680 |
self methodsOnly:aBool |
1681 |
"/ aBool ifTrue:[ |
|
1682 |
"/ tagList hideDartMethods:false. |
|
1683 |
"/ ]. |
|
1684 |
"/ tagList dartMethodsOnly:aBool. |
|
1685 |
"/ self updateTagList |
|
1686 |
||
1687 |
"Modified: / 22-06-2017 / 10:32:59 / cg" |
|
13076 | 1688 |
! |
1689 |
||
9892 | 1690 |
definesOnly |
1691 |
^ tagList definesOnly |
|
1692 |
! |
|
1693 |
||
1694 |
definesOnly:aBool |
|
1695 |
aBool ifTrue:[ |
|
14484 | 1696 |
tagList hideDefines:false. |
9892 | 1697 |
]. |
1698 |
tagList definesOnly:aBool. |
|
1699 |
self updateTagList |
|
1700 |
! |
|
1701 |
||
9920 | 1702 |
documentationOnly |
1703 |
^ tagList documentationOnly |
|
1704 |
||
1705 |
"Created: / 08-05-2011 / 10:50:52 / cg" |
|
1706 |
! |
|
1707 |
||
1708 |
documentationOnly:aBool |
|
1709 |
aBool ifTrue:[ |
|
14484 | 1710 |
tagList hideDocumentation:false. |
9920 | 1711 |
]. |
1712 |
tagList documentationOnly:aBool. |
|
1713 |
self updateTagList |
|
1714 |
||
1715 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1716 |
! |
|
1717 |
||
9892 | 1718 |
functionsAndVariablesOnly |
1719 |
^ tagList functionsAndVariablesOnly |
|
1720 |
! |
|
1721 |
||
1722 |
functionsAndVariablesOnly:aBool |
|
1723 |
aBool ifTrue:[ |
|
14484 | 1724 |
tagList hideFunctions:false. |
1725 |
tagList hideVariables:false. |
|
9892 | 1726 |
]. |
1727 |
tagList functionsAndVariablesOnly:aBool. |
|
1728 |
self updateTagList |
|
1729 |
! |
|
1730 |
||
1731 |
functionsOnly |
|
1732 |
^ tagList functionsOnly |
|
1733 |
! |
|
1734 |
||
1735 |
functionsOnly:aBool |
|
10766 | 1736 |
self functionsOnlyHolder value:aBool. |
9892 | 1737 |
aBool ifTrue:[ |
14544 | 1738 |
self structsOnlyHolder value:false. |
1739 |
tagList hideFunctions:false. |
|
9892 | 1740 |
]. |
1741 |
tagList functionsOnly:aBool. |
|
1742 |
self updateTagList |
|
10766 | 1743 |
|
1744 |
"Modified: / 06-10-2011 / 14:03:45 / cg" |
|
9892 | 1745 |
! |
1746 |
||
14578 | 1747 |
headlinesOnly |
1748 |
^ tagList headlinesOnly |
|
1749 |
! |
|
1750 |
||
1751 |
headlinesOnly:aBool |
|
1752 |
"/ aBool ifTrue:[ |
|
1753 |
"/ tagList hideDocumentation:false. |
|
1754 |
"/ ]. |
|
1755 |
tagList headlinesOnly:aBool. |
|
1756 |
self updateTagList |
|
1757 |
! |
|
1758 |
||
9892 | 1759 |
hideClasses |
1760 |
^ tagList hideClasses |
|
1761 |
! |
|
1762 |
||
1763 |
hideClasses:aBool |
|
1764 |
tagList hideClasses:aBool. |
|
1765 |
self updateTagList |
|
1766 |
! |
|
1767 |
||
11761 | 1768 |
hideDartClasses |
17553 | 1769 |
^ self hideClasses |
1770 |
"/ ^ tagList hideDartClasses |
|
1771 |
||
1772 |
"Modified: / 22-06-2017 / 10:55:36 / cg" |
|
11761 | 1773 |
! |
1774 |
||
1775 |
hideDartClasses:aBool |
|
17553 | 1776 |
self hideClasses:aBool |
1777 |
"/ tagList hideDartClasses:aBool. |
|
1778 |
"/ self updateTagList |
|
1779 |
||
1780 |
"Modified: / 22-06-2017 / 10:55:48 / cg" |
|
11761 | 1781 |
! |
1782 |
||
1783 |
hideDartFields |
|
17553 | 1784 |
^ self hideFields |
1785 |
"/ ^ tagList hideDartFields |
|
1786 |
||
1787 |
"Modified: / 22-06-2017 / 10:57:09 / cg" |
|
11761 | 1788 |
! |
1789 |
||
1790 |
hideDartFields:aBool |
|
17553 | 1791 |
self hideFields:aBool |
1792 |
"/ tagList hideDartFields:aBool. |
|
1793 |
"/ self updateTagList |
|
1794 |
||
1795 |
"Modified: / 22-06-2017 / 11:17:11 / cg" |
|
11761 | 1796 |
! |
1797 |
||
1798 |
hideDartInterfaces |
|
17553 | 1799 |
^ self hideInterfaces |
1800 |
"/ ^ tagList hideDartInterfaces |
|
1801 |
||
1802 |
"Modified: / 22-06-2017 / 11:16:29 / cg" |
|
11761 | 1803 |
! |
1804 |
||
1805 |
hideDartInterfaces:aBool |
|
17553 | 1806 |
self hideInterfaces:aBool |
1807 |
"/ tagList hideDartInterfaces:aBool. |
|
1808 |
"/ self updateTagList |
|
1809 |
||
1810 |
"Modified: / 22-06-2017 / 11:17:00 / cg" |
|
11761 | 1811 |
! |
1812 |
||
1813 |
hideDartMethods |
|
17553 | 1814 |
^ self hideMethods |
1815 |
"/ ^ tagList hideDartMethods |
|
1816 |
||
1817 |
"Modified: / 22-06-2017 / 11:16:10 / cg" |
|
11761 | 1818 |
! |
1819 |
||
1820 |
hideDartMethods:aBool |
|
17553 | 1821 |
self hideMethods:aBool |
1822 |
"/ tagList hideDartMethods:aBool. |
|
1823 |
"/ self updateTagList |
|
1824 |
||
1825 |
"Modified: / 22-06-2017 / 11:16:02 / cg" |
|
11761 | 1826 |
! |
1827 |
||
1828 |
hideDartPackages |
|
17553 | 1829 |
^ self hidePackages |
1830 |
"/ ^ tagList hideDartPackages |
|
1831 |
||
1832 |
"Modified: / 22-06-2017 / 11:07:19 / cg" |
|
11761 | 1833 |
! |
1834 |
||
1835 |
hideDartPackages:aBool |
|
17553 | 1836 |
self hidePackages:aBool |
1837 |
"/ tagList hideDartPackages:aBool. |
|
1838 |
"/ self updateTagList |
|
1839 |
||
1840 |
"Modified: / 22-06-2017 / 11:07:41 / cg" |
|
11761 | 1841 |
! |
1842 |
||
9892 | 1843 |
hideDataLabels |
1844 |
^ tagList hideDataLabels |
|
1845 |
! |
|
1846 |
||
1847 |
hideDataLabels:aBool |
|
1848 |
tagList hideDataLabels:aBool. |
|
1849 |
self updateTagList |
|
1850 |
! |
|
1851 |
||
1852 |
hideDefines |
|
1853 |
^ tagList hideDefines |
|
1854 |
! |
|
1855 |
||
1856 |
hideDefines:aBool |
|
1857 |
tagList hideDefines:aBool. |
|
1858 |
self updateTagList |
|
1859 |
! |
|
1860 |
||
9920 | 1861 |
hideDocumentation |
1862 |
^ tagList hideDocumentation |
|
1863 |
||
1864 |
"Created: / 08-05-2011 / 10:56:45 / cg" |
|
1865 |
! |
|
1866 |
||
1867 |
hideDocumentation:aBool |
|
1868 |
tagList hideDocumentation:aBool. |
|
1869 |
self updateTagList |
|
1870 |
||
1871 |
"Created: / 08-05-2011 / 10:56:49 / cg" |
|
1872 |
! |
|
1873 |
||
17553 | 1874 |
hideFields |
1875 |
^ tagList hideFields |
|
1876 |
||
1877 |
"Created: / 22-06-2017 / 10:57:19 / cg" |
|
1878 |
! |
|
1879 |
||
1880 |
hideFields:aBool |
|
1881 |
tagList hideFields:aBool. |
|
1882 |
self updateTagList |
|
1883 |
||
1884 |
"Created: / 22-06-2017 / 10:57:25 / cg" |
|
1885 |
! |
|
1886 |
||
9892 | 1887 |
hideFunctionProtoTypes |
1888 |
^ tagList hideFunctionProtoTypes |
|
1889 |
! |
|
1890 |
||
1891 |
hideFunctionProtoTypes:aBool |
|
1892 |
tagList hideFunctionProtoTypes:aBool. |
|
1893 |
self updateTagList |
|
1894 |
! |
|
1895 |
||
1896 |
hideFunctions |
|
1897 |
^ tagList hideFunctions |
|
1898 |
! |
|
1899 |
||
1900 |
hideFunctions:aBool |
|
1901 |
tagList hideFunctions:aBool. |
|
1902 |
self updateTagList |
|
1903 |
! |
|
1904 |
||
17553 | 1905 |
hideInterfaces |
1906 |
^ tagList hideInterfaces |
|
1907 |
||
1908 |
"Created: / 22-06-2017 / 11:16:37 / cg" |
|
1909 |
! |
|
1910 |
||
1911 |
hideInterfaces:aBool |
|
1912 |
tagList hideInterfaces:aBool. |
|
1913 |
self updateTagList |
|
1914 |
||
1915 |
"Created: / 22-06-2017 / 11:16:46 / cg" |
|
1916 |
! |
|
1917 |
||
9892 | 1918 |
hideJavaClasses |
17553 | 1919 |
^ self hideClasses |
1920 |
"/ ^ tagList hideJavaClasses |
|
1921 |
||
1922 |
"Modified: / 22-06-2017 / 10:56:53 / cg" |
|
9892 | 1923 |
! |
1924 |
||
1925 |
hideJavaClasses:aBool |
|
17553 | 1926 |
self hideClasses:aBool |
1927 |
"/ tagList hideJavaClasses:aBool. |
|
1928 |
"/ self updateTagList |
|
1929 |
||
1930 |
"Modified: / 22-06-2017 / 10:55:56 / cg" |
|
9892 | 1931 |
! |
1932 |
||
1933 |
hideJavaFields |
|
17553 | 1934 |
^ self hideFields |
1935 |
"/ ^ tagList hideJavaFields |
|
1936 |
||
1937 |
"Modified: / 22-06-2017 / 11:13:01 / cg" |
|
9892 | 1938 |
! |
1939 |
||
1940 |
hideJavaFields:aBool |
|
17553 | 1941 |
self hideFields:aBool |
1942 |
"/ tagList hideJavaFields:aBool. |
|
1943 |
"/ self updateTagList |
|
1944 |
||
1945 |
"Modified: / 22-06-2017 / 11:13:13 / cg" |
|
9892 | 1946 |
! |
1947 |
||
1948 |
hideJavaInterfaces |
|
17553 | 1949 |
^ self hideInterfaces |
1950 |
"/ ^ tagList hideJavaInterfaces |
|
1951 |
||
1952 |
"Modified: / 22-06-2017 / 11:12:50 / cg" |
|
9892 | 1953 |
! |
1954 |
||
1955 |
hideJavaInterfaces:aBool |
|
17553 | 1956 |
self hideInterfaces:aBool |
1957 |
"/ tagList hideJavaInterfaces:aBool. |
|
1958 |
"/ self updateTagList |
|
1959 |
||
1960 |
"Modified: / 22-06-2017 / 11:12:40 / cg" |
|
9892 | 1961 |
! |
1962 |
||
1963 |
hideJavaMethods |
|
17553 | 1964 |
^ self hideMethods |
1965 |
"/ ^ tagList hideJavaMethods |
|
1966 |
||
1967 |
"Modified: / 22-06-2017 / 11:12:12 / cg" |
|
9892 | 1968 |
! |
1969 |
||
1970 |
hideJavaMethods:aBool |
|
17553 | 1971 |
self hideMethods:aBool |
1972 |
"/ tagList hideJavaMethods:aBool. |
|
1973 |
"/ self updateTagList |
|
1974 |
||
1975 |
"Modified: / 22-06-2017 / 11:12:29 / cg" |
|
9892 | 1976 |
! |
1977 |
||
1978 |
hideJavaPackages |
|
17553 | 1979 |
^ self hidePackages |
1980 |
"/ ^ tagList hideJavaPackages |
|
1981 |
||
1982 |
"Modified: / 22-06-2017 / 11:07:32 / cg" |
|
9892 | 1983 |
! |
1984 |
||
1985 |
hideJavaPackages:aBool |
|
17553 | 1986 |
self hidePackages:aBool |
1987 |
"/ tagList hideJavaPackages:aBool. |
|
1988 |
"/ self updateTagList |
|
1989 |
||
1990 |
"Modified: / 22-06-2017 / 11:07:49 / cg" |
|
9892 | 1991 |
! |
1992 |
||
14386 | 1993 |
hideLabels |
1994 |
^ tagList hideLabels |
|
1995 |
! |
|
1996 |
||
1997 |
hideLabels:aBool |
|
1998 |
tagList hideLabels:aBool. |
|
1999 |
self updateTagList |
|
2000 |
! |
|
2001 |
||
9892 | 2002 |
hideLispConstants |
2003 |
^ tagList hideLispConstants |
|
2004 |
! |
|
2005 |
||
2006 |
hideLispConstants:aBool |
|
2007 |
tagList hideLispConstants:aBool. |
|
2008 |
self updateTagList |
|
2009 |
! |
|
2010 |
||
2011 |
hideLispEvaluations |
|
2012 |
^ tagList hideLispEvaluations |
|
2013 |
! |
|
2014 |
||
2015 |
hideLispEvaluations:aBool |
|
2016 |
tagList hideLispEvaluations:aBool. |
|
2017 |
self updateTagList |
|
2018 |
! |
|
2019 |
||
2020 |
hideLispMacros |
|
2021 |
^ tagList hideLispMacros |
|
2022 |
! |
|
2023 |
||
2024 |
hideLispMacros:aBool |
|
2025 |
tagList hideLispMacros:aBool. |
|
2026 |
self updateTagList |
|
2027 |
! |
|
2028 |
||
2029 |
hideLispMethods |
|
2030 |
^ tagList hideLispMethods |
|
2031 |
! |
|
2032 |
||
2033 |
hideLispMethods:aBool |
|
2034 |
tagList hideLispMethods:aBool. |
|
2035 |
self updateTagList |
|
2036 |
! |
|
2037 |
||
2038 |
hideLocalLabels |
|
2039 |
^ tagList hideLocalLabels |
|
2040 |
! |
|
2041 |
||
11465 | 2042 |
hideLocalLabels2 |
2043 |
^ tagList hideLocalLabels2 |
|
2044 |
||
2045 |
"Created: / 24-03-2012 / 23:23:43 / cg" |
|
2046 |
! |
|
2047 |
||
2048 |
hideLocalLabels2:aBool |
|
2049 |
tagList hideLocalLabels2:aBool. |
|
2050 |
self updateTagList |
|
2051 |
||
2052 |
"Created: / 24-03-2012 / 23:23:26 / cg" |
|
2053 |
! |
|
2054 |
||
11503 | 2055 |
hideLocalLabels3 |
2056 |
^ tagList hideLocalLabels3 |
|
2057 |
||
2058 |
"Created: / 13-05-2012 / 11:09:54 / cg" |
|
2059 |
! |
|
2060 |
||
2061 |
hideLocalLabels3:aBool |
|
2062 |
tagList hideLocalLabels3:aBool. |
|
2063 |
self updateTagList |
|
2064 |
||
2065 |
"Created: / 13-05-2012 / 11:10:01 / cg" |
|
2066 |
! |
|
2067 |
||
9892 | 2068 |
hideLocalLabels:aBool |
2069 |
tagList hideLocalLabels:aBool. |
|
2070 |
self updateTagList |
|
2071 |
! |
|
2072 |
||
14348 | 2073 |
hideLuaFunctions |
17553 | 2074 |
^ self hideFunctions |
2075 |
"/ ^ tagList hideLuaFunctions |
|
2076 |
||
2077 |
"Modified: / 22-06-2017 / 11:13:30 / cg" |
|
14348 | 2078 |
! |
2079 |
||
2080 |
hideLuaFunctions:aBool |
|
17553 | 2081 |
self hideFunctions:aBool |
2082 |
"/ tagList hideLuaFunctions:aBool. |
|
2083 |
"/ self updateTagList |
|
2084 |
||
2085 |
"Modified: / 22-06-2017 / 11:13:40 / cg" |
|
14348 | 2086 |
! |
2087 |
||
2088 |
hideLuaVariables |
|
17553 | 2089 |
^ self hideVariables |
2090 |
"/ ^ tagList hideLuaVariables |
|
2091 |
||
2092 |
"Modified: / 22-06-2017 / 11:13:53 / cg" |
|
14348 | 2093 |
! |
2094 |
||
2095 |
hideLuaVariables:aBool |
|
17553 | 2096 |
self hideVariables:aBool |
2097 |
"/ tagList hideLuaVariables:aBool. |
|
2098 |
"/ self updateTagList |
|
2099 |
||
2100 |
"Modified: / 22-06-2017 / 11:14:02 / cg" |
|
14348 | 2101 |
! |
2102 |
||
11761 | 2103 |
hideMethods |
2104 |
^ tagList hideMethods |
|
2105 |
||
2106 |
"Created: / 21-08-2012 / 21:02:54 / cg" |
|
2107 |
! |
|
2108 |
||
2109 |
hideMethods:aBool |
|
2110 |
tagList hideMethods:aBool. |
|
2111 |
self updateTagList |
|
2112 |
||
2113 |
"Created: / 21-08-2012 / 21:01:45 / cg" |
|
2114 |
! |
|
2115 |
||
16281 | 2116 |
hideObjcClasses |
17553 | 2117 |
^ self hideClasses |
2118 |
"/ ^ tagList hideObjcClasses |
|
2119 |
||
2120 |
"Modified: / 22-06-2017 / 10:56:47 / cg" |
|
16281 | 2121 |
! |
2122 |
||
2123 |
hideObjcClasses:aBool |
|
17553 | 2124 |
self hideClasses:aBool |
2125 |
"/ tagList hideObjcClasses:aBool. |
|
2126 |
"/ self updateTagList |
|
2127 |
||
2128 |
"Modified: / 22-06-2017 / 10:56:07 / cg" |
|
16281 | 2129 |
! |
2130 |
||
9892 | 2131 |
hideOzClasses |
17553 | 2132 |
^ self hideClasses |
2133 |
"/ ^ tagList hideOzClasses |
|
2134 |
||
2135 |
"Modified: / 22-06-2017 / 10:56:44 / cg" |
|
9892 | 2136 |
! |
2137 |
||
2138 |
hideOzClasses:aBool |
|
17553 | 2139 |
self hideClasses:aBool |
2140 |
"/ tagList hideOzClasses:aBool. |
|
2141 |
"/ self updateTagList |
|
2142 |
||
2143 |
"Modified: / 22-06-2017 / 10:56:14 / cg" |
|
9892 | 2144 |
! |
2145 |
||
2146 |
hideOzFunctions |
|
17553 | 2147 |
^ self hideFunctions |
2148 |
"/ ^ tagList hideOzFunctions |
|
2149 |
||
2150 |
"Modified: / 22-06-2017 / 11:14:15 / cg" |
|
9892 | 2151 |
! |
2152 |
||
2153 |
hideOzFunctions:aBool |
|
17553 | 2154 |
self hideFunctions:aBool |
2155 |
"/ tagList hideOzFunctions:aBool. |
|
2156 |
"/ self updateTagList |
|
2157 |
||
2158 |
"Modified: / 22-06-2017 / 11:14:30 / cg" |
|
9892 | 2159 |
! |
2160 |
||
2161 |
hideOzMethods |
|
17553 | 2162 |
^ self hideMethods |
2163 |
"/ ^ tagList hideOzMethods |
|
2164 |
||
2165 |
"Modified: / 22-06-2017 / 11:14:42 / cg" |
|
9892 | 2166 |
! |
2167 |
||
2168 |
hideOzMethods:aBool |
|
17553 | 2169 |
self hideMethods:aBool |
2170 |
"/ tagList hideOzMethods:aBool. |
|
2171 |
"/ self updateTagList |
|
2172 |
||
2173 |
"Modified: / 22-06-2017 / 11:14:52 / cg" |
|
2174 |
! |
|
2175 |
||
2176 |
hidePackages |
|
2177 |
^ tagList hidePackages |
|
2178 |
||
2179 |
"Created: / 22-06-2017 / 10:55:00 / cg" |
|
2180 |
! |
|
2181 |
||
2182 |
hidePackages:aBool |
|
2183 |
tagList hidePackages:aBool. |
|
9892 | 2184 |
self updateTagList |
17553 | 2185 |
|
2186 |
"Created: / 22-06-2017 / 10:55:21 / cg" |
|
9892 | 2187 |
! |
2188 |
||
2189 |
hidePythonClasses |
|
17553 | 2190 |
^ self hideClasses |
2191 |
"/ ^ tagList hidePythonClasses |
|
2192 |
||
2193 |
"Modified: / 22-06-2017 / 10:56:37 / cg" |
|
9892 | 2194 |
! |
2195 |
||
2196 |
hidePythonClasses:aBool |
|
17553 | 2197 |
self hideClasses:aBool |
2198 |
"/ tagList hidePythonClasses:aBool. |
|
2199 |
"/ self updateTagList |
|
2200 |
||
2201 |
"Modified: / 22-06-2017 / 10:56:21 / cg" |
|
9892 | 2202 |
! |
2203 |
||
2204 |
hidePythonFunctions |
|
17553 | 2205 |
^ self hideFunctions |
2206 |
"/ ^ tagList hidePythonFunctions |
|
2207 |
||
2208 |
"Modified: / 22-06-2017 / 11:15:00 / cg" |
|
9892 | 2209 |
! |
2210 |
||
2211 |
hidePythonFunctions:aBool |
|
17553 | 2212 |
self hideFunctions:aBool |
2213 |
"/ tagList hidePythonFunctions:aBool. |
|
2214 |
"/ self updateTagList |
|
2215 |
||
2216 |
"Modified: / 22-06-2017 / 11:15:11 / cg" |
|
9892 | 2217 |
! |
2218 |
||
2219 |
hidePythonMethods |
|
17553 | 2220 |
^ self hideMethods |
2221 |
"/ ^ tagList hidePythonMethods |
|
2222 |
||
2223 |
"Modified: / 22-06-2017 / 11:15:19 / cg" |
|
9892 | 2224 |
! |
2225 |
||
2226 |
hidePythonMethods:aBool |
|
17553 | 2227 |
self hideMethods:aBool |
2228 |
"/ tagList hidePythonMethods:aBool. |
|
2229 |
"/ self updateTagList |
|
2230 |
||
2231 |
"Modified: / 22-06-2017 / 11:15:28 / cg" |
|
9892 | 2232 |
! |
2233 |
||
2234 |
hideStatic |
|
2235 |
^ tagList hideStatic |
|
2236 |
! |
|
2237 |
||
2238 |
hideStatic:aBool |
|
2239 |
tagList hideStatic:aBool. |
|
2240 |
self updateTagList |
|
2241 |
! |
|
2242 |
||
2243 |
hideStructMembers |
|
2244 |
^ tagList hideStructMembers |
|
2245 |
! |
|
2246 |
||
2247 |
hideStructMembers:aBool |
|
2248 |
tagList hideStructMembers:aBool. |
|
2249 |
self updateTagList |
|
2250 |
! |
|
2251 |
||
2252 |
hideStructures |
|
2253 |
^ tagList hideStructures |
|
2254 |
! |
|
2255 |
||
2256 |
hideStructures:aBool |
|
2257 |
tagList hideStructures:aBool. |
|
2258 |
self updateTagList |
|
2259 |
! |
|
2260 |
||
2261 |
hideTextLabels |
|
2262 |
^ tagList hideTextLabels |
|
2263 |
! |
|
2264 |
||
2265 |
hideTextLabels:aBool |
|
2266 |
tagList hideTextLabels:aBool. |
|
2267 |
self updateTagList |
|
2268 |
! |
|
2269 |
||
2270 |
hideTypedefs |
|
2271 |
^ tagList hideTypedefs |
|
2272 |
! |
|
2273 |
||
2274 |
hideTypedefs:aBool |
|
2275 |
tagList hideTypedefs:aBool. |
|
2276 |
self updateTagList |
|
2277 |
! |
|
2278 |
||
2279 |
hideVariables |
|
2280 |
^ tagList hideVariables |
|
2281 |
! |
|
2282 |
||
2283 |
hideVariables:aBool |
|
2284 |
tagList hideVariables:aBool. |
|
2285 |
self updateTagList |
|
2286 |
! |
|
2287 |
||
2288 |
javaClassesAndMethodsOnly |
|
17553 | 2289 |
^ self classesAndMethodsOnly |
2290 |
"/ ^ tagList javaClassesAndMethodsOnly |
|
2291 |
||
2292 |
"Modified: / 22-06-2017 / 10:28:30 / cg" |
|
9892 | 2293 |
! |
2294 |
||
2295 |
javaClassesAndMethodsOnly:aBool |
|
17553 | 2296 |
self classesAndMethodsOnly:aBool |
2297 |
"/ aBool ifTrue:[ |
|
2298 |
"/ tagList hideJavaClasses:false. |
|
2299 |
"/ tagList hideJavaMethods:false. |
|
2300 |
"/ ]. |
|
2301 |
"/ tagList javaClassesAndMethodsOnly:aBool. |
|
2302 |
"/ self updateTagList |
|
2303 |
||
2304 |
"Modified: / 22-06-2017 / 10:26:00 / cg" |
|
9892 | 2305 |
! |
2306 |
||
2307 |
javaClassesOnly |
|
17553 | 2308 |
^ self classesOnly |
2309 |
"/ ^ tagList javaClassesOnly |
|
2310 |
||
2311 |
"Modified: / 22-06-2017 / 10:28:23 / cg" |
|
9892 | 2312 |
! |
2313 |
||
2314 |
javaClassesOnly:aBool |
|
17553 | 2315 |
self classesOnly:aBool |
2316 |
"/ aBool ifTrue:[ |
|
2317 |
"/ tagList hideJavaClasses:false. |
|
2318 |
"/ ]. |
|
2319 |
"/ tagList javaClassesOnly:aBool. |
|
2320 |
"/ self updateTagList |
|
2321 |
||
2322 |
"Modified: / 22-06-2017 / 10:28:17 / cg" |
|
9892 | 2323 |
! |
2324 |
||
2325 |
javaMethodsOnly |
|
17553 | 2326 |
^ self methodsOnly |
2327 |
"/ ^ tagList javaMethodsOnly |
|
2328 |
||
2329 |
"Modified: / 22-06-2017 / 10:28:54 / cg" |
|
9892 | 2330 |
! |
2331 |
||
2332 |
javaMethodsOnly:aBool |
|
17553 | 2333 |
self methodsOnly:aBool |
2334 |
"/ aBool ifTrue:[ |
|
2335 |
"/ tagList hideJavaMethods:false. |
|
2336 |
"/ ]. |
|
2337 |
"/ tagList javaMethodsOnly:aBool. |
|
2338 |
"/ self updateTagList |
|
2339 |
||
2340 |
"Modified: / 22-06-2017 / 10:29:05 / cg" |
|
9892 | 2341 |
! |
2342 |
||
14348 | 2343 |
luaFunctionsOnly |
17553 | 2344 |
^ self functionsOnly |
2345 |
"/ ^ tagList luaFunctionsOnly |
|
2346 |
||
2347 |
"Modified: / 22-06-2017 / 10:29:22 / cg" |
|
14348 | 2348 |
! |
2349 |
||
2350 |
luaFunctionsOnly:aBool |
|
17553 | 2351 |
self functionsOnly:aBool |
2352 |
"/ aBool ifTrue:[ |
|
2353 |
"/ tagList hideLuaFunctions:false. |
|
2354 |
"/ ]. |
|
2355 |
"/ tagList luaFunctionsOnly:aBool. |
|
2356 |
"/ self updateTagList |
|
2357 |
||
2358 |
"Modified: / 22-06-2017 / 10:29:33 / cg" |
|
14348 | 2359 |
! |
2360 |
||
9892 | 2361 |
macrosOnly |
2362 |
^ tagList macrosOnly |
|
2363 |
||
2364 |
"Created: / 07-06-2010 / 12:08:42 / cg" |
|
2365 |
! |
|
2366 |
||
2367 |
macrosOnly:aBool |
|
2368 |
aBool ifTrue:[ |
|
14484 | 2369 |
tagList hideLispMacros:false. |
9892 | 2370 |
]. |
2371 |
tagList macrosOnly:aBool. |
|
2372 |
self updateTagList |
|
2373 |
||
2374 |
"Created: / 07-06-2010 / 12:09:08 / cg" |
|
2375 |
! |
|
2376 |
||
2377 |
methodsOnly |
|
2378 |
^ tagList methodsOnly |
|
2379 |
||
2380 |
"Created: / 07-06-2010 / 12:11:55 / cg" |
|
2381 |
! |
|
2382 |
||
2383 |
methodsOnly:aBool |
|
2384 |
aBool ifTrue:[ |
|
14484 | 2385 |
tagList hideLispMethods:false. |
9892 | 2386 |
]. |
2387 |
tagList methodsOnly:aBool. |
|
2388 |
self updateTagList |
|
2389 |
||
2390 |
"Created: / 07-06-2010 / 12:12:03 / cg" |
|
2391 |
! |
|
2392 |
||
2393 |
pythonClassesOnly |
|
17553 | 2394 |
^ self classesOnly |
2395 |
"/ ^ tagList pythonClassesOnly |
|
2396 |
||
2397 |
"Modified: / 22-06-2017 / 10:33:33 / cg" |
|
9892 | 2398 |
! |
2399 |
||
2400 |
pythonClassesOnly:aBool |
|
17553 | 2401 |
self classesOnly:aBool |
2402 |
"/ aBool ifTrue:[ |
|
2403 |
"/ tagList hidePythonClasses:false. |
|
2404 |
"/ ]. |
|
2405 |
"/ tagList pythonClassesOnly:aBool. |
|
2406 |
"/ self updateTagList |
|
2407 |
||
2408 |
"Modified: / 22-06-2017 / 10:33:44 / cg" |
|
9892 | 2409 |
! |
2410 |
||
2411 |
pythonFunctionsOnly |
|
17553 | 2412 |
^ self functionsOnly |
2413 |
"/ ^ tagList pythonFunctionsOnly |
|
2414 |
||
2415 |
"Modified: / 22-06-2017 / 10:29:53 / cg" |
|
9892 | 2416 |
! |
2417 |
||
2418 |
pythonFunctionsOnly:aBool |
|
17553 | 2419 |
self functionsOnly:aBool |
2420 |
"/ aBool ifTrue:[ |
|
2421 |
"/ tagList hidePythonFunctions:false. |
|
2422 |
"/ ]. |
|
2423 |
"/ tagList pythonFunctionsOnly:aBool. |
|
2424 |
"/ self updateTagList |
|
2425 |
||
2426 |
"Modified: / 22-06-2017 / 10:29:44 / cg" |
|
9892 | 2427 |
! |
2428 |
||
2429 |
pythonMethodsOnly |
|
17553 | 2430 |
^ self methodsOnly |
2431 |
"/ ^ tagList pythonMethodsOnly |
|
2432 |
||
2433 |
"Modified: / 22-06-2017 / 10:33:58 / cg" |
|
9892 | 2434 |
! |
2435 |
||
2436 |
pythonMethodsOnly:aBool |
|
17553 | 2437 |
self methodsOnly:aBool |
2438 |
"/ aBool ifTrue:[ |
|
2439 |
"/ tagList hidePythonMethods:false. |
|
2440 |
"/ ]. |
|
2441 |
"/ tagList pythonMethodsOnly:aBool. |
|
2442 |
"/ self updateTagList |
|
2443 |
||
2444 |
"Modified: / 22-06-2017 / 10:34:11 / cg" |
|
9892 | 2445 |
! |
2446 |
||
2447 |
structsOnly |
|
2448 |
^ tagList structsOnly |
|
2449 |
||
2450 |
"Created: / 25-06-2010 / 10:54:46 / cg" |
|
2451 |
! |
|
2452 |
||
2453 |
structsOnly:aBool |
|
14544 | 2454 |
self structsOnlyHolder value:aBool. |
2455 |
aBool ifTrue:[ |
|
2456 |
self functionsOnlyHolder value:false. |
|
2457 |
tagList hideStructures:false. |
|
2458 |
]. |
|
9892 | 2459 |
tagList structsOnly:aBool. |
2460 |
self updateTagList |
|
2461 |
! |
|
2462 |
||
2463 |
tagTypesPresent |
|
2464 |
^ tagList tagTypesPresent |
|
2465 |
! |
|
2466 |
||
2467 |
tagTypesPresentHolder |
|
2468 |
^ [ self tagTypesPresent ] |
|
2469 |
! |
|
2470 |
||
2471 |
targetsOnly |
|
2472 |
^ tagList targetsOnly |
|
2473 |
! |
|
2474 |
||
2475 |
targetsOnly:aBool |
|
2476 |
tagList targetsOnly:aBool. |
|
2477 |
self updateTagList |
|
2478 |
! |
|
2479 |
||
2480 |
typesOnly |
|
2481 |
^ tagList typesOnly |
|
2482 |
! |
|
2483 |
||
2484 |
typesOnly:aBool |
|
2485 |
aBool ifTrue:[ |
|
14484 | 2486 |
tagList hideTypedefs:false. |
9892 | 2487 |
]. |
2488 |
tagList typesOnly:aBool. |
|
2489 |
self updateTagList |
|
2490 |
! |
|
2491 |
||
2492 |
variablesOnly |
|
2493 |
^ tagList variablesOnly |
|
2494 |
! |
|
2495 |
||
2496 |
variablesOnly:aBool |
|
2497 |
aBool ifTrue:[ |
|
14484 | 2498 |
tagList hideVariables:false. |
9892 | 2499 |
]. |
2500 |
tagList variablesOnly:aBool. |
|
2501 |
self updateTagList |
|
2502 |
||
2503 |
"Modified: / 05-05-2011 / 15:33:18 / cg" |
|
2504 |
! ! |
|
2505 |
||
2506 |
!TagsBrowser methodsFor:'aspects'! |
|
2507 |
||
2508 |
editedFileHasAssemblerSuffix |
|
2509 |
^builder booleanValueAspectFor: #editedFileHasAssemblerSuffix |
|
2510 |
||
2511 |
||
2512 |
! |
|
2513 |
||
2514 |
editedFileHasCSuffix |
|
2515 |
^builder booleanValueAspectFor: #editedFileHasCSuffix |
|
2516 |
||
2517 |
||
2518 |
! |
|
2519 |
||
11761 | 2520 |
editedFileHasDartSuffix |
2521 |
^builder booleanValueAspectFor: #editedFileHasDartSuffix |
|
2522 |
! |
|
2523 |
||
9892 | 2524 |
editedFileHasEiffelSuffix |
2525 |
^builder booleanValueAspectFor: #editedFileHasEiffelSuffix |
|
2526 |
||
2527 |
||
2528 |
! |
|
2529 |
||
2530 |
editedFileHasFortranSuffix |
|
2531 |
^builder booleanValueAspectFor: #editedFileHasFortranSuffix |
|
2532 |
||
2533 |
||
2534 |
! |
|
2535 |
||
14578 | 2536 |
editedFileHasHtmlSuffix |
2537 |
^builder booleanValueAspectFor: #editedFileHasHtmlSuffix |
|
2538 |
! |
|
2539 |
||
9892 | 2540 |
editedFileHasJavaScriptSuffix |
2541 |
^builder booleanValueAspectFor: #editedFileHasJavaScriptSuffix |
|
2542 |
||
2543 |
"Created: / 28-06-2010 / 13:09:15 / cg" |
|
2544 |
! |
|
2545 |
||
2546 |
editedFileHasJavaSuffix |
|
2547 |
^builder booleanValueAspectFor: #editedFileHasJavaSuffix |
|
2548 |
||
2549 |
||
2550 |
! |
|
2551 |
||
2552 |
editedFileHasLispSuffix |
|
2553 |
^builder booleanValueAspectFor: #editedFileHasLispSuffix |
|
2554 |
||
2555 |
||
2556 |
! |
|
2557 |
||
14348 | 2558 |
editedFileHasLuaSuffix |
2559 |
^builder booleanValueAspectFor: #editedFileHasLuaSuffix |
|
2560 |
! |
|
2561 |
||
16281 | 2562 |
editedFileHasObjcSuffix |
2563 |
^builder booleanValueAspectFor: #editedFileHasObjcSuffix |
|
2564 |
! |
|
2565 |
||
9892 | 2566 |
editedFileHasOzSuffix |
2567 |
^builder booleanValueAspectFor: #editedFileHasOzSuffix |
|
2568 |
! |
|
2569 |
||
2570 |
editedFileHasPythonSuffix |
|
2571 |
^builder booleanValueAspectFor: #editedFileHasPythonSuffix |
|
2572 |
||
2573 |
||
2574 |
! |
|
2575 |
||
2576 |
editedFileHasRubySuffix |
|
2577 |
^builder booleanValueAspectFor: #editedFileHasRubySuffix |
|
2578 |
! |
|
2579 |
||
2580 |
editedFileHasSmalltalkSuffix |
|
2581 |
^builder booleanValueAspectFor: #editedFileHasSmalltalkSuffix |
|
2582 |
||
2583 |
||
2584 |
! |
|
2585 |
||
2586 |
editedFileHasTCLSuffix |
|
2587 |
^builder booleanValueAspectFor: #editedFileHasTCLSuffix |
|
2588 |
||
2589 |
||
2590 |
! |
|
2591 |
||
2592 |
editedFileIsMakefile |
|
2593 |
^builder booleanValueAspectFor: #editedFileIsMakefile |
|
2594 |
! |
|
2595 |
||
10763 | 2596 |
functionsOnlyHolder |
2597 |
^ builder booleanValueAspectFor: #functionsOnly |
|
2598 |
||
2599 |
"Created: / 06-10-2011 / 12:19:23 / cg" |
|
2600 |
! |
|
2601 |
||
9892 | 2602 |
remoteCtagsModel |
2603 |
||
2604 |
|holder| |
|
2605 |
||
2606 |
(holder := builder bindingAt:#remoteCtagsModel) isNil ifTrue:[ |
|
14484 | 2607 |
holder := false asValue. |
2608 |
builder aspectAt:#remoteCtagsModel put:holder. |
|
9892 | 2609 |
]. |
2610 |
^ holder. |
|
2611 |
! |
|
2612 |
||
10435 | 2613 |
sortIsByLineNumber |
2614 |
^ builder booleanValueAspectFor: #sortIsByLineNumber |
|
2615 |
||
2616 |
"Created: / 03-08-2011 / 11:17:48 / cg" |
|
2617 |
! |
|
2618 |
||
2619 |
sortIsByName |
|
2620 |
^ builder booleanValueAspectFor: #sortIsByName |
|
2621 |
||
2622 |
"Created: / 03-08-2011 / 11:17:52 / cg" |
|
2623 |
! |
|
2624 |
||
14544 | 2625 |
structsOnlyHolder |
2626 |
^ builder booleanValueAspectFor: #structsOnly |
|
2627 |
! |
|
2628 |
||
2629 |
structsOnlyVisibleHolder |
|
2630 |
^ builder booleanValueAspectFor: #structsOnlyVisible |
|
2631 |
! |
|
2632 |
||
11721 | 2633 |
tagFilterFieldVisibleHolder |
2634 |
|holder| |
|
2635 |
||
2636 |
(holder := builder bindingAt:#tagFilterFieldVisibleHolder) isNil ifTrue:[ |
|
14484 | 2637 |
holder := false asValue. |
2638 |
builder aspectAt:#tagFilterFieldVisibleHolder put:holder. |
|
2639 |
holder onChangeSend:#tagFilterVisibilityChanged to:self. |
|
11721 | 2640 |
]. |
2641 |
^ holder. |
|
2642 |
||
2643 |
"Created: / 01-08-2012 / 10:52:48 / cg" |
|
2644 |
! |
|
2645 |
||
2646 |
tagFilterPatternHolder |
|
2647 |
|holder| |
|
2648 |
||
2649 |
(holder := builder bindingAt:#tagFilterPatternHolder) isNil ifTrue:[ |
|
14484 | 2650 |
holder := '' asValue. |
2651 |
builder aspectAt:#tagFilterPatternHolder put:holder. |
|
2652 |
holder onChangeSend:#tagFilterChanged to:self. |
|
11721 | 2653 |
]. |
2654 |
^ holder. |
|
2655 |
||
2656 |
"Created: / 01-08-2012 / 16:43:26 / cg" |
|
2657 |
! |
|
2658 |
||
9892 | 2659 |
tagList |
2660 |
"returns the tagList |
|
2661 |
" |
|
2662 |
^ tagList |
|
2663 |
! |
|
2664 |
||
2665 |
tagView |
|
2666 |
"returns the widget which shows the tags |
|
2667 |
" |
|
2668 |
^ tagView |
|
2669 |
! ! |
|
2670 |
||
2671 |
!TagsBrowser methodsFor:'change & update'! |
|
2672 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2673 |
delayedEditedFileChanged |
9892 | 2674 |
"called when the current editing file has changed. |
2675 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2676 |
" |
|
2677 |
||
2678 |
self updateFileTypeHolders. |
|
14480 | 2679 |
tagsValid ifFalse:[ |
14484 | 2680 |
self updateTagList. |
13341 | 2681 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2682 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2683 |
"Created: / 07-05-2011 / 15:36:52 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2684 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2685 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2686 |
editedFileChanged |
13341 | 2687 |
tagsValid := false. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2688 |
self enqueueDelayedAction:[self delayedEditedFileChanged]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2689 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2690 |
"Modified: / 07-05-2011 / 15:37:00 / cg" |
9892 | 2691 |
! |
2692 |
||
11721 | 2693 |
tagFilterChanged |
2694 |
tagList filter:(self tagFilterPatternHolder value) |
|
2695 |
||
2696 |
"Created: / 01-08-2012 / 16:44:54 / cg" |
|
2697 |
! |
|
2698 |
||
2699 |
tagFilterVisibilityChanged |
|
2700 |
self tagFilterFieldVisibleHolder value ifTrue:[ |
|
14484 | 2701 |
"/ self windowGroup |
2702 |
"/ focusView:(self builder componentAt:#TagFilterInputField) |
|
11721 | 2703 |
"/ byTab:true. |
18697 | 2704 |
self enqueueMessage:#assignFocusToTagFilterInputField. |
11721 | 2705 |
]. |
2706 |
||
2707 |
"Created: / 01-08-2012 / 17:00:27 / cg" |
|
18697 | 2708 |
"Modified: / 16-03-2019 / 14:17:39 / Claus Gittinger" |
11721 | 2709 |
! |
2710 |
||
9892 | 2711 |
update:something with:aparameter from:changedObject |
2712 |
changedObject == self editedFileHolder ifTrue:[ |
|
14484 | 2713 |
tagList removeAll. |
2714 |
self editedFileChanged. |
|
2715 |
^ self |
|
9892 | 2716 |
]. |
2717 |
super update:something with:aparameter from:changedObject |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2718 |
|
11721 | 2719 |
"Modified: / 01-08-2012 / 16:58:30 / cg" |
9892 | 2720 |
! |
2721 |
||
2722 |
updateFileTypeHolders |
|
2723 |
"called when the current editing file has changed. |
|
2724 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2725 |
" |
|
2726 |
||
17553 | 2727 |
|edFile mime| |
9892 | 2728 |
|
14386 | 2729 |
edFile := self editedFile. |
9892 | 2730 |
|
2731 |
mime := TagList tagMimeTypeForFile:edFile. |
|
2732 |
||
14544 | 2733 |
"/ valueHolder mime(s) |
9892 | 2734 |
#( |
18113 | 2735 |
(editedFileHasJavaSuffix ('text/java' 'application/x-java-source')) |
14544 | 2736 |
(editedFileHasJavaScriptSuffix ('text/javaScript' 'text/javascript' 'application/x-javascript' 'application/x-javascript-source') ) |
18113 | 2737 |
(editedFileHasDartSuffix ('text/dart' 'application/x-dart' 'application/x-dart-source') ) |
2738 |
(editedFileHasCSuffix ('text/c' 'application/x-c-source' 'text/cpp' 'application/x-cpp-source')) |
|
2739 |
(editedFileHasEiffelSuffix ('text/eiffel' 'application/x-eiffel-source')) |
|
14544 | 2740 |
(editedFileHasFortranSuffix ('text/fortran' 'application/x-fortran-source')) |
18113 | 2741 |
(editedFileHasPythonSuffix ('text/python' 'application/x-python-source')) |
16281 | 2742 |
(editedFileHasObjcSuffix ('text/objcsrc' 'application/x-objcsrc')) |
18113 | 2743 |
(editedFileHasOzSuffix ('text/oz' 'application/x-oz-source')) |
2744 |
(editedFileHasLuaSuffix ('text/lua' 'application/x-lua-source')) |
|
2745 |
(editedFileHasLispSuffix ('text/lisp' 'text/lisp-arc' 'text/scheme' 'application/x-lisp-source' 'application/x-scheme-source') ) |
|
14544 | 2746 |
(editedFileHasSmalltalkSuffix ('text/smalltalk' 'application/x-smalltalk-source')) |
18113 | 2747 |
(editedFileHasTCLSuffix ('text/tcl' 'application/x-tcl-source') ) |
2748 |
(editedFileHasAssemblerSuffix ('text/asm' 'application/x-assembler-source')) |
|
14544 | 2749 |
(editedFileIsMakefile 'text/make') |
18113 | 2750 |
(editedFileHasRubySuffix ('text/ruby' 'application/x-ruby-source')) |
2751 |
"/ (editedFileHasErlangSuffix ('text/erlang' 'application/x-erlang-source')) |
|
14578 | 2752 |
(editedFileHasHtmlSuffix ('text/html' )) |
9892 | 2753 |
) pairsDo:[:holderName :mimeTypeOrTypes | |
14544 | 2754 |
|holder| |
2755 |
||
2756 |
holder := self perform:holderName. |
|
2757 |
mimeTypeOrTypes isString ifTrue:[ |
|
2758 |
holder value:(mime = mimeTypeOrTypes) |
|
2759 |
] ifFalse:[ |
|
2760 |
holder value:(mimeTypeOrTypes includes:mime) |
|
2761 |
]. |
|
9892 | 2762 |
]. |
14544 | 2763 |
self structsOnlyVisibleHolder value:(self editedFileHasCSuffix value). |
9892 | 2764 |
|
17553 | 2765 |
"Modified (comment): / 22-06-2017 / 11:29:52 / cg" |
9943 | 2766 |
! |
2767 |
||
2768 |
updateForLine:lineNr |
|
2769 |
"/ highlight the tag for a particular line in the edittext |
|
2770 |
"/ called via a hook via the masterapp from the editView... |
|
2771 |
||
14480 | 2772 |
self updateForLine:lineNr filtering:nil |
2773 |
! |
|
2774 |
||
2775 |
updateForLine:lineNr filtering:tagFilterOrNil |
|
2776 |
"highlight the tag for a particular line in the edittext |
|
2777 |
called via a hook via the masterapp from the editView... |
|
2778 |
The filter can be used eg. to find only function tags |
|
2779 |
(i.e. to ignore case and goto labels in C)" |
|
2780 |
||
9943 | 2781 |
|bestTag| |
2782 |
||
14480 | 2783 |
bestTag := tagList bestTagForLine:lineNr filtering:tagFilterOrNil. |
9943 | 2784 |
bestTag notNil ifTrue:[ |
14484 | 2785 |
tagView setSelection:(tagList identityIndexOf:bestTag). |
9943 | 2786 |
] ifFalse:[ |
14484 | 2787 |
"/ remember line in case the tag-list is being generated |
2788 |
tagView tagLineNr:lineNr |
|
9943 | 2789 |
]. |
2790 |
||
2791 |
"Modified: / 23-06-2011 / 17:28:26 / cg" |
|
9892 | 2792 |
! ! |
2793 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2794 |
!TagsBrowser methodsFor:'hooks for ccbrowser'! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2795 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2796 |
buildTarget |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2797 |
commonAspects notNil ifTrue:[ |
14484 | 2798 |
^ commonAspects buildTarget |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2799 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2800 |
^ nil |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2801 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2802 |
"Created: / 07-05-2011 / 15:38:20 / cg" |
13341 | 2803 |
! |
2804 |
||
2805 |
tagForFunction:functionName |
|
2806 |
^ tagList tagForFunction:functionName |
|
15772 | 2807 |
! |
2808 |
||
15786 | 2809 |
tagForMacro:typeName |
2810 |
^ tagList tagForMacro:typeName |
|
2811 |
! |
|
2812 |
||
15772 | 2813 |
tagForType:typeName |
2814 |
^ tagList tagForType:typeName |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2815 |
! ! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2816 |
|
13632 | 2817 |
!TagsBrowser methodsFor:'hooks for embedding'! |
2818 |
||
2819 |
tagListGenerator:aBlockOrValueHolder |
|
2820 |
"to use a tagsBrowser as a component in another application, |
|
2821 |
this hook allows for the tag list to be provided by that application. |
|
2822 |
If non-nil, it will be evaluated to generate the tagList instead of |
|
2823 |
reading the tags from the editedFile" |
|
2824 |
||
2825 |
tagListGenerator := aBlockOrValueHolder. |
|
2826 |
! ! |
|
2827 |
||
9892 | 2828 |
!TagsBrowser methodsFor:'menu actions'! |
2829 |
||
10766 | 2830 |
keepingSelectionDo:aBlock |
2831 |
|oldSelection oldLabel| |
|
2832 |
||
2833 |
oldSelection := tagView selectionValue. |
|
2834 |
aBlock value. |
|
2835 |
||
14484 | 2836 |
oldSelection notNil ifTrue:[ |
2837 |
oldLabel := oldSelection label. |
|
2838 |
tagView |
|
2839 |
selectElementForWhich:[:el | el label = oldLabel] |
|
2840 |
ifAbsent:[self halt:'ouch - no such label']. |
|
10766 | 2841 |
]. |
2842 |
||
2843 |
"Created: / 06-10-2011 / 13:41:57 / cg" |
|
2844 |
! |
|
2845 |
||
9892 | 2846 |
middleButtonMenu |
18753 | 2847 |
<resource: #programMenu > |
2848 |
||
14484 | 2849 |
^ [ |
18641 | 2850 |
|menu suffix file item| |
2851 |
||
2852 |
tagsMenu notNil ifTrue:[ |
|
2853 |
tagsMenu |
|
2854 |
] ifFalse:[ |
|
2855 |
menus isNil ifTrue:[ |
|
2856 |
menus := IdentityDictionary new. |
|
2857 |
]. |
|
2858 |
||
2859 |
menu := nil. |
|
2860 |
||
2861 |
(file := self editedFile) notNil ifTrue:[ |
|
2862 |
(tagList supportsFile:file) ifTrue:[ |
|
2863 |
menu := menus |
|
2864 |
at:#exists |
|
2865 |
ifAbsentPut:[ |
|
2866 |
menu := self class middleButtonMenu decodeAsLiteralArray. |
|
2867 |
menu receiver:self. |
|
2868 |
menu findGuiResourcesIn:self. |
|
2869 |
menu |
|
2870 |
]. |
|
2871 |
menu := MenuPanel menu:menu receiver:self. |
|
2872 |
] ifFalse:[ |
|
2873 |
suffix := file suffix. |
|
2874 |
||
2875 |
suffix size ~~ 0 ifTrue:[ |
|
2876 |
menu := menus at:#new ifAbsentPut:[ |
|
2877 |
menu := Menu new. |
|
2878 |
item := MenuItem label:('assign ', (Text string:suffix emphasis:#underline), ' to:'). |
|
2879 |
item enabled:false. |
|
2880 |
menu addItem:item. |
|
2881 |
menu addItem:(MenuItem separator). |
|
2882 |
||
2883 |
tagList class tagsSuffixes keysAndValuesDo:[:aKey :aValue| |
|
2884 |
item := MenuItem label:(' - ', aKey ) |
|
2885 |
itemValue:[ |list| |
|
2886 |
list := aValue asOrderedCollection. |
|
2887 |
list add:(suffix asLowercase). |
|
2888 |
tagList class tagsSuffixes at:aKey put:list. |
|
2889 |
self editedFileChanged. |
|
2890 |
]. |
|
2891 |
menu addItem:item. |
|
2892 |
]. |
|
2893 |
menu |
|
2894 |
]. |
|
2895 |
||
2896 |
] |
|
2897 |
]. |
|
2898 |
]. |
|
2899 |
menu |
|
2900 |
] |
|
9892 | 2901 |
] |
11780 | 2902 |
|
2903 |
"Modified: / 08-09-2012 / 19:51:03 / cg" |
|
18753 | 2904 |
"Modified: / 02-05-2019 / 22:39:43 / Claus Gittinger" |
9892 | 2905 |
! |
2906 |
||
10435 | 2907 |
sortByLineNumber |
10766 | 2908 |
self keepingSelectionDo:[ |
14484 | 2909 |
tagList sortedByLineNumber:true. |
2910 |
self sortIsByName value:false. |
|
2911 |
self sortIsByLineNumber value:true. |
|
10766 | 2912 |
] |
10435 | 2913 |
|
2914 |
"Created: / 03-08-2011 / 11:04:51 / cg" |
|
2915 |
! |
|
2916 |
||
2917 |
sortByName |
|
10766 | 2918 |
self keepingSelectionDo:[ |
14484 | 2919 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase: "sortedByName:" true. |
2920 |
self sortIsByLineNumber value:false. |
|
2921 |
self sortIsByName value:true. |
|
10766 | 2922 |
]. |
10435 | 2923 |
|
2924 |
"Created: / 03-08-2011 / 11:04:37 / cg" |
|
2925 |
! |
|
2926 |
||
9892 | 2927 |
updateTagList |
13341 | 2928 |
"regenerate tags |
9892 | 2929 |
" |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2930 |
|
10766 | 2931 |
|file target oldSelection| |
9892 | 2932 |
|
13632 | 2933 |
tagListGenerator notNil ifTrue:[ |
14578 | 2934 |
tagList setRawList:(tagListGenerator value). |
2935 |
"/ tagView list:(tagListGenerator value). |
|
2936 |
tagsValid := true. |
|
2937 |
^ self. |
|
13632 | 2938 |
]. |
2939 |
||
13341 | 2940 |
tagsValid := false. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2941 |
(true "(self tagsVisibilityHolder value == true)" |
14578 | 2942 |
and:[(file := self editedFile) notNil |
2943 |
and:[tagList supportsFile:file]] |
|
9892 | 2944 |
) ifTrue:[ |
14578 | 2945 |
(target := self buildTarget) notNil ifTrue:[ |
2946 |
(target isRemote and:[self tagsRemoteHolder value]) ifFalse:[ |
|
2947 |
target := nil |
|
2948 |
] |
|
2949 |
]. |
|
2950 |
oldSelection := tagView selectionValue. |
|
2951 |
(tagView generateTagsFor:file onTarget:target |
|
2952 |
finally:[ |
|
2953 |
|tagsForLabel oldLabel bestTag| |
|
2954 |
||
2955 |
oldSelection notNil ifTrue:[ |
|
2956 |
oldLabel := oldSelection label. |
|
2957 |
tagsForLabel := tagView elementsForWhich:[:el | el label = oldLabel]. |
|
2958 |
"/ only reselect, if there is exactly one |
|
2959 |
tagsForLabel size == 1 ifTrue:[ |
|
2960 |
tagView selectElement:tagsForLabel first |
|
2961 |
]. |
|
2962 |
"/ tagView |
|
2963 |
"/ selectElementForWhich:[:el | el label = oldLabel] |
|
2964 |
"/ ifAbsent:["ok, if previous tag is filtered away" "self halt"]. |
|
2965 |
]. |
|
2966 |
tagsValid := true. |
|
2967 |
] |
|
2968 |
) ifFalse:[ |
|
2969 |
"/ did not start a background tag job |
|
2970 |
tagsValid := true. "/ to avoid waiting forever |
|
2971 |
]. |
|
9892 | 2972 |
] ifFalse:[ |
14578 | 2973 |
tagView stopGeneratingTags. |
2974 |
tagView clearList. |
|
2975 |
tagsValid := true. |
|
9892 | 2976 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2977 |
|
10969 | 2978 |
"Modified: / 07-12-2011 / 11:13:18 / cg" |
9892 | 2979 |
! ! |
2980 |
||
2981 |
!TagsBrowser methodsFor:'startup & release'! |
|
2982 |
||
14484 | 2983 |
assignFocusToTagFilterInputField |
13076 | 2984 |
(self builder componentAt:#TagFilterInputField) requestFocus. |
2985 |
"/ (self builder componentAt:#TagFilterInputField) takeFocus |
|
2986 |
||
2987 |
"Created: / 02-08-2012 / 22:00:45 / cg" |
|
2988 |
! |
|
2989 |
||
9892 | 2990 |
cloneWith:anApplication |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2991 |
"/ |browser| |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2992 |
"/ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2993 |
"/ (browser := anApplication tagsBrowser) notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2994 |
"/ self tagsVisibilityHolder value:(browser tagsVisibilityHolder value) |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2995 |
"/ ] |
9892 | 2996 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2997 |
"Modified: / 07-05-2011 / 11:54:48 / cg" |
9892 | 2998 |
! |
2999 |
||
3000 |
initialize |
|
3001 |
super initialize. |
|
3002 |
||
3003 |
tagList := TagList new. |
|
3004 |
tagView := TagView new. |
|
14480 | 3005 |
tagsValid := false. |
9892 | 3006 |
|
3007 |
tagView application:self. |
|
3008 |
tagView list:tagList. |
|
3009 |
||
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3010 |
tagView action:[:i| self tagListSelectionChangedTo:i]. |
10435 | 3011 |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3012 |
"Modified: / 06-12-2011 / 14:57:06 / cg" |
10435 | 3013 |
! |
3014 |
||
3015 |
postBuildWith:aBuilder |
|
3016 |
super postBuildWith:aBuilder. |
|
3017 |
||
3018 |
self sortIsByName value:true. |
|
3019 |
||
3020 |
"Created: / 03-08-2011 / 11:19:44 / cg" |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3021 |
! |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3022 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3023 |
tagListSelectionChangedTo:idx |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3024 |
|tag| |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3025 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3026 |
action notNil ifTrue:[ |
14484 | 3027 |
tagList isEmpty ifTrue:[ |
3028 |
tagList := tagView list |
|
3029 |
]. |
|
3030 |
tag := tagList at:idx ifAbsent:nil. |
|
3031 |
tag notNil ifTrue:[ action value:tag ]. |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3032 |
] |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3033 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3034 |
"Modified: / 03-08-2011 / 11:19:49 / cg" |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3035 |
"Created: / 06-12-2011 / 14:57:26 / cg" |
9892 | 3036 |
! ! |
3037 |
||
3038 |
!TagsBrowser::TagView methodsFor:'accessing'! |
|
3039 |
||
3040 |
application |
|
3041 |
"returns my application, the TagsBrowser |
|
3042 |
" |
|
3043 |
^ application |
|
3044 |
! |
|
3045 |
||
3046 |
application:theTagsBrowser |
|
3047 |
"set my application, the TagsBrowser |
|
3048 |
" |
|
3049 |
application := theTagsBrowser. |
|
3050 |
! |
|
3051 |
||
12068 | 3052 |
clearList |
3053 |
self list:nil |
|
3054 |
! |
|
3055 |
||
9892 | 3056 |
filter:aString |
3057 |
list filter:aString. |
|
3058 |
! |
|
3059 |
||
13354 | 3060 |
list:aList |
13664 | 3061 |
(aList isNil or:[aList isKindOf:Tools::TagList]) ifFalse:[self halt]. |
13354 | 3062 |
super list:aList. |
3063 |
! |
|
3064 |
||
13664 | 3065 |
newDefaultList |
3066 |
^ TagList new |
|
3067 |
! |
|
3068 |
||
9892 | 3069 |
tagLineNr:lineNr |
3070 |
"remember line nr for which a tag should be highlighted. |
|
3071 |
(will set my selection late, when the taglist is available" |
|
3072 |
||
3073 |
tagLineNr := lineNr |
|
3074 |
! ! |
|
3075 |
||
3076 |
!TagsBrowser::TagView methodsFor:'drawing'! |
|
3077 |
||
3078 |
drawLabelAt:anIndex x:x y:y h:h |
|
16858 | 3079 |
"draw the label at position x/y without clearing the background" |
3080 |
||
14526 | 3081 |
|item label typeIdentifier font |
13302 | 3082 |
y0 widthOfTypeIdentifier inset inSelection lineNrString| |
3083 |
||
9892 | 3084 |
item := list at:anIndex ifAbsent:nil. |
3085 |
item isNil ifTrue:[^ self]. |
|
3086 |
||
14526 | 3087 |
font := gc font. |
3088 |
||
14353 | 3089 |
label := item printString ? ''. |
13302 | 3090 |
(inSelection := self isInSelection:anIndex) ifTrue:[ |
14633 | 3091 |
self hasFocus ifTrue:[ |
17255 | 3092 |
gc paint:hilightFgColor on:hilightBgColor. |
14633 | 3093 |
] ifFalse:[ |
17255 | 3094 |
gc paint:hilightFgColorNoFocus on:hilightBgColorNoFocus |
14633 | 3095 |
]. |
14526 | 3096 |
label := label string. "/ to avoid printing blue on blue |
13302 | 3097 |
] ifFalse:[ |
17255 | 3098 |
gc paint:fgColor on:bgColor. |
13302 | 3099 |
]. |
3100 |
||
3101 |
lineNrString := ' [ %1 ]' bindWith:item lineNumber. |
|
3102 |
inSelection ifFalse:[ |
|
16512 | 3103 |
lineNrString := lineNrString withColor:Color darkGray. |
13302 | 3104 |
]. |
3105 |
label := label asText , lineNrString. |
|
3106 |
||
14526 | 3107 |
y0 := y - (((font height) + 1 - h) // 2) + font ascent. |
13302 | 3108 |
|
3109 |
typeIdentifier := item typeIdentifierInList. |
|
3110 |
typeIdentifier isNil ifTrue:[ |
|
14526 | 3111 |
widthOfTypeIdentifier := 0 |
13302 | 3112 |
] ifFalse:[ |
17537 | 3113 |
typeIdentifier := typeIdentifier allBold. |
16858 | 3114 |
typeIdentifier displayOn:gc x:x y:y0. |
3115 |
widthOfTypeIdentifier := (typeIdentifier widthOn:gc) + font width "... of a space". |
|
9892 | 3116 |
]. |
13302 | 3117 |
inset := TypeInset max:widthOfTypeIdentifier. |
3118 |
||
16858 | 3119 |
label displayOn:gc x:(x + inset) y:y0 |
10759 | 3120 |
|
14546 | 3121 |
"Modified: / 23-06-2014 / 21:23:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17537 | 3122 |
"Modified: / 20-06-2017 / 08:18:21 / cg" |
9892 | 3123 |
! |
3124 |
||
3125 |
drawSelectionFrameAt:lnNr x:x w:w |
|
3126 |
"draw the background and foreground of the selection frame |
|
3127 |
at a lineNr. |
|
3128 |
" |
|
3129 |
|item |
|
3130 |
x0 "{ Class:SmallInteger }" |
|
3131 |
x1 "{ Class: SmallInteger }" |
|
3132 |
y0 "{ Class:SmallInteger }" |
|
3133 |
y1 "{ Class:SmallInteger }" |
|
3134 |
hL "{ Class:SmallInteger }" |
|
3135 |
wL "{ Class:SmallInteger }" |
|
3136 |
| |
|
3137 |
(item := list at:lnNr ifAbsent:nil) isNil ifTrue:[ |
|
14633 | 3138 |
"/ list might change during drawing; item no longer visible |
3139 |
^ self |
|
9892 | 3140 |
]. |
3141 |
||
3142 |
"/ CLEAR THE BACKGROUND |
|
3143 |
||
3144 |
y0 := self yVisibleOfLine:lnNr. |
|
3145 |
y1 := self yVisibleOfLine:(lnNr + 1). |
|
3146 |
hL := y1 - y0. |
|
3147 |
||
13302 | 3148 |
x0 := textStartLeft - viewOrigin x "+ TypeInset - 4". |
9892 | 3149 |
x1 := (self widthOfContents - viewOrigin x) max:(width - margin). |
3150 |
wL := x1 - x0. |
|
3151 |
||
3152 |
wL > 0 ifFalse:[^ self]. |
|
3153 |
||
17255 | 3154 |
gc paint:(self hasFocus ifTrue:[hilightBgColor] ifFalse:[hilightBgColorNoFocus]). |
3155 |
gc fillRectangleX:x0 y:y0 width:wL height:hL. |
|
9892 | 3156 |
|
3157 |
"/ DRAW THE FRAME |
|
3158 |
||
3159 |
hilightFrameColor notNil ifTrue:[ |
|
14633 | 3160 |
hilightLevel == 0 ifTrue:[ |
17255 | 3161 |
gc paint:hilightFrameColor. |
3162 |
gc displayRectangleX:x0 y:y0 width:wL height:hL. |
|
3163 |
^ self. |
|
14633 | 3164 |
] |
9892 | 3165 |
] ifFalse:[ |
14633 | 3166 |
hilightStyle == #motif ifTrue:[ |
17255 | 3167 |
gc paint:bgColor. |
14633 | 3168 |
y1 := y0 + 1. |
17255 | 3169 |
gc displayRectangleX:x0 + 1 y:y1 width:wL - 2 height:hL - 2. |
14633 | 3170 |
] |
9892 | 3171 |
]. |
3172 |
||
3173 |
hilightLevel ~~ 0 ifTrue:[ |
|
14633 | 3174 |
"/ draw edge |
3175 |
self drawEdgesForX:x0 y:y0 width:wL height:hL level:hilightLevel. |
|
9892 | 3176 |
] |
3177 |
! ! |
|
3178 |
||
3179 |
!TagsBrowser::TagView methodsFor:'generating tags'! |
|
3180 |
||
10766 | 3181 |
generateTagsFor:aFile onTarget:aTarget finally:aBlock |
9892 | 3182 |
"generate tags for a file (optionally on a remote target) |
13632 | 3183 |
return true, if a background job for generation has been started" |
3184 |
||
9892 | 3185 |
|tagFile| |
3186 |
||
13632 | 3187 |
"/ ugly hack to suppress generation if the taglist is externally provided |
13664 | 3188 |
(list isKindOf:Tools::TagList) ifFalse:[ |
14484 | 3189 |
^ false |
13664 | 3190 |
]. |
12741 | 3191 |
|
9892 | 3192 |
Tag autoload. |
3193 |
||
3194 |
self stopGeneratingTags. |
|
3195 |
||
3196 |
aFile isNil ifTrue:[ |
|
14484 | 3197 |
^ false |
9892 | 3198 |
]. |
3199 |
fileName := aFile asFilename. |
|
3200 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3201 |
"/ (tagFile := application changes backupFor:fileName) isNil ifTrue:[ |
14484 | 3202 |
tagFile := fileName. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3203 |
"/ ]. |
9892 | 3204 |
|
3205 |
process := [ |
|
14484 | 3206 |
[ |
3207 |
Error handle:[:ex| |
|
3208 |
Transcript show:'TagGenerator error caught:'; showCR:ex errorString. |
|
3209 |
ex suspendedContext fullPrintAllOn:Transcript. |
|
3210 |
(Dialog |
|
3211 |
confirm:(resources stringWithCRs:'Error encountered while generating tags:\\ %1\\Debug ?' with:ex description) |
|
3212 |
yesLabel:'Debug' |
|
3213 |
) ifTrue:[ |
|
3214 |
ex reject |
|
3215 |
]. |
|
3216 |
] do:[ |
|
3217 |
|bestTag| |
|
3218 |
||
3219 |
self enabled:false. |
|
3220 |
list add:nil. |
|
3221 |
list add:(Tag label:('Generating Tags ...' allBold) pattern:nil). |
|
3222 |
"/ list filter:filter. |
|
3223 |
list sortedByName:(application sortIsByName value). |
|
3224 |
||
3225 |
list |
|
3226 |
fromFile:tagFile |
|
3227 |
in:(application tempDirectory) |
|
3228 |
onTarget:aTarget. |
|
3229 |
||
3230 |
tagLineNr notNil ifTrue:[ |
|
3231 |
bestTag := list bestTagForLine:tagLineNr. |
|
3232 |
bestTag notNil ifTrue:[ |
|
3233 |
self setSelection:(list identityIndexOf:bestTag). |
|
3234 |
]. |
|
3235 |
tagLineNr := nil |
|
3236 |
]. |
|
3237 |
aBlock value. |
|
3238 |
] |
|
3239 |
] ensure:[ |
|
3240 |
process := nil. |
|
3241 |
self enabled:true. |
|
3242 |
]. |
|
9892 | 3243 |
] forkAt:4. |
3244 |
||
3245 |
process priorityRange:(4 to:8). |
|
13354 | 3246 |
^ true. |
9892 | 3247 |
|
10766 | 3248 |
"Created: / 06-10-2011 / 13:56:18 / cg" |
9892 | 3249 |
! |
3250 |
||
3251 |
stopGeneratingTags |
|
3252 |
"stop the process which generates the tags |
|
3253 |
" |
|
3254 |
|task| |
|
3255 |
||
3256 |
(task := process) notNil ifTrue:[ |
|
14484 | 3257 |
process := nil. |
3258 |
||
3259 |
Exception handle:[:ex| |
|
3260 |
Transcript showCR:('caught exception during tag-process termination: ',ex description). |
|
3261 |
] do:[ |
|
3262 |
task terminateWithAllSubprocessesInGroup. |
|
3263 |
task waitUntilTerminated. |
|
3264 |
] |
|
9892 | 3265 |
]. |
3266 |
fileName := nil. |
|
10766 | 3267 |
"/ list removeAll. |
3268 |
||
3269 |
"Modified (comment): / 06-10-2011 / 14:01:30 / cg" |
|
9892 | 3270 |
! ! |
3271 |
||
3272 |
!TagsBrowser::TagView methodsFor:'initialize & release'! |
|
3273 |
||
3274 |
destroy |
|
3275 |
self stopGeneratingTags. |
|
3276 |
super destroy. |
|
3277 |
! |
|
3278 |
||
3279 |
initialize |
|
3280 |
||
3281 |
TypeInset := 16. |
|
3282 |
||
3283 |
super initialize. |
|
3284 |
highlightMode := #line. |
|
14561 | 3285 |
itemHeight := gc font height. |
9892 | 3286 |
! ! |
3287 |
||
3288 |
!TagsBrowser::TagView methodsFor:'protocol'! |
|
3289 |
||
14484 | 3290 |
heightOfLineAt:aLineNr |
13302 | 3291 |
"returns the total height for a line at an index (including lineSpacing)" |
14484 | 3292 |
|
14563 | 3293 |
^ lineSpacing + itemHeight |
9892 | 3294 |
! |
3295 |
||
14484 | 3296 |
widthOfWidestLineBetween:firstLine and:lastLine |
15897 | 3297 |
"return the width in pixels of the widest line in a range. |
3298 |
- used to optimize scrolling, by limiting the scrolled area; |
|
3299 |
not for scrollbar or other width related stuff which should be exact." |
|
14484 | 3300 |
|
13302 | 3301 |
^ TypeInset + (super widthOfWidestLineBetween:firstLine and:lastLine) |
9892 | 3302 |
! ! |
3303 |
||
3304 |
!TagsBrowser class methodsFor:'documentation'! |
|
3305 |
||
10763 | 3306 |
version |
15772 | 3307 |
^ '$Header$' |
10763 | 3308 |
! |
3309 |
||
9892 | 3310 |
version_CVS |
15772 | 3311 |
^ '$Header$' |
10055 | 3312 |
! |
3313 |
||
3314 |
version_SVN |
|
15772 | 3315 |
^ '$Id$' |
9892 | 3316 |
! ! |
14526 | 3317 |