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