author | Claus Gittinger <cg@exept.de> |
Thu, 05 Mar 2020 11:18:04 +0100 | |
changeset 19547 | 63ae485b071a |
parent 19442 | c48da502e212 |
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 |
19291 | 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: 'Constants Only' |
|
765 |
translateLabel: true |
|
766 |
isVisible: editedFileHasLispSuffix |
|
767 |
indication: constantsOnly: |
|
768 |
) |
|
769 |
(MenuItem |
|
770 |
enabled: tagTypesPresentHolder |
|
771 |
label: 'Macros Only' |
|
772 |
translateLabel: true |
|
773 |
isVisible: editedFileHasLispSuffix |
|
774 |
indication: macrosOnly: |
|
775 |
) |
|
776 |
(MenuItem |
|
777 |
label: '-' |
|
778 |
isVisible: editedFileHasLispSuffix |
|
779 |
) |
|
780 |
(MenuItem |
|
781 |
enabled: tagTypesPresentHolder |
|
782 |
label: 'Hide Documentation' |
|
783 |
translateLabel: true |
|
784 |
isVisible: editedFileHasLispSuffix |
|
785 |
hideMenuOnActivated: false |
|
786 |
indication: hideDocumentation: |
|
787 |
) |
|
788 |
(MenuItem |
|
789 |
enabled: tagTypesPresentHolder |
|
790 |
label: 'Hide Classes' |
|
791 |
translateLabel: true |
|
792 |
isVisible: editedFileHasLispSuffix |
|
793 |
hideMenuOnActivated: false |
|
794 |
indication: hideClasses: |
|
795 |
) |
|
796 |
(MenuItem |
|
797 |
enabled: tagTypesPresentHolder |
|
798 |
label: 'Hide Methods' |
|
799 |
translateLabel: true |
|
800 |
isVisible: editedFileHasLispSuffix |
|
801 |
hideMenuOnActivated: false |
|
802 |
indication: hideLispMethods: |
|
803 |
) |
|
804 |
(MenuItem |
|
805 |
enabled: tagTypesPresentHolder |
|
806 |
label: 'Hide Functions' |
|
807 |
translateLabel: true |
|
808 |
isVisible: editedFileHasLispSuffix |
|
809 |
hideMenuOnActivated: false |
|
810 |
indication: hideFunctions: |
|
811 |
) |
|
812 |
(MenuItem |
|
813 |
enabled: tagTypesPresentHolder |
|
814 |
label: 'Hide Variables' |
|
815 |
translateLabel: true |
|
816 |
isVisible: editedFileHasLispSuffix |
|
817 |
hideMenuOnActivated: false |
|
818 |
indication: hideVariables: |
|
819 |
) |
|
820 |
(MenuItem |
|
821 |
enabled: tagTypesPresentHolder |
|
822 |
label: 'Hide Macros' |
|
823 |
translateLabel: true |
|
824 |
isVisible: editedFileHasLispSuffix |
|
825 |
hideMenuOnActivated: false |
|
826 |
indication: hideLispMacros: |
|
827 |
) |
|
828 |
(MenuItem |
|
829 |
enabled: tagTypesPresentHolder |
|
830 |
label: 'Hide Constants' |
|
831 |
translateLabel: true |
|
832 |
isVisible: editedFileHasLispSuffix |
|
833 |
hideMenuOnActivated: false |
|
834 |
indication: hideLispConstants: |
|
835 |
) |
|
836 |
(MenuItem |
|
837 |
enabled: tagTypesPresentHolder |
|
838 |
label: 'Hide Evaluations' |
|
839 |
translateLabel: true |
|
840 |
isVisible: editedFileHasLispSuffix |
|
841 |
hideMenuOnActivated: false |
|
842 |
indication: hideLispEvaluations: |
|
843 |
) |
|
844 |
(MenuItem |
|
845 |
enabled: tagTypesPresentHolder |
|
846 |
label: 'Hide Structs' |
|
847 |
translateLabel: true |
|
848 |
isVisible: editedFileHasLispSuffix |
|
849 |
hideMenuOnActivated: false |
|
850 |
indication: hideStructures: |
|
851 |
) |
|
852 |
) |
|
853 |
nil |
|
854 |
nil |
|
9892 | 855 |
) |
856 |
! |
|
857 |
||
14348 | 858 |
luaMenuSlice |
859 |
"This resource specification was automatically generated |
|
860 |
by the MenuEditor of ST/X." |
|
861 |
||
862 |
"Do not manually edit this!! If it is corrupted, |
|
863 |
the MenuEditor may not be able to read the specification." |
|
864 |
||
865 |
" |
|
866 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
|
867 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
868 |
" |
|
869 |
||
870 |
<resource: #menu> |
|
871 |
||
14484 | 872 |
^ |
14348 | 873 |
#(Menu |
14484 | 874 |
( |
875 |
(MenuItem |
|
876 |
label: '-' |
|
877 |
isVisible: editedFileHasLuaSuffix |
|
878 |
) |
|
879 |
(MenuItem |
|
880 |
enabled: tagTypesPresentHolder |
|
881 |
label: 'Functions Only' |
|
882 |
translateLabel: true |
|
883 |
isVisible: editedFileHasLuaSuffix |
|
884 |
hideMenuOnActivated: false |
|
885 |
indication: functionsOnly: |
|
886 |
) |
|
887 |
(MenuItem |
|
888 |
enabled: tagTypesPresentHolder |
|
889 |
label: 'Variables Only' |
|
890 |
translateLabel: true |
|
891 |
isVisible: editedFileHasLuaSuffix |
|
892 |
hideMenuOnActivated: false |
|
893 |
indication: variablesOnly: |
|
894 |
) |
|
895 |
) |
|
896 |
nil |
|
897 |
nil |
|
14348 | 898 |
) |
899 |
! |
|
900 |
||
9892 | 901 |
makefileMenuSlice |
902 |
"This resource specification was automatically generated |
|
903 |
by the MenuEditor of ST/X." |
|
904 |
||
905 |
"Do not manually edit this!! If it is corrupted, |
|
906 |
the MenuEditor may not be able to read the specification." |
|
907 |
||
908 |
" |
|
9920 | 909 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#makefileMenuSlice |
910 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser makefileMenuSlice)) startUp |
|
9892 | 911 |
" |
912 |
||
913 |
<resource: #menu> |
|
914 |
||
14484 | 915 |
^ |
9920 | 916 |
#(Menu |
14484 | 917 |
( |
918 |
(MenuItem |
|
919 |
label: '-' |
|
920 |
isVisible: editedFileIsMakefile |
|
921 |
) |
|
922 |
(MenuItem |
|
923 |
enabled: tagTypesPresentHolder |
|
924 |
label: 'Targets Only' |
|
925 |
translateLabel: true |
|
926 |
isVisible: editedFileIsMakefile |
|
927 |
hideMenuOnActivated: false |
|
928 |
indication: targetsOnly: |
|
929 |
) |
|
930 |
) |
|
931 |
nil |
|
932 |
nil |
|
9892 | 933 |
) |
934 |
! |
|
935 |
||
936 |
middleButtonMenu |
|
937 |
"This resource specification was automatically generated |
|
938 |
by the MenuEditor of ST/X." |
|
939 |
||
940 |
"Do not manually edit this!! If it is corrupted, |
|
941 |
the MenuEditor may not be able to read the specification." |
|
942 |
||
943 |
" |
|
944 |
MenuEditor new openOnClass:CBrowser::TagsBrowser andSelector:#middleButtonMenu |
|
945 |
(Menu new fromLiteralArrayEncoding:(CBrowser::TagsBrowser middleButtonMenu)) startUp |
|
946 |
" |
|
947 |
||
948 |
<resource: #menu> |
|
949 |
||
14484 | 950 |
^ |
9892 | 951 |
#(Menu |
14578 | 952 |
( |
953 |
(MenuItem |
|
954 |
enabled: tagTypesPresentHolder |
|
955 |
label: 'Group by Type' |
|
956 |
translateLabel: true |
|
957 |
indication: groupedByType: |
|
958 |
) |
|
959 |
(MenuItem |
|
960 |
label: '-' |
|
961 |
) |
|
962 |
(MenuItem |
|
963 |
label: 'Sort by Name' |
|
964 |
translateLabel: true |
|
965 |
indication: sortedByName: |
|
966 |
) |
|
967 |
(MenuItem |
|
968 |
label: 'Sort by Name Ignoring Case' |
|
969 |
translateLabel: true |
|
970 |
indication: sortedByNameIgnoringCase: |
|
971 |
) |
|
972 |
(MenuItem |
|
973 |
label: 'Sort by Name (Ignore Leading Underscores)' |
|
974 |
translateLabel: true |
|
975 |
indication: sortedByNameIgnoringLeadingUnderscores: |
|
976 |
) |
|
977 |
(MenuItem |
|
978 |
label: 'Sort by Name (Ignore Leading Underscores and Case)' |
|
979 |
translateLabel: true |
|
980 |
indication: sortedByNameIgnoringLeadingUnderscoresAndCase: |
|
981 |
) |
|
982 |
(MenuItem |
|
983 |
label: 'Sort by Line Number' |
|
984 |
translateLabel: true |
|
985 |
indication: sortedByLineNumber: |
|
986 |
) |
|
987 |
(MenuItem |
|
988 |
label: 'C Menu Slice' |
|
989 |
translateLabel: true |
|
990 |
submenuChannel: cMenuSlice |
|
991 |
isMenuSlice: true |
|
992 |
) |
|
993 |
(MenuItem |
|
994 |
label: 'Smalltalk Menu Slice' |
|
995 |
translateLabel: true |
|
996 |
submenuChannel: smalltalkMenuSlice |
|
997 |
isMenuSlice: true |
|
998 |
) |
|
999 |
(MenuItem |
|
1000 |
label: 'Java Menu Slice' |
|
1001 |
translateLabel: true |
|
1002 |
submenuChannel: javaMenuSlice |
|
1003 |
isMenuSlice: true |
|
1004 |
) |
|
1005 |
(MenuItem |
|
1006 |
label: 'JavaScript Menu Slice' |
|
1007 |
translateLabel: true |
|
1008 |
submenuChannel: javaScriptMenuSlice |
|
1009 |
isMenuSlice: true |
|
1010 |
) |
|
1011 |
(MenuItem |
|
1012 |
label: 'Dart Menu Slice' |
|
1013 |
translateLabel: true |
|
1014 |
submenuChannel: dartMenuSlice |
|
1015 |
isMenuSlice: true |
|
1016 |
) |
|
1017 |
(MenuItem |
|
1018 |
label: 'TCL Menu Slice' |
|
1019 |
translateLabel: true |
|
1020 |
submenuChannel: tclMenuSlice |
|
1021 |
isMenuSlice: true |
|
1022 |
) |
|
1023 |
(MenuItem |
|
1024 |
label: 'Assembler Menu Slice' |
|
1025 |
translateLabel: true |
|
1026 |
submenuChannel: assemblerMenuSlice |
|
1027 |
isMenuSlice: true |
|
1028 |
) |
|
1029 |
(MenuItem |
|
1030 |
label: 'Lisp Menu Slice' |
|
1031 |
translateLabel: true |
|
1032 |
submenuChannel: lispMenuSlice |
|
1033 |
isMenuSlice: true |
|
1034 |
) |
|
1035 |
(MenuItem |
|
1036 |
label: 'Lua Menu Slice' |
|
1037 |
translateLabel: true |
|
1038 |
submenuChannel: luaMenuSlice |
|
1039 |
isMenuSlice: true |
|
1040 |
) |
|
1041 |
(MenuItem |
|
1042 |
label: 'Python Menu Slice' |
|
1043 |
translateLabel: true |
|
1044 |
submenuChannel: pythonMenuSlice |
|
1045 |
isMenuSlice: true |
|
17553 | 1046 |
isVisible: editedFileHasPythonSuffix |
14578 | 1047 |
) |
1048 |
(MenuItem |
|
16281 | 1049 |
label: 'ObjC Menu Slice' |
1050 |
translateLabel: true |
|
1051 |
submenuChannel: objcMenuSlice |
|
1052 |
isMenuSlice: true |
|
1053 |
) |
|
1054 |
(MenuItem |
|
14578 | 1055 |
label: 'OZ Menu Slice' |
1056 |
translateLabel: true |
|
1057 |
submenuChannel: ozMenuSlice |
|
1058 |
isMenuSlice: true |
|
1059 |
) |
|
1060 |
(MenuItem |
|
1061 |
label: 'Makefile Menu Slice' |
|
1062 |
translateLabel: true |
|
1063 |
submenuChannel: makefileMenuSlice |
|
1064 |
isMenuSlice: true |
|
1065 |
) |
|
1066 |
(MenuItem |
|
1067 |
label: 'HTML Menu Slice' |
|
1068 |
translateLabel: true |
|
1069 |
submenuChannel: htmlMenuSlice |
|
1070 |
isMenuSlice: true |
|
1071 |
) |
|
1072 |
(MenuItem |
|
1073 |
label: '-' |
|
1074 |
) |
|
1075 |
(MenuItem |
|
1076 |
label: 'Update' |
|
1077 |
itemValue: updateTagList |
|
1078 |
translateLabel: true |
|
1079 |
) |
|
1080 |
) |
|
1081 |
nil |
|
1082 |
nil |
|
9892 | 1083 |
) |
1084 |
||
17553 | 1085 |
"Modified: / 22-06-2017 / 11:25:17 / cg" |
9892 | 1086 |
! |
1087 |
||
16281 | 1088 |
objcMenuSlice |
1089 |
"This resource specification was automatically generated |
|
1090 |
by the MenuEditor of ST/X." |
|
1091 |
||
1092 |
"Do not manually edit this!! If it is corrupted, |
|
1093 |
the MenuEditor may not be able to read the specification." |
|
1094 |
||
1095 |
" |
|
1096 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#objcMenuSlice |
|
1097 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser objcMenuSlice)) startUp |
|
1098 |
" |
|
1099 |
||
1100 |
<resource: #menu> |
|
1101 |
||
1102 |
^ |
|
1103 |
#(Menu |
|
1104 |
( |
|
1105 |
(MenuItem |
|
1106 |
label: '-' |
|
1107 |
isVisible: editedFileHasObjcSuffix |
|
1108 |
) |
|
1109 |
(MenuItem |
|
1110 |
enabled: tagTypesPresentHolder |
|
1111 |
label: 'Hide Classes' |
|
1112 |
translateLabel: true |
|
1113 |
isVisible: editedFileHasObjcSuffix |
|
1114 |
hideMenuOnActivated: false |
|
1115 |
indication: hideObjcClasses: |
|
1116 |
) |
|
1117 |
(MenuItem |
|
1118 |
enabled: tagTypesPresentHolder |
|
1119 |
label: 'Hide Methods' |
|
1120 |
translateLabel: true |
|
1121 |
isVisible: editedFileHasObjcSuffix |
|
1122 |
hideMenuOnActivated: false |
|
1123 |
indication: hideObjcMethods: |
|
1124 |
) |
|
1125 |
) |
|
1126 |
nil |
|
1127 |
nil |
|
1128 |
) |
|
1129 |
! |
|
1130 |
||
9892 | 1131 |
ozMenuSlice |
1132 |
"This resource specification was automatically generated |
|
1133 |
by the MenuEditor of ST/X." |
|
1134 |
||
1135 |
"Do not manually edit this!! If it is corrupted, |
|
1136 |
the MenuEditor may not be able to read the specification." |
|
1137 |
||
1138 |
" |
|
9920 | 1139 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#ozMenuSlice |
1140 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser ozMenuSlice)) startUp |
|
9892 | 1141 |
" |
1142 |
||
1143 |
<resource: #menu> |
|
1144 |
||
14484 | 1145 |
^ |
9920 | 1146 |
#(Menu |
14484 | 1147 |
( |
1148 |
(MenuItem |
|
1149 |
label: '-' |
|
1150 |
isVisible: editedFileHasOzSuffix |
|
1151 |
) |
|
1152 |
(MenuItem |
|
1153 |
enabled: tagTypesPresentHolder |
|
1154 |
label: 'Hide Classes' |
|
1155 |
translateLabel: true |
|
1156 |
isVisible: editedFileHasOzSuffix |
|
1157 |
hideMenuOnActivated: false |
|
1158 |
indication: hideOzClasses: |
|
1159 |
) |
|
1160 |
(MenuItem |
|
1161 |
enabled: tagTypesPresentHolder |
|
1162 |
label: 'Hide Methods' |
|
1163 |
translateLabel: true |
|
1164 |
isVisible: editedFileHasOzSuffix |
|
1165 |
hideMenuOnActivated: false |
|
1166 |
indication: hideOzMethods: |
|
1167 |
) |
|
1168 |
(MenuItem |
|
1169 |
enabled: tagTypesPresentHolder |
|
1170 |
label: 'Hide Functions' |
|
1171 |
translateLabel: true |
|
1172 |
isVisible: editedFileHasOzSuffix |
|
1173 |
hideMenuOnActivated: false |
|
1174 |
indication: hideOzFunctions: |
|
1175 |
) |
|
1176 |
) |
|
1177 |
nil |
|
1178 |
nil |
|
9892 | 1179 |
) |
1180 |
! |
|
1181 |
||
1182 |
pythonMenuSlice |
|
1183 |
"This resource specification was automatically generated |
|
1184 |
by the MenuEditor of ST/X." |
|
1185 |
||
1186 |
"Do not manually edit this!! If it is corrupted, |
|
1187 |
the MenuEditor may not be able to read the specification." |
|
1188 |
||
1189 |
" |
|
9920 | 1190 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#pythonMenuSlice |
1191 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser pythonMenuSlice)) startUp |
|
9892 | 1192 |
" |
1193 |
||
1194 |
<resource: #menu> |
|
1195 |
||
14484 | 1196 |
^ |
9920 | 1197 |
#(Menu |
17553 | 1198 |
( |
1199 |
(MenuItem |
|
1200 |
label: '-' |
|
1201 |
"/ isVisible: editedFileHasPythonSuffix |
|
1202 |
) |
|
1203 |
(MenuItem |
|
1204 |
enabled: tagTypesPresentHolder |
|
1205 |
label: 'Classes Only' |
|
1206 |
translateLabel: true |
|
1207 |
"/ isVisible: editedFileHasPythonSuffix |
|
1208 |
indication: classesOnly: |
|
1209 |
) |
|
1210 |
(MenuItem |
|
1211 |
enabled: tagTypesPresentHolder |
|
1212 |
label: 'Methods Only' |
|
1213 |
translateLabel: true |
|
1214 |
"/ isVisible: editedFileHasPythonSuffix |
|
1215 |
indication: methodsOnly: |
|
1216 |
) |
|
1217 |
(MenuItem |
|
1218 |
enabled: tagTypesPresentHolder |
|
1219 |
label: 'Functions Only' |
|
1220 |
translateLabel: true |
|
1221 |
"/ isVisible: editedFileHasPythonSuffix |
|
1222 |
indication: functionsOnly: |
|
1223 |
) |
|
1224 |
(MenuItem |
|
1225 |
label: '-' |
|
1226 |
"/ isVisible: editedFileHasPythonSuffix |
|
1227 |
) |
|
1228 |
(MenuItem |
|
1229 |
enabled: tagTypesPresentHolder |
|
1230 |
label: 'Hide Classes' |
|
1231 |
translateLabel: true |
|
1232 |
isVisible: editedFileHasPythonSuffix |
|
1233 |
hideMenuOnActivated: false |
|
1234 |
indication: hideClasses: |
|
1235 |
) |
|
1236 |
(MenuItem |
|
1237 |
enabled: tagTypesPresentHolder |
|
1238 |
label: 'Hide Methods' |
|
1239 |
translateLabel: true |
|
1240 |
isVisible: editedFileHasPythonSuffix |
|
1241 |
hideMenuOnActivated: false |
|
1242 |
indication: hideMethods: |
|
1243 |
) |
|
1244 |
(MenuItem |
|
1245 |
enabled: tagTypesPresentHolder |
|
1246 |
label: 'Hide Functions' |
|
1247 |
translateLabel: true |
|
1248 |
isVisible: editedFileHasPythonSuffix |
|
1249 |
hideMenuOnActivated: false |
|
1250 |
indication: hideFunctions: |
|
1251 |
) |
|
1252 |
) |
|
1253 |
nil |
|
1254 |
nil |
|
9892 | 1255 |
) |
17553 | 1256 |
|
1257 |
"Modified: / 22-06-2017 / 11:26:02 / cg" |
|
9892 | 1258 |
! |
1259 |
||
11761 | 1260 |
smalltalkMenuSlice |
1261 |
"This resource specification was automatically generated |
|
1262 |
by the MenuEditor of ST/X." |
|
1263 |
||
1264 |
"Do not manually edit this!! If it is corrupted, |
|
1265 |
the MenuEditor may not be able to read the specification." |
|
1266 |
||
1267 |
" |
|
16281 | 1268 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#smalltalkMenuSlice |
1269 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser smalltalkMenuSlice)) startUp |
|
11761 | 1270 |
" |
1271 |
||
1272 |
<resource: #menu> |
|
1273 |
||
14484 | 1274 |
^ |
11761 | 1275 |
#(Menu |
16281 | 1276 |
( |
1277 |
(MenuItem |
|
1278 |
label: '-' |
|
1279 |
isVisible: editedFileHasSmalltalkSuffix |
|
1280 |
) |
|
1281 |
(MenuItem |
|
1282 |
enabled: tagTypesPresentHolder |
|
1283 |
label: 'Hide Classes' |
|
1284 |
translateLabel: true |
|
1285 |
isVisible: editedFileHasSmalltalkSuffix |
|
1286 |
hideMenuOnActivated: false |
|
1287 |
indication: hideClasses: |
|
1288 |
) |
|
1289 |
(MenuItem |
|
1290 |
enabled: tagTypesPresentHolder |
|
1291 |
label: 'Hide Methods' |
|
1292 |
translateLabel: true |
|
1293 |
isVisible: editedFileHasSmalltalkSuffix |
|
1294 |
hideMenuOnActivated: false |
|
1295 |
indication: hideMethods: |
|
1296 |
) |
|
1297 |
) |
|
1298 |
nil |
|
1299 |
nil |
|
11761 | 1300 |
) |
1301 |
||
1302 |
"Created: / 21-08-2012 / 20:59:28 / cg" |
|
1303 |
! |
|
1304 |
||
9892 | 1305 |
tclMenuSlice |
1306 |
"This resource specification was automatically generated |
|
1307 |
by the MenuEditor of ST/X." |
|
1308 |
||
1309 |
"Do not manually edit this!! If it is corrupted, |
|
1310 |
the MenuEditor may not be able to read the specification." |
|
1311 |
||
1312 |
" |
|
9920 | 1313 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#tclMenuSlice |
1314 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser tclMenuSlice)) startUp |
|
9892 | 1315 |
" |
1316 |
||
1317 |
<resource: #menu> |
|
1318 |
||
14484 | 1319 |
^ |
9920 | 1320 |
#(Menu |
14484 | 1321 |
( |
1322 |
(MenuItem |
|
1323 |
label: '-' |
|
1324 |
isVisible: editedFileHasTCLSuffix |
|
1325 |
) |
|
1326 |
(MenuItem |
|
1327 |
enabled: tagTypesPresentHolder |
|
1328 |
label: 'Hide Variables' |
|
1329 |
translateLabel: true |
|
1330 |
isVisible: editedFileHasTCLSuffix |
|
1331 |
hideMenuOnActivated: false |
|
1332 |
indication: hideVariables: |
|
1333 |
) |
|
1334 |
) |
|
1335 |
nil |
|
1336 |
nil |
|
9892 | 1337 |
) |
9942 | 1338 |
! |
1339 |
||
1340 |
toolBarMenu |
|
1341 |
"This resource specification was automatically generated |
|
1342 |
by the MenuEditor of ST/X." |
|
1343 |
||
1344 |
"Do not manually edit this!! If it is corrupted, |
|
1345 |
the MenuEditor may not be able to read the specification." |
|
1346 |
||
10763 | 1347 |
|
9942 | 1348 |
" |
1349 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#toolBarMenu |
|
1350 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser toolBarMenu)) startUp |
|
1351 |
" |
|
1352 |
||
1353 |
<resource: #menu> |
|
1354 |
||
14543 | 1355 |
^ |
9942 | 1356 |
#(Menu |
14543 | 1357 |
( |
1358 |
(MenuItem |
|
1359 |
activeHelpKey: updateTagList |
|
1360 |
label: 'updateTagList' |
|
1361 |
itemValue: updateTagList |
|
1362 |
isButton: true |
|
1363 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
1364 |
) |
|
1365 |
(MenuItem |
|
1366 |
label: '-' |
|
1367 |
) |
|
1368 |
(MenuItem |
|
1369 |
activeHelpKey: sortByName |
|
1370 |
label: 'SortByName' |
|
1371 |
itemValue: sortByName |
|
1372 |
isButton: true |
|
1373 |
indication: sortIsByName |
|
1374 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByName16x16Icon) |
|
1375 |
) |
|
1376 |
(MenuItem |
|
1377 |
activeHelpKey: sortByLineNumber |
|
1378 |
label: 'SortByLineNumber' |
|
1379 |
itemValue: sortByLineNumber |
|
1380 |
isButton: true |
|
1381 |
indication: sortIsByLineNumber |
|
1382 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByLineNumber16x16Icon) |
|
1383 |
) |
|
1384 |
(MenuItem |
|
1385 |
label: '-' |
|
1386 |
) |
|
1387 |
(MenuItem |
|
1388 |
activeHelpKey: functionsOnly |
|
1389 |
label: 'FunctionsOnly' |
|
1390 |
itemValue: functionsOnly: |
|
1391 |
isButton: true |
|
1392 |
indication: functionsOnlyHolder |
|
1393 |
labelImage: (ResourceRetriever ToolbarIconLibrary functionsOnly16x16Icon) |
|
1394 |
) |
|
1395 |
(MenuItem |
|
14544 | 1396 |
activeHelpKey: structsOnly |
14543 | 1397 |
label: 'StructsOnly' |
1398 |
itemValue: structsOnly: |
|
1399 |
isButton: true |
|
14544 | 1400 |
isVisible: structsOnlyVisibleHolder |
14543 | 1401 |
indication: structsOnlyHolder |
1402 |
labelImage: (ResourceRetriever ToolbarIconLibrary structsOnly16x16Icon) |
|
1403 |
) |
|
1404 |
(MenuItem |
|
1405 |
activeHelpKey: toggleTagFilter |
|
1406 |
label: 'TagFilter' |
|
1407 |
isButton: true |
|
1408 |
indication: tagFilterFieldVisibleHolder |
|
19442 | 1409 |
labelImage: (ResourceRetriever ToolbarIconLibrary filterLightBlue16x16Icon) |
14543 | 1410 |
) |
1411 |
) |
|
1412 |
nil |
|
1413 |
nil |
|
9942 | 1414 |
) |
11721 | 1415 |
! ! |
10772 | 1416 |
|
9892 | 1417 |
!TagsBrowser methodsFor:'accessing'! |
1418 |
||
9907 | 1419 |
editedFile |
1420 |
^ self editedFileHolder value |
|
1421 |
||
1422 |
"Created: / 06-05-2011 / 13:56:20 / cg" |
|
1423 |
! |
|
1424 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1425 |
editedFile:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1426 |
self editedFileHolder value:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1427 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1428 |
"Created: / 07-05-2011 / 14:48:58 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1429 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1430 |
|
9907 | 1431 |
editedFileHolder |
1432 |
"gets the holder, which keeps the current edited file |
|
1433 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1434 |
editedFileHolder isNil ifTrue:[ |
14484 | 1435 |
editedFileHolder := nil asValue. |
1436 |
editedFileHolder addDependent:self. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1437 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1438 |
^ editedFileHolder. |
9907 | 1439 |
|
1440 |
"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
|
1441 |
"Modified: / 07-05-2011 / 10:15:30 / cg" |
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 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1444 |
editedFileHolder:aHolder |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1445 |
"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
|
1446 |
" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1447 |
editedFileHolder notNil ifTrue:[ |
14484 | 1448 |
editedFileHolder removeDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1449 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1450 |
editedFileHolder := aHolder. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1451 |
editedFileHolder notNil ifTrue:[ |
14484 | 1452 |
editedFileHolder addDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1453 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1454 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1455 |
"Created: / 07-05-2011 / 10:16:18 / cg" |
9907 | 1456 |
! |
1457 |
||
9892 | 1458 |
filter:aString |
1459 |
tagView filter:aString. |
|
9907 | 1460 |
! |
1461 |
||
16047 | 1462 |
tagsMenu:aMenuOrNil |
1463 |
"set the menu to be shown in the tag list" |
|
1464 |
||
1465 |
tagsMenu := aMenuOrNil. |
|
13630 | 1466 |
! |
1467 |
||
14484 | 1468 |
tagsValid |
13341 | 1469 |
^ tagsValid ? false |
1470 |
! |
|
1471 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1472 |
tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1473 |
commonAspects notNil ifTrue:[ |
14484 | 1474 |
^ commonAspects tempDirectory |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1475 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1476 |
^ Filename tempDirectory |
9907 | 1477 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1478 |
"Created: / 07-05-2011 / 15:42:44 / cg" |
9892 | 1479 |
! ! |
1480 |
||
17812 | 1481 |
!TagsBrowser methodsFor:'accessing presentation aspects'! |
1482 |
||
1483 |
groupedByType |
|
1484 |
^ tagList groupedByType |
|
1485 |
||
1486 |
"Created: / 05-05-2011 / 14:51:29 / cg" |
|
1487 |
! |
|
1488 |
||
1489 |
groupedByType:aBool |
|
1490 |
tagList groupedByType:aBool |
|
1491 |
||
1492 |
"Created: / 05-05-2011 / 14:51:33 / cg" |
|
1493 |
! |
|
1494 |
||
1495 |
sorted |
|
1496 |
^ tagList sorted |
|
1497 |
! |
|
1498 |
||
1499 |
sorted:aBool |
|
1500 |
tagList sorted:aBool |
|
1501 |
! |
|
1502 |
||
1503 |
sortedByLineNumber |
|
1504 |
^ tagList sortedByLineNumber |
|
1505 |
! |
|
1506 |
||
1507 |
sortedByLineNumber:aBool |
|
1508 |
tagList sortedByLineNumber:aBool |
|
1509 |
! |
|
1510 |
||
1511 |
sortedByName |
|
1512 |
^ tagList sortedByName |
|
1513 |
! |
|
1514 |
||
1515 |
sortedByName:aBool |
|
1516 |
tagList sortedByName:aBool |
|
1517 |
! |
|
1518 |
||
1519 |
sortedByNameIgnoringCase |
|
1520 |
^ tagList sortedByNameIgnoringCase |
|
1521 |
! |
|
1522 |
||
1523 |
sortedByNameIgnoringCase:aBool |
|
1524 |
tagList sortedByNameIgnoringCase:aBool |
|
1525 |
! |
|
1526 |
||
1527 |
sortedByNameIgnoringLeadingUnderscores |
|
1528 |
^ tagList sortedByNameIgnoringLeadingUnderscores |
|
1529 |
! |
|
1530 |
||
1531 |
sortedByNameIgnoringLeadingUnderscores:aBool |
|
1532 |
tagList sortedByNameIgnoringLeadingUnderscores:aBool |
|
1533 |
! |
|
1534 |
||
1535 |
sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1536 |
^ tagList sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1537 |
! |
|
1538 |
||
1539 |
sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1540 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1541 |
! |
|
1542 |
||
1543 |
sortedByType |
|
1544 |
^ tagList sortedByType |
|
1545 |
! |
|
1546 |
||
1547 |
sortedByType:aBool |
|
1548 |
tagList sortedByType:aBool |
|
1549 |
! ! |
|
1550 |
||
1551 |
!TagsBrowser methodsFor:'accessing-behavior'! |
|
1552 |
||
1553 |
action:aOneArgBlock |
|
1554 |
"set the action, which is called with the selected tag, |
|
1555 |
if the user selects one" |
|
1556 |
||
1557 |
action := aOneArgBlock. |
|
1558 |
||
1559 |
"Modified: / 23-06-2011 / 16:36:59 / cg" |
|
1560 |
! ! |
|
1561 |
||
1562 |
!TagsBrowser methodsFor:'accessing-filters'! |
|
9892 | 1563 |
|
14578 | 1564 |
anchorsOnly |
1565 |
^ tagList anchorsOnly |
|
1566 |
! |
|
1567 |
||
1568 |
anchorsOnly:aBool |
|
1569 |
"/ aBool ifTrue:[ |
|
1570 |
"/ tagList hideAnchors:false. |
|
1571 |
"/ ]. |
|
1572 |
tagList anchorsOnly:aBool. |
|
1573 |
self updateTagList |
|
1574 |
||
1575 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1576 |
! |
|
1577 |
||
17553 | 1578 |
classesAndFunctionsOnly |
1579 |
^ tagList classesAndFunctionsOnly |
|
1580 |
||
1581 |
"Created: / 22-06-2017 / 10:31:51 / cg" |
|
1582 |
! |
|
1583 |
||
1584 |
classesAndFunctionsOnly:aBool |
|
1585 |
aBool ifTrue:[ |
|
1586 |
tagList hideClasses:false. |
|
1587 |
tagList hideFunctions:false. |
|
1588 |
]. |
|
1589 |
tagList classesAndFunctionsOnly:aBool. |
|
1590 |
self updateTagList |
|
1591 |
||
1592 |
"Created: / 22-06-2017 / 10:31:59 / cg" |
|
1593 |
! |
|
1594 |
||
1595 |
classesAndMethodsOnly |
|
1596 |
^ tagList classesAndMethodsOnly |
|
1597 |
||
1598 |
"Created: / 22-06-2017 / 10:31:35 / cg" |
|
1599 |
! |
|
1600 |
||
1601 |
classesAndMethodsOnly:aBool |
|
1602 |
aBool ifTrue:[ |
|
1603 |
tagList hideClasses:false. |
|
1604 |
tagList hideMethods:false. |
|
1605 |
]. |
|
1606 |
tagList classesAndMethodsOnly:aBool. |
|
1607 |
self updateTagList |
|
1608 |
||
1609 |
"Created: / 22-06-2017 / 10:31:22 / cg" |
|
1610 |
! |
|
1611 |
||
9892 | 1612 |
classesFunctionsAndVariablesOnly |
1613 |
^ tagList classesFunctionsAndVariablesOnly |
|
1614 |
! |
|
1615 |
||
1616 |
classesFunctionsAndVariablesOnly:aBool |
|
1617 |
aBool ifTrue:[ |
|
14484 | 1618 |
tagList hideClasses:false. |
1619 |
tagList hideFunctions:false. |
|
1620 |
tagList hideVariables:false. |
|
9892 | 1621 |
]. |
1622 |
tagList classesFunctionsAndVariablesOnly:aBool. |
|
1623 |
self updateTagList |
|
1624 |
||
1625 |
"Modified: / 05-05-2011 / 15:33:13 / cg" |
|
1626 |
! |
|
1627 |
||
1628 |
classesOnly |
|
1629 |
^ tagList classesOnly |
|
1630 |
! |
|
1631 |
||
1632 |
classesOnly:aBool |
|
1633 |
aBool ifTrue:[ |
|
14484 | 1634 |
tagList hideClasses:false. |
9892 | 1635 |
]. |
1636 |
tagList classesOnly:aBool. |
|
1637 |
self updateTagList |
|
1638 |
||
1639 |
"Modified: / 05-05-2011 / 15:33:07 / cg" |
|
1640 |
! |
|
1641 |
||
13076 | 1642 |
dartClassesAndMethodsOnly |
17553 | 1643 |
^ self classesAndMethodsOnly |
1644 |
"/ ^ tagList dartClassesAndMethodsOnly |
|
1645 |
||
1646 |
"Modified: / 22-06-2017 / 10:30:13 / cg" |
|
13076 | 1647 |
! |
1648 |
||
1649 |
dartClassesAndMethodsOnly:aBool |
|
17553 | 1650 |
self classesAndMethodsOnly:aBool |
1651 |
"/ aBool ifTrue:[ |
|
1652 |
"/ tagList hideDartClasses:false. |
|
1653 |
"/ tagList hideDartMethods:false. |
|
1654 |
"/ ]. |
|
1655 |
"/ tagList dartClassesAndMethodsOnly:aBool. |
|
1656 |
"/ self updateTagList |
|
1657 |
||
1658 |
"Modified: / 22-06-2017 / 10:30:25 / cg" |
|
13076 | 1659 |
! |
1660 |
||
11761 | 1661 |
dartClassesOnly |
17553 | 1662 |
^ self classesOnly |
1663 |
"/ ^ tagList dartClassesOnly |
|
1664 |
||
1665 |
"Modified: / 22-06-2017 / 10:32:35 / cg" |
|
11761 | 1666 |
! |
1667 |
||
1668 |
dartClassesOnly:aBool |
|
17553 | 1669 |
self classesOnly:aBool |
1670 |
"/ aBool ifTrue:[ |
|
1671 |
"/ tagList hideDartClasses:false. |
|
1672 |
"/ ]. |
|
1673 |
"/ tagList dartClassesOnly:aBool. |
|
1674 |
"/ self updateTagList |
|
1675 |
||
1676 |
"Modified: / 22-06-2017 / 10:32:26 / cg" |
|
11761 | 1677 |
! |
1678 |
||
13076 | 1679 |
dartMethodsOnly |
17553 | 1680 |
^ self methodsOnly |
1681 |
"/ ^ tagList dartMethodsOnly |
|
1682 |
||
1683 |
"Modified: / 22-06-2017 / 10:32:44 / cg" |
|
13076 | 1684 |
! |
1685 |
||
1686 |
dartMethodsOnly:aBool |
|
17553 | 1687 |
self methodsOnly:aBool |
1688 |
"/ aBool ifTrue:[ |
|
1689 |
"/ tagList hideDartMethods:false. |
|
1690 |
"/ ]. |
|
1691 |
"/ tagList dartMethodsOnly:aBool. |
|
1692 |
"/ self updateTagList |
|
1693 |
||
1694 |
"Modified: / 22-06-2017 / 10:32:59 / cg" |
|
13076 | 1695 |
! |
1696 |
||
9892 | 1697 |
definesOnly |
1698 |
^ tagList definesOnly |
|
1699 |
! |
|
1700 |
||
1701 |
definesOnly:aBool |
|
1702 |
aBool ifTrue:[ |
|
14484 | 1703 |
tagList hideDefines:false. |
9892 | 1704 |
]. |
1705 |
tagList definesOnly:aBool. |
|
1706 |
self updateTagList |
|
1707 |
! |
|
1708 |
||
9920 | 1709 |
documentationOnly |
1710 |
^ tagList documentationOnly |
|
1711 |
||
1712 |
"Created: / 08-05-2011 / 10:50:52 / cg" |
|
1713 |
! |
|
1714 |
||
1715 |
documentationOnly:aBool |
|
1716 |
aBool ifTrue:[ |
|
14484 | 1717 |
tagList hideDocumentation:false. |
9920 | 1718 |
]. |
1719 |
tagList documentationOnly:aBool. |
|
1720 |
self updateTagList |
|
1721 |
||
1722 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1723 |
! |
|
1724 |
||
9892 | 1725 |
functionsAndVariablesOnly |
1726 |
^ tagList functionsAndVariablesOnly |
|
1727 |
! |
|
1728 |
||
1729 |
functionsAndVariablesOnly:aBool |
|
1730 |
aBool ifTrue:[ |
|
14484 | 1731 |
tagList hideFunctions:false. |
1732 |
tagList hideVariables:false. |
|
9892 | 1733 |
]. |
1734 |
tagList functionsAndVariablesOnly:aBool. |
|
1735 |
self updateTagList |
|
1736 |
! |
|
1737 |
||
1738 |
functionsOnly |
|
1739 |
^ tagList functionsOnly |
|
1740 |
! |
|
1741 |
||
1742 |
functionsOnly:aBool |
|
10766 | 1743 |
self functionsOnlyHolder value:aBool. |
9892 | 1744 |
aBool ifTrue:[ |
14544 | 1745 |
self structsOnlyHolder value:false. |
1746 |
tagList hideFunctions:false. |
|
9892 | 1747 |
]. |
1748 |
tagList functionsOnly:aBool. |
|
1749 |
self updateTagList |
|
10766 | 1750 |
|
1751 |
"Modified: / 06-10-2011 / 14:03:45 / cg" |
|
9892 | 1752 |
! |
1753 |
||
14578 | 1754 |
headlinesOnly |
1755 |
^ tagList headlinesOnly |
|
1756 |
! |
|
1757 |
||
1758 |
headlinesOnly:aBool |
|
1759 |
"/ aBool ifTrue:[ |
|
1760 |
"/ tagList hideDocumentation:false. |
|
1761 |
"/ ]. |
|
1762 |
tagList headlinesOnly:aBool. |
|
1763 |
self updateTagList |
|
1764 |
! |
|
1765 |
||
9892 | 1766 |
hideClasses |
1767 |
^ tagList hideClasses |
|
1768 |
! |
|
1769 |
||
1770 |
hideClasses:aBool |
|
1771 |
tagList hideClasses:aBool. |
|
1772 |
self updateTagList |
|
1773 |
! |
|
1774 |
||
11761 | 1775 |
hideDartClasses |
17553 | 1776 |
^ self hideClasses |
1777 |
"/ ^ tagList hideDartClasses |
|
1778 |
||
1779 |
"Modified: / 22-06-2017 / 10:55:36 / cg" |
|
11761 | 1780 |
! |
1781 |
||
1782 |
hideDartClasses:aBool |
|
17553 | 1783 |
self hideClasses:aBool |
1784 |
"/ tagList hideDartClasses:aBool. |
|
1785 |
"/ self updateTagList |
|
1786 |
||
1787 |
"Modified: / 22-06-2017 / 10:55:48 / cg" |
|
11761 | 1788 |
! |
1789 |
||
1790 |
hideDartFields |
|
17553 | 1791 |
^ self hideFields |
1792 |
"/ ^ tagList hideDartFields |
|
1793 |
||
1794 |
"Modified: / 22-06-2017 / 10:57:09 / cg" |
|
11761 | 1795 |
! |
1796 |
||
1797 |
hideDartFields:aBool |
|
17553 | 1798 |
self hideFields:aBool |
1799 |
"/ tagList hideDartFields:aBool. |
|
1800 |
"/ self updateTagList |
|
1801 |
||
1802 |
"Modified: / 22-06-2017 / 11:17:11 / cg" |
|
11761 | 1803 |
! |
1804 |
||
1805 |
hideDartInterfaces |
|
17553 | 1806 |
^ self hideInterfaces |
1807 |
"/ ^ tagList hideDartInterfaces |
|
1808 |
||
1809 |
"Modified: / 22-06-2017 / 11:16:29 / cg" |
|
11761 | 1810 |
! |
1811 |
||
1812 |
hideDartInterfaces:aBool |
|
17553 | 1813 |
self hideInterfaces:aBool |
1814 |
"/ tagList hideDartInterfaces:aBool. |
|
1815 |
"/ self updateTagList |
|
1816 |
||
1817 |
"Modified: / 22-06-2017 / 11:17:00 / cg" |
|
11761 | 1818 |
! |
1819 |
||
1820 |
hideDartMethods |
|
17553 | 1821 |
^ self hideMethods |
1822 |
"/ ^ tagList hideDartMethods |
|
1823 |
||
1824 |
"Modified: / 22-06-2017 / 11:16:10 / cg" |
|
11761 | 1825 |
! |
1826 |
||
1827 |
hideDartMethods:aBool |
|
17553 | 1828 |
self hideMethods:aBool |
1829 |
"/ tagList hideDartMethods:aBool. |
|
1830 |
"/ self updateTagList |
|
1831 |
||
1832 |
"Modified: / 22-06-2017 / 11:16:02 / cg" |
|
11761 | 1833 |
! |
1834 |
||
1835 |
hideDartPackages |
|
17553 | 1836 |
^ self hidePackages |
1837 |
"/ ^ tagList hideDartPackages |
|
1838 |
||
1839 |
"Modified: / 22-06-2017 / 11:07:19 / cg" |
|
11761 | 1840 |
! |
1841 |
||
1842 |
hideDartPackages:aBool |
|
17553 | 1843 |
self hidePackages:aBool |
1844 |
"/ tagList hideDartPackages:aBool. |
|
1845 |
"/ self updateTagList |
|
1846 |
||
1847 |
"Modified: / 22-06-2017 / 11:07:41 / cg" |
|
11761 | 1848 |
! |
1849 |
||
9892 | 1850 |
hideDataLabels |
1851 |
^ tagList hideDataLabels |
|
1852 |
! |
|
1853 |
||
1854 |
hideDataLabels:aBool |
|
1855 |
tagList hideDataLabels:aBool. |
|
1856 |
self updateTagList |
|
1857 |
! |
|
1858 |
||
1859 |
hideDefines |
|
1860 |
^ tagList hideDefines |
|
1861 |
! |
|
1862 |
||
1863 |
hideDefines:aBool |
|
1864 |
tagList hideDefines:aBool. |
|
1865 |
self updateTagList |
|
1866 |
! |
|
1867 |
||
9920 | 1868 |
hideDocumentation |
1869 |
^ tagList hideDocumentation |
|
1870 |
||
1871 |
"Created: / 08-05-2011 / 10:56:45 / cg" |
|
1872 |
! |
|
1873 |
||
1874 |
hideDocumentation:aBool |
|
1875 |
tagList hideDocumentation:aBool. |
|
1876 |
self updateTagList |
|
1877 |
||
1878 |
"Created: / 08-05-2011 / 10:56:49 / cg" |
|
1879 |
! |
|
1880 |
||
17553 | 1881 |
hideFields |
1882 |
^ tagList hideFields |
|
1883 |
||
1884 |
"Created: / 22-06-2017 / 10:57:19 / cg" |
|
1885 |
! |
|
1886 |
||
1887 |
hideFields:aBool |
|
1888 |
tagList hideFields:aBool. |
|
1889 |
self updateTagList |
|
1890 |
||
1891 |
"Created: / 22-06-2017 / 10:57:25 / cg" |
|
1892 |
! |
|
1893 |
||
9892 | 1894 |
hideFunctionProtoTypes |
1895 |
^ tagList hideFunctionProtoTypes |
|
1896 |
! |
|
1897 |
||
1898 |
hideFunctionProtoTypes:aBool |
|
1899 |
tagList hideFunctionProtoTypes:aBool. |
|
1900 |
self updateTagList |
|
1901 |
! |
|
1902 |
||
1903 |
hideFunctions |
|
1904 |
^ tagList hideFunctions |
|
1905 |
! |
|
1906 |
||
1907 |
hideFunctions:aBool |
|
1908 |
tagList hideFunctions:aBool. |
|
1909 |
self updateTagList |
|
1910 |
! |
|
1911 |
||
17553 | 1912 |
hideInterfaces |
1913 |
^ tagList hideInterfaces |
|
1914 |
||
1915 |
"Created: / 22-06-2017 / 11:16:37 / cg" |
|
1916 |
! |
|
1917 |
||
1918 |
hideInterfaces:aBool |
|
1919 |
tagList hideInterfaces:aBool. |
|
1920 |
self updateTagList |
|
1921 |
||
1922 |
"Created: / 22-06-2017 / 11:16:46 / cg" |
|
1923 |
! |
|
1924 |
||
9892 | 1925 |
hideJavaClasses |
17553 | 1926 |
^ self hideClasses |
1927 |
"/ ^ tagList hideJavaClasses |
|
1928 |
||
1929 |
"Modified: / 22-06-2017 / 10:56:53 / cg" |
|
9892 | 1930 |
! |
1931 |
||
1932 |
hideJavaClasses:aBool |
|
17553 | 1933 |
self hideClasses:aBool |
1934 |
"/ tagList hideJavaClasses:aBool. |
|
1935 |
"/ self updateTagList |
|
1936 |
||
1937 |
"Modified: / 22-06-2017 / 10:55:56 / cg" |
|
9892 | 1938 |
! |
1939 |
||
1940 |
hideJavaFields |
|
17553 | 1941 |
^ self hideFields |
1942 |
"/ ^ tagList hideJavaFields |
|
1943 |
||
1944 |
"Modified: / 22-06-2017 / 11:13:01 / cg" |
|
9892 | 1945 |
! |
1946 |
||
1947 |
hideJavaFields:aBool |
|
17553 | 1948 |
self hideFields:aBool |
1949 |
"/ tagList hideJavaFields:aBool. |
|
1950 |
"/ self updateTagList |
|
1951 |
||
1952 |
"Modified: / 22-06-2017 / 11:13:13 / cg" |
|
9892 | 1953 |
! |
1954 |
||
1955 |
hideJavaInterfaces |
|
17553 | 1956 |
^ self hideInterfaces |
1957 |
"/ ^ tagList hideJavaInterfaces |
|
1958 |
||
1959 |
"Modified: / 22-06-2017 / 11:12:50 / cg" |
|
9892 | 1960 |
! |
1961 |
||
1962 |
hideJavaInterfaces:aBool |
|
17553 | 1963 |
self hideInterfaces:aBool |
1964 |
"/ tagList hideJavaInterfaces:aBool. |
|
1965 |
"/ self updateTagList |
|
1966 |
||
1967 |
"Modified: / 22-06-2017 / 11:12:40 / cg" |
|
9892 | 1968 |
! |
1969 |
||
1970 |
hideJavaMethods |
|
17553 | 1971 |
^ self hideMethods |
1972 |
"/ ^ tagList hideJavaMethods |
|
1973 |
||
1974 |
"Modified: / 22-06-2017 / 11:12:12 / cg" |
|
9892 | 1975 |
! |
1976 |
||
1977 |
hideJavaMethods:aBool |
|
17553 | 1978 |
self hideMethods:aBool |
1979 |
"/ tagList hideJavaMethods:aBool. |
|
1980 |
"/ self updateTagList |
|
1981 |
||
1982 |
"Modified: / 22-06-2017 / 11:12:29 / cg" |
|
9892 | 1983 |
! |
1984 |
||
1985 |
hideJavaPackages |
|
17553 | 1986 |
^ self hidePackages |
1987 |
"/ ^ tagList hideJavaPackages |
|
1988 |
||
1989 |
"Modified: / 22-06-2017 / 11:07:32 / cg" |
|
9892 | 1990 |
! |
1991 |
||
1992 |
hideJavaPackages:aBool |
|
17553 | 1993 |
self hidePackages:aBool |
1994 |
"/ tagList hideJavaPackages:aBool. |
|
1995 |
"/ self updateTagList |
|
1996 |
||
1997 |
"Modified: / 22-06-2017 / 11:07:49 / cg" |
|
9892 | 1998 |
! |
1999 |
||
14386 | 2000 |
hideLabels |
2001 |
^ tagList hideLabels |
|
2002 |
! |
|
2003 |
||
2004 |
hideLabels:aBool |
|
2005 |
tagList hideLabels:aBool. |
|
2006 |
self updateTagList |
|
2007 |
! |
|
2008 |
||
9892 | 2009 |
hideLispConstants |
2010 |
^ tagList hideLispConstants |
|
2011 |
! |
|
2012 |
||
2013 |
hideLispConstants:aBool |
|
2014 |
tagList hideLispConstants:aBool. |
|
2015 |
self updateTagList |
|
2016 |
! |
|
2017 |
||
2018 |
hideLispEvaluations |
|
2019 |
^ tagList hideLispEvaluations |
|
2020 |
! |
|
2021 |
||
2022 |
hideLispEvaluations:aBool |
|
2023 |
tagList hideLispEvaluations:aBool. |
|
2024 |
self updateTagList |
|
2025 |
! |
|
2026 |
||
2027 |
hideLispMacros |
|
2028 |
^ tagList hideLispMacros |
|
2029 |
! |
|
2030 |
||
2031 |
hideLispMacros:aBool |
|
2032 |
tagList hideLispMacros:aBool. |
|
2033 |
self updateTagList |
|
2034 |
! |
|
2035 |
||
2036 |
hideLispMethods |
|
2037 |
^ tagList hideLispMethods |
|
2038 |
! |
|
2039 |
||
2040 |
hideLispMethods:aBool |
|
2041 |
tagList hideLispMethods:aBool. |
|
2042 |
self updateTagList |
|
2043 |
! |
|
2044 |
||
2045 |
hideLocalLabels |
|
2046 |
^ tagList hideLocalLabels |
|
2047 |
! |
|
2048 |
||
11465 | 2049 |
hideLocalLabels2 |
2050 |
^ tagList hideLocalLabels2 |
|
2051 |
||
2052 |
"Created: / 24-03-2012 / 23:23:43 / cg" |
|
2053 |
! |
|
2054 |
||
2055 |
hideLocalLabels2:aBool |
|
2056 |
tagList hideLocalLabels2:aBool. |
|
2057 |
self updateTagList |
|
2058 |
||
2059 |
"Created: / 24-03-2012 / 23:23:26 / cg" |
|
2060 |
! |
|
2061 |
||
11503 | 2062 |
hideLocalLabels3 |
2063 |
^ tagList hideLocalLabels3 |
|
2064 |
||
2065 |
"Created: / 13-05-2012 / 11:09:54 / cg" |
|
2066 |
! |
|
2067 |
||
2068 |
hideLocalLabels3:aBool |
|
2069 |
tagList hideLocalLabels3:aBool. |
|
2070 |
self updateTagList |
|
2071 |
||
2072 |
"Created: / 13-05-2012 / 11:10:01 / cg" |
|
2073 |
! |
|
2074 |
||
9892 | 2075 |
hideLocalLabels:aBool |
2076 |
tagList hideLocalLabels:aBool. |
|
2077 |
self updateTagList |
|
2078 |
! |
|
2079 |
||
14348 | 2080 |
hideLuaFunctions |
17553 | 2081 |
^ self hideFunctions |
2082 |
"/ ^ tagList hideLuaFunctions |
|
2083 |
||
2084 |
"Modified: / 22-06-2017 / 11:13:30 / cg" |
|
14348 | 2085 |
! |
2086 |
||
2087 |
hideLuaFunctions:aBool |
|
17553 | 2088 |
self hideFunctions:aBool |
2089 |
"/ tagList hideLuaFunctions:aBool. |
|
2090 |
"/ self updateTagList |
|
2091 |
||
2092 |
"Modified: / 22-06-2017 / 11:13:40 / cg" |
|
14348 | 2093 |
! |
2094 |
||
2095 |
hideLuaVariables |
|
17553 | 2096 |
^ self hideVariables |
2097 |
"/ ^ tagList hideLuaVariables |
|
2098 |
||
2099 |
"Modified: / 22-06-2017 / 11:13:53 / cg" |
|
14348 | 2100 |
! |
2101 |
||
2102 |
hideLuaVariables:aBool |
|
17553 | 2103 |
self hideVariables:aBool |
2104 |
"/ tagList hideLuaVariables:aBool. |
|
2105 |
"/ self updateTagList |
|
2106 |
||
2107 |
"Modified: / 22-06-2017 / 11:14:02 / cg" |
|
14348 | 2108 |
! |
2109 |
||
11761 | 2110 |
hideMethods |
2111 |
^ tagList hideMethods |
|
2112 |
||
2113 |
"Created: / 21-08-2012 / 21:02:54 / cg" |
|
2114 |
! |
|
2115 |
||
2116 |
hideMethods:aBool |
|
2117 |
tagList hideMethods:aBool. |
|
2118 |
self updateTagList |
|
2119 |
||
2120 |
"Created: / 21-08-2012 / 21:01:45 / cg" |
|
2121 |
! |
|
2122 |
||
16281 | 2123 |
hideObjcClasses |
17553 | 2124 |
^ self hideClasses |
2125 |
"/ ^ tagList hideObjcClasses |
|
2126 |
||
2127 |
"Modified: / 22-06-2017 / 10:56:47 / cg" |
|
16281 | 2128 |
! |
2129 |
||
2130 |
hideObjcClasses:aBool |
|
17553 | 2131 |
self hideClasses:aBool |
2132 |
"/ tagList hideObjcClasses:aBool. |
|
2133 |
"/ self updateTagList |
|
2134 |
||
2135 |
"Modified: / 22-06-2017 / 10:56:07 / cg" |
|
16281 | 2136 |
! |
2137 |
||
9892 | 2138 |
hideOzClasses |
17553 | 2139 |
^ self hideClasses |
2140 |
"/ ^ tagList hideOzClasses |
|
2141 |
||
2142 |
"Modified: / 22-06-2017 / 10:56:44 / cg" |
|
9892 | 2143 |
! |
2144 |
||
2145 |
hideOzClasses:aBool |
|
17553 | 2146 |
self hideClasses:aBool |
2147 |
"/ tagList hideOzClasses:aBool. |
|
2148 |
"/ self updateTagList |
|
2149 |
||
2150 |
"Modified: / 22-06-2017 / 10:56:14 / cg" |
|
9892 | 2151 |
! |
2152 |
||
2153 |
hideOzFunctions |
|
17553 | 2154 |
^ self hideFunctions |
2155 |
"/ ^ tagList hideOzFunctions |
|
2156 |
||
2157 |
"Modified: / 22-06-2017 / 11:14:15 / cg" |
|
9892 | 2158 |
! |
2159 |
||
2160 |
hideOzFunctions:aBool |
|
17553 | 2161 |
self hideFunctions:aBool |
2162 |
"/ tagList hideOzFunctions:aBool. |
|
2163 |
"/ self updateTagList |
|
2164 |
||
2165 |
"Modified: / 22-06-2017 / 11:14:30 / cg" |
|
9892 | 2166 |
! |
2167 |
||
2168 |
hideOzMethods |
|
17553 | 2169 |
^ self hideMethods |
2170 |
"/ ^ tagList hideOzMethods |
|
2171 |
||
2172 |
"Modified: / 22-06-2017 / 11:14:42 / cg" |
|
9892 | 2173 |
! |
2174 |
||
2175 |
hideOzMethods:aBool |
|
17553 | 2176 |
self hideMethods:aBool |
2177 |
"/ tagList hideOzMethods:aBool. |
|
2178 |
"/ self updateTagList |
|
2179 |
||
2180 |
"Modified: / 22-06-2017 / 11:14:52 / cg" |
|
2181 |
! |
|
2182 |
||
2183 |
hidePackages |
|
2184 |
^ tagList hidePackages |
|
2185 |
||
2186 |
"Created: / 22-06-2017 / 10:55:00 / cg" |
|
2187 |
! |
|
2188 |
||
2189 |
hidePackages:aBool |
|
2190 |
tagList hidePackages:aBool. |
|
9892 | 2191 |
self updateTagList |
17553 | 2192 |
|
2193 |
"Created: / 22-06-2017 / 10:55:21 / cg" |
|
9892 | 2194 |
! |
2195 |
||
2196 |
hidePythonClasses |
|
17553 | 2197 |
^ self hideClasses |
2198 |
"/ ^ tagList hidePythonClasses |
|
2199 |
||
2200 |
"Modified: / 22-06-2017 / 10:56:37 / cg" |
|
9892 | 2201 |
! |
2202 |
||
2203 |
hidePythonClasses:aBool |
|
17553 | 2204 |
self hideClasses:aBool |
2205 |
"/ tagList hidePythonClasses:aBool. |
|
2206 |
"/ self updateTagList |
|
2207 |
||
2208 |
"Modified: / 22-06-2017 / 10:56:21 / cg" |
|
9892 | 2209 |
! |
2210 |
||
2211 |
hidePythonFunctions |
|
17553 | 2212 |
^ self hideFunctions |
2213 |
"/ ^ tagList hidePythonFunctions |
|
2214 |
||
2215 |
"Modified: / 22-06-2017 / 11:15:00 / cg" |
|
9892 | 2216 |
! |
2217 |
||
2218 |
hidePythonFunctions:aBool |
|
17553 | 2219 |
self hideFunctions:aBool |
2220 |
"/ tagList hidePythonFunctions:aBool. |
|
2221 |
"/ self updateTagList |
|
2222 |
||
2223 |
"Modified: / 22-06-2017 / 11:15:11 / cg" |
|
9892 | 2224 |
! |
2225 |
||
2226 |
hidePythonMethods |
|
17553 | 2227 |
^ self hideMethods |
2228 |
"/ ^ tagList hidePythonMethods |
|
2229 |
||
2230 |
"Modified: / 22-06-2017 / 11:15:19 / cg" |
|
9892 | 2231 |
! |
2232 |
||
2233 |
hidePythonMethods:aBool |
|
17553 | 2234 |
self hideMethods:aBool |
2235 |
"/ tagList hidePythonMethods:aBool. |
|
2236 |
"/ self updateTagList |
|
2237 |
||
2238 |
"Modified: / 22-06-2017 / 11:15:28 / cg" |
|
9892 | 2239 |
! |
2240 |
||
2241 |
hideStatic |
|
2242 |
^ tagList hideStatic |
|
2243 |
! |
|
2244 |
||
2245 |
hideStatic:aBool |
|
2246 |
tagList hideStatic:aBool. |
|
2247 |
self updateTagList |
|
2248 |
! |
|
2249 |
||
2250 |
hideStructMembers |
|
2251 |
^ tagList hideStructMembers |
|
2252 |
! |
|
2253 |
||
2254 |
hideStructMembers:aBool |
|
2255 |
tagList hideStructMembers:aBool. |
|
2256 |
self updateTagList |
|
2257 |
! |
|
2258 |
||
2259 |
hideStructures |
|
2260 |
^ tagList hideStructures |
|
2261 |
! |
|
2262 |
||
2263 |
hideStructures:aBool |
|
2264 |
tagList hideStructures:aBool. |
|
2265 |
self updateTagList |
|
2266 |
! |
|
2267 |
||
2268 |
hideTextLabels |
|
2269 |
^ tagList hideTextLabels |
|
2270 |
! |
|
2271 |
||
2272 |
hideTextLabels:aBool |
|
2273 |
tagList hideTextLabels:aBool. |
|
2274 |
self updateTagList |
|
2275 |
! |
|
2276 |
||
2277 |
hideTypedefs |
|
2278 |
^ tagList hideTypedefs |
|
2279 |
! |
|
2280 |
||
2281 |
hideTypedefs:aBool |
|
2282 |
tagList hideTypedefs:aBool. |
|
2283 |
self updateTagList |
|
2284 |
! |
|
2285 |
||
2286 |
hideVariables |
|
2287 |
^ tagList hideVariables |
|
2288 |
! |
|
2289 |
||
2290 |
hideVariables:aBool |
|
2291 |
tagList hideVariables:aBool. |
|
2292 |
self updateTagList |
|
2293 |
! |
|
2294 |
||
2295 |
javaClassesAndMethodsOnly |
|
17553 | 2296 |
^ self classesAndMethodsOnly |
2297 |
"/ ^ tagList javaClassesAndMethodsOnly |
|
2298 |
||
2299 |
"Modified: / 22-06-2017 / 10:28:30 / cg" |
|
9892 | 2300 |
! |
2301 |
||
2302 |
javaClassesAndMethodsOnly:aBool |
|
17553 | 2303 |
self classesAndMethodsOnly:aBool |
2304 |
"/ aBool ifTrue:[ |
|
2305 |
"/ tagList hideJavaClasses:false. |
|
2306 |
"/ tagList hideJavaMethods:false. |
|
2307 |
"/ ]. |
|
2308 |
"/ tagList javaClassesAndMethodsOnly:aBool. |
|
2309 |
"/ self updateTagList |
|
2310 |
||
2311 |
"Modified: / 22-06-2017 / 10:26:00 / cg" |
|
9892 | 2312 |
! |
2313 |
||
2314 |
javaClassesOnly |
|
17553 | 2315 |
^ self classesOnly |
2316 |
"/ ^ tagList javaClassesOnly |
|
2317 |
||
2318 |
"Modified: / 22-06-2017 / 10:28:23 / cg" |
|
9892 | 2319 |
! |
2320 |
||
2321 |
javaClassesOnly:aBool |
|
17553 | 2322 |
self classesOnly:aBool |
2323 |
"/ aBool ifTrue:[ |
|
2324 |
"/ tagList hideJavaClasses:false. |
|
2325 |
"/ ]. |
|
2326 |
"/ tagList javaClassesOnly:aBool. |
|
2327 |
"/ self updateTagList |
|
2328 |
||
2329 |
"Modified: / 22-06-2017 / 10:28:17 / cg" |
|
9892 | 2330 |
! |
2331 |
||
2332 |
javaMethodsOnly |
|
17553 | 2333 |
^ self methodsOnly |
2334 |
"/ ^ tagList javaMethodsOnly |
|
2335 |
||
2336 |
"Modified: / 22-06-2017 / 10:28:54 / cg" |
|
9892 | 2337 |
! |
2338 |
||
2339 |
javaMethodsOnly:aBool |
|
17553 | 2340 |
self methodsOnly:aBool |
2341 |
"/ aBool ifTrue:[ |
|
2342 |
"/ tagList hideJavaMethods:false. |
|
2343 |
"/ ]. |
|
2344 |
"/ tagList javaMethodsOnly:aBool. |
|
2345 |
"/ self updateTagList |
|
2346 |
||
2347 |
"Modified: / 22-06-2017 / 10:29:05 / cg" |
|
9892 | 2348 |
! |
2349 |
||
14348 | 2350 |
luaFunctionsOnly |
17553 | 2351 |
^ self functionsOnly |
2352 |
"/ ^ tagList luaFunctionsOnly |
|
2353 |
||
2354 |
"Modified: / 22-06-2017 / 10:29:22 / cg" |
|
14348 | 2355 |
! |
2356 |
||
2357 |
luaFunctionsOnly:aBool |
|
17553 | 2358 |
self functionsOnly:aBool |
2359 |
"/ aBool ifTrue:[ |
|
2360 |
"/ tagList hideLuaFunctions:false. |
|
2361 |
"/ ]. |
|
2362 |
"/ tagList luaFunctionsOnly:aBool. |
|
2363 |
"/ self updateTagList |
|
2364 |
||
2365 |
"Modified: / 22-06-2017 / 10:29:33 / cg" |
|
14348 | 2366 |
! |
2367 |
||
9892 | 2368 |
macrosOnly |
2369 |
^ tagList macrosOnly |
|
2370 |
||
2371 |
"Created: / 07-06-2010 / 12:08:42 / cg" |
|
2372 |
! |
|
2373 |
||
2374 |
macrosOnly:aBool |
|
2375 |
aBool ifTrue:[ |
|
14484 | 2376 |
tagList hideLispMacros:false. |
9892 | 2377 |
]. |
2378 |
tagList macrosOnly:aBool. |
|
2379 |
self updateTagList |
|
2380 |
||
2381 |
"Created: / 07-06-2010 / 12:09:08 / cg" |
|
2382 |
! |
|
2383 |
||
2384 |
methodsOnly |
|
2385 |
^ tagList methodsOnly |
|
2386 |
||
2387 |
"Created: / 07-06-2010 / 12:11:55 / cg" |
|
2388 |
! |
|
2389 |
||
2390 |
methodsOnly:aBool |
|
2391 |
aBool ifTrue:[ |
|
14484 | 2392 |
tagList hideLispMethods:false. |
9892 | 2393 |
]. |
2394 |
tagList methodsOnly:aBool. |
|
2395 |
self updateTagList |
|
2396 |
||
2397 |
"Created: / 07-06-2010 / 12:12:03 / cg" |
|
2398 |
! |
|
2399 |
||
2400 |
pythonClassesOnly |
|
17553 | 2401 |
^ self classesOnly |
2402 |
"/ ^ tagList pythonClassesOnly |
|
2403 |
||
2404 |
"Modified: / 22-06-2017 / 10:33:33 / cg" |
|
9892 | 2405 |
! |
2406 |
||
2407 |
pythonClassesOnly:aBool |
|
17553 | 2408 |
self classesOnly:aBool |
2409 |
"/ aBool ifTrue:[ |
|
2410 |
"/ tagList hidePythonClasses:false. |
|
2411 |
"/ ]. |
|
2412 |
"/ tagList pythonClassesOnly:aBool. |
|
2413 |
"/ self updateTagList |
|
2414 |
||
2415 |
"Modified: / 22-06-2017 / 10:33:44 / cg" |
|
9892 | 2416 |
! |
2417 |
||
2418 |
pythonFunctionsOnly |
|
17553 | 2419 |
^ self functionsOnly |
2420 |
"/ ^ tagList pythonFunctionsOnly |
|
2421 |
||
2422 |
"Modified: / 22-06-2017 / 10:29:53 / cg" |
|
9892 | 2423 |
! |
2424 |
||
2425 |
pythonFunctionsOnly:aBool |
|
17553 | 2426 |
self functionsOnly:aBool |
2427 |
"/ aBool ifTrue:[ |
|
2428 |
"/ tagList hidePythonFunctions:false. |
|
2429 |
"/ ]. |
|
2430 |
"/ tagList pythonFunctionsOnly:aBool. |
|
2431 |
"/ self updateTagList |
|
2432 |
||
2433 |
"Modified: / 22-06-2017 / 10:29:44 / cg" |
|
9892 | 2434 |
! |
2435 |
||
2436 |
pythonMethodsOnly |
|
17553 | 2437 |
^ self methodsOnly |
2438 |
"/ ^ tagList pythonMethodsOnly |
|
2439 |
||
2440 |
"Modified: / 22-06-2017 / 10:33:58 / cg" |
|
9892 | 2441 |
! |
2442 |
||
2443 |
pythonMethodsOnly:aBool |
|
17553 | 2444 |
self methodsOnly:aBool |
2445 |
"/ aBool ifTrue:[ |
|
2446 |
"/ tagList hidePythonMethods:false. |
|
2447 |
"/ ]. |
|
2448 |
"/ tagList pythonMethodsOnly:aBool. |
|
2449 |
"/ self updateTagList |
|
2450 |
||
2451 |
"Modified: / 22-06-2017 / 10:34:11 / cg" |
|
9892 | 2452 |
! |
2453 |
||
2454 |
structsOnly |
|
2455 |
^ tagList structsOnly |
|
2456 |
||
2457 |
"Created: / 25-06-2010 / 10:54:46 / cg" |
|
2458 |
! |
|
2459 |
||
2460 |
structsOnly:aBool |
|
14544 | 2461 |
self structsOnlyHolder value:aBool. |
2462 |
aBool ifTrue:[ |
|
2463 |
self functionsOnlyHolder value:false. |
|
2464 |
tagList hideStructures:false. |
|
2465 |
]. |
|
9892 | 2466 |
tagList structsOnly:aBool. |
2467 |
self updateTagList |
|
2468 |
! |
|
2469 |
||
2470 |
tagTypesPresent |
|
2471 |
^ tagList tagTypesPresent |
|
2472 |
! |
|
2473 |
||
2474 |
tagTypesPresentHolder |
|
2475 |
^ [ self tagTypesPresent ] |
|
2476 |
! |
|
2477 |
||
2478 |
targetsOnly |
|
2479 |
^ tagList targetsOnly |
|
2480 |
! |
|
2481 |
||
2482 |
targetsOnly:aBool |
|
2483 |
tagList targetsOnly:aBool. |
|
2484 |
self updateTagList |
|
2485 |
! |
|
2486 |
||
2487 |
typesOnly |
|
2488 |
^ tagList typesOnly |
|
2489 |
! |
|
2490 |
||
2491 |
typesOnly:aBool |
|
2492 |
aBool ifTrue:[ |
|
14484 | 2493 |
tagList hideTypedefs:false. |
9892 | 2494 |
]. |
2495 |
tagList typesOnly:aBool. |
|
2496 |
self updateTagList |
|
2497 |
! |
|
2498 |
||
2499 |
variablesOnly |
|
2500 |
^ tagList variablesOnly |
|
2501 |
! |
|
2502 |
||
2503 |
variablesOnly:aBool |
|
2504 |
aBool ifTrue:[ |
|
14484 | 2505 |
tagList hideVariables:false. |
9892 | 2506 |
]. |
2507 |
tagList variablesOnly:aBool. |
|
2508 |
self updateTagList |
|
2509 |
||
2510 |
"Modified: / 05-05-2011 / 15:33:18 / cg" |
|
2511 |
! ! |
|
2512 |
||
2513 |
!TagsBrowser methodsFor:'aspects'! |
|
2514 |
||
2515 |
editedFileHasAssemblerSuffix |
|
2516 |
^builder booleanValueAspectFor: #editedFileHasAssemblerSuffix |
|
2517 |
||
2518 |
||
2519 |
! |
|
2520 |
||
2521 |
editedFileHasCSuffix |
|
2522 |
^builder booleanValueAspectFor: #editedFileHasCSuffix |
|
2523 |
||
2524 |
||
2525 |
! |
|
2526 |
||
11761 | 2527 |
editedFileHasDartSuffix |
2528 |
^builder booleanValueAspectFor: #editedFileHasDartSuffix |
|
2529 |
! |
|
2530 |
||
9892 | 2531 |
editedFileHasEiffelSuffix |
2532 |
^builder booleanValueAspectFor: #editedFileHasEiffelSuffix |
|
2533 |
||
2534 |
||
2535 |
! |
|
2536 |
||
2537 |
editedFileHasFortranSuffix |
|
2538 |
^builder booleanValueAspectFor: #editedFileHasFortranSuffix |
|
2539 |
||
2540 |
||
2541 |
! |
|
2542 |
||
14578 | 2543 |
editedFileHasHtmlSuffix |
2544 |
^builder booleanValueAspectFor: #editedFileHasHtmlSuffix |
|
2545 |
! |
|
2546 |
||
9892 | 2547 |
editedFileHasJavaScriptSuffix |
2548 |
^builder booleanValueAspectFor: #editedFileHasJavaScriptSuffix |
|
2549 |
||
2550 |
"Created: / 28-06-2010 / 13:09:15 / cg" |
|
2551 |
! |
|
2552 |
||
2553 |
editedFileHasJavaSuffix |
|
2554 |
^builder booleanValueAspectFor: #editedFileHasJavaSuffix |
|
2555 |
||
2556 |
||
2557 |
! |
|
2558 |
||
2559 |
editedFileHasLispSuffix |
|
2560 |
^builder booleanValueAspectFor: #editedFileHasLispSuffix |
|
2561 |
||
2562 |
||
2563 |
! |
|
2564 |
||
14348 | 2565 |
editedFileHasLuaSuffix |
2566 |
^builder booleanValueAspectFor: #editedFileHasLuaSuffix |
|
2567 |
! |
|
2568 |
||
16281 | 2569 |
editedFileHasObjcSuffix |
2570 |
^builder booleanValueAspectFor: #editedFileHasObjcSuffix |
|
2571 |
! |
|
2572 |
||
9892 | 2573 |
editedFileHasOzSuffix |
2574 |
^builder booleanValueAspectFor: #editedFileHasOzSuffix |
|
2575 |
! |
|
2576 |
||
2577 |
editedFileHasPythonSuffix |
|
2578 |
^builder booleanValueAspectFor: #editedFileHasPythonSuffix |
|
2579 |
||
2580 |
||
2581 |
! |
|
2582 |
||
2583 |
editedFileHasRubySuffix |
|
2584 |
^builder booleanValueAspectFor: #editedFileHasRubySuffix |
|
2585 |
! |
|
2586 |
||
2587 |
editedFileHasSmalltalkSuffix |
|
2588 |
^builder booleanValueAspectFor: #editedFileHasSmalltalkSuffix |
|
2589 |
||
2590 |
||
2591 |
! |
|
2592 |
||
2593 |
editedFileHasTCLSuffix |
|
2594 |
^builder booleanValueAspectFor: #editedFileHasTCLSuffix |
|
2595 |
||
2596 |
||
2597 |
! |
|
2598 |
||
2599 |
editedFileIsMakefile |
|
2600 |
^builder booleanValueAspectFor: #editedFileIsMakefile |
|
2601 |
! |
|
2602 |
||
10763 | 2603 |
functionsOnlyHolder |
2604 |
^ builder booleanValueAspectFor: #functionsOnly |
|
2605 |
||
2606 |
"Created: / 06-10-2011 / 12:19:23 / cg" |
|
2607 |
! |
|
2608 |
||
9892 | 2609 |
remoteCtagsModel |
2610 |
||
2611 |
|holder| |
|
2612 |
||
2613 |
(holder := builder bindingAt:#remoteCtagsModel) isNil ifTrue:[ |
|
14484 | 2614 |
holder := false asValue. |
2615 |
builder aspectAt:#remoteCtagsModel put:holder. |
|
9892 | 2616 |
]. |
2617 |
^ holder. |
|
2618 |
! |
|
2619 |
||
10435 | 2620 |
sortIsByLineNumber |
2621 |
^ builder booleanValueAspectFor: #sortIsByLineNumber |
|
2622 |
||
2623 |
"Created: / 03-08-2011 / 11:17:48 / cg" |
|
2624 |
! |
|
2625 |
||
2626 |
sortIsByName |
|
2627 |
^ builder booleanValueAspectFor: #sortIsByName |
|
2628 |
||
2629 |
"Created: / 03-08-2011 / 11:17:52 / cg" |
|
2630 |
! |
|
2631 |
||
14544 | 2632 |
structsOnlyHolder |
2633 |
^ builder booleanValueAspectFor: #structsOnly |
|
2634 |
! |
|
2635 |
||
2636 |
structsOnlyVisibleHolder |
|
2637 |
^ builder booleanValueAspectFor: #structsOnlyVisible |
|
2638 |
! |
|
2639 |
||
11721 | 2640 |
tagFilterFieldVisibleHolder |
2641 |
|holder| |
|
2642 |
||
2643 |
(holder := builder bindingAt:#tagFilterFieldVisibleHolder) isNil ifTrue:[ |
|
14484 | 2644 |
holder := false asValue. |
2645 |
builder aspectAt:#tagFilterFieldVisibleHolder put:holder. |
|
2646 |
holder onChangeSend:#tagFilterVisibilityChanged to:self. |
|
11721 | 2647 |
]. |
2648 |
^ holder. |
|
2649 |
||
2650 |
"Created: / 01-08-2012 / 10:52:48 / cg" |
|
2651 |
! |
|
2652 |
||
2653 |
tagFilterPatternHolder |
|
2654 |
|holder| |
|
2655 |
||
2656 |
(holder := builder bindingAt:#tagFilterPatternHolder) isNil ifTrue:[ |
|
14484 | 2657 |
holder := '' asValue. |
2658 |
builder aspectAt:#tagFilterPatternHolder put:holder. |
|
2659 |
holder onChangeSend:#tagFilterChanged to:self. |
|
11721 | 2660 |
]. |
2661 |
^ holder. |
|
2662 |
||
2663 |
"Created: / 01-08-2012 / 16:43:26 / cg" |
|
2664 |
! |
|
2665 |
||
9892 | 2666 |
tagList |
2667 |
"returns the tagList |
|
2668 |
" |
|
2669 |
^ tagList |
|
2670 |
! |
|
2671 |
||
2672 |
tagView |
|
2673 |
"returns the widget which shows the tags |
|
2674 |
" |
|
2675 |
^ tagView |
|
2676 |
! ! |
|
2677 |
||
2678 |
!TagsBrowser methodsFor:'change & update'! |
|
2679 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2680 |
delayedEditedFileChanged |
9892 | 2681 |
"called when the current editing file has changed. |
2682 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2683 |
" |
|
2684 |
||
2685 |
self updateFileTypeHolders. |
|
14480 | 2686 |
tagsValid ifFalse:[ |
14484 | 2687 |
self updateTagList. |
13341 | 2688 |
]. |
9916
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 |
"Created: / 07-05-2011 / 15:36:52 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2691 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2692 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2693 |
editedFileChanged |
13341 | 2694 |
tagsValid := false. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2695 |
self enqueueDelayedAction:[self delayedEditedFileChanged]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2696 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2697 |
"Modified: / 07-05-2011 / 15:37:00 / cg" |
9892 | 2698 |
! |
2699 |
||
11721 | 2700 |
tagFilterChanged |
2701 |
tagList filter:(self tagFilterPatternHolder value) |
|
2702 |
||
2703 |
"Created: / 01-08-2012 / 16:44:54 / cg" |
|
2704 |
! |
|
2705 |
||
2706 |
tagFilterVisibilityChanged |
|
2707 |
self tagFilterFieldVisibleHolder value ifTrue:[ |
|
14484 | 2708 |
"/ self windowGroup |
2709 |
"/ focusView:(self builder componentAt:#TagFilterInputField) |
|
11721 | 2710 |
"/ byTab:true. |
18697 | 2711 |
self enqueueMessage:#assignFocusToTagFilterInputField. |
11721 | 2712 |
]. |
2713 |
||
2714 |
"Created: / 01-08-2012 / 17:00:27 / cg" |
|
18697 | 2715 |
"Modified: / 16-03-2019 / 14:17:39 / Claus Gittinger" |
11721 | 2716 |
! |
2717 |
||
9892 | 2718 |
update:something with:aparameter from:changedObject |
2719 |
changedObject == self editedFileHolder ifTrue:[ |
|
14484 | 2720 |
tagList removeAll. |
2721 |
self editedFileChanged. |
|
2722 |
^ self |
|
9892 | 2723 |
]. |
2724 |
super update:something with:aparameter from:changedObject |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2725 |
|
11721 | 2726 |
"Modified: / 01-08-2012 / 16:58:30 / cg" |
9892 | 2727 |
! |
2728 |
||
2729 |
updateFileTypeHolders |
|
2730 |
"called when the current editing file has changed. |
|
2731 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2732 |
" |
|
2733 |
||
17553 | 2734 |
|edFile mime| |
9892 | 2735 |
|
14386 | 2736 |
edFile := self editedFile. |
9892 | 2737 |
|
2738 |
mime := TagList tagMimeTypeForFile:edFile. |
|
2739 |
||
14544 | 2740 |
"/ valueHolder mime(s) |
9892 | 2741 |
#( |
18113 | 2742 |
(editedFileHasJavaSuffix ('text/java' 'application/x-java-source')) |
14544 | 2743 |
(editedFileHasJavaScriptSuffix ('text/javaScript' 'text/javascript' 'application/x-javascript' 'application/x-javascript-source') ) |
18113 | 2744 |
(editedFileHasDartSuffix ('text/dart' 'application/x-dart' 'application/x-dart-source') ) |
2745 |
(editedFileHasCSuffix ('text/c' 'application/x-c-source' 'text/cpp' 'application/x-cpp-source')) |
|
2746 |
(editedFileHasEiffelSuffix ('text/eiffel' 'application/x-eiffel-source')) |
|
14544 | 2747 |
(editedFileHasFortranSuffix ('text/fortran' 'application/x-fortran-source')) |
18113 | 2748 |
(editedFileHasPythonSuffix ('text/python' 'application/x-python-source')) |
16281 | 2749 |
(editedFileHasObjcSuffix ('text/objcsrc' 'application/x-objcsrc')) |
18113 | 2750 |
(editedFileHasOzSuffix ('text/oz' 'application/x-oz-source')) |
2751 |
(editedFileHasLuaSuffix ('text/lua' 'application/x-lua-source')) |
|
2752 |
(editedFileHasLispSuffix ('text/lisp' 'text/lisp-arc' 'text/scheme' 'application/x-lisp-source' 'application/x-scheme-source') ) |
|
14544 | 2753 |
(editedFileHasSmalltalkSuffix ('text/smalltalk' 'application/x-smalltalk-source')) |
18113 | 2754 |
(editedFileHasTCLSuffix ('text/tcl' 'application/x-tcl-source') ) |
2755 |
(editedFileHasAssemblerSuffix ('text/asm' 'application/x-assembler-source')) |
|
14544 | 2756 |
(editedFileIsMakefile 'text/make') |
18113 | 2757 |
(editedFileHasRubySuffix ('text/ruby' 'application/x-ruby-source')) |
2758 |
"/ (editedFileHasErlangSuffix ('text/erlang' 'application/x-erlang-source')) |
|
14578 | 2759 |
(editedFileHasHtmlSuffix ('text/html' )) |
9892 | 2760 |
) pairsDo:[:holderName :mimeTypeOrTypes | |
14544 | 2761 |
|holder| |
2762 |
||
2763 |
holder := self perform:holderName. |
|
2764 |
mimeTypeOrTypes isString ifTrue:[ |
|
2765 |
holder value:(mime = mimeTypeOrTypes) |
|
2766 |
] ifFalse:[ |
|
2767 |
holder value:(mimeTypeOrTypes includes:mime) |
|
2768 |
]. |
|
9892 | 2769 |
]. |
14544 | 2770 |
self structsOnlyVisibleHolder value:(self editedFileHasCSuffix value). |
9892 | 2771 |
|
17553 | 2772 |
"Modified (comment): / 22-06-2017 / 11:29:52 / cg" |
9943 | 2773 |
! |
2774 |
||
2775 |
updateForLine:lineNr |
|
2776 |
"/ highlight the tag for a particular line in the edittext |
|
2777 |
"/ called via a hook via the masterapp from the editView... |
|
2778 |
||
14480 | 2779 |
self updateForLine:lineNr filtering:nil |
2780 |
! |
|
2781 |
||
2782 |
updateForLine:lineNr filtering:tagFilterOrNil |
|
2783 |
"highlight the tag for a particular line in the edittext |
|
2784 |
called via a hook via the masterapp from the editView... |
|
2785 |
The filter can be used eg. to find only function tags |
|
2786 |
(i.e. to ignore case and goto labels in C)" |
|
2787 |
||
9943 | 2788 |
|bestTag| |
2789 |
||
14480 | 2790 |
bestTag := tagList bestTagForLine:lineNr filtering:tagFilterOrNil. |
9943 | 2791 |
bestTag notNil ifTrue:[ |
14484 | 2792 |
tagView setSelection:(tagList identityIndexOf:bestTag). |
9943 | 2793 |
] ifFalse:[ |
14484 | 2794 |
"/ remember line in case the tag-list is being generated |
2795 |
tagView tagLineNr:lineNr |
|
9943 | 2796 |
]. |
2797 |
||
2798 |
"Modified: / 23-06-2011 / 17:28:26 / cg" |
|
9892 | 2799 |
! ! |
2800 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2801 |
!TagsBrowser methodsFor:'hooks for ccbrowser'! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2802 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2803 |
buildTarget |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2804 |
commonAspects notNil ifTrue:[ |
14484 | 2805 |
^ commonAspects buildTarget |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2806 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2807 |
^ nil |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2808 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2809 |
"Created: / 07-05-2011 / 15:38:20 / cg" |
13341 | 2810 |
! |
2811 |
||
2812 |
tagForFunction:functionName |
|
2813 |
^ tagList tagForFunction:functionName |
|
15772 | 2814 |
! |
2815 |
||
15786 | 2816 |
tagForMacro:typeName |
2817 |
^ tagList tagForMacro:typeName |
|
2818 |
! |
|
2819 |
||
15772 | 2820 |
tagForType:typeName |
2821 |
^ tagList tagForType:typeName |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2822 |
! ! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2823 |
|
13632 | 2824 |
!TagsBrowser methodsFor:'hooks for embedding'! |
2825 |
||
2826 |
tagListGenerator:aBlockOrValueHolder |
|
2827 |
"to use a tagsBrowser as a component in another application, |
|
2828 |
this hook allows for the tag list to be provided by that application. |
|
2829 |
If non-nil, it will be evaluated to generate the tagList instead of |
|
2830 |
reading the tags from the editedFile" |
|
2831 |
||
2832 |
tagListGenerator := aBlockOrValueHolder. |
|
2833 |
! ! |
|
2834 |
||
9892 | 2835 |
!TagsBrowser methodsFor:'menu actions'! |
2836 |
||
10766 | 2837 |
keepingSelectionDo:aBlock |
2838 |
|oldSelection oldLabel| |
|
2839 |
||
2840 |
oldSelection := tagView selectionValue. |
|
2841 |
aBlock value. |
|
2842 |
||
14484 | 2843 |
oldSelection notNil ifTrue:[ |
2844 |
oldLabel := oldSelection label. |
|
2845 |
tagView |
|
2846 |
selectElementForWhich:[:el | el label = oldLabel] |
|
2847 |
ifAbsent:[self halt:'ouch - no such label']. |
|
10766 | 2848 |
]. |
2849 |
||
2850 |
"Created: / 06-10-2011 / 13:41:57 / cg" |
|
2851 |
! |
|
2852 |
||
9892 | 2853 |
middleButtonMenu |
18753 | 2854 |
<resource: #programMenu > |
2855 |
||
14484 | 2856 |
^ [ |
18641 | 2857 |
|menu suffix file item| |
2858 |
||
2859 |
tagsMenu notNil ifTrue:[ |
|
2860 |
tagsMenu |
|
2861 |
] ifFalse:[ |
|
2862 |
menus isNil ifTrue:[ |
|
2863 |
menus := IdentityDictionary new. |
|
2864 |
]. |
|
2865 |
||
2866 |
menu := nil. |
|
2867 |
||
2868 |
(file := self editedFile) notNil ifTrue:[ |
|
2869 |
(tagList supportsFile:file) ifTrue:[ |
|
2870 |
menu := menus |
|
2871 |
at:#exists |
|
2872 |
ifAbsentPut:[ |
|
2873 |
menu := self class middleButtonMenu decodeAsLiteralArray. |
|
2874 |
menu receiver:self. |
|
2875 |
menu findGuiResourcesIn:self. |
|
2876 |
menu |
|
2877 |
]. |
|
2878 |
menu := MenuPanel menu:menu receiver:self. |
|
2879 |
] ifFalse:[ |
|
2880 |
suffix := file suffix. |
|
2881 |
||
2882 |
suffix size ~~ 0 ifTrue:[ |
|
2883 |
menu := menus at:#new ifAbsentPut:[ |
|
2884 |
menu := Menu new. |
|
2885 |
item := MenuItem label:('assign ', (Text string:suffix emphasis:#underline), ' to:'). |
|
2886 |
item enabled:false. |
|
2887 |
menu addItem:item. |
|
2888 |
menu addItem:(MenuItem separator). |
|
2889 |
||
2890 |
tagList class tagsSuffixes keysAndValuesDo:[:aKey :aValue| |
|
2891 |
item := MenuItem label:(' - ', aKey ) |
|
2892 |
itemValue:[ |list| |
|
2893 |
list := aValue asOrderedCollection. |
|
2894 |
list add:(suffix asLowercase). |
|
2895 |
tagList class tagsSuffixes at:aKey put:list. |
|
2896 |
self editedFileChanged. |
|
2897 |
]. |
|
2898 |
menu addItem:item. |
|
2899 |
]. |
|
2900 |
menu |
|
2901 |
]. |
|
2902 |
||
2903 |
] |
|
2904 |
]. |
|
2905 |
]. |
|
2906 |
menu |
|
2907 |
] |
|
9892 | 2908 |
] |
11780 | 2909 |
|
2910 |
"Modified: / 08-09-2012 / 19:51:03 / cg" |
|
18753 | 2911 |
"Modified: / 02-05-2019 / 22:39:43 / Claus Gittinger" |
9892 | 2912 |
! |
2913 |
||
10435 | 2914 |
sortByLineNumber |
10766 | 2915 |
self keepingSelectionDo:[ |
14484 | 2916 |
tagList sortedByLineNumber:true. |
2917 |
self sortIsByName value:false. |
|
2918 |
self sortIsByLineNumber value:true. |
|
10766 | 2919 |
] |
10435 | 2920 |
|
2921 |
"Created: / 03-08-2011 / 11:04:51 / cg" |
|
2922 |
! |
|
2923 |
||
2924 |
sortByName |
|
10766 | 2925 |
self keepingSelectionDo:[ |
14484 | 2926 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase: "sortedByName:" true. |
2927 |
self sortIsByLineNumber value:false. |
|
2928 |
self sortIsByName value:true. |
|
10766 | 2929 |
]. |
10435 | 2930 |
|
2931 |
"Created: / 03-08-2011 / 11:04:37 / cg" |
|
2932 |
! |
|
2933 |
||
9892 | 2934 |
updateTagList |
13341 | 2935 |
"regenerate tags |
9892 | 2936 |
" |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2937 |
|
10766 | 2938 |
|file target oldSelection| |
9892 | 2939 |
|
13632 | 2940 |
tagListGenerator notNil ifTrue:[ |
14578 | 2941 |
tagList setRawList:(tagListGenerator value). |
2942 |
"/ tagView list:(tagListGenerator value). |
|
2943 |
tagsValid := true. |
|
2944 |
^ self. |
|
13632 | 2945 |
]. |
2946 |
||
13341 | 2947 |
tagsValid := false. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2948 |
(true "(self tagsVisibilityHolder value == true)" |
14578 | 2949 |
and:[(file := self editedFile) notNil |
2950 |
and:[tagList supportsFile:file]] |
|
9892 | 2951 |
) ifTrue:[ |
14578 | 2952 |
(target := self buildTarget) notNil ifTrue:[ |
2953 |
(target isRemote and:[self tagsRemoteHolder value]) ifFalse:[ |
|
2954 |
target := nil |
|
2955 |
] |
|
2956 |
]. |
|
2957 |
oldSelection := tagView selectionValue. |
|
2958 |
(tagView generateTagsFor:file onTarget:target |
|
2959 |
finally:[ |
|
2960 |
|tagsForLabel oldLabel bestTag| |
|
2961 |
||
2962 |
oldSelection notNil ifTrue:[ |
|
2963 |
oldLabel := oldSelection label. |
|
2964 |
tagsForLabel := tagView elementsForWhich:[:el | el label = oldLabel]. |
|
2965 |
"/ only reselect, if there is exactly one |
|
2966 |
tagsForLabel size == 1 ifTrue:[ |
|
2967 |
tagView selectElement:tagsForLabel first |
|
2968 |
]. |
|
2969 |
"/ tagView |
|
2970 |
"/ selectElementForWhich:[:el | el label = oldLabel] |
|
2971 |
"/ ifAbsent:["ok, if previous tag is filtered away" "self halt"]. |
|
2972 |
]. |
|
2973 |
tagsValid := true. |
|
2974 |
] |
|
2975 |
) ifFalse:[ |
|
2976 |
"/ did not start a background tag job |
|
2977 |
tagsValid := true. "/ to avoid waiting forever |
|
2978 |
]. |
|
9892 | 2979 |
] ifFalse:[ |
14578 | 2980 |
tagView stopGeneratingTags. |
2981 |
tagView clearList. |
|
2982 |
tagsValid := true. |
|
9892 | 2983 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2984 |
|
10969 | 2985 |
"Modified: / 07-12-2011 / 11:13:18 / cg" |
9892 | 2986 |
! ! |
2987 |
||
2988 |
!TagsBrowser methodsFor:'startup & release'! |
|
2989 |
||
14484 | 2990 |
assignFocusToTagFilterInputField |
13076 | 2991 |
(self builder componentAt:#TagFilterInputField) requestFocus. |
2992 |
"/ (self builder componentAt:#TagFilterInputField) takeFocus |
|
2993 |
||
2994 |
"Created: / 02-08-2012 / 22:00:45 / cg" |
|
2995 |
! |
|
2996 |
||
9892 | 2997 |
cloneWith:anApplication |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2998 |
"/ |browser| |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2999 |
"/ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3000 |
"/ (browser := anApplication tagsBrowser) notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3001 |
"/ self tagsVisibilityHolder value:(browser tagsVisibilityHolder value) |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3002 |
"/ ] |
9892 | 3003 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3004 |
"Modified: / 07-05-2011 / 11:54:48 / cg" |
9892 | 3005 |
! |
3006 |
||
3007 |
initialize |
|
3008 |
super initialize. |
|
3009 |
||
3010 |
tagList := TagList new. |
|
3011 |
tagView := TagView new. |
|
14480 | 3012 |
tagsValid := false. |
9892 | 3013 |
|
3014 |
tagView application:self. |
|
3015 |
tagView list:tagList. |
|
3016 |
||
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3017 |
tagView action:[:i| self tagListSelectionChangedTo:i]. |
10435 | 3018 |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3019 |
"Modified: / 06-12-2011 / 14:57:06 / cg" |
10435 | 3020 |
! |
3021 |
||
3022 |
postBuildWith:aBuilder |
|
3023 |
super postBuildWith:aBuilder. |
|
3024 |
||
3025 |
self sortIsByName value:true. |
|
3026 |
||
3027 |
"Created: / 03-08-2011 / 11:19:44 / cg" |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3028 |
! |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3029 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3030 |
tagListSelectionChangedTo:idx |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3031 |
|tag| |
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 |
action notNil ifTrue:[ |
14484 | 3034 |
tagList isEmpty ifTrue:[ |
3035 |
tagList := tagView list |
|
3036 |
]. |
|
3037 |
tag := tagList at:idx ifAbsent:nil. |
|
3038 |
tag notNil ifTrue:[ action value:tag ]. |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3039 |
] |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3040 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3041 |
"Modified: / 03-08-2011 / 11:19:49 / cg" |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
3042 |
"Created: / 06-12-2011 / 14:57:26 / cg" |
9892 | 3043 |
! ! |
3044 |
||
3045 |
!TagsBrowser::TagView methodsFor:'accessing'! |
|
3046 |
||
3047 |
application |
|
3048 |
"returns my application, the TagsBrowser |
|
3049 |
" |
|
3050 |
^ application |
|
3051 |
! |
|
3052 |
||
3053 |
application:theTagsBrowser |
|
3054 |
"set my application, the TagsBrowser |
|
3055 |
" |
|
3056 |
application := theTagsBrowser. |
|
3057 |
! |
|
3058 |
||
12068 | 3059 |
clearList |
3060 |
self list:nil |
|
3061 |
! |
|
3062 |
||
9892 | 3063 |
filter:aString |
3064 |
list filter:aString. |
|
3065 |
! |
|
3066 |
||
13354 | 3067 |
list:aList |
13664 | 3068 |
(aList isNil or:[aList isKindOf:Tools::TagList]) ifFalse:[self halt]. |
13354 | 3069 |
super list:aList. |
3070 |
! |
|
3071 |
||
13664 | 3072 |
newDefaultList |
3073 |
^ TagList new |
|
3074 |
! |
|
3075 |
||
9892 | 3076 |
tagLineNr:lineNr |
3077 |
"remember line nr for which a tag should be highlighted. |
|
3078 |
(will set my selection late, when the taglist is available" |
|
3079 |
||
3080 |
tagLineNr := lineNr |
|
3081 |
! ! |
|
3082 |
||
3083 |
!TagsBrowser::TagView methodsFor:'drawing'! |
|
3084 |
||
3085 |
drawLabelAt:anIndex x:x y:y h:h |
|
16858 | 3086 |
"draw the label at position x/y without clearing the background" |
3087 |
||
14526 | 3088 |
|item label typeIdentifier font |
13302 | 3089 |
y0 widthOfTypeIdentifier inset inSelection lineNrString| |
3090 |
||
9892 | 3091 |
item := list at:anIndex ifAbsent:nil. |
3092 |
item isNil ifTrue:[^ self]. |
|
3093 |
||
14526 | 3094 |
font := gc font. |
3095 |
||
14353 | 3096 |
label := item printString ? ''. |
13302 | 3097 |
(inSelection := self isInSelection:anIndex) ifTrue:[ |
14633 | 3098 |
self hasFocus ifTrue:[ |
17255 | 3099 |
gc paint:hilightFgColor on:hilightBgColor. |
14633 | 3100 |
] ifFalse:[ |
17255 | 3101 |
gc paint:hilightFgColorNoFocus on:hilightBgColorNoFocus |
14633 | 3102 |
]. |
14526 | 3103 |
label := label string. "/ to avoid printing blue on blue |
13302 | 3104 |
] ifFalse:[ |
17255 | 3105 |
gc paint:fgColor on:bgColor. |
13302 | 3106 |
]. |
3107 |
||
3108 |
lineNrString := ' [ %1 ]' bindWith:item lineNumber. |
|
3109 |
inSelection ifFalse:[ |
|
16512 | 3110 |
lineNrString := lineNrString withColor:Color darkGray. |
13302 | 3111 |
]. |
3112 |
label := label asText , lineNrString. |
|
3113 |
||
14526 | 3114 |
y0 := y - (((font height) + 1 - h) // 2) + font ascent. |
13302 | 3115 |
|
3116 |
typeIdentifier := item typeIdentifierInList. |
|
3117 |
typeIdentifier isNil ifTrue:[ |
|
14526 | 3118 |
widthOfTypeIdentifier := 0 |
13302 | 3119 |
] ifFalse:[ |
17537 | 3120 |
typeIdentifier := typeIdentifier allBold. |
16858 | 3121 |
typeIdentifier displayOn:gc x:x y:y0. |
3122 |
widthOfTypeIdentifier := (typeIdentifier widthOn:gc) + font width "... of a space". |
|
9892 | 3123 |
]. |
13302 | 3124 |
inset := TypeInset max:widthOfTypeIdentifier. |
3125 |
||
16858 | 3126 |
label displayOn:gc x:(x + inset) y:y0 |
10759 | 3127 |
|
14546 | 3128 |
"Modified: / 23-06-2014 / 21:23:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17537 | 3129 |
"Modified: / 20-06-2017 / 08:18:21 / cg" |
9892 | 3130 |
! |
3131 |
||
3132 |
drawSelectionFrameAt:lnNr x:x w:w |
|
3133 |
"draw the background and foreground of the selection frame |
|
3134 |
at a lineNr. |
|
3135 |
" |
|
3136 |
|item |
|
3137 |
x0 "{ Class:SmallInteger }" |
|
3138 |
x1 "{ Class: SmallInteger }" |
|
3139 |
y0 "{ Class:SmallInteger }" |
|
3140 |
y1 "{ Class:SmallInteger }" |
|
3141 |
hL "{ Class:SmallInteger }" |
|
3142 |
wL "{ Class:SmallInteger }" |
|
3143 |
| |
|
3144 |
(item := list at:lnNr ifAbsent:nil) isNil ifTrue:[ |
|
14633 | 3145 |
"/ list might change during drawing; item no longer visible |
3146 |
^ self |
|
9892 | 3147 |
]. |
3148 |
||
3149 |
"/ CLEAR THE BACKGROUND |
|
3150 |
||
3151 |
y0 := self yVisibleOfLine:lnNr. |
|
3152 |
y1 := self yVisibleOfLine:(lnNr + 1). |
|
3153 |
hL := y1 - y0. |
|
3154 |
||
13302 | 3155 |
x0 := textStartLeft - viewOrigin x "+ TypeInset - 4". |
9892 | 3156 |
x1 := (self widthOfContents - viewOrigin x) max:(width - margin). |
3157 |
wL := x1 - x0. |
|
3158 |
||
3159 |
wL > 0 ifFalse:[^ self]. |
|
3160 |
||
17255 | 3161 |
gc paint:(self hasFocus ifTrue:[hilightBgColor] ifFalse:[hilightBgColorNoFocus]). |
3162 |
gc fillRectangleX:x0 y:y0 width:wL height:hL. |
|
9892 | 3163 |
|
3164 |
"/ DRAW THE FRAME |
|
3165 |
||
3166 |
hilightFrameColor notNil ifTrue:[ |
|
14633 | 3167 |
hilightLevel == 0 ifTrue:[ |
17255 | 3168 |
gc paint:hilightFrameColor. |
3169 |
gc displayRectangleX:x0 y:y0 width:wL height:hL. |
|
3170 |
^ self. |
|
14633 | 3171 |
] |
9892 | 3172 |
] ifFalse:[ |
14633 | 3173 |
hilightStyle == #motif ifTrue:[ |
17255 | 3174 |
gc paint:bgColor. |
14633 | 3175 |
y1 := y0 + 1. |
17255 | 3176 |
gc displayRectangleX:x0 + 1 y:y1 width:wL - 2 height:hL - 2. |
14633 | 3177 |
] |
9892 | 3178 |
]. |
3179 |
||
3180 |
hilightLevel ~~ 0 ifTrue:[ |
|
14633 | 3181 |
"/ draw edge |
3182 |
self drawEdgesForX:x0 y:y0 width:wL height:hL level:hilightLevel. |
|
9892 | 3183 |
] |
3184 |
! ! |
|
3185 |
||
3186 |
!TagsBrowser::TagView methodsFor:'generating tags'! |
|
3187 |
||
10766 | 3188 |
generateTagsFor:aFile onTarget:aTarget finally:aBlock |
9892 | 3189 |
"generate tags for a file (optionally on a remote target) |
13632 | 3190 |
return true, if a background job for generation has been started" |
3191 |
||
9892 | 3192 |
|tagFile| |
3193 |
||
13632 | 3194 |
"/ ugly hack to suppress generation if the taglist is externally provided |
13664 | 3195 |
(list isKindOf:Tools::TagList) ifFalse:[ |
14484 | 3196 |
^ false |
13664 | 3197 |
]. |
12741 | 3198 |
|
9892 | 3199 |
Tag autoload. |
3200 |
||
3201 |
self stopGeneratingTags. |
|
3202 |
||
3203 |
aFile isNil ifTrue:[ |
|
14484 | 3204 |
^ false |
9892 | 3205 |
]. |
3206 |
fileName := aFile asFilename. |
|
3207 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3208 |
"/ (tagFile := application changes backupFor:fileName) isNil ifTrue:[ |
14484 | 3209 |
tagFile := fileName. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
3210 |
"/ ]. |
9892 | 3211 |
|
3212 |
process := [ |
|
14484 | 3213 |
[ |
3214 |
Error handle:[:ex| |
|
3215 |
Transcript show:'TagGenerator error caught:'; showCR:ex errorString. |
|
3216 |
ex suspendedContext fullPrintAllOn:Transcript. |
|
3217 |
(Dialog |
|
3218 |
confirm:(resources stringWithCRs:'Error encountered while generating tags:\\ %1\\Debug ?' with:ex description) |
|
3219 |
yesLabel:'Debug' |
|
3220 |
) ifTrue:[ |
|
3221 |
ex reject |
|
3222 |
]. |
|
3223 |
] do:[ |
|
3224 |
|bestTag| |
|
3225 |
||
3226 |
self enabled:false. |
|
3227 |
list add:nil. |
|
3228 |
list add:(Tag label:('Generating Tags ...' allBold) pattern:nil). |
|
3229 |
"/ list filter:filter. |
|
3230 |
list sortedByName:(application sortIsByName value). |
|
3231 |
||
3232 |
list |
|
3233 |
fromFile:tagFile |
|
3234 |
in:(application tempDirectory) |
|
3235 |
onTarget:aTarget. |
|
3236 |
||
3237 |
tagLineNr notNil ifTrue:[ |
|
3238 |
bestTag := list bestTagForLine:tagLineNr. |
|
3239 |
bestTag notNil ifTrue:[ |
|
3240 |
self setSelection:(list identityIndexOf:bestTag). |
|
3241 |
]. |
|
3242 |
tagLineNr := nil |
|
3243 |
]. |
|
3244 |
aBlock value. |
|
3245 |
] |
|
3246 |
] ensure:[ |
|
3247 |
process := nil. |
|
3248 |
self enabled:true. |
|
3249 |
]. |
|
9892 | 3250 |
] forkAt:4. |
3251 |
||
3252 |
process priorityRange:(4 to:8). |
|
13354 | 3253 |
^ true. |
9892 | 3254 |
|
10766 | 3255 |
"Created: / 06-10-2011 / 13:56:18 / cg" |
9892 | 3256 |
! |
3257 |
||
3258 |
stopGeneratingTags |
|
3259 |
"stop the process which generates the tags |
|
3260 |
" |
|
3261 |
|task| |
|
3262 |
||
3263 |
(task := process) notNil ifTrue:[ |
|
14484 | 3264 |
process := nil. |
3265 |
||
3266 |
Exception handle:[:ex| |
|
3267 |
Transcript showCR:('caught exception during tag-process termination: ',ex description). |
|
3268 |
] do:[ |
|
3269 |
task terminateWithAllSubprocessesInGroup. |
|
3270 |
task waitUntilTerminated. |
|
3271 |
] |
|
9892 | 3272 |
]. |
3273 |
fileName := nil. |
|
10766 | 3274 |
"/ list removeAll. |
3275 |
||
3276 |
"Modified (comment): / 06-10-2011 / 14:01:30 / cg" |
|
9892 | 3277 |
! ! |
3278 |
||
3279 |
!TagsBrowser::TagView methodsFor:'initialize & release'! |
|
3280 |
||
3281 |
destroy |
|
3282 |
self stopGeneratingTags. |
|
3283 |
super destroy. |
|
3284 |
! |
|
3285 |
||
3286 |
initialize |
|
3287 |
||
3288 |
TypeInset := 16. |
|
3289 |
||
3290 |
super initialize. |
|
3291 |
highlightMode := #line. |
|
14561 | 3292 |
itemHeight := gc font height. |
9892 | 3293 |
! ! |
3294 |
||
3295 |
!TagsBrowser::TagView methodsFor:'protocol'! |
|
3296 |
||
14484 | 3297 |
heightOfLineAt:aLineNr |
13302 | 3298 |
"returns the total height for a line at an index (including lineSpacing)" |
14484 | 3299 |
|
14563 | 3300 |
^ lineSpacing + itemHeight |
9892 | 3301 |
! |
3302 |
||
14484 | 3303 |
widthOfWidestLineBetween:firstLine and:lastLine |
15897 | 3304 |
"return the width in pixels of the widest line in a range. |
3305 |
- used to optimize scrolling, by limiting the scrolled area; |
|
3306 |
not for scrollbar or other width related stuff which should be exact." |
|
14484 | 3307 |
|
13302 | 3308 |
^ TypeInset + (super widthOfWidestLineBetween:firstLine and:lastLine) |
9892 | 3309 |
! ! |
3310 |
||
3311 |
!TagsBrowser class methodsFor:'documentation'! |
|
3312 |
||
10763 | 3313 |
version |
15772 | 3314 |
^ '$Header$' |
10763 | 3315 |
! |
3316 |
||
9892 | 3317 |
version_CVS |
15772 | 3318 |
^ '$Header$' |
10055 | 3319 |
! |
3320 |
||
3321 |
version_SVN |
|
15772 | 3322 |
^ '$Id$' |
9892 | 3323 |
! ! |
14526 | 3324 |