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