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