author | Claus Gittinger <cg@exept.de> |
Wed, 06 Mar 2013 10:02:15 +0100 | |
changeset 12436 | e3157e0285f9 |
parent 12068 | 639cac07052e |
child 12459 | 7899fe07efd7 |
child 12741 | 15a374e650d0 |
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 |
|
11721 | 1189 |
!TagsBrowser methodsFor:'* As yet uncategorized *'! |
1190 |
||
1191 |
assignFocusToTagFilterInputField |
|
1192 |
(self builder componentAt:#TagFilterInputField) requestFocus. |
|
1193 |
"/ (self builder componentAt:#TagFilterInputField) takeFocus |
|
1194 |
||
1195 |
"Created: / 02-08-2012 / 22:00:45 / cg" |
|
9892 | 1196 |
! ! |
1197 |
||
1198 |
!TagsBrowser methodsFor:'accessing'! |
|
1199 |
||
9942 | 1200 |
action:aOneArgBlock |
1201 |
"set the action, which is called with the selected tag |
|
1202 |
" |
|
1203 |
action := aOneArgBlock. |
|
1204 |
||
1205 |
"Modified: / 23-06-2011 / 16:36:59 / cg" |
|
1206 |
! |
|
1207 |
||
9907 | 1208 |
editedFile |
1209 |
^ self editedFileHolder value |
|
1210 |
||
1211 |
"Created: / 06-05-2011 / 13:56:20 / cg" |
|
1212 |
! |
|
1213 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1214 |
editedFile:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1215 |
self editedFileHolder value:aFilename |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1216 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1217 |
"Created: / 07-05-2011 / 14:48:58 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1218 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1219 |
|
9907 | 1220 |
editedFileHolder |
1221 |
"gets the holder, which keeps the current edited file |
|
1222 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1223 |
editedFileHolder isNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1224 |
editedFileHolder := nil asValue. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1225 |
editedFileHolder addDependent:self. |
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. |
9907 | 1228 |
|
1229 |
"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
|
1230 |
"Modified: / 07-05-2011 / 10:15:30 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1231 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1232 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1233 |
editedFileHolder:aHolder |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1234 |
"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
|
1235 |
" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1236 |
editedFileHolder notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1237 |
editedFileHolder removeDependent:self. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1238 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1239 |
editedFileHolder := aHolder. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1240 |
editedFileHolder notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1241 |
editedFileHolder addDependent:self. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1242 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1243 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1244 |
"Created: / 07-05-2011 / 10:16:18 / cg" |
9907 | 1245 |
! |
1246 |
||
9892 | 1247 |
filter:aString |
1248 |
tagView filter:aString. |
|
9907 | 1249 |
! |
1250 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1251 |
tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1252 |
commonAspects notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1253 |
^ commonAspects tempDirectory |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1254 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1255 |
^ Filename tempDirectory |
9907 | 1256 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
1257 |
"Created: / 07-05-2011 / 15:42:44 / cg" |
9892 | 1258 |
! ! |
1259 |
||
1260 |
!TagsBrowser methodsFor:'accessing filters'! |
|
1261 |
||
1262 |
classesFunctionsAndVariablesOnly |
|
1263 |
^ tagList classesFunctionsAndVariablesOnly |
|
1264 |
! |
|
1265 |
||
1266 |
classesFunctionsAndVariablesOnly:aBool |
|
1267 |
aBool ifTrue:[ |
|
1268 |
tagList hideClasses:false. |
|
1269 |
tagList hideFunctions:false. |
|
1270 |
tagList hideVariables:false. |
|
1271 |
]. |
|
1272 |
tagList classesFunctionsAndVariablesOnly:aBool. |
|
1273 |
self updateTagList |
|
1274 |
||
1275 |
"Modified: / 05-05-2011 / 15:33:13 / cg" |
|
1276 |
! |
|
1277 |
||
1278 |
classesOnly |
|
1279 |
^ tagList classesOnly |
|
1280 |
! |
|
1281 |
||
1282 |
classesOnly:aBool |
|
1283 |
aBool ifTrue:[ |
|
1284 |
tagList hideClasses:false. |
|
1285 |
]. |
|
1286 |
tagList classesOnly:aBool. |
|
1287 |
self updateTagList |
|
1288 |
||
1289 |
"Modified: / 05-05-2011 / 15:33:07 / cg" |
|
1290 |
! |
|
1291 |
||
11761 | 1292 |
dartClassesOnly |
1293 |
^ tagList dartClassesOnly |
|
1294 |
! |
|
1295 |
||
1296 |
dartClassesOnly:aBool |
|
1297 |
aBool ifTrue:[ |
|
1298 |
tagList hideDartClasses:false. |
|
1299 |
]. |
|
1300 |
tagList dartClassesOnly:aBool. |
|
1301 |
self updateTagList |
|
1302 |
! |
|
1303 |
||
9892 | 1304 |
definesOnly |
1305 |
^ tagList definesOnly |
|
1306 |
! |
|
1307 |
||
1308 |
definesOnly:aBool |
|
1309 |
aBool ifTrue:[ |
|
1310 |
tagList hideDefines:false. |
|
1311 |
]. |
|
1312 |
tagList definesOnly:aBool. |
|
1313 |
self updateTagList |
|
1314 |
! |
|
1315 |
||
9920 | 1316 |
documentationOnly |
1317 |
^ tagList documentationOnly |
|
1318 |
||
1319 |
"Created: / 08-05-2011 / 10:50:52 / cg" |
|
1320 |
! |
|
1321 |
||
1322 |
documentationOnly:aBool |
|
1323 |
aBool ifTrue:[ |
|
1324 |
tagList hideDocumentation:false. |
|
1325 |
]. |
|
1326 |
tagList documentationOnly:aBool. |
|
1327 |
self updateTagList |
|
1328 |
||
1329 |
"Created: / 08-05-2011 / 10:51:03 / cg" |
|
1330 |
! |
|
1331 |
||
9892 | 1332 |
functionsAndVariablesOnly |
1333 |
^ tagList functionsAndVariablesOnly |
|
1334 |
! |
|
1335 |
||
1336 |
functionsAndVariablesOnly:aBool |
|
1337 |
aBool ifTrue:[ |
|
1338 |
tagList hideFunctions:false. |
|
1339 |
tagList hideVariables:false. |
|
1340 |
]. |
|
1341 |
tagList functionsAndVariablesOnly:aBool. |
|
1342 |
self updateTagList |
|
1343 |
! |
|
1344 |
||
1345 |
functionsOnly |
|
1346 |
^ tagList functionsOnly |
|
1347 |
! |
|
1348 |
||
1349 |
functionsOnly:aBool |
|
10766 | 1350 |
self functionsOnlyHolder value:aBool. |
9892 | 1351 |
aBool ifTrue:[ |
1352 |
tagList hideFunctions:false. |
|
1353 |
]. |
|
1354 |
tagList functionsOnly:aBool. |
|
1355 |
self updateTagList |
|
10766 | 1356 |
|
1357 |
"Modified: / 06-10-2011 / 14:03:45 / cg" |
|
9892 | 1358 |
! |
1359 |
||
1360 |
hideClasses |
|
1361 |
^ tagList hideClasses |
|
1362 |
! |
|
1363 |
||
1364 |
hideClasses:aBool |
|
1365 |
tagList hideClasses:aBool. |
|
1366 |
self updateTagList |
|
1367 |
! |
|
1368 |
||
11761 | 1369 |
hideDartClasses |
1370 |
^ tagList hideDartClasses |
|
1371 |
! |
|
1372 |
||
1373 |
hideDartClasses:aBool |
|
1374 |
tagList hideDartClasses:aBool. |
|
1375 |
self updateTagList |
|
1376 |
! |
|
1377 |
||
1378 |
hideDartFields |
|
1379 |
^ tagList hideDartFields |
|
1380 |
! |
|
1381 |
||
1382 |
hideDartFields:aBool |
|
1383 |
tagList hideDartFields:aBool. |
|
1384 |
self updateTagList |
|
1385 |
! |
|
1386 |
||
1387 |
hideDartInterfaces |
|
1388 |
^ tagList hideDartInterfaces |
|
1389 |
! |
|
1390 |
||
1391 |
hideDartInterfaces:aBool |
|
1392 |
tagList hideDartInterfaces:aBool. |
|
1393 |
self updateTagList |
|
1394 |
! |
|
1395 |
||
1396 |
hideDartMethods |
|
1397 |
^ tagList hideDartMethods |
|
1398 |
! |
|
1399 |
||
1400 |
hideDartMethods:aBool |
|
1401 |
tagList hideDartMethods:aBool. |
|
1402 |
self updateTagList |
|
1403 |
! |
|
1404 |
||
1405 |
hideDartPackages |
|
1406 |
^ tagList hideDartPackages |
|
1407 |
! |
|
1408 |
||
1409 |
hideDartPackages:aBool |
|
1410 |
tagList hideDartPackages:aBool. |
|
1411 |
self updateTagList |
|
1412 |
! |
|
1413 |
||
9892 | 1414 |
hideDataLabels |
1415 |
^ tagList hideDataLabels |
|
1416 |
! |
|
1417 |
||
1418 |
hideDataLabels:aBool |
|
1419 |
tagList hideDataLabels:aBool. |
|
1420 |
self updateTagList |
|
1421 |
! |
|
1422 |
||
1423 |
hideDefines |
|
1424 |
^ tagList hideDefines |
|
1425 |
! |
|
1426 |
||
1427 |
hideDefines:aBool |
|
1428 |
tagList hideDefines:aBool. |
|
1429 |
self updateTagList |
|
1430 |
! |
|
1431 |
||
9920 | 1432 |
hideDocumentation |
1433 |
^ tagList hideDocumentation |
|
1434 |
||
1435 |
"Created: / 08-05-2011 / 10:56:45 / cg" |
|
1436 |
! |
|
1437 |
||
1438 |
hideDocumentation:aBool |
|
1439 |
tagList hideDocumentation:aBool. |
|
1440 |
self updateTagList |
|
1441 |
||
1442 |
"Created: / 08-05-2011 / 10:56:49 / cg" |
|
1443 |
! |
|
1444 |
||
9892 | 1445 |
hideFunctionProtoTypes |
1446 |
^ tagList hideFunctionProtoTypes |
|
1447 |
! |
|
1448 |
||
1449 |
hideFunctionProtoTypes:aBool |
|
1450 |
tagList hideFunctionProtoTypes:aBool. |
|
1451 |
self updateTagList |
|
1452 |
! |
|
1453 |
||
1454 |
hideFunctions |
|
1455 |
^ tagList hideFunctions |
|
1456 |
! |
|
1457 |
||
1458 |
hideFunctions:aBool |
|
1459 |
tagList hideFunctions:aBool. |
|
1460 |
self updateTagList |
|
1461 |
! |
|
1462 |
||
1463 |
hideJavaClasses |
|
1464 |
^ tagList hideJavaClasses |
|
1465 |
! |
|
1466 |
||
1467 |
hideJavaClasses:aBool |
|
1468 |
tagList hideJavaClasses:aBool. |
|
1469 |
self updateTagList |
|
1470 |
! |
|
1471 |
||
1472 |
hideJavaFields |
|
1473 |
^ tagList hideJavaFields |
|
1474 |
! |
|
1475 |
||
1476 |
hideJavaFields:aBool |
|
1477 |
tagList hideJavaFields:aBool. |
|
1478 |
self updateTagList |
|
1479 |
! |
|
1480 |
||
1481 |
hideJavaInterfaces |
|
1482 |
^ tagList hideJavaInterfaces |
|
1483 |
! |
|
1484 |
||
1485 |
hideJavaInterfaces:aBool |
|
1486 |
tagList hideJavaInterfaces:aBool. |
|
1487 |
self updateTagList |
|
1488 |
! |
|
1489 |
||
1490 |
hideJavaMethods |
|
1491 |
^ tagList hideJavaMethods |
|
1492 |
! |
|
1493 |
||
1494 |
hideJavaMethods:aBool |
|
1495 |
tagList hideJavaMethods:aBool. |
|
1496 |
self updateTagList |
|
1497 |
! |
|
1498 |
||
1499 |
hideJavaPackages |
|
1500 |
^ tagList hideJavaPackages |
|
1501 |
! |
|
1502 |
||
1503 |
hideJavaPackages:aBool |
|
1504 |
tagList hideJavaPackages:aBool. |
|
1505 |
self updateTagList |
|
1506 |
! |
|
1507 |
||
1508 |
hideLispConstants |
|
1509 |
^ tagList hideLispConstants |
|
1510 |
! |
|
1511 |
||
1512 |
hideLispConstants:aBool |
|
1513 |
tagList hideLispConstants:aBool. |
|
1514 |
self updateTagList |
|
1515 |
! |
|
1516 |
||
1517 |
hideLispEvaluations |
|
1518 |
^ tagList hideLispEvaluations |
|
1519 |
! |
|
1520 |
||
1521 |
hideLispEvaluations:aBool |
|
1522 |
tagList hideLispEvaluations:aBool. |
|
1523 |
self updateTagList |
|
1524 |
! |
|
1525 |
||
1526 |
hideLispMacros |
|
1527 |
^ tagList hideLispMacros |
|
1528 |
! |
|
1529 |
||
1530 |
hideLispMacros:aBool |
|
1531 |
tagList hideLispMacros:aBool. |
|
1532 |
self updateTagList |
|
1533 |
! |
|
1534 |
||
1535 |
hideLispMethods |
|
1536 |
^ tagList hideLispMethods |
|
1537 |
! |
|
1538 |
||
1539 |
hideLispMethods:aBool |
|
1540 |
tagList hideLispMethods:aBool. |
|
1541 |
self updateTagList |
|
1542 |
! |
|
1543 |
||
1544 |
hideLocalLabels |
|
1545 |
^ tagList hideLocalLabels |
|
1546 |
! |
|
1547 |
||
11465 | 1548 |
hideLocalLabels2 |
1549 |
^ tagList hideLocalLabels2 |
|
1550 |
||
1551 |
"Created: / 24-03-2012 / 23:23:43 / cg" |
|
1552 |
! |
|
1553 |
||
1554 |
hideLocalLabels2:aBool |
|
1555 |
tagList hideLocalLabels2:aBool. |
|
1556 |
self updateTagList |
|
1557 |
||
1558 |
"Created: / 24-03-2012 / 23:23:26 / cg" |
|
1559 |
! |
|
1560 |
||
11503 | 1561 |
hideLocalLabels3 |
1562 |
^ tagList hideLocalLabels3 |
|
1563 |
||
1564 |
"Created: / 13-05-2012 / 11:09:54 / cg" |
|
1565 |
! |
|
1566 |
||
1567 |
hideLocalLabels3:aBool |
|
1568 |
tagList hideLocalLabels3:aBool. |
|
1569 |
self updateTagList |
|
1570 |
||
1571 |
"Created: / 13-05-2012 / 11:10:01 / cg" |
|
1572 |
! |
|
1573 |
||
9892 | 1574 |
hideLocalLabels:aBool |
1575 |
tagList hideLocalLabels:aBool. |
|
1576 |
self updateTagList |
|
1577 |
! |
|
1578 |
||
11761 | 1579 |
hideMethods |
1580 |
^ tagList hideMethods |
|
1581 |
||
1582 |
"Created: / 21-08-2012 / 21:02:54 / cg" |
|
1583 |
! |
|
1584 |
||
1585 |
hideMethods:aBool |
|
1586 |
tagList hideMethods:aBool. |
|
1587 |
self updateTagList |
|
1588 |
||
1589 |
"Created: / 21-08-2012 / 21:01:45 / cg" |
|
1590 |
! |
|
1591 |
||
9892 | 1592 |
hideOzClasses |
1593 |
^ tagList hideOzClasses |
|
1594 |
! |
|
1595 |
||
1596 |
hideOzClasses:aBool |
|
1597 |
tagList hideOzClasses:aBool. |
|
1598 |
self updateTagList |
|
1599 |
! |
|
1600 |
||
1601 |
hideOzFunctions |
|
1602 |
^ tagList hideOzFunctions |
|
1603 |
! |
|
1604 |
||
1605 |
hideOzFunctions:aBool |
|
1606 |
tagList hideOzFunctions:aBool. |
|
1607 |
self updateTagList |
|
1608 |
! |
|
1609 |
||
1610 |
hideOzMethods |
|
1611 |
^ tagList hideOzMethods |
|
1612 |
! |
|
1613 |
||
1614 |
hideOzMethods:aBool |
|
1615 |
tagList hideOzMethods:aBool. |
|
1616 |
self updateTagList |
|
1617 |
! |
|
1618 |
||
1619 |
hidePythonClasses |
|
1620 |
^ tagList hidePythonClasses |
|
1621 |
! |
|
1622 |
||
1623 |
hidePythonClasses:aBool |
|
1624 |
tagList hidePythonClasses:aBool. |
|
1625 |
self updateTagList |
|
1626 |
! |
|
1627 |
||
1628 |
hidePythonFunctions |
|
1629 |
^ tagList hidePythonFunctions |
|
1630 |
! |
|
1631 |
||
1632 |
hidePythonFunctions:aBool |
|
1633 |
tagList hidePythonFunctions:aBool. |
|
1634 |
self updateTagList |
|
1635 |
! |
|
1636 |
||
1637 |
hidePythonMethods |
|
1638 |
^ tagList hidePythonMethods |
|
1639 |
! |
|
1640 |
||
1641 |
hidePythonMethods:aBool |
|
1642 |
tagList hidePythonMethods:aBool. |
|
1643 |
self updateTagList |
|
1644 |
! |
|
1645 |
||
1646 |
hideStatic |
|
1647 |
^ tagList hideStatic |
|
1648 |
! |
|
1649 |
||
1650 |
hideStatic:aBool |
|
1651 |
tagList hideStatic:aBool. |
|
1652 |
self updateTagList |
|
1653 |
! |
|
1654 |
||
1655 |
hideStructMembers |
|
1656 |
^ tagList hideStructMembers |
|
1657 |
! |
|
1658 |
||
1659 |
hideStructMembers:aBool |
|
1660 |
tagList hideStructMembers:aBool. |
|
1661 |
self updateTagList |
|
1662 |
! |
|
1663 |
||
1664 |
hideStructures |
|
1665 |
^ tagList hideStructures |
|
1666 |
! |
|
1667 |
||
1668 |
hideStructures:aBool |
|
1669 |
tagList hideStructures:aBool. |
|
1670 |
self updateTagList |
|
1671 |
! |
|
1672 |
||
1673 |
hideTextLabels |
|
1674 |
^ tagList hideTextLabels |
|
1675 |
! |
|
1676 |
||
1677 |
hideTextLabels:aBool |
|
1678 |
tagList hideTextLabels:aBool. |
|
1679 |
self updateTagList |
|
1680 |
! |
|
1681 |
||
1682 |
hideTypedefs |
|
1683 |
^ tagList hideTypedefs |
|
1684 |
! |
|
1685 |
||
1686 |
hideTypedefs:aBool |
|
1687 |
tagList hideTypedefs:aBool. |
|
1688 |
self updateTagList |
|
1689 |
! |
|
1690 |
||
1691 |
hideVariables |
|
1692 |
^ tagList hideVariables |
|
1693 |
! |
|
1694 |
||
1695 |
hideVariables:aBool |
|
1696 |
tagList hideVariables:aBool. |
|
1697 |
self updateTagList |
|
1698 |
! |
|
1699 |
||
1700 |
javaClassesAndMethodsOnly |
|
1701 |
^ tagList javaClassesAndMethodsOnly |
|
1702 |
! |
|
1703 |
||
1704 |
javaClassesAndMethodsOnly:aBool |
|
1705 |
aBool ifTrue:[ |
|
1706 |
tagList hideJavaClasses:false. |
|
1707 |
tagList hideJavaMethods:false. |
|
1708 |
]. |
|
1709 |
tagList javaClassesAndMethodsOnly:aBool. |
|
1710 |
self updateTagList |
|
1711 |
! |
|
1712 |
||
1713 |
javaClassesOnly |
|
1714 |
^ tagList javaClassesOnly |
|
1715 |
! |
|
1716 |
||
1717 |
javaClassesOnly:aBool |
|
1718 |
aBool ifTrue:[ |
|
1719 |
tagList hideJavaClasses:false. |
|
1720 |
]. |
|
1721 |
tagList javaClassesOnly:aBool. |
|
1722 |
self updateTagList |
|
1723 |
! |
|
1724 |
||
1725 |
javaMethodsOnly |
|
1726 |
^ tagList javaMethodsOnly |
|
1727 |
! |
|
1728 |
||
1729 |
javaMethodsOnly:aBool |
|
1730 |
aBool ifTrue:[ |
|
1731 |
tagList hideJavaMethods:false. |
|
1732 |
]. |
|
1733 |
tagList javaMethodsOnly:aBool. |
|
1734 |
self updateTagList |
|
1735 |
! |
|
1736 |
||
1737 |
macrosOnly |
|
1738 |
^ tagList macrosOnly |
|
1739 |
||
1740 |
"Created: / 07-06-2010 / 12:08:42 / cg" |
|
1741 |
! |
|
1742 |
||
1743 |
macrosOnly:aBool |
|
1744 |
aBool ifTrue:[ |
|
1745 |
tagList hideLispMacros:false. |
|
1746 |
]. |
|
1747 |
tagList macrosOnly:aBool. |
|
1748 |
self updateTagList |
|
1749 |
||
1750 |
"Created: / 07-06-2010 / 12:09:08 / cg" |
|
1751 |
! |
|
1752 |
||
1753 |
methodsOnly |
|
1754 |
^ tagList methodsOnly |
|
1755 |
||
1756 |
"Created: / 07-06-2010 / 12:11:55 / cg" |
|
1757 |
! |
|
1758 |
||
1759 |
methodsOnly:aBool |
|
1760 |
aBool ifTrue:[ |
|
1761 |
tagList hideLispMethods:false. |
|
1762 |
]. |
|
1763 |
tagList methodsOnly:aBool. |
|
1764 |
self updateTagList |
|
1765 |
||
1766 |
"Created: / 07-06-2010 / 12:12:03 / cg" |
|
1767 |
! |
|
1768 |
||
1769 |
pythonClassesOnly |
|
1770 |
^ tagList pythonClassesOnly |
|
1771 |
! |
|
1772 |
||
1773 |
pythonClassesOnly:aBool |
|
1774 |
aBool ifTrue:[ |
|
1775 |
tagList hidePythonClasses:false. |
|
1776 |
]. |
|
1777 |
tagList pythonClassesOnly:aBool. |
|
1778 |
self updateTagList |
|
1779 |
! |
|
1780 |
||
1781 |
pythonFunctionsOnly |
|
1782 |
^ tagList pythonFunctionsOnly |
|
1783 |
! |
|
1784 |
||
1785 |
pythonFunctionsOnly:aBool |
|
1786 |
aBool ifTrue:[ |
|
1787 |
tagList hidePythonFunctions:false. |
|
1788 |
]. |
|
1789 |
tagList pythonFunctionsOnly:aBool. |
|
1790 |
self updateTagList |
|
1791 |
! |
|
1792 |
||
1793 |
pythonMethodsOnly |
|
1794 |
^ tagList pythonMethodsOnly |
|
1795 |
! |
|
1796 |
||
1797 |
pythonMethodsOnly:aBool |
|
1798 |
aBool ifTrue:[ |
|
1799 |
tagList hidePythonMethods:false. |
|
1800 |
]. |
|
1801 |
tagList pythonMethodsOnly:aBool. |
|
1802 |
self updateTagList |
|
1803 |
! |
|
1804 |
||
1805 |
structsOnly |
|
1806 |
^ tagList structsOnly |
|
1807 |
||
1808 |
"Created: / 25-06-2010 / 10:54:46 / cg" |
|
1809 |
! |
|
1810 |
||
1811 |
structsOnly:aBool |
|
1812 |
tagList structsOnly:aBool. |
|
1813 |
self updateTagList |
|
1814 |
||
1815 |
"Created: / 25-06-2010 / 10:54:52 / cg" |
|
1816 |
! |
|
1817 |
||
1818 |
tagTypesPresent |
|
1819 |
^ tagList tagTypesPresent |
|
1820 |
! |
|
1821 |
||
1822 |
tagTypesPresentHolder |
|
1823 |
^ [ self tagTypesPresent ] |
|
1824 |
! |
|
1825 |
||
1826 |
targetsOnly |
|
1827 |
^ tagList targetsOnly |
|
1828 |
! |
|
1829 |
||
1830 |
targetsOnly:aBool |
|
1831 |
tagList targetsOnly:aBool. |
|
1832 |
self updateTagList |
|
1833 |
! |
|
1834 |
||
1835 |
typesOnly |
|
1836 |
^ tagList typesOnly |
|
1837 |
! |
|
1838 |
||
1839 |
typesOnly:aBool |
|
1840 |
aBool ifTrue:[ |
|
1841 |
tagList hideTypedefs:false. |
|
1842 |
]. |
|
1843 |
tagList typesOnly:aBool. |
|
1844 |
self updateTagList |
|
1845 |
! |
|
1846 |
||
1847 |
variablesOnly |
|
1848 |
^ tagList variablesOnly |
|
1849 |
! |
|
1850 |
||
1851 |
variablesOnly:aBool |
|
1852 |
aBool ifTrue:[ |
|
1853 |
tagList hideVariables:false. |
|
1854 |
]. |
|
1855 |
tagList variablesOnly:aBool. |
|
1856 |
self updateTagList |
|
1857 |
||
1858 |
"Modified: / 05-05-2011 / 15:33:18 / cg" |
|
1859 |
! ! |
|
1860 |
||
1861 |
!TagsBrowser methodsFor:'accessing presentation aspects'! |
|
1862 |
||
1863 |
groupedByType |
|
1864 |
^ tagList groupedByType |
|
1865 |
||
1866 |
"Created: / 05-05-2011 / 14:51:29 / cg" |
|
1867 |
! |
|
1868 |
||
1869 |
groupedByType:aBool |
|
1870 |
tagList groupedByType:aBool |
|
1871 |
||
1872 |
"Created: / 05-05-2011 / 14:51:33 / cg" |
|
1873 |
! |
|
1874 |
||
1875 |
sorted |
|
1876 |
^ tagList sorted |
|
1877 |
! |
|
1878 |
||
1879 |
sorted:aBool |
|
1880 |
tagList sorted:aBool |
|
1881 |
! |
|
1882 |
||
1883 |
sortedByLineNumber |
|
1884 |
^ tagList sortedByLineNumber |
|
1885 |
! |
|
1886 |
||
1887 |
sortedByLineNumber:aBool |
|
1888 |
tagList sortedByLineNumber:aBool |
|
1889 |
! |
|
1890 |
||
1891 |
sortedByName |
|
1892 |
^ tagList sortedByName |
|
1893 |
! |
|
1894 |
||
1895 |
sortedByName:aBool |
|
1896 |
tagList sortedByName:aBool |
|
1897 |
! |
|
1898 |
||
1899 |
sortedByNameIgnoringCase |
|
1900 |
^ tagList sortedByNameIgnoringCase |
|
1901 |
! |
|
1902 |
||
1903 |
sortedByNameIgnoringCase:aBool |
|
1904 |
tagList sortedByNameIgnoringCase:aBool |
|
1905 |
! |
|
1906 |
||
1907 |
sortedByNameIgnoringLeadingUnderscores |
|
1908 |
^ tagList sortedByNameIgnoringLeadingUnderscores |
|
1909 |
! |
|
1910 |
||
1911 |
sortedByNameIgnoringLeadingUnderscores:aBool |
|
1912 |
tagList sortedByNameIgnoringLeadingUnderscores:aBool |
|
1913 |
! |
|
1914 |
||
1915 |
sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1916 |
^ tagList sortedByNameIgnoringLeadingUnderscoresAndCase |
|
1917 |
! |
|
1918 |
||
1919 |
sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1920 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase:aBool |
|
1921 |
! |
|
1922 |
||
1923 |
sortedByType |
|
1924 |
^ tagList sortedByType |
|
1925 |
! |
|
1926 |
||
1927 |
sortedByType:aBool |
|
1928 |
tagList sortedByType:aBool |
|
1929 |
! ! |
|
1930 |
||
1931 |
!TagsBrowser methodsFor:'aspects'! |
|
1932 |
||
1933 |
editedFileHasAssemblerSuffix |
|
1934 |
^builder booleanValueAspectFor: #editedFileHasAssemblerSuffix |
|
1935 |
||
1936 |
||
1937 |
! |
|
1938 |
||
1939 |
editedFileHasCSuffix |
|
1940 |
^builder booleanValueAspectFor: #editedFileHasCSuffix |
|
1941 |
||
1942 |
||
1943 |
! |
|
1944 |
||
11761 | 1945 |
editedFileHasDartSuffix |
1946 |
^builder booleanValueAspectFor: #editedFileHasDartSuffix |
|
1947 |
! |
|
1948 |
||
9892 | 1949 |
editedFileHasEiffelSuffix |
1950 |
^builder booleanValueAspectFor: #editedFileHasEiffelSuffix |
|
1951 |
||
1952 |
||
1953 |
! |
|
1954 |
||
1955 |
editedFileHasFortranSuffix |
|
1956 |
^builder booleanValueAspectFor: #editedFileHasFortranSuffix |
|
1957 |
||
1958 |
||
1959 |
! |
|
1960 |
||
1961 |
editedFileHasJavaScriptSuffix |
|
1962 |
^builder booleanValueAspectFor: #editedFileHasJavaScriptSuffix |
|
1963 |
||
1964 |
"Created: / 28-06-2010 / 13:09:15 / cg" |
|
1965 |
! |
|
1966 |
||
1967 |
editedFileHasJavaSuffix |
|
1968 |
^builder booleanValueAspectFor: #editedFileHasJavaSuffix |
|
1969 |
||
1970 |
||
1971 |
! |
|
1972 |
||
1973 |
editedFileHasLispSuffix |
|
1974 |
^builder booleanValueAspectFor: #editedFileHasLispSuffix |
|
1975 |
||
1976 |
||
1977 |
! |
|
1978 |
||
1979 |
editedFileHasOzSuffix |
|
1980 |
^builder booleanValueAspectFor: #editedFileHasOzSuffix |
|
1981 |
! |
|
1982 |
||
1983 |
editedFileHasPythonSuffix |
|
1984 |
^builder booleanValueAspectFor: #editedFileHasPythonSuffix |
|
1985 |
||
1986 |
||
1987 |
! |
|
1988 |
||
1989 |
editedFileHasRubySuffix |
|
1990 |
^builder booleanValueAspectFor: #editedFileHasRubySuffix |
|
1991 |
! |
|
1992 |
||
1993 |
editedFileHasSmalltalkSuffix |
|
1994 |
^builder booleanValueAspectFor: #editedFileHasSmalltalkSuffix |
|
1995 |
||
1996 |
||
1997 |
! |
|
1998 |
||
1999 |
editedFileHasTCLSuffix |
|
2000 |
^builder booleanValueAspectFor: #editedFileHasTCLSuffix |
|
2001 |
||
2002 |
||
2003 |
! |
|
2004 |
||
2005 |
editedFileIsMakefile |
|
2006 |
^builder booleanValueAspectFor: #editedFileIsMakefile |
|
2007 |
! |
|
2008 |
||
10763 | 2009 |
functionsOnlyHolder |
2010 |
^ builder booleanValueAspectFor: #functionsOnly |
|
2011 |
||
2012 |
"Created: / 06-10-2011 / 12:19:23 / cg" |
|
2013 |
! |
|
2014 |
||
9892 | 2015 |
remoteCtagsModel |
2016 |
||
2017 |
|holder| |
|
2018 |
||
2019 |
(holder := builder bindingAt:#remoteCtagsModel) isNil ifTrue:[ |
|
2020 |
holder := false asValue. |
|
2021 |
builder aspectAt:#remoteCtagsModel put:holder. |
|
2022 |
]. |
|
2023 |
^ holder. |
|
2024 |
! |
|
2025 |
||
10435 | 2026 |
sortIsByLineNumber |
2027 |
^ builder booleanValueAspectFor: #sortIsByLineNumber |
|
2028 |
||
2029 |
"Created: / 03-08-2011 / 11:17:48 / cg" |
|
2030 |
! |
|
2031 |
||
2032 |
sortIsByName |
|
2033 |
^ builder booleanValueAspectFor: #sortIsByName |
|
2034 |
||
2035 |
"Created: / 03-08-2011 / 11:17:52 / cg" |
|
2036 |
! |
|
2037 |
||
11721 | 2038 |
tagFilterFieldVisibleHolder |
2039 |
|holder| |
|
2040 |
||
2041 |
(holder := builder bindingAt:#tagFilterFieldVisibleHolder) isNil ifTrue:[ |
|
2042 |
holder := false asValue. |
|
2043 |
builder aspectAt:#tagFilterFieldVisibleHolder put:holder. |
|
2044 |
holder onChangeSend:#tagFilterVisibilityChanged to:self. |
|
2045 |
]. |
|
2046 |
^ holder. |
|
2047 |
||
2048 |
"Created: / 01-08-2012 / 10:52:48 / cg" |
|
2049 |
! |
|
2050 |
||
2051 |
tagFilterPatternHolder |
|
2052 |
|holder| |
|
2053 |
||
2054 |
(holder := builder bindingAt:#tagFilterPatternHolder) isNil ifTrue:[ |
|
2055 |
holder := '' asValue. |
|
2056 |
builder aspectAt:#tagFilterPatternHolder put:holder. |
|
2057 |
holder onChangeSend:#tagFilterChanged to:self. |
|
2058 |
]. |
|
2059 |
^ holder. |
|
2060 |
||
2061 |
"Created: / 01-08-2012 / 16:43:26 / cg" |
|
2062 |
! |
|
2063 |
||
9892 | 2064 |
tagList |
2065 |
"returns the tagList |
|
2066 |
" |
|
2067 |
^ tagList |
|
2068 |
! |
|
2069 |
||
2070 |
tagView |
|
2071 |
"returns the widget which shows the tags |
|
2072 |
" |
|
2073 |
^ tagView |
|
2074 |
! ! |
|
2075 |
||
2076 |
!TagsBrowser methodsFor:'change & update'! |
|
2077 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2078 |
delayedEditedFileChanged |
9892 | 2079 |
"called when the current editing file has changed. |
2080 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2081 |
" |
|
2082 |
||
2083 |
self updateFileTypeHolders. |
|
2084 |
self updateTagList. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2085 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2086 |
"Created: / 07-05-2011 / 15:36:52 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2087 |
! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2088 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2089 |
editedFileChanged |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2090 |
self enqueueDelayedAction:[self delayedEditedFileChanged]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2091 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2092 |
"Modified: / 07-05-2011 / 15:37:00 / cg" |
9892 | 2093 |
! |
2094 |
||
11721 | 2095 |
tagFilterChanged |
2096 |
tagList filter:(self tagFilterPatternHolder value) |
|
2097 |
||
2098 |
"Created: / 01-08-2012 / 16:44:54 / cg" |
|
2099 |
! |
|
2100 |
||
2101 |
tagFilterVisibilityChanged |
|
2102 |
self tagFilterFieldVisibleHolder value ifTrue:[ |
|
2103 |
"/ self windowGroup |
|
2104 |
"/ focusView:(self builder componentAt:#TagFilterInputField) |
|
2105 |
"/ byTab:true. |
|
2106 |
self enqueueMessage:#assignFocusToTagFilterInputField for:self arguments:#(). |
|
2107 |
]. |
|
2108 |
||
2109 |
"Created: / 01-08-2012 / 17:00:27 / cg" |
|
2110 |
! |
|
2111 |
||
9892 | 2112 |
update:something with:aparameter from:changedObject |
2113 |
changedObject == self editedFileHolder ifTrue:[ |
|
2114 |
tagList removeAll. |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2115 |
self editedFileChanged. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2116 |
^ self |
9892 | 2117 |
]. |
2118 |
super update:something with:aparameter from:changedObject |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2119 |
|
11721 | 2120 |
"Modified: / 01-08-2012 / 16:58:30 / cg" |
9892 | 2121 |
! |
2122 |
||
2123 |
updateFileTypeHolders |
|
2124 |
"called when the current editing file has changed. |
|
2125 |
Update the valueHolders which keep track of the edited files type (i.e. language) |
|
2126 |
" |
|
2127 |
||
2128 |
|edFile suffix mime| |
|
2129 |
||
2130 |
(edFile := self editedFile) notNil ifTrue:[ |
|
2131 |
suffix := edFile suffix. |
|
2132 |
]. |
|
2133 |
||
2134 |
mime := TagList tagMimeTypeForFile:edFile. |
|
2135 |
||
2136 |
"/ valueHolder mime(s) |
|
2137 |
#( |
|
2138 |
(editedFileHasJavaSuffix 'text/java' ) |
|
2139 |
(editedFileHasJavaScriptSuffix ('text/javaScript' 'text/javascript' 'application/x-javascript') ) |
|
11761 | 2140 |
(editedFileHasDartSuffix ('text/dart' 'application/x-dart') ) |
9892 | 2141 |
(editedFileHasCSuffix 'text/c') |
2142 |
(editedFileHasEiffelSuffix 'text/eiffel') |
|
2143 |
(editedFileHasFortranSuffix 'text/fortran') |
|
2144 |
(editedFileHasPythonSuffix 'text/python') |
|
2145 |
(editedFileHasOzSuffix 'text/oz') |
|
2146 |
(editedFileHasLispSuffix ('text/lisp' 'text/lisp-arc' 'text/scheme') ) |
|
2147 |
(editedFileHasSmalltalkSuffix 'text/smalltalk') |
|
2148 |
(editedFileHasTCLSuffix 'text/tcl') |
|
2149 |
(editedFileHasAssemblerSuffix 'text/asm') |
|
2150 |
(editedFileIsMakefile 'text/make') |
|
2151 |
(editedFileHasRubySuffix 'text/ruby') |
|
2152 |
) pairsDo:[:holderName :mimeTypeOrTypes | |
|
2153 |
|holder| |
|
2154 |
||
2155 |
holder := self perform:holderName. |
|
2156 |
mimeTypeOrTypes isString ifTrue:[ |
|
2157 |
holder value:(mime = mimeTypeOrTypes) |
|
2158 |
] ifFalse:[ |
|
2159 |
holder value:(mimeTypeOrTypes includes:mime) |
|
2160 |
]. |
|
2161 |
]. |
|
2162 |
||
11761 | 2163 |
"Modified: / 21-08-2012 / 20:54:08 / cg" |
9943 | 2164 |
! |
2165 |
||
2166 |
updateForLine:lineNr |
|
2167 |
"/ highlight the tag for a particular line in the edittext |
|
2168 |
"/ called via a hook via the masterapp from the editView... |
|
2169 |
||
2170 |
|bestTag| |
|
2171 |
||
2172 |
bestTag := tagList bestTagForLine:lineNr. |
|
2173 |
bestTag notNil ifTrue:[ |
|
2174 |
tagView setSelection:(tagList identityIndexOf:bestTag). |
|
2175 |
] ifFalse:[ |
|
2176 |
"/ remember line in case the tag-list is being generated |
|
2177 |
tagView tagLineNr:lineNr |
|
2178 |
]. |
|
2179 |
||
2180 |
"Modified: / 23-06-2011 / 17:28:26 / cg" |
|
9892 | 2181 |
! ! |
2182 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2183 |
!TagsBrowser methodsFor:'hooks for ccbrowser'! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2184 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2185 |
buildTarget |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2186 |
commonAspects notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2187 |
^ commonAspects buildTarget |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2188 |
]. |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2189 |
^ nil |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2190 |
|
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2191 |
"Created: / 07-05-2011 / 15:38:20 / cg" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2192 |
! ! |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2193 |
|
9892 | 2194 |
!TagsBrowser methodsFor:'menu actions'! |
2195 |
||
10766 | 2196 |
keepingSelectionDo:aBlock |
2197 |
|oldSelection oldLabel| |
|
2198 |
||
2199 |
oldSelection := tagView selectionValue. |
|
2200 |
aBlock value. |
|
2201 |
||
2202 |
oldSelection notNil ifTrue:[ |
|
2203 |
oldLabel := oldSelection label. |
|
12436 | 2204 |
tagView selectElementForWhich:[:el | el label = oldLabel] ifAbsent:[self halt:'ouch - no such label']. |
10766 | 2205 |
]. |
2206 |
||
2207 |
"Created: / 06-10-2011 / 13:41:57 / cg" |
|
2208 |
! |
|
2209 |
||
9892 | 2210 |
middleButtonMenu |
2211 |
^ [ |
|
2212 |
|menu suffix file item| |
|
2213 |
||
2214 |
menus isNil ifTrue:[ |
|
2215 |
menus := IdentityDictionary new. |
|
2216 |
]. |
|
2217 |
||
2218 |
menu := nil. |
|
2219 |
||
2220 |
(file := self editedFile) notNil ifTrue:[ |
|
2221 |
(tagList supportsFile:file) ifTrue:[ |
|
2222 |
menu := menus at:#exists ifAbsentPut:[ |
|
2223 |
menu := self class middleButtonMenu decodeAsLiteralArray. |
|
2224 |
menu receiver:self. |
|
2225 |
menu findGuiResourcesIn:self. |
|
2226 |
menu |
|
2227 |
]. |
|
2228 |
menu := MenuPanel menu:menu receiver:self. |
|
2229 |
] ifFalse:[ |
|
2230 |
suffix := file suffix. |
|
2231 |
||
2232 |
suffix size ~~ 0 ifTrue:[ |
|
2233 |
menu := menus at:#new ifAbsentPut:[ |
|
2234 |
menu := Menu new. |
|
2235 |
item := MenuItem label:('assign ', (Text string:suffix emphasis:#underline), ' to:'). |
|
2236 |
item enabled:false. |
|
2237 |
menu addItem:item. |
|
11780 | 2238 |
menu addItem:(MenuItem separator). |
9892 | 2239 |
|
2240 |
tagList class tagsSuffixes keysAndValuesDo:[:aKey :aValue| |
|
2241 |
item := MenuItem label:(' - ', aKey ) |
|
2242 |
value:[ |list| |
|
2243 |
list := aValue asOrderedCollection. |
|
2244 |
list add:(suffix asLowercase). |
|
2245 |
tagList class tagsSuffixes at:aKey put:list. |
|
2246 |
self editedFileChanged. |
|
2247 |
]. |
|
2248 |
menu addItem:item. |
|
2249 |
]. |
|
2250 |
menu |
|
2251 |
]. |
|
2252 |
||
2253 |
] |
|
2254 |
]. |
|
2255 |
]. |
|
2256 |
menu |
|
2257 |
] |
|
11780 | 2258 |
|
2259 |
"Modified: / 08-09-2012 / 19:51:03 / cg" |
|
9892 | 2260 |
! |
2261 |
||
10435 | 2262 |
sortByLineNumber |
10766 | 2263 |
self keepingSelectionDo:[ |
2264 |
tagList sortedByLineNumber:true. |
|
2265 |
self sortIsByName value:false. |
|
2266 |
self sortIsByLineNumber value:true. |
|
2267 |
] |
|
10435 | 2268 |
|
2269 |
"Created: / 03-08-2011 / 11:04:51 / cg" |
|
2270 |
! |
|
2271 |
||
2272 |
sortByName |
|
10766 | 2273 |
self keepingSelectionDo:[ |
2274 |
tagList sortedByNameIgnoringLeadingUnderscoresAndCase: "sortedByName:" true. |
|
2275 |
self sortIsByLineNumber value:false. |
|
2276 |
self sortIsByName value:true. |
|
2277 |
]. |
|
10435 | 2278 |
|
2279 |
"Created: / 03-08-2011 / 11:04:37 / cg" |
|
2280 |
! |
|
2281 |
||
9892 | 2282 |
updateTagList |
2283 |
"reload tags |
|
2284 |
" |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2285 |
|
10766 | 2286 |
|file target oldSelection| |
9892 | 2287 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2288 |
(true "(self tagsVisibilityHolder value == true)" |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2289 |
and:[(file := self editedFile) notNil |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2290 |
and:[tagList supportsFile:file]] |
9892 | 2291 |
) ifTrue:[ |
2292 |
(target := self buildTarget) notNil ifTrue:[ |
|
2293 |
(target isRemote and:[self tagsRemoteHolder value]) ifFalse:[ |
|
2294 |
target := nil |
|
2295 |
] |
|
2296 |
]. |
|
10766 | 2297 |
oldSelection := tagView selectionValue. |
2298 |
tagView generateTagsFor:file onTarget:target |
|
2299 |
finally:[ |
|
2300 |
|oldLabel| |
|
2301 |
||
2302 |
oldSelection notNil ifTrue:[ |
|
2303 |
oldLabel := oldSelection label. |
|
10969 | 2304 |
tagView selectElementForWhich:[:el | el label = oldLabel] ifAbsent:["ok, if previous tag is filtered away" "self halt"]. |
10766 | 2305 |
]. |
2306 |
]. |
|
9892 | 2307 |
] ifFalse:[ |
10766 | 2308 |
tagView stopGeneratingTags. |
2309 |
tagView clearList. |
|
9892 | 2310 |
]. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2311 |
|
10969 | 2312 |
"Modified: / 07-12-2011 / 11:13:18 / cg" |
9892 | 2313 |
! ! |
2314 |
||
2315 |
!TagsBrowser methodsFor:'startup & release'! |
|
2316 |
||
2317 |
cloneWith:anApplication |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2318 |
"/ |browser| |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2319 |
"/ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2320 |
"/ (browser := anApplication tagsBrowser) notNil ifTrue:[ |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2321 |
"/ self tagsVisibilityHolder value:(browser tagsVisibilityHolder value) |
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2322 |
"/ ] |
9892 | 2323 |
|
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2324 |
"Modified: / 07-05-2011 / 11:54:48 / cg" |
9892 | 2325 |
! |
2326 |
||
2327 |
initialize |
|
2328 |
super initialize. |
|
2329 |
||
2330 |
tagList := TagList new. |
|
2331 |
tagView := TagView new. |
|
2332 |
||
2333 |
tagView application:self. |
|
2334 |
tagView list:tagList. |
|
2335 |
||
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2336 |
tagView action:[:i| self tagListSelectionChangedTo:i]. |
10435 | 2337 |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2338 |
"Modified: / 06-12-2011 / 14:57:06 / cg" |
10435 | 2339 |
! |
2340 |
||
2341 |
postBuildWith:aBuilder |
|
2342 |
super postBuildWith:aBuilder. |
|
2343 |
||
2344 |
self sortIsByName value:true. |
|
2345 |
||
2346 |
"Created: / 03-08-2011 / 11:19:44 / cg" |
|
10965
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2347 |
! |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2348 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2349 |
tagListSelectionChangedTo:idx |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2350 |
|tag| |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2351 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2352 |
action notNil ifTrue:[ |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2353 |
tag := tagList at:idx ifAbsent:nil. |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2354 |
tag notNil ifTrue:[ action value:tag ]. |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2355 |
] |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2356 |
|
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2357 |
"Modified: / 03-08-2011 / 11:19:49 / cg" |
c24875a2489d
added: #tagListSelectionChangedTo:
Claus Gittinger <cg@exept.de>
parents:
10841
diff
changeset
|
2358 |
"Created: / 06-12-2011 / 14:57:26 / cg" |
9892 | 2359 |
! ! |
2360 |
||
2361 |
!TagsBrowser::TagView methodsFor:'accessing'! |
|
2362 |
||
2363 |
application |
|
2364 |
"returns my application, the TagsBrowser |
|
2365 |
" |
|
2366 |
^ application |
|
2367 |
! |
|
2368 |
||
2369 |
application:theTagsBrowser |
|
2370 |
"set my application, the TagsBrowser |
|
2371 |
" |
|
2372 |
application := theTagsBrowser. |
|
2373 |
! |
|
2374 |
||
12068 | 2375 |
clearList |
2376 |
self list:nil |
|
2377 |
! |
|
2378 |
||
9892 | 2379 |
filter:aString |
2380 |
filter := aString. |
|
2381 |
list filter:aString. |
|
2382 |
! |
|
2383 |
||
2384 |
tagLineNr:lineNr |
|
2385 |
"remember line nr for which a tag should be highlighted. |
|
2386 |
(will set my selection late, when the taglist is available" |
|
2387 |
||
2388 |
tagLineNr := lineNr |
|
2389 |
! ! |
|
2390 |
||
2391 |
!TagsBrowser::TagView methodsFor:'drawing'! |
|
2392 |
||
2393 |
drawLabelAt:anIndex x:x y:y h:h |
|
2394 |
"draw the label at position x/y without clearing the background |
|
2395 |
" |
|
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2396 |
|item label typeIdentifier |
9892 | 2397 |
y0 "{ Class: SmallInteger }" |
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2398 |
widthOfTypeIdentifier inset |
9892 | 2399 |
| |
2400 |
item := list at:anIndex ifAbsent:nil. |
|
2401 |
item isNil ifTrue:[^ self]. |
|
2402 |
||
2403 |
self paint:fgColor on:bgColor. |
|
2404 |
||
2405 |
label := item printString. |
|
10759 | 2406 |
label := label asText , ((' [ %1 ]' bindWith:item lineNumber) colorizeAllWith:Color darkGrey). |
2407 |
||
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2408 |
y0 := y - (((font height) + 1 - h) // 2) + font ascent. |
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2409 |
|
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2410 |
inset := TypeInset. |
9892 | 2411 |
|
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2412 |
typeIdentifier := item typeIdentifierInList. |
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2413 |
typeIdentifier notNil ifTrue:[ |
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2414 |
typeIdentifier := Text string:typeIdentifier emphasis:#bold. |
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2415 |
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
|
2416 |
widthOfTypeIdentifier := self font widthOf:typeIdentifier. |
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2417 |
inset := inset max:widthOfTypeIdentifier. |
9892 | 2418 |
]. |
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2419 |
|
9892 | 2420 |
(self isInSelection:anIndex) ifTrue:[ |
2421 |
self paint:hilightFgColor on:hilightBgColor |
|
2422 |
]. |
|
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2423 |
label displayOn:self x:(x + inset) y:y0 |
10759 | 2424 |
|
11437
686a7adb9a34
care for longer type identifiers in tag list
Claus Gittinger <cg@exept.de>
parents:
10969
diff
changeset
|
2425 |
"Modified: / 17-03-2012 / 11:15:27 / cg" |
9892 | 2426 |
! |
2427 |
||
2428 |
drawSelectionFrameAt:lnNr x:x w:w |
|
2429 |
"draw the background and foreground of the selection frame |
|
2430 |
at a lineNr. |
|
2431 |
" |
|
2432 |
|item |
|
2433 |
x0 "{ Class:SmallInteger }" |
|
2434 |
x1 "{ Class: SmallInteger }" |
|
2435 |
y0 "{ Class:SmallInteger }" |
|
2436 |
y1 "{ Class:SmallInteger }" |
|
2437 |
hL "{ Class:SmallInteger }" |
|
2438 |
wL "{ Class:SmallInteger }" |
|
2439 |
| |
|
2440 |
(item := list at:lnNr ifAbsent:nil) isNil ifTrue:[ |
|
2441 |
"/ list might change during drawing; item no longer visible |
|
2442 |
^ self |
|
2443 |
]. |
|
2444 |
||
2445 |
"/ CLEAR THE BACKGROUND |
|
2446 |
||
2447 |
y0 := self yVisibleOfLine:lnNr. |
|
2448 |
y1 := self yVisibleOfLine:(lnNr + 1). |
|
2449 |
hL := y1 - y0. |
|
2450 |
||
2451 |
x0 := textStartLeft - viewOrigin x + TypeInset - 4. |
|
2452 |
x1 := (self widthOfContents - viewOrigin x) max:(width - margin). |
|
2453 |
wL := x1 - x0. |
|
2454 |
||
2455 |
wL > 0 ifFalse:[^ self]. |
|
2456 |
||
2457 |
self paint:hilightBgColor. |
|
2458 |
self fillRectangleX:x0 y:y0 width:wL height:hL. |
|
2459 |
||
2460 |
"/ DRAW THE FRAME |
|
2461 |
||
2462 |
hilightFrameColor notNil ifTrue:[ |
|
2463 |
hilightLevel == 0 ifTrue:[ |
|
2464 |
self paint:hilightFrameColor. |
|
2465 |
self displayRectangleX:x0 y:y0 width:wL height:hL. |
|
2466 |
^ self. |
|
2467 |
] |
|
2468 |
] ifFalse:[ |
|
2469 |
hilightStyle == #motif ifTrue:[ |
|
2470 |
self paint:bgColor. |
|
2471 |
y1 := y0 + 1. |
|
2472 |
self displayRectangleX:x0 + 1 y:y1 width:wL - 2 height:hL - 2. |
|
2473 |
] |
|
2474 |
]. |
|
2475 |
||
2476 |
hilightLevel ~~ 0 ifTrue:[ |
|
2477 |
"/ draw edge |
|
2478 |
self drawEdgesForX:x0 y:y0 width:wL height:hL level:hilightLevel. |
|
2479 |
] |
|
2480 |
! ! |
|
2481 |
||
2482 |
!TagsBrowser::TagView methodsFor:'generating tags'! |
|
2483 |
||
10766 | 2484 |
generateTagsFor:aFile onTarget:aTarget finally:aBlock |
9892 | 2485 |
"generate tags for a file (optionally on a remote target) |
2486 |
" |
|
2487 |
|tagFile| |
|
2488 |
||
2489 |
Tag autoload. |
|
2490 |
||
2491 |
self stopGeneratingTags. |
|
2492 |
||
2493 |
aFile isNil ifTrue:[ |
|
2494 |
^ self |
|
2495 |
]. |
|
2496 |
fileName := aFile asFilename. |
|
2497 |
||
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2498 |
"/ (tagFile := application changes backupFor:fileName) isNil ifTrue:[ |
9892 | 2499 |
tagFile := fileName. |
9916
0c3fe1fa42c6
fixes for reusability in cc browser
Claus Gittinger <cg@exept.de>
parents:
9908
diff
changeset
|
2500 |
"/ ]. |
9892 | 2501 |
|
2502 |
process := [ |
|
2503 |
[ |
|
2504 |
Error handle:[:ex| |
|
2505 |
Transcript show:'TagGenerator error cought:'; showCR:ex errorString. |
|
2506 |
ex suspendedContext fullPrintAllOn:Transcript. |
|
2507 |
(Dialog |
|
2508 |
confirm:(resources stringWithCRs:'Error encountered while generating tags:\\ %1\\Debug ?' with:ex description) |
|
2509 |
yesLabel:'Debug' |
|
2510 |
) ifTrue:[ |
|
2511 |
ex reject |
|
2512 |
]. |
|
2513 |
] do:[ |
|
2514 |
|bestTag| |
|
2515 |
||
2516 |
self enabled:false. |
|
2517 |
list add:nil. |
|
2518 |
list add:(Tag label:('Generating Tags ...' allBold) pattern:nil). |
|
2519 |
list filter:filter. |
|
10841 | 2520 |
list sortedByName:(application sortIsByName value). |
9892 | 2521 |
|
2522 |
list |
|
2523 |
fromFile:tagFile |
|
2524 |
in:(application tempDirectory) |
|
2525 |
onTarget:aTarget. |
|
2526 |
||
2527 |
tagLineNr notNil ifTrue:[ |
|
2528 |
bestTag := list bestTagForLine:tagLineNr. |
|
2529 |
bestTag notNil ifTrue:[ |
|
2530 |
self setSelection:(list identityIndexOf:bestTag). |
|
2531 |
]. |
|
2532 |
tagLineNr := nil |
|
2533 |
]. |
|
10766 | 2534 |
aBlock value. |
9892 | 2535 |
] |
11498
b14061395b3a
#ensure instead of #valueNowOrOnUnwindDo:
Stefan Vogel <sv@exept.de>
parents:
11465
diff
changeset
|
2536 |
] ensure:[ |
9892 | 2537 |
process := nil. |
2538 |
self enabled:true. |
|
2539 |
]. |
|
2540 |
] forkAt:4. |
|
2541 |
||
2542 |
process priorityRange:(4 to:8). |
|
2543 |
||
10766 | 2544 |
"Created: / 06-10-2011 / 13:56:18 / cg" |
9892 | 2545 |
! |
2546 |
||
2547 |
stopGeneratingTags |
|
2548 |
"stop the process which generates the tags |
|
2549 |
" |
|
2550 |
|task| |
|
2551 |
||
2552 |
||
2553 |
(task := process) notNil ifTrue:[ |
|
2554 |
process := nil. |
|
2555 |
||
2556 |
Exception handle:[:ex| |
|
2557 |
] do:[ |
|
2558 |
task terminateWithAllSubprocessesInGroup. |
|
2559 |
task waitUntilTerminated. |
|
2560 |
] |
|
2561 |
]. |
|
2562 |
fileName := nil. |
|
10766 | 2563 |
"/ list removeAll. |
2564 |
||
2565 |
"Modified (comment): / 06-10-2011 / 14:01:30 / cg" |
|
9892 | 2566 |
! ! |
2567 |
||
2568 |
!TagsBrowser::TagView methodsFor:'initialize & release'! |
|
2569 |
||
2570 |
destroy |
|
2571 |
self stopGeneratingTags. |
|
2572 |
super destroy. |
|
2573 |
! |
|
2574 |
||
2575 |
initialize |
|
2576 |
||
2577 |
TypeInset := 16. |
|
2578 |
||
2579 |
super initialize. |
|
2580 |
highlightMode := #line. |
|
2581 |
! ! |
|
2582 |
||
2583 |
!TagsBrowser::TagView methodsFor:'protocol'! |
|
2584 |
||
2585 |
heightOfLineAt:aLineNr |
|
2586 |
"returns the total height for a line at an index( including lineSpacing ... ) |
|
2587 |
" |
|
2588 |
^ lineSpacing + font height |
|
2589 |
! |
|
2590 |
||
2591 |
widthOfWidestLineBetween:firstLine and:lastLine |
|
2592 |
"return the width in pixels of the widest line in a range |
|
2593 |
" |
|
2594 |
|width| |
|
2595 |
||
2596 |
width := super widthOfWidestLineBetween:firstLine and:lastLine. |
|
2597 |
^ width + TypeInset |
|
2598 |
! ! |
|
2599 |
||
2600 |
!TagsBrowser class methodsFor:'documentation'! |
|
2601 |
||
10763 | 2602 |
version |
12436 | 2603 |
^ '$Header: /cvs/stx/stx/libtool/Tools__TagsBrowser.st,v 1.32 2013-03-06 09:02:15 cg Exp $' |
10763 | 2604 |
! |
2605 |
||
9892 | 2606 |
version_CVS |
12436 | 2607 |
^ '$Header: /cvs/stx/stx/libtool/Tools__TagsBrowser.st,v 1.32 2013-03-06 09:02:15 cg Exp $' |
10055 | 2608 |
! |
2609 |
||
2610 |
version_SVN |
|
2611 |
^ '§Id§' |
|
9892 | 2612 |
! ! |
12436 | 2613 |