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