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