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