616
|
1 |
"{ package:'detemobil:ftam' }"
|
|
2 |
|
|
3 |
|files|
|
|
4 |
|
|
5 |
'loading package stx:libjava ...' printCR.
|
|
6 |
|
553
|
7 |
Scanner allowDollarInIdentifier:true.
|
|
8 |
|
458
|
9 |
"/
|
|
10 |
"/ base system
|
|
11 |
"/
|
553
|
12 |
|
616
|
13 |
files := #(
|
506
|
14 |
'Java'
|
|
15 |
'JavaVM'
|
458
|
16 |
|
506
|
17 |
'JavaConstantPool'
|
|
18 |
'JavaSlotIndexCache'
|
458
|
19 |
|
506
|
20 |
'JavaObject'
|
|
21 |
'JavaClass'
|
|
22 |
'JavaMethod'
|
|
23 |
'JavaMethodWithException'
|
|
24 |
'JavaMethodWithHandler'
|
613
|
25 |
'JavaNativeMethod'
|
506
|
26 |
'JavaContext'
|
|
27 |
'JavaProcess'
|
458
|
28 |
|
506
|
29 |
'JavaClassReader'
|
|
30 |
'JavaDecompiler'
|
458
|
31 |
|
506
|
32 |
'JavaExceptionTableEntry'
|
|
33 |
'JavaLocalVariableTable'
|
|
34 |
'JavaLocalVariableTableEntry'
|
458
|
35 |
|
506
|
36 |
'JavaRef'
|
|
37 |
'JavaClassRef'
|
|
38 |
'JavaField'
|
|
39 |
'JavaFieldref'
|
|
40 |
'JavaMethodref'
|
|
41 |
'JavaInterfaceMethodref'
|
|
42 |
'JavaNameandType'
|
|
43 |
'JavaClassPointerRef'
|
|
44 |
'JavaBuiltInClassPointerRef'
|
458
|
45 |
|
506
|
46 |
'JavaUnresolvedConstant'
|
|
47 |
'JavaUnresolvedRefConstant'
|
|
48 |
'JavaUnresolvedClassConstant'
|
|
49 |
'JavaUnresolvedFieldrefConstant'
|
|
50 |
'JavaUnresolvedMethodrefConstant'
|
|
51 |
'JavaUnresolvedInterfaceMethodrefConstant'
|
|
52 |
'JavaUnresolvedNameandTypeConstant'
|
|
53 |
'JavaUnresolvedStringConstant'
|
458
|
54 |
|
506
|
55 |
'JavaView'
|
|
56 |
'JavaTopView'
|
|
57 |
'JavaPopUpView'
|
|
58 |
'JavaEmbeddedFrameView'
|
490
|
59 |
|
506
|
60 |
'JavaDeparser'
|
616
|
61 |
).
|
458
|
62 |
|
616
|
63 |
(Smalltalk loadClassLibraryIfAbsent:'libjava') ifTrue:[
|
|
64 |
|handle loaded|
|
598
|
65 |
|
616
|
66 |
loaded := OrderedCollection new.
|
|
67 |
handle := ObjectFileLoader loadedObjectHandles
|
|
68 |
detect:[:h | |cls|
|
|
69 |
cls := h classes firstIfEmpty:nil.
|
|
70 |
cls notNil and:[cls package = 'stx:libjava']
|
|
71 |
]
|
|
72 |
ifNone:nil.
|
|
73 |
handle notNil ifTrue:[
|
|
74 |
handle classes do:[:c| c isMeta ifFalse:[loaded add:c classFilename]].
|
|
75 |
].
|
|
76 |
files := files asOrderedCollection.
|
|
77 |
loaded do:[:f| files remove:f ifAbsent:[]].
|
|
78 |
].
|
458
|
79 |
|
616
|
80 |
files size > 0 ifTrue:[
|
|
81 |
files do:[:s|
|
|
82 |
'.' print.
|
|
83 |
Smalltalk fileIn:s.
|
|
84 |
].
|
|
85 |
' ' printCR.
|
458
|
86 |
].
|
616
|
87 |
'done.' printCR.
|
458
|
88 |
!
|
|
89 |
|
|
90 |
|