author | Claus Gittinger <cg@exept.de> |
Fri, 15 Jun 2018 04:00:37 +0200 | |
changeset 18220 | d1ebaddf1100 |
parent 18113 | 37239b35dde3 |
child 18641 | fcccf2b93a1c |
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 |
bounds: (Rectangle 0 0 300 337) |
|
120 |
) |
|
121 |
component: |
|
122 |
(SpecCollection |
|
123 |
collection: ( |
|
15248 | 124 |
(VerticalPanelViewSpec |
125 |
name: 'VerticalPanel1' |
|
126 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
127 |
horizontalLayout: fit |
|
128 |
verticalLayout: topFit |
|
14543 | 129 |
horizontalSpace: 3 |
130 |
verticalSpace: 3 |
|
131 |
elementsChangeSize: true |
|
132 |
component: |
|
133 |
(SpecCollection |
|
134 |
collection: ( |
|
15248 | 135 |
(HorizontalPanelViewSpec |
136 |
name: 'TagToolbarHorizontalPanel' |
|
137 |
horizontalLayout: leftFit |
|
138 |
verticalLayout: center |
|
139 |
horizontalSpace: 3 |
|
140 |
verticalSpace: 3 |
|
141 |
ignoreInvisibleComponents: false |
|
142 |
elementsChangeSize: true |
|
143 |
component: |
|
144 |
(SpecCollection |
|
145 |
collection: ( |
|
146 |
(MenuPanelSpec |
|
147 |
name: 'ToolBar1' |
|
148 |
level: 0 |
|
149 |
menu: toolBarMenu |
|
150 |
extent: (Point 196 30) |
|
151 |
usePreferredWidth: true |
|
152 |
textDefault: true |
|
153 |
useDynamicPreferredWidth: true |
|
154 |
) |
|
155 |
) |
|
156 |
||
157 |
) |
|
158 |
extent: (Point 300 30) |
|
14543 | 159 |
) |
15248 | 160 |
(HorizontalPanelViewSpec |
161 |
name: 'TagFilterPanel' |
|
14543 | 162 |
visibilityChannel: tagFilterFieldVisibleHolder |
15248 | 163 |
horizontalLayout: leftFit |
164 |
verticalLayout: center |
|
165 |
horizontalSpace: 3 |
|
166 |
verticalSpace: 3 |
|
167 |
ignoreInvisibleComponents: false |
|
168 |
elementsChangeSize: true |
|
169 |
component: |
|
170 |
(SpecCollection |
|
171 |
collection: ( |
|
172 |
(LabelSpec |
|
173 |
label: 'Filter:' |
|
174 |
name: 'Label1' |
|
175 |
translateLabel: true |
|
176 |
resizeForLabel: true |
|
177 |
adjust: left |
|
178 |
useDefaultExtent: true |
|
179 |
) |
|
180 |
(InputFieldSpec |
|
181 |
name: 'TagFilterInputField' |
|
182 |
activeHelpKey: tagFilter |
|
183 |
model: tagFilterPatternHolder |
|
184 |
immediateAccept: true |
|
185 |
acceptOnReturn: true |
|
186 |
acceptOnTab: true |
|
187 |
acceptOnPointerLeave: true |
|
188 |
extent: (Point 254 22) |
|
189 |
) |
|
190 |
) |
|
191 |
||
192 |
) |
|
193 |
extent: (Point 300 30) |
|
194 |
) |
|
195 |
(ArbitraryComponentSpec |
|
196 |
name: 'Browser' |
|
197 |
level: -1 |
|
198 |
menu: middleButtonMenu |
|
199 |
hasHorizontalScrollBar: true |
|
200 |
hasVerticalScrollBar: true |
|
201 |
miniScrollerHorizontal: true |
|
202 |
miniScrollerVertical: false |
|
203 |
hasBorder: false |
|
204 |
component: tagView |
|
205 |
extent: (Point 300 271) |
|
14543 | 206 |
) |
207 |
) |
|
208 |
||
209 |
) |
|
210 |
) |
|
211 |
) |
|
212 |
||
213 |
) |
|
214 |
) |
|
9892 | 215 |
! ! |
216 |
||
217 |
!TagsBrowser class methodsFor:'menu specs'! |
|
218 |
||
219 |
assemblerMenuSlice |
|
220 |
"This resource specification was automatically generated |
|
221 |
by the MenuEditor of ST/X." |
|
222 |
||
223 |
"Do not manually edit this!! If it is corrupted, |
|
224 |
the MenuEditor may not be able to read the specification." |
|
225 |
||
226 |
" |
|
9920 | 227 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#assemblerMenuSlice |
228 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser assemblerMenuSlice)) startUp |
|
9892 | 229 |
" |
230 |
||
231 |
<resource: #menu> |
|
232 |
||
14484 | 233 |
^ |
9920 | 234 |
#(Menu |
14484 | 235 |
( |
236 |
(MenuItem |
|
237 |
label: '-' |
|
238 |
isVisible: editedFileHasAssemblerSuffix |
|
239 |
) |
|
240 |
(MenuItem |
|
241 |
enabled: tagTypesPresentHolder |
|
242 |
label: 'Hide Local Labels (Style1: Starting with ".")' |
|
243 |
translateLabel: true |
|
244 |
isVisible: editedFileHasAssemblerSuffix |
|
245 |
hideMenuOnActivated: false |
|
246 |
indication: hideLocalLabels: |
|
247 |
) |
|
248 |
(MenuItem |
|
249 |
enabled: tagTypesPresentHolder |
|
250 |
label: 'Hide Local Labels (Style2: Not Starting with "_")' |
|
251 |
translateLabel: true |
|
252 |
isVisible: editedFileHasAssemblerSuffix |
|
253 |
hideMenuOnActivated: false |
|
254 |
indication: hideLocalLabels2: |
|
255 |
) |
|
256 |
(MenuItem |
|
257 |
enabled: tagTypesPresentHolder |
|
258 |
label: 'Hide Local Labels (Style3: "L[0-9]+")' |
|
259 |
translateLabel: true |
|
260 |
isVisible: editedFileHasAssemblerSuffix |
|
261 |
hideMenuOnActivated: false |
|
262 |
indication: hideLocalLabels3: |
|
263 |
) |
|
264 |
(MenuItem |
|
265 |
enabled: tagTypesPresentHolder |
|
266 |
label: 'Hide Data Labels' |
|
267 |
translateLabel: true |
|
268 |
isVisible: editedFileHasAssemblerSuffix |
|
269 |
hideMenuOnActivated: false |
|
270 |
indication: hideDataLabels: |
|
271 |
) |
|
272 |
(MenuItem |
|
273 |
enabled: tagTypesPresentHolder |
|
274 |
label: 'Hide Text Labels' |
|
275 |
translateLabel: true |
|
276 |
isVisible: editedFileHasAssemblerSuffix |
|
277 |
hideMenuOnActivated: false |
|
278 |
indication: hideTextLabels: |
|
279 |
) |
|
280 |
) |
|
281 |
nil |
|
282 |
nil |
|
9892 | 283 |
) |
11465 | 284 |
|
11503 | 285 |
"Modified: / 13-05-2012 / 11:26:28 / cg" |
9892 | 286 |
! |
287 |
||
288 |
cMenuSlice |
|
289 |
"This resource specification was automatically generated |
|
290 |
by the MenuEditor of ST/X." |
|
291 |
||
292 |
"Do not manually edit this!! If it is corrupted, |
|
293 |
the MenuEditor may not be able to read the specification." |
|
294 |
||
295 |
" |
|
9920 | 296 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#cMenuSlice |
297 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser cMenuSlice)) startUp |
|
9892 | 298 |
" |
299 |
||
300 |
<resource: #menu> |
|
301 |
||
14484 | 302 |
^ |
9892 | 303 |
#(Menu |
14484 | 304 |
( |
305 |
(MenuItem |
|
306 |
label: '-' |
|
307 |
isVisible: editedFileHasCSuffix |
|
308 |
) |
|
309 |
(MenuItem |
|
310 |
enabled: tagTypesPresentHolder |
|
311 |
label: 'Classes, Functions && Variables Only' |
|
312 |
translateLabel: true |
|
313 |
isVisible: editedFileHasCSuffix |
|
314 |
indication: classesFunctionsAndVariablesOnly: |
|
315 |
) |
|
316 |
(MenuItem |
|
317 |
enabled: tagTypesPresentHolder |
|
318 |
label: 'Classes Only' |
|
319 |
translateLabel: true |
|
320 |
isVisible: editedFileHasCSuffix |
|
321 |
indication: classesOnly: |
|
322 |
) |
|
323 |
(MenuItem |
|
324 |
enabled: tagTypesPresentHolder |
|
325 |
label: 'Functions Only' |
|
326 |
translateLabel: true |
|
327 |
isVisible: editedFileHasCSuffix |
|
328 |
indication: functionsOnly: |
|
329 |
) |
|
330 |
(MenuItem |
|
331 |
enabled: tagTypesPresentHolder |
|
332 |
label: 'Variables Only' |
|
333 |
translateLabel: true |
|
334 |
isVisible: editedFileHasCSuffix |
|
335 |
indication: variablesOnly: |
|
336 |
) |
|
337 |
(MenuItem |
|
338 |
enabled: tagTypesPresentHolder |
|
339 |
label: 'Types Only' |
|
340 |
translateLabel: true |
|
341 |
isVisible: editedFileHasCSuffix |
|
342 |
indication: typesOnly: |
|
343 |
) |
|
344 |
(MenuItem |
|
345 |
enabled: tagTypesPresentHolder |
|
346 |
label: 'Structs Only' |
|
347 |
translateLabel: true |
|
348 |
isVisible: editedFileHasCSuffix |
|
349 |
indication: structsOnly: |
|
350 |
) |
|
351 |
(MenuItem |
|
352 |
enabled: tagTypesPresentHolder |
|
353 |
label: 'Defines Only' |
|
354 |
translateLabel: true |
|
355 |
isVisible: editedFileHasCSuffix |
|
356 |
indication: definesOnly: |
|
357 |
) |
|
358 |
(MenuItem |
|
359 |
label: '-' |
|
360 |
isVisible: editedFileHasCSuffix |
|
361 |
) |
|
362 |
(MenuItem |
|
363 |
enabled: tagTypesPresentHolder |
|
364 |
label: 'Hide Classes' |
|
365 |
translateLabel: true |
|
366 |
isVisible: editedFileHasCSuffix |
|
367 |
hideMenuOnActivated: false |
|
368 |
indication: hideClasses: |
|
369 |
) |
|
370 |
(MenuItem |
|
371 |
enabled: tagTypesPresentHolder |
|
372 |
label: 'Hide Functions' |
|
373 |
translateLabel: true |
|
374 |
isVisible: editedFileHasCSuffix |
|
375 |
hideMenuOnActivated: false |
|
376 |
indication: hideFunctions: |
|
377 |
) |
|
378 |
(MenuItem |
|
379 |
enabled: tagTypesPresentHolder |
|
380 |
label: 'Hide Variables' |
|
381 |
translateLabel: true |
|
382 |
isVisible: editedFileHasCSuffix |
|
383 |
hideMenuOnActivated: false |
|
384 |
indication: hideVariables: |
|
385 |
) |
|
386 |
(MenuItem |
|
387 |
enabled: tagTypesPresentHolder |
|
388 |
label: 'Hide Typedefs' |
|
389 |
translateLabel: true |
|
390 |
isVisible: editedFileHasCSuffix |
|
391 |
hideMenuOnActivated: false |
|
392 |
indication: hideTypedefs: |
|
393 |
) |
|
394 |
(MenuItem |
|
395 |
enabled: tagTypesPresentHolder |
|
396 |
label: 'Hide Structures' |
|
397 |
translateLabel: true |
|
398 |
isVisible: editedFileHasCSuffix |
|
399 |
hideMenuOnActivated: false |
|
400 |
indication: hideStructures: |
|
401 |
) |
|
402 |
(MenuItem |
|
403 |
enabled: tagTypesPresentHolder |
|
404 |
label: 'Hide Struct Members' |
|
405 |
translateLabel: true |
|
406 |
isVisible: editedFileHasCSuffix |
|
407 |
hideMenuOnActivated: false |
|
408 |
indication: hideStructMembers: |
|
409 |
) |
|
410 |
(MenuItem |
|
411 |
enabled: tagTypesPresentHolder |
|
412 |
label: 'Hide Defines' |
|
413 |
translateLabel: true |
|
414 |
isVisible: editedFileHasCSuffix |
|
415 |
hideMenuOnActivated: false |
|
416 |
indication: hideDefines: |
|
417 |
) |
|
418 |
(MenuItem |
|
419 |
enabled: tagTypesPresentHolder |
|
420 |
label: 'Hide Labels' |
|
421 |
translateLabel: true |
|
422 |
isVisible: editedFileHasCSuffix |
|
423 |
hideMenuOnActivated: false |
|
424 |
indication: hideLabels: |
|
425 |
) |
|
426 |
(MenuItem |
|
427 |
label: '-' |
|
428 |
isVisible: editedFileHasCSuffix |
|
429 |
) |
|
430 |
(MenuItem |
|
431 |
enabled: tagTypesPresentHolder |
|
432 |
label: 'Hide Static' |
|
433 |
translateLabel: true |
|
434 |
isVisible: editedFileHasCSuffix |
|
435 |
hideMenuOnActivated: false |
|
436 |
indication: hideStatic: |
|
437 |
) |
|
438 |
) |
|
439 |
nil |
|
440 |
nil |
|
9892 | 441 |
) |
442 |
! |
|
443 |
||
11761 | 444 |
dartMenuSlice |
445 |
"This resource specification was automatically generated |
|
446 |
by the MenuEditor of ST/X." |
|
447 |
||
448 |
"Do not manually edit this!! If it is corrupted, |
|
449 |
the MenuEditor may not be able to read the specification." |
|
450 |
||
451 |
" |
|
452 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaMenuSlice |
|
453 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaMenuSlice)) startUp |
|
454 |
" |
|
455 |
||
456 |
<resource: #menu> |
|
457 |
||
14484 | 458 |
^ |
11761 | 459 |
#(Menu |
17553 | 460 |
( |
461 |
(MenuItem |
|
462 |
label: '-' |
|
463 |
isVisible: editedFileHasDartSuffix |
|
464 |
) |
|
465 |
(MenuItem |
|
466 |
enabled: tagTypesPresentHolder |
|
467 |
label: 'Classes Only' |
|
468 |
translateLabel: true |
|
469 |
isVisible: editedFileHasDartSuffix |
|
470 |
indication: classesOnly: |
|
471 |
) |
|
472 |
(MenuItem |
|
473 |
enabled: tagTypesPresentHolder |
|
474 |
label: 'Methods Only' |
|
475 |
translateLabel: true |
|
476 |
isVisible: editedFileHasDartSuffix |
|
477 |
indication: methodsOnly: |
|
478 |
) |
|
479 |
(MenuItem |
|
480 |
enabled: tagTypesPresentHolder |
|
481 |
label: 'Classes && Methods Only' |
|
482 |
translateLabel: true |
|
483 |
isVisible: editedFileHasDartSuffix |
|
484 |
indication: classesAndMethodsOnly: |
|
485 |
) |
|
486 |
(MenuItem |
|
487 |
label: '-' |
|
488 |
isVisible: editedFileHasDartSuffix |
|
489 |
) |
|
490 |
(MenuItem |
|
491 |
enabled: tagTypesPresentHolder |
|
492 |
label: 'Hide Packages' |
|
493 |
translateLabel: true |
|
494 |
isVisible: false "editedFileHasDartSuffix" |
|
495 |
hideMenuOnActivated: false |
|
496 |
indication: hidePackages: |
|
497 |
) |
|
498 |
(MenuItem |
|
499 |
enabled: tagTypesPresentHolder |
|
500 |
label: 'Hide Classes' |
|
501 |
translateLabel: true |
|
502 |
isVisible: editedFileHasDartSuffix |
|
503 |
hideMenuOnActivated: false |
|
504 |
indication: hideClasses: |
|
505 |
) |
|
506 |
(MenuItem |
|
507 |
enabled: tagTypesPresentHolder |
|
508 |
label: 'Hide Interfaces' |
|
509 |
translateLabel: true |
|
510 |
isVisible: editedFileHasDartSuffix |
|
511 |
hideMenuOnActivated: false |
|
512 |
indication: hideInterfaces: |
|
513 |
) |
|
514 |
(MenuItem |
|
515 |
enabled: tagTypesPresentHolder |
|
516 |
label: 'Hide Methods' |
|
517 |
translateLabel: true |
|
518 |
isVisible: editedFileHasDartSuffix |
|
519 |
hideMenuOnActivated: false |
|
520 |
indication: hideMethods: |
|
521 |
) |
|
522 |
(MenuItem |
|
523 |
enabled: tagTypesPresentHolder |
|
524 |
label: 'Hide Fields' |
|
525 |
translateLabel: true |
|
526 |
isVisible: editedFileHasDartSuffix |
|
527 |
hideMenuOnActivated: false |
|
528 |
indication: hideFields: |
|
529 |
) |
|
530 |
) |
|
531 |
nil |
|
532 |
nil |
|
11761 | 533 |
) |
534 |
||
17553 | 535 |
"Modified: / 22-06-2017 / 10:52:06 / cg" |
11761 | 536 |
! |
537 |
||
14578 | 538 |
htmlMenuSlice |
539 |
"This resource specification was automatically generated |
|
540 |
by the MenuEditor of ST/X." |
|
541 |
||
542 |
"Do not manually edit this!! If it is corrupted, |
|
543 |
the MenuEditor may not be able to read the specification." |
|
544 |
||
545 |
" |
|
546 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#lispMenuSlice |
|
547 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser lispMenuSlice)) startUp |
|
548 |
" |
|
549 |
||
550 |
<resource: #menu> |
|
551 |
||
552 |
^ |
|
553 |
#(Menu |
|
554 |
( |
|
555 |
(MenuItem |
|
556 |
label: '-' |
|
557 |
isVisible: editedFileHasHtmlSuffix |
|
558 |
) |
|
559 |
(MenuItem |
|
560 |
enabled: tagTypesPresentHolder |
|
561 |
label: 'Anchors Only' |
|
562 |
translateLabel: true |
|
563 |
isVisible: editedFileHasHtmlSuffix |
|
564 |
indication: anchorsOnly: |
|
565 |
) |
|
566 |
(MenuItem |
|
567 |
enabled: tagTypesPresentHolder |
|
568 |
label: 'Headlines Only' |
|
569 |
translateLabel: true |
|
570 |
isVisible: editedFileHasHtmlSuffix |
|
571 |
indication: headlinesOnly: |
|
572 |
) |
|
573 |
) |
|
574 |
nil |
|
575 |
nil |
|
576 |
) |
|
577 |
! |
|
578 |
||
9892 | 579 |
javaMenuSlice |
580 |
"This resource specification was automatically generated |
|
581 |
by the MenuEditor of ST/X." |
|
582 |
||
583 |
"Do not manually edit this!! If it is corrupted, |
|
584 |
the MenuEditor may not be able to read the specification." |
|
585 |
||
586 |
" |
|
9920 | 587 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaMenuSlice |
588 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaMenuSlice)) startUp |
|
9892 | 589 |
" |
590 |
||
591 |
<resource: #menu> |
|
592 |
||
14484 | 593 |
^ |
9920 | 594 |
#(Menu |
17553 | 595 |
( |
596 |
(MenuItem |
|
597 |
label: '-' |
|
598 |
isVisible: editedFileHasJavaSuffix |
|
599 |
) |
|
600 |
(MenuItem |
|
601 |
enabled: tagTypesPresentHolder |
|
602 |
label: 'Classes Only' |
|
603 |
translateLabel: true |
|
604 |
isVisible: editedFileHasJavaSuffix |
|
605 |
indication: classesOnly: |
|
606 |
) |
|
607 |
(MenuItem |
|
608 |
enabled: tagTypesPresentHolder |
|
609 |
label: 'Methods OnLy' |
|
610 |
translateLabel: true |
|
611 |
isVisible: editedFileHasJavaSuffix |
|
612 |
indication: methodsOnly: |
|
613 |
) |
|
614 |
(MenuItem |
|
615 |
enabled: tagTypesPresentHolder |
|
616 |
label: 'Classes && Methods Only' |
|
617 |
translateLabel: true |
|
618 |
isVisible: editedFileHasJavaSuffix |
|
619 |
indication: classesAndMethodsOnly: |
|
620 |
) |
|
621 |
(MenuItem |
|
622 |
label: '-' |
|
623 |
isVisible: editedFileHasJavaSuffix |
|
624 |
) |
|
625 |
(MenuItem |
|
626 |
enabled: tagTypesPresentHolder |
|
627 |
label: 'Hide Packages' |
|
628 |
translateLabel: true |
|
629 |
isVisible: editedFileHasJavaSuffix |
|
630 |
hideMenuOnActivated: false |
|
631 |
indication: hidePackages: |
|
632 |
) |
|
633 |
(MenuItem |
|
634 |
enabled: tagTypesPresentHolder |
|
635 |
label: 'Hide Classes' |
|
636 |
translateLabel: true |
|
637 |
isVisible: editedFileHasJavaSuffix |
|
638 |
hideMenuOnActivated: false |
|
639 |
indication: hideClasses: |
|
640 |
) |
|
641 |
(MenuItem |
|
642 |
enabled: tagTypesPresentHolder |
|
643 |
label: 'Hide Methods' |
|
644 |
translateLabel: true |
|
645 |
isVisible: editedFileHasJavaSuffix |
|
646 |
hideMenuOnActivated: false |
|
647 |
indication: hideMethods: |
|
648 |
) |
|
649 |
(MenuItem |
|
650 |
enabled: tagTypesPresentHolder |
|
651 |
label: 'Hide Fields' |
|
652 |
translateLabel: true |
|
653 |
isVisible: editedFileHasJavaSuffix |
|
654 |
hideMenuOnActivated: false |
|
655 |
indication: hideFields: |
|
656 |
) |
|
657 |
) |
|
658 |
nil |
|
659 |
nil |
|
9892 | 660 |
) |
17553 | 661 |
|
662 |
"Modified: / 22-06-2017 / 10:52:30 / cg" |
|
9892 | 663 |
! |
664 |
||
665 |
javaScriptMenuSlice |
|
666 |
"This resource specification was automatically generated |
|
667 |
by the MenuEditor of ST/X." |
|
668 |
||
669 |
"Do not manually edit this!! If it is corrupted, |
|
670 |
the MenuEditor may not be able to read the specification." |
|
671 |
||
672 |
" |
|
9920 | 673 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
674 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
9892 | 675 |
" |
676 |
||
677 |
<resource: #menu> |
|
678 |
||
14484 | 679 |
^ |
9920 | 680 |
#(Menu |
14484 | 681 |
( |
682 |
(MenuItem |
|
683 |
label: '-' |
|
684 |
isVisible: editedFileHasJavaScriptSuffix |
|
685 |
) |
|
686 |
(MenuItem |
|
687 |
enabled: tagTypesPresentHolder |
|
688 |
label: 'Functions Only' |
|
689 |
translateLabel: true |
|
690 |
isVisible: editedFileHasJavaScriptSuffix |
|
691 |
hideMenuOnActivated: false |
|
692 |
indication: functionsOnly: |
|
693 |
) |
|
694 |
(MenuItem |
|
695 |
enabled: tagTypesPresentHolder |
|
696 |
label: 'Variables Only' |
|
697 |
translateLabel: true |
|
698 |
isVisible: editedFileHasJavaScriptSuffix |
|
699 |
hideMenuOnActivated: false |
|
700 |
indication: variablesOnly: |
|
701 |
) |
|
702 |
) |
|
703 |
nil |
|
704 |
nil |
|
9892 | 705 |
) |
706 |
! |
|
707 |
||
708 |
lispMenuSlice |
|
709 |
"This resource specification was automatically generated |
|
710 |
by the MenuEditor of ST/X." |
|
711 |
||
712 |
"Do not manually edit this!! If it is corrupted, |
|
713 |
the MenuEditor may not be able to read the specification." |
|
714 |
||
715 |
" |
|
9920 | 716 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#lispMenuSlice |
717 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser lispMenuSlice)) startUp |
|
9892 | 718 |
" |
719 |
||
720 |
<resource: #menu> |
|
721 |
||
14484 | 722 |
^ |
9892 | 723 |
#(Menu |
14484 | 724 |
( |
725 |
(MenuItem |
|
726 |
label: '-' |
|
727 |
isVisible: editedFileHasLispSuffix |
|
728 |
) |
|
729 |
(MenuItem |
|
730 |
enabled: tagTypesPresentHolder |
|
731 |
label: 'Documentation Only' |
|
732 |
translateLabel: true |
|
733 |
isVisible: editedFileHasLispSuffix |
|
734 |
indication: documentationOnly: |
|
735 |
) |
|
736 |
(MenuItem |
|
737 |
enabled: tagTypesPresentHolder |
|
738 |
label: 'Classes Only' |
|
739 |
translateLabel: true |
|
740 |
isVisible: editedFileHasLispSuffix |
|
741 |
indication: classesOnly: |
|
742 |
) |
|
743 |
(MenuItem |
|
744 |
enabled: tagTypesPresentHolder |
|
745 |
label: 'Methods Only' |
|
746 |
translateLabel: true |
|
747 |
isVisible: editedFileHasLispSuffix |
|
748 |
indication: methodsOnly: |
|
749 |
) |
|
750 |
(MenuItem |
|
751 |
enabled: tagTypesPresentHolder |
|
752 |
label: 'Functions Only' |
|
753 |
translateLabel: true |
|
754 |
isVisible: editedFileHasLispSuffix |
|
755 |
indication: functionsOnly: |
|
756 |
) |
|
757 |
(MenuItem |
|
758 |
enabled: tagTypesPresentHolder |
|
759 |
label: 'Variables Only' |
|
760 |
translateLabel: true |
|
761 |
isVisible: editedFileHasLispSuffix |
|
762 |
indication: variablesOnly: |
|
763 |
) |
|
764 |
(MenuItem |
|
765 |
enabled: tagTypesPresentHolder |
|
766 |
label: 'Macros Only' |
|
767 |
translateLabel: true |
|
768 |
isVisible: editedFileHasLispSuffix |
|
769 |
indication: macrosOnly: |
|
770 |
) |
|
771 |
(MenuItem |
|
772 |
label: '-' |
|
773 |
isVisible: editedFileHasLispSuffix |
|
774 |
) |
|
775 |
(MenuItem |
|
776 |
enabled: tagTypesPresentHolder |
|
777 |
label: 'Hide Documentation' |
|
778 |
translateLabel: true |
|
779 |
isVisible: editedFileHasLispSuffix |
|
780 |
hideMenuOnActivated: false |
|
781 |
indication: hideDocumentation: |
|
782 |
) |
|
783 |
(MenuItem |
|
784 |
enabled: tagTypesPresentHolder |
|
785 |
label: 'Hide Classes' |
|
786 |
translateLabel: true |
|
787 |
isVisible: editedFileHasLispSuffix |
|
788 |
hideMenuOnActivated: false |
|
789 |
indication: hideClasses: |
|
790 |
) |
|
791 |
(MenuItem |
|
792 |
enabled: tagTypesPresentHolder |
|
793 |
label: 'Hide Methods' |
|
794 |
translateLabel: true |
|
795 |
isVisible: editedFileHasLispSuffix |
|
796 |
hideMenuOnActivated: false |
|
797 |
indication: hideLispMethods: |
|
798 |
) |
|
799 |
(MenuItem |
|
800 |
enabled: tagTypesPresentHolder |
|
801 |
label: 'Hide Functions' |
|
802 |
translateLabel: true |
|
803 |
isVisible: editedFileHasLispSuffix |
|
804 |
hideMenuOnActivated: false |
|
805 |
indication: hideFunctions: |
|
806 |
) |
|
807 |
(MenuItem |
|
808 |
enabled: tagTypesPresentHolder |
|
809 |
label: 'Hide Variables' |
|
810 |
translateLabel: true |
|
811 |
isVisible: editedFileHasLispSuffix |
|
812 |
hideMenuOnActivated: false |
|
813 |
indication: hideVariables: |
|
814 |
) |
|
815 |
(MenuItem |
|
816 |
enabled: tagTypesPresentHolder |
|
817 |
label: 'Hide Macros' |
|
818 |
translateLabel: true |
|
819 |
isVisible: editedFileHasLispSuffix |
|
820 |
hideMenuOnActivated: false |
|
821 |
indication: hideLispMacros: |
|
822 |
) |
|
823 |
(MenuItem |
|
824 |
enabled: tagTypesPresentHolder |
|
825 |
label: 'Hide Constants' |
|
826 |
translateLabel: true |
|
827 |
isVisible: editedFileHasLispSuffix |
|
828 |
hideMenuOnActivated: false |
|
829 |
indication: hideLispConstants: |
|
830 |
) |
|
831 |
(MenuItem |
|
832 |
enabled: tagTypesPresentHolder |
|
833 |
label: 'Hide Evaluations' |
|
834 |
translateLabel: true |
|
835 |
isVisible: editedFileHasLispSuffix |
|
836 |
hideMenuOnActivated: false |
|
837 |
indication: hideLispEvaluations: |
|
838 |
) |
|
839 |
(MenuItem |
|
840 |
enabled: tagTypesPresentHolder |
|
841 |
label: 'Hide Structs' |
|
842 |
translateLabel: true |
|
843 |
isVisible: editedFileHasLispSuffix |
|
844 |
hideMenuOnActivated: false |
|
845 |
indication: hideStructures: |
|
846 |
) |
|
847 |
) |
|
848 |
nil |
|
849 |
nil |
|
9892 | 850 |
) |
851 |
! |
|
852 |
||
14348 | 853 |
luaMenuSlice |
854 |
"This resource specification was automatically generated |
|
855 |
by the MenuEditor of ST/X." |
|
856 |
||
857 |
"Do not manually edit this!! If it is corrupted, |
|
858 |
the MenuEditor may not be able to read the specification." |
|
859 |
||
860 |
" |
|
861 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#javaScriptMenuSlice |
|
862 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser javaScriptMenuSlice)) startUp |
|
863 |
" |
|
864 |
||
865 |
<resource: #menu> |
|
866 |
||
14484 | 867 |
^ |
14348 | 868 |
#(Menu |
14484 | 869 |
( |
870 |
(MenuItem |
|
871 |
label: '-' |
|
872 |
isVisible: editedFileHasLuaSuffix |
|
873 |
) |
|
874 |
(MenuItem |
|
875 |
enabled: tagTypesPresentHolder |
|
876 |
label: 'Functions Only' |
|
877 |
translateLabel: true |
|
878 |
isVisible: editedFileHasLuaSuffix |
|
879 |
hideMenuOnActivated: false |
|
880 |
indication: functionsOnly: |
|
881 |
) |
|
882 |
(MenuItem |
|
883 |
enabled: tagTypesPresentHolder |
|
884 |
label: 'Variables Only' |
|
885 |
translateLabel: true |
|
886 |
isVisible: editedFileHasLuaSuffix |
|
887 |
hideMenuOnActivated: false |
|
888 |
indication: variablesOnly: |
|
889 |
) |
|
890 |
) |
|
891 |
nil |
|
892 |
nil |
|
14348 | 893 |
) |
894 |
! |
|
895 |
||
9892 | 896 |
makefileMenuSlice |
897 |
"This resource specification was automatically generated |
|
898 |
by the MenuEditor of ST/X." |
|
899 |
||
900 |
"Do not manually edit this!! If it is corrupted, |
|
901 |
the MenuEditor may not be able to read the specification." |
|
902 |
||
903 |
" |
|
9920 | 904 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#makefileMenuSlice |
905 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser makefileMenuSlice)) startUp |
|
9892 | 906 |
" |
907 |
||
908 |
<resource: #menu> |
|
909 |
||
14484 | 910 |
^ |
9920 | 911 |
#(Menu |
14484 | 912 |
( |
913 |
(MenuItem |
|
914 |
label: '-' |
|
915 |
isVisible: editedFileIsMakefile |
|
916 |
) |
|
917 |
(MenuItem |
|
918 |
enabled: tagTypesPresentHolder |
|
919 |
label: 'Targets Only' |
|
920 |
translateLabel: true |
|
921 |
isVisible: editedFileIsMakefile |
|
922 |
hideMenuOnActivated: false |
|
923 |
indication: targetsOnly: |
|
924 |
) |
|
925 |
) |
|
926 |
nil |
|
927 |
nil |
|
9892 | 928 |
) |
929 |
! |
|
930 |
||
931 |
middleButtonMenu |
|
932 |
"This resource specification was automatically generated |
|
933 |
by the MenuEditor of ST/X." |
|
934 |
||
935 |
"Do not manually edit this!! If it is corrupted, |
|
936 |
the MenuEditor may not be able to read the specification." |
|
937 |
||
938 |
" |
|
939 |
MenuEditor new openOnClass:CBrowser::TagsBrowser andSelector:#middleButtonMenu |
|
940 |
(Menu new fromLiteralArrayEncoding:(CBrowser::TagsBrowser middleButtonMenu)) startUp |
|
941 |
" |
|
942 |
||
943 |
<resource: #menu> |
|
944 |
||
14484 | 945 |
^ |
9892 | 946 |
#(Menu |
14578 | 947 |
( |
948 |
(MenuItem |
|
949 |
enabled: tagTypesPresentHolder |
|
950 |
label: 'Group by Type' |
|
951 |
translateLabel: true |
|
952 |
indication: groupedByType: |
|
953 |
) |
|
954 |
(MenuItem |
|
955 |
label: '-' |
|
956 |
) |
|
957 |
(MenuItem |
|
958 |
label: 'Sort by Name' |
|
959 |
translateLabel: true |
|
960 |
indication: sortedByName: |
|
961 |
) |
|
962 |
(MenuItem |
|
963 |
label: 'Sort by Name Ignoring Case' |
|
964 |
translateLabel: true |
|
965 |
indication: sortedByNameIgnoringCase: |
|
966 |
) |
|
967 |
(MenuItem |
|
968 |
label: 'Sort by Name (Ignore Leading Underscores)' |
|
969 |
translateLabel: true |
|
970 |
indication: sortedByNameIgnoringLeadingUnderscores: |
|
971 |
) |
|
972 |
(MenuItem |
|
973 |
label: 'Sort by Name (Ignore Leading Underscores and Case)' |
|
974 |
translateLabel: true |
|
975 |
indication: sortedByNameIgnoringLeadingUnderscoresAndCase: |
|
976 |
) |
|
977 |
(MenuItem |
|
978 |
label: 'Sort by Line Number' |
|
979 |
translateLabel: true |
|
980 |
indication: sortedByLineNumber: |
|
981 |
) |
|
982 |
(MenuItem |
|
983 |
label: 'C Menu Slice' |
|
984 |
translateLabel: true |
|
985 |
submenuChannel: cMenuSlice |
|
986 |
isMenuSlice: true |
|
987 |
) |
|
988 |
(MenuItem |
|
989 |
label: 'Smalltalk Menu Slice' |
|
990 |
translateLabel: true |
|
991 |
submenuChannel: smalltalkMenuSlice |
|
992 |
isMenuSlice: true |
|
993 |
) |
|
994 |
(MenuItem |
|
995 |
label: 'Java Menu Slice' |
|
996 |
translateLabel: true |
|
997 |
submenuChannel: javaMenuSlice |
|
998 |
isMenuSlice: true |
|
999 |
) |
|
1000 |
(MenuItem |
|
1001 |
label: 'JavaScript Menu Slice' |
|
1002 |
translateLabel: true |
|
1003 |
submenuChannel: javaScriptMenuSlice |
|
1004 |
isMenuSlice: true |
|
1005 |
) |
|
1006 |
(MenuItem |
|
1007 |
label: 'Dart Menu Slice' |
|
1008 |
translateLabel: true |
|
1009 |
submenuChannel: dartMenuSlice |
|
1010 |
isMenuSlice: true |
|
1011 |
) |
|
1012 |
(MenuItem |
|
1013 |
label: 'TCL Menu Slice' |
|
1014 |
translateLabel: true |
|
1015 |
submenuChannel: tclMenuSlice |
|
1016 |
isMenuSlice: true |
|
1017 |
) |
|
1018 |
(MenuItem |
|
1019 |
label: 'Assembler Menu Slice' |
|
1020 |
translateLabel: true |
|
1021 |
submenuChannel: assemblerMenuSlice |
|
1022 |
isMenuSlice: true |
|
1023 |
) |
|
1024 |
(MenuItem |
|
1025 |
label: 'Lisp Menu Slice' |
|
1026 |
translateLabel: true |
|
1027 |
submenuChannel: lispMenuSlice |
|
1028 |
isMenuSlice: true |
|
1029 |
) |
|
1030 |
(MenuItem |
|
1031 |
label: 'Lua Menu Slice' |
|
1032 |
translateLabel: true |
|
1033 |
submenuChannel: luaMenuSlice |
|
1034 |
isMenuSlice: true |
|
1035 |
) |
|
1036 |
(MenuItem |
|
1037 |
label: 'Python Menu Slice' |
|
1038 |
translateLabel: true |
|
1039 |
submenuChannel: pythonMenuSlice |
|
1040 |
isMenuSlice: true |
|
17553 | 1041 |
isVisible: editedFileHasPythonSuffix |
14578 | 1042 |
) |
1043 |
(MenuItem |
|
16281 | 1044 |
label: 'ObjC Menu Slice' |
1045 |
translateLabel: true |
|
1046 |
submenuChannel: objcMenuSlice |
|
1047 |
isMenuSlice: true |
|
1048 |
) |
|
1049 |
(MenuItem |
|
14578 | 1050 |
label: 'OZ Menu Slice' |
1051 |
translateLabel: true |
|
1052 |
submenuChannel: ozMenuSlice |
|
1053 |
isMenuSlice: true |
|
1054 |
) |
|
1055 |
(MenuItem |
|
1056 |
label: 'Makefile Menu Slice' |
|
1057 |
translateLabel: true |
|
1058 |
submenuChannel: makefileMenuSlice |
|
1059 |
isMenuSlice: true |
|
1060 |
) |
|
1061 |
(MenuItem |
|
1062 |
label: 'HTML Menu Slice' |
|
1063 |
translateLabel: true |
|
1064 |
submenuChannel: htmlMenuSlice |
|
1065 |
isMenuSlice: true |
|
1066 |
) |
|
1067 |
(MenuItem |
|
1068 |
label: '-' |
|
1069 |
) |
|
1070 |
(MenuItem |
|
1071 |
label: 'Update' |
|
1072 |
itemValue: updateTagList |
|
1073 |
translateLabel: true |
|
1074 |
) |
|
1075 |
) |
|
1076 |
nil |
|
1077 |
nil |
|
9892 | 1078 |
) |
1079 |
||
17553 | 1080 |
"Modified: / 22-06-2017 / 11:25:17 / cg" |
9892 | 1081 |
! |
1082 |
||
16281 | 1083 |
objcMenuSlice |
1084 |
"This resource specification was automatically generated |
|
1085 |
by the MenuEditor of ST/X." |
|
1086 |
||
1087 |
"Do not manually edit this!! If it is corrupted, |
|
1088 |
the MenuEditor may not be able to read the specification." |
|
1089 |
||
1090 |
" |
|
1091 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#objcMenuSlice |
|
1092 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser objcMenuSlice)) startUp |
|
1093 |
" |
|
1094 |
||
1095 |
<resource: #menu> |
|
1096 |
||
1097 |
^ |
|
1098 |
#(Menu |
|
1099 |
( |
|
1100 |
(MenuItem |
|
1101 |
label: '-' |
|
1102 |
isVisible: editedFileHasObjcSuffix |
|
1103 |
) |
|
1104 |
(MenuItem |
|
1105 |
enabled: tagTypesPresentHolder |
|
1106 |
label: 'Hide Classes' |
|
1107 |
translateLabel: true |
|
1108 |
isVisible: editedFileHasObjcSuffix |
|
1109 |
hideMenuOnActivated: false |
|
1110 |
indication: hideObjcClasses: |
|
1111 |
) |
|
1112 |
(MenuItem |
|
1113 |
enabled: tagTypesPresentHolder |
|
1114 |
label: 'Hide Methods' |
|
1115 |
translateLabel: true |
|
1116 |
isVisible: editedFileHasObjcSuffix |
|
1117 |
hideMenuOnActivated: false |
|
1118 |
indication: hideObjcMethods: |
|
1119 |
) |
|
1120 |
) |
|
1121 |
nil |
|
1122 |
nil |
|
1123 |
) |
|
1124 |
! |
|
1125 |
||
9892 | 1126 |
ozMenuSlice |
1127 |
"This resource specification was automatically generated |
|
1128 |
by the MenuEditor of ST/X." |
|
1129 |
||
1130 |
"Do not manually edit this!! If it is corrupted, |
|
1131 |
the MenuEditor may not be able to read the specification." |
|
1132 |
||
1133 |
" |
|
9920 | 1134 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#ozMenuSlice |
1135 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser ozMenuSlice)) startUp |
|
9892 | 1136 |
" |
1137 |
||
1138 |
<resource: #menu> |
|
1139 |
||
14484 | 1140 |
^ |
9920 | 1141 |
#(Menu |
14484 | 1142 |
( |
1143 |
(MenuItem |
|
1144 |
label: '-' |
|
1145 |
isVisible: editedFileHasOzSuffix |
|
1146 |
) |
|
1147 |
(MenuItem |
|
1148 |
enabled: tagTypesPresentHolder |
|
1149 |
label: 'Hide Classes' |
|
1150 |
translateLabel: true |
|
1151 |
isVisible: editedFileHasOzSuffix |
|
1152 |
hideMenuOnActivated: false |
|
1153 |
indication: hideOzClasses: |
|
1154 |
) |
|
1155 |
(MenuItem |
|
1156 |
enabled: tagTypesPresentHolder |
|
1157 |
label: 'Hide Methods' |
|
1158 |
translateLabel: true |
|
1159 |
isVisible: editedFileHasOzSuffix |
|
1160 |
hideMenuOnActivated: false |
|
1161 |
indication: hideOzMethods: |
|
1162 |
) |
|
1163 |
(MenuItem |
|
1164 |
enabled: tagTypesPresentHolder |
|
1165 |
label: 'Hide Functions' |
|
1166 |
translateLabel: true |
|
1167 |
isVisible: editedFileHasOzSuffix |
|
1168 |
hideMenuOnActivated: false |
|
1169 |
indication: hideOzFunctions: |
|
1170 |
) |
|
1171 |
) |
|
1172 |
nil |
|
1173 |
nil |
|
9892 | 1174 |
) |
1175 |
! |
|
1176 |
||
1177 |
pythonMenuSlice |
|
1178 |
"This resource specification was automatically generated |
|
1179 |
by the MenuEditor of ST/X." |
|
1180 |
||
1181 |
"Do not manually edit this!! If it is corrupted, |
|
1182 |
the MenuEditor may not be able to read the specification." |
|
1183 |
||
1184 |
" |
|
9920 | 1185 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#pythonMenuSlice |
1186 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser pythonMenuSlice)) startUp |
|
9892 | 1187 |
" |
1188 |
||
1189 |
<resource: #menu> |
|
1190 |
||
14484 | 1191 |
^ |
9920 | 1192 |
#(Menu |
17553 | 1193 |
( |
1194 |
(MenuItem |
|
1195 |
label: '-' |
|
1196 |
"/ isVisible: editedFileHasPythonSuffix |
|
1197 |
) |
|
1198 |
(MenuItem |
|
1199 |
enabled: tagTypesPresentHolder |
|
1200 |
label: 'Classes Only' |
|
1201 |
translateLabel: true |
|
1202 |
"/ isVisible: editedFileHasPythonSuffix |
|
1203 |
indication: classesOnly: |
|
1204 |
) |
|
1205 |
(MenuItem |
|
1206 |
enabled: tagTypesPresentHolder |
|
1207 |
label: 'Methods Only' |
|
1208 |
translateLabel: true |
|
1209 |
"/ isVisible: editedFileHasPythonSuffix |
|
1210 |
indication: methodsOnly: |
|
1211 |
) |
|
1212 |
(MenuItem |
|
1213 |
enabled: tagTypesPresentHolder |
|
1214 |
label: 'Functions Only' |
|
1215 |
translateLabel: true |
|
1216 |
"/ isVisible: editedFileHasPythonSuffix |
|
1217 |
indication: functionsOnly: |
|
1218 |
) |
|
1219 |
(MenuItem |
|
1220 |
label: '-' |
|
1221 |
"/ isVisible: editedFileHasPythonSuffix |
|
1222 |
) |
|
1223 |
(MenuItem |
|
1224 |
enabled: tagTypesPresentHolder |
|
1225 |
label: 'Hide Classes' |
|
1226 |
translateLabel: true |
|
1227 |
isVisible: editedFileHasPythonSuffix |
|
1228 |
hideMenuOnActivated: false |
|
1229 |
indication: hideClasses: |
|
1230 |
) |
|
1231 |
(MenuItem |
|
1232 |
enabled: tagTypesPresentHolder |
|
1233 |
label: 'Hide Methods' |
|
1234 |
translateLabel: true |
|
1235 |
isVisible: editedFileHasPythonSuffix |
|
1236 |
hideMenuOnActivated: false |
|
1237 |
indication: hideMethods: |
|
1238 |
) |
|
1239 |
(MenuItem |
|
1240 |
enabled: tagTypesPresentHolder |
|
1241 |
label: 'Hide Functions' |
|
1242 |
translateLabel: true |
|
1243 |
isVisible: editedFileHasPythonSuffix |
|
1244 |
hideMenuOnActivated: false |
|
1245 |
indication: hideFunctions: |
|
1246 |
) |
|
1247 |
) |
|
1248 |
nil |
|
1249 |
nil |
|
9892 | 1250 |
) |
17553 | 1251 |
|
1252 |
"Modified: / 22-06-2017 / 11:26:02 / cg" |
|
9892 | 1253 |
! |
1254 |
||
11761 | 1255 |
smalltalkMenuSlice |
1256 |
"This resource specification was automatically generated |
|
1257 |
by the MenuEditor of ST/X." |
|
1258 |
||
1259 |
"Do not manually edit this!! If it is corrupted, |
|
1260 |
the MenuEditor may not be able to read the specification." |
|
1261 |
||
1262 |
" |
|
16281 | 1263 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#smalltalkMenuSlice |
1264 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser smalltalkMenuSlice)) startUp |
|
11761 | 1265 |
" |
1266 |
||
1267 |
<resource: #menu> |
|
1268 |
||
14484 | 1269 |
^ |
11761 | 1270 |
#(Menu |
16281 | 1271 |
( |
1272 |
(MenuItem |
|
1273 |
label: '-' |
|
1274 |
isVisible: editedFileHasSmalltalkSuffix |
|
1275 |
) |
|
1276 |
(MenuItem |
|
1277 |
enabled: tagTypesPresentHolder |
|
1278 |
label: 'Hide Classes' |
|
1279 |
translateLabel: true |
|
1280 |
isVisible: editedFileHasSmalltalkSuffix |
|
1281 |
hideMenuOnActivated: false |
|
1282 |
indication: hideClasses: |
|
1283 |
) |
|
1284 |
(MenuItem |
|
1285 |
enabled: tagTypesPresentHolder |
|
1286 |
label: 'Hide Methods' |
|
1287 |
translateLabel: true |
|
1288 |
isVisible: editedFileHasSmalltalkSuffix |
|
1289 |
hideMenuOnActivated: false |
|
1290 |
indication: hideMethods: |
|
1291 |
) |
|
1292 |
) |
|
1293 |
nil |
|
1294 |
nil |
|
11761 | 1295 |
) |
1296 |
||
1297 |
"Created: / 21-08-2012 / 20:59:28 / cg" |
|
1298 |
! |
|
1299 |
||
9892 | 1300 |
tclMenuSlice |
1301 |
"This resource specification was automatically generated |
|
1302 |
by the MenuEditor of ST/X." |
|
1303 |
||
1304 |
"Do not manually edit this!! If it is corrupted, |
|
1305 |
the MenuEditor may not be able to read the specification." |
|
1306 |
||
1307 |
" |
|
9920 | 1308 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#tclMenuSlice |
1309 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser tclMenuSlice)) startUp |
|
9892 | 1310 |
" |
1311 |
||
1312 |
<resource: #menu> |
|
1313 |
||
14484 | 1314 |
^ |
9920 | 1315 |
#(Menu |
14484 | 1316 |
( |
1317 |
(MenuItem |
|
1318 |
label: '-' |
|
1319 |
isVisible: editedFileHasTCLSuffix |
|
1320 |
) |
|
1321 |
(MenuItem |
|
1322 |
enabled: tagTypesPresentHolder |
|
1323 |
label: 'Hide Variables' |
|
1324 |
translateLabel: true |
|
1325 |
isVisible: editedFileHasTCLSuffix |
|
1326 |
hideMenuOnActivated: false |
|
1327 |
indication: hideVariables: |
|
1328 |
) |
|
1329 |
) |
|
1330 |
nil |
|
1331 |
nil |
|
9892 | 1332 |
) |
9942 | 1333 |
! |
1334 |
||
1335 |
toolBarMenu |
|
1336 |
"This resource specification was automatically generated |
|
1337 |
by the MenuEditor of ST/X." |
|
1338 |
||
1339 |
"Do not manually edit this!! If it is corrupted, |
|
1340 |
the MenuEditor may not be able to read the specification." |
|
1341 |
||
10763 | 1342 |
|
9942 | 1343 |
" |
1344 |
MenuEditor new openOnClass:Tools::TagsBrowser andSelector:#toolBarMenu |
|
1345 |
(Menu new fromLiteralArrayEncoding:(Tools::TagsBrowser toolBarMenu)) startUp |
|
1346 |
" |
|
1347 |
||
1348 |
<resource: #menu> |
|
1349 |
||
14543 | 1350 |
^ |
9942 | 1351 |
#(Menu |
14543 | 1352 |
( |
1353 |
(MenuItem |
|
1354 |
activeHelpKey: updateTagList |
|
1355 |
label: 'updateTagList' |
|
1356 |
itemValue: updateTagList |
|
1357 |
isButton: true |
|
1358 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
1359 |
) |
|
1360 |
(MenuItem |
|
1361 |
label: '-' |
|
1362 |
) |
|
1363 |
(MenuItem |
|
1364 |
activeHelpKey: sortByName |
|
1365 |
label: 'SortByName' |
|
1366 |
itemValue: sortByName |
|
1367 |
isButton: true |
|
1368 |
indication: sortIsByName |
|
1369 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByName16x16Icon) |
|
1370 |
) |
|
1371 |
(MenuItem |
|
1372 |
activeHelpKey: sortByLineNumber |
|
1373 |
label: 'SortByLineNumber' |
|
1374 |
itemValue: sortByLineNumber |
|
1375 |
isButton: true |
|
1376 |
indication: sortIsByLineNumber |
|
1377 |
labelImage: (ResourceRetriever ToolbarIconLibrary sortByLineNumber16x16Icon) |
|
1378 |
) |
|
1379 |
(MenuItem |
|
1380 |
label: '-' |
|
1381 |
) |
|
1382 |
(MenuItem |
|
1383 |
activeHelpKey: functionsOnly |
|
1384 |
label: 'FunctionsOnly' |
|
1385 |
itemValue: functionsOnly: |
|
1386 |
isButton: true |
|
1387 |
indication: functionsOnlyHolder |
|
1388 |
labelImage: (ResourceRetriever ToolbarIconLibrary functionsOnly16x16Icon) |
|
1389 |
) |
|
1390 |
(MenuItem |
|
14544 | 1391 |
activeHelpKey: structsOnly |
14543 | 1392 |
label: 'StructsOnly' |
1393 |
itemValue: structsOnly: |
|
1394 |
isButton: true |
|
14544 | 1395 |
isVisible: structsOnlyVisibleHolder |
14543 | 1396 |
indication: structsOnlyHolder |
1397 |
labelImage: (ResourceRetriever ToolbarIconLibrary structsOnly16x16Icon) |
|
1398 |
) |
|
1399 |
(MenuItem |
|
1400 |
activeHelpKey: toggleTagFilter |
|
1401 |
label: 'TagFilter' |
|
1402 |
isButton: true |
|
1403 |
indication: tagFilterFieldVisibleHolder |
|
1404 |
labelImage: (ResourceRetriever ToolbarIconLibrary filter16x16Icon) |
|
1405 |
) |
|
1406 |
) |
|
1407 |
nil |
|
1408 |
nil |
|
9942 | 1409 |
) |
11721 | 1410 |
! ! |
10772 | 1411 |
|
9892 | 1412 |
!TagsBrowser methodsFor:'accessing'! |
1413 |
||
9907 | 1414 |
editedFile |
1415 |
^ self editedFileHolder value |
|
1416 |
||
1417 |
"Created: / 06-05-2011 / 13:56:20 / cg" |
|
1418 |
! |
|
1419 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1420 |
editedFile:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1421 |
self editedFileHolder value:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1422 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1423 |
"Created: / 07-05-2011 / 14:48:58 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1424 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1425 |
|
9907 | 1426 |
editedFileHolder |
1427 |
"gets the holder, which keeps the current edited file |
|
1428 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1429 |
editedFileHolder isNil ifTrue:[ |
14484 | 1430 |
editedFileHolder := nil asValue. |
1431 |
editedFileHolder addDependent:self. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1432 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1433 |
^ editedFileHolder. |
9907 | 1434 |
|
1435 |
"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
|
1436 |
"Modified: / 07-05-2011 / 10:15:30 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1437 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1438 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1439 |
editedFileHolder:aHolder |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1440 |
"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
|
1441 |
" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1442 |
editedFileHolder notNil ifTrue:[ |
14484 | 1443 |
editedFileHolder removeDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1444 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1445 |
editedFileHolder := aHolder. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1446 |
editedFileHolder notNil ifTrue:[ |
14484 | 1447 |
editedFileHolder addDependent:self. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1448 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1449 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1450 |
"Created: / 07-05-2011 / 10:16:18 / cg" |
9907 | 1451 |
! |
1452 |
||
9892 | 1453 |
filter:aString |
1454 |
tagView filter:aString. |
|
9907 | 1455 |
! |
1456 |
||
16047 | 1457 |
tagsMenu:aMenuOrNil |
1458 |
"set the menu to be shown in the tag list" |
|
1459 |
||
1460 |
tagsMenu := aMenuOrNil. |
|
13630 | 1461 |
! |
1462 |
||
14484 | 1463 |
tagsValid |
13341 | 1464 |
^ tagsValid ? false |
1465 |
! |
|
1466 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1467 |
tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1468 |
commonAspects notNil ifTrue:[ |
14484 | 1469 |
^ commonAspects tempDirectory |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1470 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1471 |
^ Filename tempDirectory |
9907 | 1472 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1473 |
"Created: / 07-05-2011 / 15:42:44 / cg" |
9892 | 1474 |
! ! |
1475 |
||
17812 | 1476 |
!TagsBrowser methodsFor:'accessing presentation aspects'! |
1477 |
||
1478 |
groupedByType |
|
1479 |
^ tagList groupedByType |
|
1480 |
||
1481 |
"Created: / 05-05-2011 / 14:51:29 / cg" |
|
1482 |
! |
|
1483 |
||
1484 |
groupedByType:aBool |
|
1485 |
tagList groupedByType:aBool |
|
1486 |
||
1487 |
"Created: / 05-05-2011 / 14:51:33 / cg" |
|
1488 |
! |
|
1489 |
||
1490 |
sorted |
|
1491 |
^ tagList sorted |
|
1492 |
! |
|
1493 |
||
1494 |
sorted:aBool |
|
1495 |
tagList sorted:aBool |
|
1496 |
! |
|
1497 |
||
1498 |
sortedByLineNumber |
|
1499 |
^ tagList sortedByLineNumber |
|
1500 |
! |
|
1501 |
||
1502 |
sortedByLineNumber:aBool |
|
1503 |
tagList sortedByLineNumber:aBool |
|
1504 |
! |
|
1505 |
||
1506 |
sortedByName |
|
1507 |
^ tagList sortedByName |
|
1508 |
! |
|
1509 |
||
1510 |
sortedByName:aBool |
|
1511 |
tagList sortedByName:aBool |
|
1512 |
! |
|
1513 |
||
1514 |
sortedByNameIgnoringCase |
|
1515 |
^ tagList sortedByNameIgnoringCase |
|
1516 |
! |
|
1517 |
||
1518 |
sortedByNameIgnoringCase:aBool |
|
1519 |
tagList sortedByNameIgnoringCase:aBool |
|
1520 |
! |
|
1521 |
||
1522 |
sortedByNameIgnoringLeadingUnderscores |
|
1523 |
^ tagList sortedByNameIgnoringLeadingUnderscores |
|
1524 |
! |
|
1525 |
||
1526 |
sortedByNameIgnoringLeadingUnderscores:aBool |
|
1527 |
tagList sortedByNameIgnoringLeadingUnderscores:aBool |
|
1528 |
! |
|
1529 |
||
1530 |
sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1531 |
^ tagList sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1532 |
! |
|
1533 |
||
1534 |
sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1535 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1536 |
! |
|
1537 |
||
1538 |
sortedByType |
|
1539 |
^ tagList sortedByType |
|
1540 |
! |
|
1541 |
||
1542 |
sortedByType:aBool |
|
1543 |
tagList sortedByType:aBool |
|
1544 |
! ! |
|
1545 |
||
1546 |
!TagsBrowser methodsFor:'accessing-behavior'! |
|
1547 |
||
1548 |
action:aOneArgBlock |
|
1549 |
"set the action, which is called with the selected tag, |
|
1550 |
if the user selects one" |
|
1551 |
||
1552 |
action := aOneArgBlock. |
|
1553 |
||
1554 |
"Modified: / 23-06-2011 / 16:36:59 / cg" |
|
1555 |
! ! |
|
1556 |
||
1557 |
!TagsBrowser methodsFor:'accessing-filters'! |
|
9892 | 1558 |
|
14578 | 1559 |
anchorsOnly |
1560 |
^ tagList anchorsOnly |
|
1561 |
! |
|
1562 |
||
1563 |
anchorsOnly:aBool |
|
1564 |
"/ aBool ifTrue:[ |
|
1565 |
"/ tagList hideAnchors:false. |
|
1566 |
"/ ]. |
|
1567 |
tagList anchorsOnly:aBool. |
|
1568 |
self updateTagList |
|
1569 |
||
1570 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1571 |
! |
|
1572 |
||
17553 | 1573 |
classesAndFunctionsOnly |
1574 |
^ tagList classesAndFunctionsOnly |
|
1575 |
||
1576 |
"Created: / 22-06-2017 / 10:31:51 / cg" |
|
1577 |
! |
|
1578 |
||
1579 |
classesAndFunctionsOnly:aBool |
|
1580 |
aBool ifTrue:[ |
|
1581 |
tagList hideClasses:false. |
|
1582 |
tagList hideFunctions:false. |
|
1583 |
]. |
|
1584 |
tagList classesAndFunctionsOnly:aBool. |
|
1585 |
self updateTagList |
|
1586 |
||
1587 |
"Created: / 22-06-2017 / 10:31:59 / cg" |
|
1588 |
! |
|
1589 |
||
1590 |
classesAndMethodsOnly |
|
1591 |
^ tagList classesAndMethodsOnly |
|
1592 |
||
1593 |
"Created: / 22-06-2017 / 10:31:35 / cg" |
|
1594 |
! |
|
1595 |
||
1596 |
classesAndMethodsOnly:aBool |
|
1597 |
aBool ifTrue:[ |
|
1598 |
tagList hideClasses:false. |
|
1599 |
tagList hideMethods:false. |
|
1600 |
]. |
|
1601 |
tagList classesAndMethodsOnly:aBool. |
|
1602 |
self updateTagList |
|
1603 |
||
1604 |
"Created: / 22-06-2017 / 10:31:22 / cg" |
|
1605 |
! |
|
1606 |
||
9892 | 1607 |
classesFunctionsAndVariablesOnly |
1608 |
^ tagList classesFunctionsAndVariablesOnly |
|
1609 |
! |
|
1610 |
||
1611 |
classesFunctionsAndVariablesOnly:aBool |
|
1612 |
aBool ifTrue:[ |
|
14484 | 1613 |
tagList hideClasses:false. |
1614 |
tagList hideFunctions:false. |
|
1615 |
tagList hideVariables:false. |
|
9892 | 1616 |
]. |
1617 |
tagList classesFunctionsAndVariablesOnly:aBool. |
|
1618 |
self updateTagList |
|
1619 |
||
1620 |
"Modified: / 05-05-2011 / 15:33:13 / cg" |
|
1621 |
! |
|
1622 |
||
1623 |
classesOnly |
|
1624 |
^ tagList classesOnly |
|
1625 |
! |
|
1626 |
||
1627 |
classesOnly:aBool |
|
1628 |
aBool ifTrue:[ |
|
14484 | 1629 |
tagList hideClasses:false. |
9892 | 1630 |
]. |
1631 |
tagList classesOnly:aBool. |
|
1632 |
self updateTagList |
|
1633 |
||
1634 |
"Modified: / 05-05-2011 / 15:33:07 / cg" |
|
1635 |
! |
|
1636 |
||
13076 | 1637 |
dartClassesAndMethodsOnly |
17553 | 1638 |
^ self classesAndMethodsOnly |
1639 |
"/ ^ tagList dartClassesAndMethodsOnly |
|
1640 |
||
1641 |
"Modified: / 22-06-2017 / 10:30:13 / cg" |
|
13076 | 1642 |
! |
1643 |
||
1644 |
dartClassesAndMethodsOnly:aBool |
|
17553 | 1645 |
self classesAndMethodsOnly:aBool |
1646 |
"/ aBool ifTrue:[ |
|
1647 |
"/ tagList hideDartClasses:false. |
|
1648 |
"/ tagList hideDartMethods:false. |
|
1649 |
"/ ]. |
|
1650 |
"/ tagList dartClassesAndMethodsOnly:aBool. |
|
1651 |
"/ self updateTagList |
|
1652 |
||
1653 |
"Modified: / 22-06-2017 / 10:30:25 / cg" |
|
13076 | 1654 |
! |
1655 |
||
11761 | 1656 |
dartClassesOnly |
17553 | 1657 |
^ self classesOnly |
1658 |
"/ ^ tagList dartClassesOnly |
|
1659 |
||
1660 |
"Modified: / 22-06-2017 / 10:32:35 / cg" |
|
11761 | 1661 |
! |
1662 |
||
1663 |
dartClassesOnly:aBool |
|
17553 | 1664 |
self classesOnly:aBool |
1665 |
"/ aBool ifTrue:[ |
|
1666 |
"/ tagList hideDartClasses:false. |
|
1667 |
"/ ]. |
|
1668 |
"/ tagList dartClassesOnly:aBool. |
|
1669 |
"/ self updateTagList |
|
1670 |
||
1671 |
"Modified: / 22-06-2017 / 10:32:26 / cg" |
|
11761 | 1672 |
! |
1673 |
||
13076 | 1674 |
dartMethodsOnly |
17553 | 1675 |
^ self methodsOnly |
1676 |
"/ ^ tagList dartMethodsOnly |
|
1677 |
||
1678 |
"Modified: / 22-06-2017 / 10:32:44 / cg" |
|
13076 | 1679 |
! |
1680 |
||
1681 |
dartMethodsOnly:aBool |
|
17553 | 1682 |
self methodsOnly:aBool |
1683 |
"/ aBool ifTrue:[ |
|
1684 |
"/ tagList hideDartMethods:false. |
|
1685 |
"/ ]. |
|
1686 |
"/ tagList dartMethodsOnly:aBool. |
|
1687 |
"/ self updateTagList |
|
1688 |
||
1689 |
"Modified: / 22-06-2017 / 10:32:59 / cg" |
|
13076 | 1690 |
! |
1691 |
||
9892 | 1692 |
definesOnly |
1693 |
^ tagList definesOnly |
|
1694 |
! |
|
1695 |
||
1696 |
definesOnly:aBool |
|
1697 |
aBool ifTrue:[ |
|
14484 | 1698 |
tagList hideDefines:false. |
9892 | 1699 |
]. |
1700 |
tagList definesOnly:aBool. |
|
1701 |
self updateTagList |
|
1702 |
! |
|
1703 |
||
9920 | 1704 |
documentationOnly |
1705 |
^ tagList documentationOnly |
|
1706 |
||
1707 |
"Created: / 08-05-2011 / 10:50:52 / cg" |
|
1708 |
! |
|
1709 |
||
1710 |
documentationOnly:aBool |
|
1711 |
aBool ifTrue:[ |
|
14484 | 1712 |
tagList hideDocumentation:false. |
9920 | 1713 |
]. |
1714 |
tagList documentationOnly:aBool. |
|
1715 |
self updateTagList |
|
1716 |
||
1717 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1718 |
! |
|
1719 |
||
9892 | 1720 |
functionsAndVariablesOnly |
1721 |
^ tagList functionsAndVariablesOnly |
|
1722 |
! |
|
1723 |
||
1724 |
functionsAndVariablesOnly:aBool |
|
1725 |
aBool ifTrue:[ |
|
14484 | 1726 |
tagList hideFunctions:false. |
1727 |
tagList hideVariables:false. |
|
9892 | 1728 |
]. |
1729 |
tagList functionsAndVariablesOnly:aBool. |
|
1730 |
self updateTagList |
|
1731 |
! |
|
1732 |
||
1733 |
functionsOnly |
|
1734 |
^ tagList functionsOnly |
|
1735 |
! |
|
1736 |
||
1737 |
functionsOnly:aBool |
|
10766 | 1738 |
self functionsOnlyHolder value:aBool. |
9892 | 1739 |
aBool ifTrue:[ |
14544 | 1740 |
self structsOnlyHolder value:false. |
1741 |
tagList hideFunctions:false. |
|
9892 | 1742 |
]. |
1743 |
tagList functionsOnly:aBool. |
|
1744 |
self updateTagList |
|
10766 | 1745 |
|
1746 |
"Modified: / 06-10-2011 / 14:03:45 / cg" |
|
9892 | 1747 |
! |
1748 |
||
14578 | 1749 |
headlinesOnly |
1750 |
^ tagList headlinesOnly |
|
1751 |
! |
|
1752 |
||
1753 |
headlinesOnly:aBool |
|
1754 |
"/ aBool ifTrue:[ |
|
1755 |
"/ tagList hideDocumentation:false. |
|
1756 |
"/ ]. |
|
1757 |
tagList headlinesOnly:aBool. |
|
1758 |
self updateTagList |
|
1759 |
! |
|
1760 |
||
9892 | 1761 |
hideClasses |
1762 |
^ tagList hideClasses |
|
1763 |
! |
|
1764 |
||
1765 |
hideClasses:aBool |
|
1766 |
tagList hideClasses:aBool. |
|
1767 |
self updateTagList |
|
1768 |
! |
|
1769 |
||
11761 | 1770 |
hideDartClasses |
17553 | 1771 |
^ self hideClasses |
1772 |
"/ ^ tagList hideDartClasses |
|
1773 |
||
1774 |
"Modified: / 22-06-2017 / 10:55:36 / cg" |
|
11761 | 1775 |
! |
1776 |
||
1777 |
hideDartClasses:aBool |
|
17553 | 1778 |
self hideClasses:aBool |
1779 |
"/ tagList hideDartClasses:aBool. |
|
1780 |
"/ self updateTagList |
|
1781 |
||
1782 |
"Modified: / 22-06-2017 / 10:55:48 / cg" |
|
11761 | 1783 |
! |
1784 |
||
1785 |
hideDartFields |
|
17553 | 1786 |
^ self hideFields |
1787 |
"/ ^ tagList hideDartFields |
|
1788 |
||
1789 |
"Modified: / 22-06-2017 / 10:57:09 / cg" |
|
11761 | 1790 |
! |
1791 |
||
1792 |
hideDartFields:aBool |
|
17553 | 1793 |
self hideFields:aBool |
1794 |
"/ tagList hideDartFields:aBool. |
|
1795 |
"/ self updateTagList |
|
1796 |
||
1797 |
"Modified: / 22-06-2017 / 11:17:11 / cg" |
|
11761 | 1798 |
! |
1799 |
||
1800 |
hideDartInterfaces |
|
17553 | 1801 |
^ self hideInterfaces |
1802 |
"/ ^ tagList hideDartInterfaces |
|
1803 |
||
1804 |
"Modified: / 22-06-2017 / 11:16:29 / cg" |
|
11761 | 1805 |
! |
1806 |
||
1807 |
hideDartInterfaces:aBool |
|
17553 | 1808 |
self hideInterfaces:aBool |
1809 |
"/ tagList hideDartInterfaces:aBool. |
|
1810 |
"/ self updateTagList |
|
1811 |
||
1812 |
"Modified: / 22-06-2017 / 11:17:00 / cg" |
|
11761 | 1813 |
! |
1814 |
||
1815 |
hideDartMethods |
|
17553 | 1816 |
^ self hideMethods |
1817 |
"/ ^ tagList hideDartMethods |
|
1818 |
||
1819 |
"Modified: / 22-06-2017 / 11:16:10 / cg" |
|
11761 | 1820 |
! |
1821 |
||
1822 |
hideDartMethods:aBool |
|
17553 | 1823 |
self hideMethods:aBool |
1824 |
"/ tagList hideDartMethods:aBool. |
|
1825 |
"/ self updateTagList |
|
1826 |
||
1827 |
"Modified: / 22-06-2017 / 11:16:02 / cg" |
|
11761 | 1828 |
! |
1829 |
||
1830 |
hideDartPackages |
|
17553 | 1831 |
^ self hidePackages |
1832 |
"/ ^ tagList hideDartPackages |
|
1833 |
||
1834 |
"Modified: / 22-06-2017 / 11:07:19 / cg" |
|
11761 | 1835 |
! |
1836 |
||
1837 |
hideDartPackages:aBool |
|
17553 | 1838 |
self hidePackages:aBool |
1839 |
"/ tagList hideDartPackages:aBool. |
|
1840 |
"/ self updateTagList |
|
1841 |
||
1842 |
"Modified: / 22-06-2017 / 11:07:41 / cg" |
|
11761 | 1843 |
! |
1844 |
||
9892 | 1845 |
hideDataLabels |
1846 |
^ tagList hideDataLabels |
|
1847 |
! |
|
1848 |
||
1849 |
hideDataLabels:aBool |
|
1850 |
tagList hideDataLabels:aBool. |
|
1851 |
self updateTagList |
|
1852 |
! |
|
1853 |
||
1854 |
hideDefines |
|
1855 |
^ tagList hideDefines |
|
1856 |
! |
|
1857 |
||
1858 |
hideDefines:aBool |
|
1859 |
tagList hideDefines:aBool. |
|
1860 |
self updateTagList |
|
1861 |
! |
|
1862 |
||
9920 | 1863 |
hideDocumentation |
1864 |
^ tagList hideDocumentation |
|
1865 |
||
1866 |
"Created: / 08-05-2011 / 10:56:45 / cg" |
|
1867 |
! |
|
1868 |
||
1869 |
hideDocumentation:aBool |
|
1870 |
tagList hideDocumentation:aBool. |
|
1871 |
self updateTagList |
|
1872 |
||
1873 |
"Created: / 08-05-2011 / 10:56:49 / cg" |
|
1874 |
! |
|
1875 |
||
17553 | 1876 |
hideFields |
1877 |
^ tagList hideFields |
|
1878 |
||
1879 |
"Created: / 22-06-2017 / 10:57:19 / cg" |
|
1880 |
! |
|
1881 |
||
1882 |
hideFields:aBool |
|
1883 |
tagList hideFields:aBool. |
|
1884 |
self updateTagList |
|
1885 |
||
1886 |
"Created: / 22-06-2017 / 10:57:25 / cg" |
|
1887 |
! |
|
1888 |
||
9892 | 1889 |
hideFunctionProtoTypes |
1890 |
^ tagList hideFunctionProtoTypes |
|
1891 |
! |
|
1892 |
||
1893 |
hideFunctionProtoTypes:aBool |
|
1894 |
tagList hideFunctionProtoTypes:aBool. |
|
1895 |
self updateTagList |
|
1896 |
! |
|
1897 |
||
1898 |
hideFunctions |
|
1899 |
^ tagList hideFunctions |
|
1900 |
! |
|
1901 |
||
1902 |
hideFunctions:aBool |
|
1903 |
tagList hideFunctions:aBool. |
|
1904 |
self updateTagList |
|
1905 |
! |
|
1906 |
||
17553 | 1907 |
hideInterfaces |
1908 |
^ tagList hideInterfaces |
|
1909 |
||
1910 |
"Created: / 22-06-2017 / 11:16:37 / cg" |
|
1911 |
! |
|
1912 |
||
1913 |
hideInterfaces:aBool |
|
1914 |
tagList hideInterfaces:aBool. |
|
1915 |
self updateTagList |
|
1916 |
||
1917 |
"Created: / 22-06-2017 / 11:16:46 / cg" |
|
1918 |
! |
|
1919 |
||
9892 | 1920 |
hideJavaClasses |
17553 | 1921 |
^ self hideClasses |
1922 |
"/ ^ tagList hideJavaClasses |
|
1923 |
||
1924 |
"Modified: / 22-06-2017 / 10:56:53 / cg" |
|
9892 | 1925 |
! |
1926 |
||
1927 |
hideJavaClasses:aBool |
|
17553 | 1928 |
self hideClasses:aBool |
1929 |
"/ tagList hideJavaClasses:aBool. |
|
1930 |
"/ self updateTagList |
|
1931 |
||
1932 |
"Modified: / 22-06-2017 / 10:55:56 / cg" |
|
9892 | 1933 |
! |
1934 |
||
1935 |
hideJavaFields |
|
17553 | 1936 |
^ self hideFields |
1937 |
"/ ^ tagList hideJavaFields |
|
1938 |
||
1939 |
"Modified: / 22-06-2017 / 11:13:01 / cg" |
|
9892 | 1940 |
! |
1941 |
||
1942 |
hideJavaFields:aBool |
|
17553 | 1943 |
self hideFields:aBool |
1944 |
"/ tagList hideJavaFields:aBool. |
|
1945 |
"/ self updateTagList |
|
1946 |
||
1947 |
"Modified: / 22-06-2017 / 11:13:13 / cg" |
|
9892 | 1948 |
! |
1949 |
||
1950 |
hideJavaInterfaces |
|
17553 | 1951 |
^ self hideInterfaces |
1952 |
"/ ^ tagList hideJavaInterfaces |
|
1953 |
||
1954 |
"Modified: / 22-06-2017 / 11:12:50 / cg" |
|
9892 | 1955 |
! |
1956 |
||
1957 |
hideJavaInterfaces:aBool |
|
17553 | 1958 |
self hideInterfaces:aBool |
1959 |
"/ tagList hideJavaInterfaces:aBool. |
|
1960 |
"/ self updateTagList |
|
1961 |
||
1962 |
"Modified: / 22-06-2017 / 11:12:40 / cg" |
|
9892 | 1963 |
! |
1964 |
||
1965 |
hideJavaMethods |
|
17553 | 1966 |
^ self hideMethods |
1967 |
"/ ^ tagList hideJavaMethods |
|
1968 |
||
1969 |
"Modified: / 22-06-2017 / 11:12:12 / cg" |
|
9892 | 1970 |
! |
1971 |
||
1972 |
hideJavaMethods:aBool |
|
17553 | 1973 |
self hideMethods:aBool |
1974 |
"/ tagList hideJavaMethods:aBool. |
|
1975 |
"/ self updateTagList |
|
1976 |
||
1977 |
"Modified: / 22-06-2017 / 11:12:29 / cg" |
|
9892 | 1978 |
! |
1979 |
||
1980 |
hideJavaPackages |
|
17553 | 1981 |
^ self hidePackages |
1982 |
"/ ^ tagList hideJavaPackages |
|
1983 |
||
1984 |
"Modified: / 22-06-2017 / 11:07:32 / cg" |
|
9892 | 1985 |
! |
1986 |
||
1987 |
hideJavaPackages:aBool |
|
17553 | 1988 |
self hidePackages:aBool |
1989 |
"/ tagList hideJavaPackages:aBool. |
|
1990 |
"/ self updateTagList |
|
1991 |
||
1992 |
"Modified: / 22-06-2017 / 11:07:49 / cg" |
|
9892 | 1993 |
! |
1994 |
||
14386 | 1995 |
hideLabels |
1996 |
^ tagList hideLabels |
|
1997 |
! |
|
1998 |
||
1999 |
hideLabels:aBool |
|
2000 |
tagList hideLabels:aBool. |
|
2001 |
self updateTagList |
|
2002 |
! |
|
2003 |
||
9892 | 2004 |
hideLispConstants |
2005 |
^ tagList hideLispConstants |
|
2006 |
! |
|
2007 |
||
2008 |
hideLispConstants:aBool |
|
2009 |
tagList hideLispConstants:aBool. |
|
2010 |
self updateTagList |
|
2011 |
! |
|
2012 |
||
2013 |
hideLispEvaluations |
|
2014 |
^ tagList hideLispEvaluations |
|
2015 |
! |
|
2016 |
||
2017 |
hideLispEvaluations:aBool |
|
2018 |
tagList hideLispEvaluations:aBool. |
|
2019 |
self updateTagList |
|
2020 |
! |
|
2021 |
||
2022 |
hideLispMacros |
|
2023 |
^ tagList hideLispMacros |
|
2024 |
! |
|
2025 |
||
2026 |
hideLispMacros:aBool |
|
2027 |
tagList hideLispMacros:aBool. |
|
2028 |
self updateTagList |
|
2029 |
! |
|
2030 |
||
2031 |
hideLispMethods |
|
2032 |
^ tagList hideLispMethods |
|
2033 |
! |
|
2034 |
||
2035 |
hideLispMethods:aBool |
|
2036 |
tagList hideLispMethods:aBool. |
|
2037 |
self updateTagList |
|
2038 |
! |
|
2039 |
||
2040 |
hideLocalLabels |
|
2041 |
^ tagList hideLocalLabels |
|
2042 |
! |
|
2043 |
||
11465 | 2044 |
hideLocalLabels2 |
2045 |
^ tagList hideLocalLabels2 |
|
2046 |
||
2047 |
"Created: / 24-03-2012 / 23:23:43 / cg" |
|
2048 |
! |
|
2049 |
||
2050 |
hideLocalLabels2:aBool |
|
2051 |
tagList hideLocalLabels2:aBool. |
|
2052 |
self updateTagList |
|
2053 |
||
2054 |
"Created: / 24-03-2012 / 23:23:26 / cg" |
|
2055 |
! |
|
2056 |
||
11503 | 2057 |
hideLocalLabels3 |
2058 |
^ tagList hideLocalLabels3 |
|
2059 |
||
2060 |
"Created: / 13-05-2012 / 11:09:54 / cg" |
|
2061 |
! |
|
2062 |
||
2063 |
hideLocalLabels3:aBool |
|
2064 |
tagList hideLocalLabels3:aBool. |
|
2065 |
self updateTagList |
|
2066 |
||
2067 |
"Created: / 13-05-2012 / 11:10:01 / cg" |
|
2068 |
! |
|
2069 |
||
9892 | 2070 |
hideLocalLabels:aBool |
2071 |
tagList hideLocalLabels:aBool. |
|
2072 |
self updateTagList |
|
2073 |
! |
|
2074 |
||
14348 | 2075 |
hideLuaFunctions |
17553 | 2076 |
^ self hideFunctions |
2077 |
"/ ^ tagList hideLuaFunctions |
|
2078 |
||
2079 |
"Modified: / 22-06-2017 / 11:13:30 / cg" |
|
14348 | 2080 |
! |
2081 |
||
2082 |
hideLuaFunctions:aBool |
|
17553 | 2083 |
self hideFunctions:aBool |
2084 |
"/ tagList hideLuaFunctions:aBool. |
|
2085 |
"/ self updateTagList |
|
2086 |
||
2087 |
"Modified: / 22-06-2017 / 11:13:40 / cg" |
|
14348 | 2088 |
! |
2089 |
||
2090 |
hideLuaVariables |
|
17553 | 2091 |
^ self hideVariables |
2092 |
"/ ^ tagList hideLuaVariables |
|
2093 |
||
2094 |
"Modified: / 22-06-2017 / 11:13:53 / cg" |
|
14348 | 2095 |
! |
2096 |
||
2097 |
hideLuaVariables:aBool |
|
17553 | 2098 |
self hideVariables:aBool |
2099 |
"/ tagList hideLuaVariables:aBool. |
|
2100 |
"/ self updateTagList |
|
2101 |
||
2102 |
"Modified: / 22-06-2017 / 11:14:02 / cg" |
|
14348 | 2103 |
! |
2104 |
||
11761 | 2105 |
hideMethods |
2106 |
^ tagList hideMethods |
|
2107 |
||
2108 |
"Created: / 21-08-2012 / 21:02:54 / cg" |
|
2109 |
! |
|
2110 |
||
2111 |
hideMethods:aBool |
|
2112 |
tagList hideMethods:aBool. |
|
2113 |
self updateTagList |
|
2114 |
||
2115 |
"Created: / 21-08-2012 / 21:01:45 / cg" |
|
2116 |
! |
|
2117 |
||
16281 | 2118 |
hideObjcClasses |
17553 | 2119 |
^ self hideClasses |
2120 |
"/ ^ tagList hideObjcClasses |
|
2121 |
||
2122 |
"Modified: / 22-06-2017 / 10:56:47 / cg" |
|
16281 | 2123 |
! |
2124 |
||
2125 |
hideObjcClasses:aBool |
|
17553 | 2126 |
self hideClasses:aBool |
2127 |
"/ tagList hideObjcClasses:aBool. |
|
2128 |
"/ self updateTagList |
|
2129 |
||
2130 |
"Modified: / 22-06-2017 / 10:56:07 / cg" |
|
16281 | 2131 |
! |
2132 |
||
9892 | 2133 |
hideOzClasses |
17553 | 2134 |
^ self hideClasses |
2135 |
"/ ^ tagList hideOzClasses |
|
2136 |
||
2137 |
"Modified: / 22-06-2017 / 10:56:44 / cg" |
|
9892 | 2138 |
! |
2139 |
||
2140 |
hideOzClasses:aBool |
|
17553 | 2141 |
self hideClasses:aBool |
2142 |
"/ tagList hideOzClasses:aBool. |
|
2143 |
"/ self updateTagList |
|
2144 |
||
2145 |
"Modified: / 22-06-2017 / 10:56:14 / cg" |
|
9892 | 2146 |
! |
2147 |
||
2148 |
hideOzFunctions |
|
17553 | 2149 |
^ self hideFunctions |
2150 |
"/ ^ tagList hideOzFunctions |
|
2151 |
||
2152 |
"Modified: / 22-06-2017 / 11:14:15 / cg" |
|
9892 | 2153 |
! |
2154 |
||
2155 |
hideOzFunctions:aBool |
|
17553 | 2156 |
self hideFunctions:aBool |
2157 |
"/ tagList hideOzFunctions:aBool. |
|
2158 |
"/ self updateTagList |
|
2159 |
||
2160 |
"Modified: / 22-06-2017 / 11:14:30 / cg" |
|
9892 | 2161 |
! |
2162 |
||
2163 |
hideOzMethods |
|
17553 | 2164 |
^ self hideMethods |
2165 |
"/ ^ tagList hideOzMethods |
|
2166 |
||
2167 |
"Modified: / 22-06-2017 / 11:14:42 / cg" |
|
9892 | 2168 |
! |
2169 |
||
2170 |
hideOzMethods:aBool |
|
17553 | 2171 |
self hideMethods:aBool |
2172 |
"/ tagList hideOzMethods:aBool. |
|
2173 |
"/ self updateTagList |
|
2174 |
||
2175 |
"Modified: / 22-06-2017 / 11:14:52 / cg" |
|
2176 |
! |
|
2177 |
||
2178 |
hidePackages |
|
2179 |
^ tagList hidePackages |
|
2180 |
||
2181 |
"Created: / 22-06-2017 / 10:55:00 / cg" |
|
2182 |
! |
|
2183 |
||
2184 |
hidePackages:aBool |
|
2185 |
tagList hidePackages:aBool. |
|
9892 | 2186 |
self updateTagList |
17553 | 2187 |
|
2188 |
"Created: / 22-06-2017 / 10:55:21 / cg" |
|
9892 | 2189 |
! |
2190 |
||
2191 |
hidePythonClasses |
|
17553 | 2192 |
^ self hideClasses |
2193 |
"/ ^ tagList hidePythonClasses |
|
2194 |
||
2195 |
"Modified: / 22-06-2017 / 10:56:37 / cg" |
|
9892 | 2196 |
! |
2197 |
||
2198 |
hidePythonClasses:aBool |
|
17553 | 2199 |
self hideClasses:aBool |
2200 |
"/ tagList hidePythonClasses:aBool. |
|
2201 |
"/ self updateTagList |
|
2202 |
||
2203 |
"Modified: / 22-06-2017 / 10:56:21 / cg" |
|
9892 | 2204 |
! |
2205 |
||
2206 |
hidePythonFunctions |
|
17553 | 2207 |
^ self hideFunctions |
2208 |
"/ ^ tagList hidePythonFunctions |
|
2209 |
||
2210 |
"Modified: / 22-06-2017 / 11:15:00 / cg" |
|
9892 | 2211 |
! |
2212 |
||
2213 |
hidePythonFunctions:aBool |
|
17553 | 2214 |
self hideFunctions:aBool |
2215 |
"/ tagList hidePythonFunctions:aBool. |
|
2216 |
"/ self updateTagList |
|
2217 |
||
2218 |
"Modified: / 22-06-2017 / 11:15:11 / cg" |
|
9892 | 2219 |
! |
2220 |
||
2221 |
hidePythonMethods |
|
17553 | 2222 |
^ self hideMethods |
2223 |
"/ ^ tagList hidePythonMethods |
|
2224 |
||
2225 |
"Modified: / 22-06-2017 / 11:15:19 / cg" |
|
9892 | 2226 |
! |
2227 |
||
2228 |
hidePythonMethods:aBool |
|
17553 | 2229 |
self hideMethods:aBool |
2230 |
"/ tagList hidePythonMethods:aBool. |
|
2231 |
"/ self updateTagList |
|
2232 |
||
2233 |
"Modified: / 22-06-2017 / 11:15:28 / cg" |
|
9892 | 2234 |
! |
2235 |
||
2236 |
hideStatic |
|
2237 |
^ tagList hideStatic |
|
2238 |
! |
|
2239 |
||
2240 |
hideStatic:aBool |
|
2241 |
tagList hideStatic:aBool. |
|
2242 |
self updateTagList |
|
2243 |
! |
|
2244 |
||
2245 |
hideStructMembers |
|
2246 |
^ tagList hideStructMembers |
|
2247 |
! |
|
2248 |
||
2249 |
hideStructMembers:aBool |
|
2250 |
tagList hideStructMembers:aBool. |
|
2251 |
self updateTagList |
|
2252 |
! |
|
2253 |
||
2254 |
hideStructures |
|
2255 |
^ tagList hideStructures |
|
2256 |
! |
|
2257 |
||
2258 |
hideStructures:aBool |
|
2259 |
tagList hideStructures:aBool. |
|
2260 |
self updateTagList |
|
2261 |
! |
|
2262 |
||
2263 |
hideTextLabels |
|
2264 |
^ tagList hideTextLabels |
|
2265 |
! |
|
2266 |
||
2267 |
hideTextLabels:aBool |
|
2268 |
tagList hideTextLabels:aBool. |
|
2269 |
self updateTagList |
|
2270 |
! |
|
2271 |
||
2272 |
hideTypedefs |
|
2273 |
^ tagList hideTypedefs |
|
2274 |
! |
|
2275 |
||
2276 |
hideTypedefs:aBool |
|
2277 |
tagList hideTypedefs:aBool. |
|
2278 |
self updateTagList |
|
2279 |
! |
|
2280 |
||
2281 |
hideVariables |
|
2282 |
^ tagList hideVariables |
|
2283 |
! |
|
2284 |
||
2285 |
hideVariables:aBool |
|
2286 |
tagList hideVariables:aBool. |
|
2287 |
self updateTagList |
|
2288 |
! |
|
2289 |
||
2290 |
javaClassesAndMethodsOnly |
|
17553 | 2291 |
^ self classesAndMethodsOnly |
2292 |
"/ ^ tagList javaClassesAndMethodsOnly |
|
2293 |
||
2294 |
"Modified: / 22-06-2017 / 10:28:30 / cg" |
|
9892 | 2295 |
! |
2296 |
||
2297 |
javaClassesAndMethodsOnly:aBool |
|
17553 | 2298 |
self classesAndMethodsOnly:aBool |
2299 |
"/ aBool ifTrue:[ |
|
2300 |
"/ tagList hideJavaClasses:false. |
|
2301 |
"/ tagList hideJavaMethods:false. |
|
2302 |
"/ ]. |
|
2303 |
"/ tagList javaClassesAndMethodsOnly:aBool. |
|
2304 |
"/ self updateTagList |
|
2305 |
||
2306 |
"Modified: / 22-06-2017 / 10:26:00 / cg" |
|
9892 | 2307 |
! |
2308 |
||
2309 |
javaClassesOnly |
|
17553 | 2310 |
^ self classesOnly |
2311 |
"/ ^ tagList javaClassesOnly |
|
2312 |
||
2313 |
"Modified: / 22-06-2017 / 10:28:23 / cg" |
|
9892 | 2314 |
! |
2315 |
||
2316 |
javaClassesOnly:aBool |
|
17553 | 2317 |
self classesOnly:aBool |
2318 |
"/ aBool ifTrue:[ |
|
2319 |
"/ tagList hideJavaClasses:false. |
|
2320 |
"/ ]. |
|
2321 |
"/ tagList javaClassesOnly:aBool. |
|
2322 |
"/ self updateTagList |
|
2323 |
||
2324 |
"Modified: / 22-06-2017 / 10:28:17 / cg" |
|
9892 | 2325 |
! |
2326 |
||
2327 |
javaMethodsOnly |
|
17553 | 2328 |
^ self methodsOnly |
2329 |
"/ ^ tagList javaMethodsOnly |
|
2330 |
||
2331 |
"Modified: / 22-06-2017 / 10:28:54 / cg" |
|
9892 | 2332 |
! |
2333 |
||
2334 |
javaMethodsOnly:aBool |
|
17553 | 2335 |
self methodsOnly:aBool |
2336 |
"/ aBool ifTrue:[ |
|
2337 |
"/ tagList hideJavaMethods:false. |
|
2338 |
"/ ]. |
|
2339 |
"/ tagList javaMethodsOnly:aBool. |
|
2340 |
"/ self updateTagList |
|
2341 |
||
2342 |
"Modified: / 22-06-2017 / 10:29:05 / cg" |
|
9892 | 2343 |
! |
2344 |
||
14348 | 2345 |
luaFunctionsOnly |
17553 | 2346 |
^ self functionsOnly |
2347 |
"/ ^ tagList luaFunctionsOnly |
|
2348 |
||
2349 |
"Modified: / 22-06-2017 / 10:29:22 / cg" |
|
14348 | 2350 |
! |
2351 |
||
2352 |
luaFunctionsOnly:aBool |
|
17553 | 2353 |
self functionsOnly:aBool |
2354 |
"/ aBool ifTrue:[ |
|
2355 |
"/ tagList hideLuaFunctions:false. |
|
2356 |
"/ ]. |
|
2357 |
"/ tagList luaFunctionsOnly:aBool. |
|
2358 |
"/ self updateTagList |
|
2359 |
||
2360 |
"Modified: / 22-06-2017 / 10:29:33 / cg" |
|
14348 | 2361 |
! |
2362 |
||
9892 | 2363 |
macrosOnly |
2364 |
^ tagList macrosOnly |
|
2365 |
||
2366 |
"Created: / 07-06-2010 / 12:08:42 / cg" |
|
2367 |
! |
|
2368 |
||
2369 |
macrosOnly:aBool |
|
2370 |
aBool ifTrue:[ |
|
14484 | 2371 |
tagList hideLispMacros:false. |
9892 | 2372 |
]. |
2373 |
tagList macrosOnly:aBool. |
|
2374 |
self updateTagList |
|
2375 |
||
2376 |
"Created: / 07-06-2010 / 12:09:08 / cg" |
|
2377 |
! |
|
2378 |
||
2379 |
methodsOnly |
|
2380 |
^ tagList methodsOnly |
|
2381 |
||
2382 |
"Created: / 07-06-2010 / 12:11:55 / cg" |
|
2383 |
! |
|
2384 |
||
2385 |
methodsOnly:aBool |
|
2386 |
aBool ifTrue:[ |
|
14484 | 2387 |
tagList hideLispMethods:false. |
9892 | 2388 |
]. |
2389 |
tagList methodsOnly:aBool. |
|
2390 |
self updateTagList |
|
2391 |
||
2392 |
"Created: / 07-06-2010 / 12:12:03 / cg" |
|
2393 |
! |
|
2394 |
||
2395 |
pythonClassesOnly |
|
17553 | 2396 |
^ self classesOnly |
2397 |
"/ ^ tagList pythonClassesOnly |
|
2398 |
||
2399 |
"Modified: / 22-06-2017 / 10:33:33 / cg" |
|
9892 | 2400 |
! |
2401 |
||
2402 |
pythonClassesOnly:aBool |
|
17553 | 2403 |
self classesOnly:aBool |
2404 |
"/ aBool ifTrue:[ |
|
2405 |
"/ tagList hidePythonClasses:false. |
|
2406 |
"/ ]. |
|
2407 |
"/ tagList pythonClassesOnly:aBool. |
|
2408 |
"/ self updateTagList |
|
2409 |
||
2410 |
"Modified: / 22-06-2017 / 10:33:44 / cg" |
|
9892 | 2411 |
! |
2412 |
||
2413 |
pythonFunctionsOnly |
|
17553 | 2414 |
^ self functionsOnly |
2415 |
"/ ^ tagList pythonFunctionsOnly |
|
2416 |
||
2417 |
"Modified: / 22-06-2017 / 10:29:53 / cg" |
|
9892 | 2418 |
! |
2419 |
||
2420 |
pythonFunctionsOnly:aBool |
|
17553 | 2421 |
self functionsOnly:aBool |
2422 |
"/ aBool ifTrue:[ |
|
2423 |
"/ tagList hidePythonFunctions:false. |
|
2424 |
"/ ]. |
|
2425 |
"/ tagList pythonFunctionsOnly:aBool. |
|
2426 |
"/ self updateTagList |
|
2427 |
||
2428 |
"Modified: / 22-06-2017 / 10:29:44 / cg" |
|
9892 | 2429 |
! |
2430 |
||
2431 |
pythonMethodsOnly |
|
17553 | 2432 |
^ self methodsOnly |
2433 |
"/ ^ tagList pythonMethodsOnly |
|
2434 |
||
2435 |
"Modified: / 22-06-2017 / 10:33:58 / cg" |
|
9892 | 2436 |
! |
2437 |
||
2438 |
pythonMethodsOnly:aBool |
|
17553 | 2439 |
self methodsOnly:aBool |
2440 |
"/ aBool ifTrue:[ |
|
2441 |
"/ tagList hidePythonMethods:false. |
|
2442 |
"/ ]. |
|
2443 |
"/ tagList pythonMethodsOnly:aBool. |
|
2444 |
"/ self updateTagList |
|
2445 |
||
2446 |
"Modified: / 22-06-2017 / 10:34:11 / cg" |
|
9892 | 2447 |
! |
2448 |
||
2449 |
structsOnly |
|
2450 |
^ tagList structsOnly |
|
2451 |
||
2452 |
"Created: / 25-06-2010 / 10:54:46 / cg" |
|
2453 |
! |
|
2454 |
||
2455 |
structsOnly:aBool |
|
14544 | 2456 |
self structsOnlyHolder value:aBool. |
2457 |
aBool ifTrue:[ |
|
2458 |
self functionsOnlyHolder value:false. |
|
2459 |
tagList hideStructures:false. |
|
2460 |
]. |
|
9892 | 2461 |
tagList structsOnly:aBool. |
2462 |
self updateTagList |
|
2463 |
! |
|
2464 |
||
2465 |
tagTypesPresent |
|
2466 |
^ tagList tagTypesPresent |
|
2467 |
! |
|
2468 |
||
2469 |
tagTypesPresentHolder |
|
2470 |
^ [ self tagTypesPresent ] |
|
2471 |
! |
|
2472 |
||
2473 |
targetsOnly |
|
2474 |
^ tagList targetsOnly |
|
2475 |
! |
|
2476 |
||
2477 |
targetsOnly:aBool |
|
2478 |
tagList targetsOnly:aBool. |
|
2479 |
self updateTagList |
|
2480 |
! |
|
2481 |
||
2482 |
typesOnly |
|
2483 |
^ tagList typesOnly |
|
2484 |
! |
|
2485 |
||
2486 |
typesOnly:aBool |
|
2487 |
aBool ifTrue:[ |
|
14484 | 2488 |
tagList hideTypedefs:false. |
9892 | 2489 |
]. |
2490 |
tagList typesOnly:aBool. |
|
2491 |
self updateTagList |
|
2492 |
! |
|
2493 |
||
2494 |
variablesOnly |
|
2495 |
^ tagList variablesOnly |
|
2496 |
! |
|
2497 |
||
2498 |
variablesOnly:aBool |
|
2499 |
aBool ifTrue:[ |
|
14484 | 2500 |
tagList hideVariables:false. |
9892 | 2501 |
]. |
2502 |
tagList variablesOnly:aBool. |
|
2503 |
self updateTagList |
|
2504 |
||
2505 |
"Modified: / 05-05-2011 / 15:33:18 / cg" |
|
2506 |
! ! |
|
2507 |
||
2508 |
!TagsBrowser methodsFor:'aspects'! |
|
2509 |
||
2510 |
editedFileHasAssemblerSuffix |
|
2511 |
^builder booleanValueAspectFor: #editedFileHasAssemblerSuffix |
|
2512 |
||
2513 |
||
2514 |
! |
|
2515 |
||
2516 |
editedFileHasCSuffix |
|
2517 |
^builder booleanValueAspectFor: #editedFileHasCSuffix |
|
2518 |
||
2519 |
||
2520 |
! |
|
2521 |
||
11761 | 2522 |
editedFileHasDartSuffix |
2523 |
^builder booleanValueAspectFor: #editedFileHasDartSuffix |
|
2524 |
! |
|
2525 |
||
9892 | 2526 |
editedFileHasEiffelSuffix |
2527 |
^builder booleanValueAspectFor: #editedFileHasEiffelSuffix |
|
2528 |
||
2529 |
||
2530 |
! |
|
2531 |
||
2532 |
editedFileHasFortranSuffix |
|
2533 |
^builder booleanValueAspectFor: #editedFileHasFortranSuffix |
|
2534 |
||
2535 |
||
2536 |
! |
|
2537 |
||
14578 | 2538 |
editedFileHasHtmlSuffix |
2539 |
^builder booleanValueAspectFor: #editedFileHasHtmlSuffix |
|
2540 |
! |
|
2541 |
||
9892 | 2542 |
editedFileHasJavaScriptSuffix |
2543 |
^builder booleanValueAspectFor: #editedFileHasJavaScriptSuffix |
|
2544 |
||
2545 |
"Created: / 28-06-2010 / 13:09:15 / cg" |
|
2546 |
! |
|
2547 |
||
2548 |
editedFileHasJavaSuffix |
|
2549 |
^builder booleanValueAspectFor: #editedFileHasJavaSuffix |
|
2550 |
||
2551 |
||
2552 |
! |
|
2553 |
||
2554 |
editedFileHasLispSuffix |
|
2555 |
^builder booleanValueAspectFor: #editedFileHasLispSuffix |
|
2556 |
||
2557 |
||
2558 |
! |
|
2559 |
||
14348 | 2560 |
editedFileHasLuaSuffix |
2561 |
^builder booleanValueAspectFor: #editedFileHasLuaSuffix |
|
2562 |
! |
|
2563 |
||
16281 | 2564 |
editedFileHasObjcSuffix |
2565 |
^builder booleanValueAspectFor: #editedFileHasObjcSuffix |
|
2566 |
! |
|
2567 |
||
9892 | 2568 |
editedFileHasOzSuffix |
2569 |
^builder booleanValueAspectFor: #editedFileHasOzSuffix |
|
2570 |
! |
|
2571 |
||
2572 |
editedFileHasPythonSuffix |
|
2573 |
^builder booleanValueAspectFor: #editedFileHasPythonSuffix |
|
2574 |
||
2575 |
||
2576 |
! |
|
2577 |
||
2578 |
editedFileHasRubySuffix |
|
2579 |
^builder booleanValueAspectFor: #editedFileHasRubySuffix |
|
2580 |
! |
|
2581 |
||
2582 |
editedFileHasSmalltalkSuffix |
|
2583 |
^builder booleanValueAspectFor: #editedFileHasSmalltalkSuffix |
|
2584 |
||
2585 |
||
2586 |
! |
|
2587 |
||
2588 |
editedFileHasTCLSuffix |
|
2589 |
^builder booleanValueAspectFor: #editedFileHasTCLSuffix |
|
2590 |
||
2591 |
||
2592 |
! |
|
2593 |
||
2594 |
editedFileIsMakefile |
|
2595 |
^builder booleanValueAspectFor: #editedFileIsMakefile |
|
2596 |
! |
|
2597 |
||
10763 | 2598 |
functionsOnlyHolder |
2599 |
^ builder booleanValueAspectFor: #functionsOnly |
|
2600 |
||
2601 |
"Created: / 06-10-2011 / 12:19:23 / cg" |
|
2602 |
! |
|
2603 |
||
9892 | 2604 |
remoteCtagsModel |
2605 |
||
2606 |
|holder| |
|
2607 |
||
2608 |
(holder := builder bindingAt:#remoteCtagsModel) isNil ifTrue:[ |
|
14484 | 2609 |
holder := false asValue. |
2610 |
builder aspectAt:#remoteCtagsModel put:holder. |
|
9892 | 2611 |
]. |
2612 |
^ holder. |
|
2613 |
! |
|
2614 |
||
10435 | 2615 |
sortIsByLineNumber |
2616 |
^ builder booleanValueAspectFor: #sortIsByLineNumber |
|
2617 |
||
2618 |
"Created: / 03-08-2011 / 11:17:48 / cg" |
|
2619 |
! |
|
2620 |
||
2621 |
sortIsByName |
|
2622 |
^ builder booleanValueAspectFor: #sortIsByName |
|
2623 |
||
2624 |
"Created: / 03-08-2011 / 11:17:52 / cg" |
|
2625 |
! |
|
2626 |
||
14544 | 2627 |
structsOnlyHolder |
2628 |
^ builder booleanValueAspectFor: #structsOnly |
|
2629 |
! |
|
2630 |
||
2631 |
structsOnlyVisibleHolder |
|
2632 |
^ builder booleanValueAspectFor: #structsOnlyVisible |
|
2633 |
! |
|
2634 |
||
11721 | 2635 |
tagFilterFieldVisibleHolder |
2636 |
|holder| |
|
2637 |
||
2638 |
(holder := builder bindingAt:#tagFilterFieldVisibleHolder) isNil ifTrue:[ |
|
14484 | 2639 |
holder := false asValue. |
2640 |
builder aspectAt:#tagFilterFieldVisibleHolder put:holder. |
|
2641 |
holder onChangeSend:#tagFilterVisibilityChanged to:self. |
|
11721 | 2642 |
]. |
2643 |
^ holder. |
|
2644 |
||
2645 |
"Created: / 01-08-2012 / 10:52:48 / cg" |
|
2646 |
! |
|
2647 |
||
2648 |
tagFilterPatternHolder |
|
2649 |
|holder| |
|
2650 |
||
2651 |
(holder := builder bindingAt:#tagFilterPatternHolder) isNil ifTrue:[ |
|
14484 | 2652 |
holder := '' asValue. |
2653 |
builder aspectAt:#tagFilterPatternHolder put:holder. |
|
2654 |
holder onChangeSend:#tagFilterChanged to:self. |
|
11721 | 2655 |
]. |
2656 |
^ holder. |
|
2657 |
||
2658 |
"Created: / 01-08-2012 / 16:43:26 / cg" |
|
2659 |
! |
|
2660 |
||
9892 | 2661 |
tagList |
2662 |
"returns the tagList |
|
2663 |
" |
|
2664 |
^ tagList |
|
2665 |
! |
|
2666 |
||
2667 |
tagView |
|
2668 |
"returns the widget which shows the tags |
|
2669 |
" |
|
2670 |
^ tagView |
|
2671 |
! ! |
|
2672 |
||
2673 |
!TagsBrowser methodsFor:'change & update'! |
|
2674 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2675 |
delayedEditedFileChanged |
9892 | 2676 |
"called when the current editing file has changed. |
2677 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2678 |
" |
|
2679 |
||
2680 |
self updateFileTypeHolders. |
|
14480 | 2681 |
tagsValid ifFalse:[ |
14484 | 2682 |
self updateTagList. |
13341 | 2683 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2684 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2685 |
"Created: / 07-05-2011 / 15:36:52 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2686 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2687 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2688 |
editedFileChanged |
13341 | 2689 |
tagsValid := false. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2690 |
self enqueueDelayedAction:[self delayedEditedFileChanged]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2691 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2692 |
"Modified: / 07-05-2011 / 15:37:00 / cg" |
9892 | 2693 |
! |
2694 |
||
11721 | 2695 |
tagFilterChanged |
2696 |
tagList filter:(self tagFilterPatternHolder value) |
|
2697 |
||
2698 |
"Created: / 01-08-2012 / 16:44:54 / cg" |
|
2699 |
! |
|
2700 |
||
2701 |
tagFilterVisibilityChanged |
|
2702 |
self tagFilterFieldVisibleHolder value ifTrue:[ |
|
14484 | 2703 |
"/ self windowGroup |
2704 |
"/ focusView:(self builder componentAt:#TagFilterInputField) |
|
11721 | 2705 |
"/ byTab:true. |
14484 | 2706 |
self enqueueMessage:#assignFocusToTagFilterInputField for:self arguments:#(). |
11721 | 2707 |
]. |
2708 |
||
2709 |
"Created: / 01-08-2012 / 17:00:27 / cg" |
|
2710 |
! |
|
2711 |
||
9892 | 2712 |
update:something with:aparameter from:changedObject |
2713 |
changedObject == self editedFileHolder ifTrue:[ |
|
14484 | 2714 |
tagList removeAll. |
2715 |
self editedFileChanged. |
|
2716 |
^ self |
|
9892 | 2717 |
]. |
2718 |
super update:something with:aparameter from:changedObject |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2719 |
|
11721 | 2720 |
"Modified: / 01-08-2012 / 16:58:30 / cg" |
9892 | 2721 |
! |
2722 |
||
2723 |
updateFileTypeHolders |
|
2724 |
"called when the current editing file has changed. |
|
2725 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2726 |
" |
|
2727 |
||
17553 | 2728 |
|edFile mime| |
9892 | 2729 |
|
14386 | 2730 |
edFile := self editedFile. |
9892 | 2731 |
|
2732 |
mime := TagList tagMimeTypeForFile:edFile. |
|
2733 |
||
14544 | 2734 |
"/ valueHolder mime(s) |
9892 | 2735 |
#( |
18113 | 2736 |
(editedFileHasJavaSuffix ('text/java' 'application/x-java-source')) |
14544 | 2737 |
(editedFileHasJavaScriptSuffix ('text/javaScript' 'text/javascript' 'application/x-javascript' 'application/x-javascript-source') ) |
18113 | 2738 |
(editedFileHasDartSuffix ('text/dart' 'application/x-dart' 'application/x-dart-source') ) |
2739 |
(editedFileHasCSuffix ('text/c' 'application/x-c-source' 'text/cpp' 'application/x-cpp-source')) |
|
2740 |
(editedFileHasEiffelSuffix ('text/eiffel' 'application/x-eiffel-source')) |
|
14544 | 2741 |
(editedFileHasFortranSuffix ('text/fortran' 'application/x-fortran-source')) |
18113 | 2742 |
(editedFileHasPythonSuffix ('text/python' 'application/x-python-source')) |
16281 | 2743 |
(editedFileHasObjcSuffix ('text/objcsrc' 'application/x-objcsrc')) |
18113 | 2744 |
(editedFileHasOzSuffix ('text/oz' 'application/x-oz-source')) |
2745 |
(editedFileHasLuaSuffix ('text/lua' 'application/x-lua-source')) |
|
2746 |
(editedFileHasLispSuffix ('text/lisp' 'text/lisp-arc' 'text/scheme' 'application/x-lisp-source' 'application/x-scheme-source') ) |
|
14544 | 2747 |
(editedFileHasSmalltalkSuffix ('text/smalltalk' 'application/x-smalltalk-source')) |
18113 | 2748 |
(editedFileHasTCLSuffix ('text/tcl' 'application/x-tcl-source') ) |
2749 |
(editedFileHasAssemblerSuffix ('text/asm' 'application/x-assembler-source')) |
|
14544 | 2750 |
(editedFileIsMakefile 'text/make') |
18113 | 2751 |
(editedFileHasRubySuffix ('text/ruby' 'application/x-ruby-source')) |
2752 |
"/ (editedFileHasErlangSuffix ('text/erlang' 'application/x-erlang-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 |