Skip to content

Commit

Permalink
Fixes #61.
Browse files Browse the repository at this point in the history
  • Loading branch information
eMaringolo committed Nov 5, 2020
1 parent 2491f68 commit 0fa6ca2
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 62 deletions.
Binary file modified envy/Tonel.dat
Binary file not shown.
100 changes: 50 additions & 50 deletions source/.configmaps
Original file line number Diff line number Diff line change
@@ -1,4 +1,50 @@
[
{
#conditions : [
{
#condition : 'true',
#requiredMaps : [
{
#name : 'Tonel',
#versionName : '1.69',
#ts : 3782022304
},
{
#name : 'z.ST: SUnit',
#versionName : 'V 9.2.2 [002]',
#ts : 3768827234
}
]
}
],
#ts : 3782022301,
#comment : '',
#formatVersion : '1.1',
#applications : OrderedCollection [
{
#name : 'EmLibraryToolsApp',
#versionName : '1.5',
#ts : 3777122976
},
{
#name : 'TonelLoaderTests',
#versionName : '1.8',
#ts : 3780217002
},
{
#name : 'TonelReaderTests',
#versionName : '1.30',
#ts : 3758443008
},
{
#name : 'TonelWriterTests',
#versionName : '1.34',
#ts : 3777113021
}
],
#name : 'Test Tonel',
#versionName : '1.20'
},
{
#conditions : [
{
Expand All @@ -12,7 +58,7 @@
]
}
],
#ts : 3781427008,
#ts : 3782022304,
#comment : '',
#formatVersion : '1.1',
#applications : OrderedCollection [
Expand All @@ -33,8 +79,8 @@
},
{
#name : 'TonelLoaderModel',
#versionName : '1.72',
#ts : 3781356699
#versionName : '1.73',
#ts : 3782018939
},
{
#name : 'TonelReaderModel',
Expand All @@ -53,52 +99,6 @@
}
],
#name : 'Tonel',
#versionName : '1.68'
},
{
#conditions : [
{
#condition : 'true',
#requiredMaps : [
{
#name : 'Tonel',
#versionName : '1.68',
#ts : 3781427008
},
{
#name : 'z.ST: SUnit',
#versionName : 'V 9.2.2 [002]',
#ts : 3768827234
}
]
}
],
#ts : 3781426995,
#comment : '',
#formatVersion : '1.1',
#applications : OrderedCollection [
{
#name : 'EmLibraryToolsApp',
#versionName : '1.5',
#ts : 3777122976
},
{
#name : 'TonelLoaderTests',
#versionName : '1.8',
#ts : 3780217002
},
{
#name : 'TonelReaderTests',
#versionName : '1.30',
#ts : 3758443008
},
{
#name : 'TonelWriterTests',
#versionName : '1.34',
#ts : 3777113021
}
],
#name : 'Test Tonel',
#versionName : '1.19'
#versionName : '1.69'
}
]
2 changes: 1 addition & 1 deletion source/TonelLoaderModel/TonelApplicationLoader.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ TonelApplicationLoader >> createAndLoadApplication [
loadApplication;
deleteRemovedSubApplications;
versionApplication;
initializeApplication;
markAsLoaded


Expand Down Expand Up @@ -264,6 +263,7 @@ TonelApplicationLoader >> loader [
#vaVisibility : 'private' }
TonelApplicationLoader >> markAsLoaded [

self tonelApplication notifyLoad.
self loader addLoadedApplication: self tonelApplication
]

Expand Down
28 changes: 17 additions & 11 deletions source/TonelLoaderModel/TonelLoaderSubApplication.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -436,17 +436,6 @@ TonelLoaderSubApplication >> includesClass: className [
^self tonelClasses includesKey: className asSymbol
]

{ #category : 'Initialization',
#vaVisibility : 'private' }
TonelLoaderSubApplication >> initialize [

| theApp |

theApp := Smalltalk classAt: self identifier.
(theApp class includesSelector: #loaded) ifTrue: [theApp loaded].
self subApplications do: [:each | each initialize]
]

{ #category : 'Initialization',
#vaVisibility : 'private' }
TonelLoaderSubApplication >> initializeConditions [
Expand Down Expand Up @@ -602,6 +591,23 @@ TonelLoaderSubApplication >> notes [
^self rootTonelApplication notes
]

{ #category : 'loading',
#vaVisibility : 'private' }
TonelLoaderSubApplication >> notifyLoad [

| theApp |

theApp := Smalltalk classAt: self identifier.
self definedClasses do: [:each |
(each concreteClassIn: theApp rootApplication)
ifNotNil: [:class |
(class includesSelector: #initializeAfterLoad) ifTrue: [class initializeAfterLoad]
].
].
(theApp class includesSelector: #loaded) ifTrue: [theApp loaded].
self subApplications do: [:each | each initialize]
]

{ #category : 'accessing' }
TonelLoaderSubApplication >> packageDefinedClasses [
^self packageDefinition definedClasses
Expand Down

0 comments on commit 0fa6ca2

Please sign in to comment.