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