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