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