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