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