/
BaselineOfIDE.class.st
229 lines (174 loc) · 6.61 KB
/
BaselineOfIDE.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
"
This baseline is used to generate Pharo images from the local clone of pharo-project/pharo repository.
Depends on:
- BasicTools
- Traits
- Shift
- Slots
- Athens
Load type:
- linear
Installs:
- Epicea
- decompiler
- tests
- refactoring
- GT Tools
- Versionner
- TxText
- OSWindow
- QualityAssistant
- some other packages
"
Class {
#name : #BaselineOfIDE,
#superclass : #BaselineOf,
#classVars : [
'Initialized'
],
#category : #BaselineOfIDE
}
{ #category : #actions }
BaselineOfIDE >> additionalInitialization [
Smalltalk tools register: ExternalChangesBrowser as: #changeList.
Smalltalk tools register: FileList as: #fileList.
Smalltalk tools register: Finder as: #finder.
Smalltalk tools register: ProcessBrowser as: #processBrowser.
Smalltalk tools register: RecentMessageList as: #recentMessageList.
Smalltalk tools register: SyntaxErrorDebugger as: #syntaxErrorDebugger.
Smalltalk tools register: TimeProfiler as: #timeProfiler.
(MorphicCoreUIManager classPool at: #UIProcess) ifNotNil: [ :proc | proc terminate ].
MorphicCoreUIManager classPool at: #UIProcess put: nil.
PolymorphSystemSettings desktopColor: Color veryVeryLightGray lighter.
SourceCodeFonts setSourceCodeFonts: 10.
LogicalFontManager unload.
FreeTypeSystemSettings loadFt2Library: true.
FreeTypeSettings current monitorType: #LCD.
FreeTypeSettings current glyphContrast: 55.
CatalogSettings displayCatalogProjectsInSpotter: false.
RealEstateAgent usedStrategy: #cascadeFor:initialExtent:world:.
GrowlMorph position: #bottomLeft.
ShortcutReminder enabled: true.
KMRepository reset.
Morph shortcutsHandler: KMShortcutHandler new.
MCSaveVersionDialog previousMessages add: String new.
RBProgramNode formatterClass: BIConfigurableFormatter.
Color flushCache.
ASTTransformExamplePluginActive recompile.
PharoCommandLineHandler recompile.
SmalltalkImage recompile.
RubCharacterScanner initialize.
RubAbstractTextArea highlightMessageSend: true.
PharoDarkTheme beCurrent.
SDL_Event initialize.
HiRulerBuilderTest initialize.
3 timesRepeat: [
Smalltalk garbageCollect.
Undeclared removeUnreferencedKeys.].
self loadIceberg.
self makeCalypsoDefaultBrowser.
]
{ #category : #baseline }
BaselineOfIDE >> baseline: spec [
<baseline>
| repository |
repository := self packageRepositoryURL.
spec for: #common do: [
spec postLoadDoIt: #'postload:package:'.
spec baseline: 'BasicTools' with: [ spec repository: repository ].
spec baseline: 'Athens' with: [ spec repository: repository ].
spec baseline: 'Flashback' with: [ spec repository: repository ].
spec baseline: 'Shift' with: [
spec repository: repository; loads: 'shift-tests'].
spec baseline: 'Traits' with: [
spec repository: repository; loads: 'traits-tests' ].
spec baseline: 'Slot' with: [
spec repository: repository; loads: 'slot-tests' ].
spec baseline: 'Clap' with: [ spec repository: repository ].
spec baseline: 'SUnit' with: [
spec repository: repository; loads: 'Tests' ].
spec baseline: 'BlueInk' with: [
spec repository: repository; loads: #('Core') ].
spec package: 'Network-Tests'.
spec package: 'Network-Mail-Tests'.
spec package: 'Fuel-Tools-Pharo'.
spec package: 'Gofer-Tests'.
spec baseline: 'Metacello' with: [
spec repository: repository; loads: #('Tests') ].
spec package: 'MonticelloGUI-Tests'.
spec baseline: 'BlueInk' with: [
spec repository: repository; loads: #('Extras' 'Tests'). ].
spec baseline: 'KernelTests' with: [ spec repository: repository ].
spec baseline: 'Shout' with: [ spec repository: repository ].
spec baseline: 'GeneralHelp' with: [ spec repository: repository ].
spec baseline: 'ReflectionMirrors' with: [ spec repository: repository ].
spec baseline: 'FuzzyMatcher' with: [ spec repository: repository ].
spec baseline: 'QAGT' with: [ spec repository: repository ].
spec baseline: 'OSWindow' with: [ spec repository: repository ].
spec baseline: 'Refactoring' with: [ spec repository: repository ].
spec baseline: 'Epicea' with: [ spec repository: repository ].
spec baseline: 'Misc' with: [ spec repository: repository ].
spec baseline: 'GeneralTests' with: [ spec repository: repository ].
spec baseline: 'Zodiac' with: [ spec repository: repository ].
spec baseline: 'SortFunctions' with: [ spec repository: repository ].
spec package: 'BaselineOfPharoBootstrap'.
spec package: 'BaselineOfMonticello'.
spec package: 'BaselineOfMetacello'.
spec package: 'BaselineOfTelePharoSupport'.
spec baseline: 'ReferenceFinder' with: [ spec repository: repository ].
spec baseline: 'Refactoring2' with: [ spec repository: repository ].
spec baseline: 'ClassParser' with: [ spec repository: repository ].
spec baseline: 'Calypso' with: [
spec repository: repository; loads: #('FullEnvironment' 'SystemBrowser' 'Tests'). ].
spec baseline: 'Ring' with: [spec repository: repository].
spec baseline: 'PharoGlamour' with: [ spec repository: repository ].
spec baseline: 'PharoGT' with: [ spec repository: repository ].
spec baseline: 'Catalog' with: [ spec repository: repository ].
].
]
{ #category : #actions }
BaselineOfIDE >> loadIceberg [
Metacello new
baseline: 'Iceberg';
repository: 'github://pharo-vcs/iceberg:v1.6.2';
onConflictUseLoaded;
load.
(Smalltalk classNamed: #Iceberg) enableMetacelloIntegration: true.
(Smalltalk classNamed: #IcePharoPlugin) addPharoProjectToIceberg.
]
{ #category : #actions }
BaselineOfIDE >> makeCalypsoDefaultBrowser [
(self class environment at: #ClyBrowserMorph) beAllDefault.
]
{ #category : #actions }
BaselineOfIDE >> postload: loader package: packageSpec [
| initializersEnabled repo gofer |
"Ignore pre and post loads if already executed"
Initialized = true ifTrue: [ ^ self ].
Author fullName: self class name.
"collect and process the standard tools registrations"
Smalltalk tools initDefaultToolSet.
initializersEnabled := MCMethodDefinition initializersEnabled.
MCMethodDefinition initializersEnabled: false.
repo := TonelRepository new
directory: self packageRepository directory;
yourself.
gofer := Gofer it repository: repo.
gofer package: #'RPackage-Tests'.
gofer load.
MCMethodDefinition initializersEnabled: initializersEnabled.
Smalltalk cleanOutUndeclared.
Stdio stdout
nextPutAll: ' ------------ Obsolete ------------';
lf;
nextPutAll: SystemNavigation default obsoleteClasses asString;
lf;
nextPutAll: ' ............ Obsolete ............';
lf.
Smalltalk fixObsoleteReferences.
EpMonitor current enable.
Author reset.
MCMethodDefinition initializersEnabled: initializersEnabled.
self additionalInitialization.
Initialized := true.
]