Skip to content

Commit

Permalink
Fixes #115
Browse files Browse the repository at this point in the history
  • Loading branch information
eMaringolo committed Jul 29, 2022
1 parent ba0ad66 commit d3488ad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
10 changes: 5 additions & 5 deletions source/.configmaps
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
#conditions : [ ],
#ts : 3834673800,
#ts : 3836548555,
#comment : '',
#formatVersion : '1.1',
#applications : OrderedCollection [
Expand All @@ -22,8 +22,8 @@
},
{
#name : 'TonelLoaderModel',
#versionName : '1.5.5 c',
#ts : 3834492953
#versionName : '1.5.6',
#ts : 3836546104
},
{
#name : 'TonelReaderModel',
Expand All @@ -42,7 +42,7 @@
}
],
#name : 'ENVY/Image Tonel',
#versionName : '1.5.5 e'
#versionName : ''
},
{
#conditions : [ ],
Expand Down Expand Up @@ -72,6 +72,6 @@
}
],
#name : 'Test ENVY/Image Tonel',
#versionName : ''
#versionName : '1.5.6'
}
]
18 changes: 12 additions & 6 deletions source/TonelLoaderModel/TonelLoaderSubApplication.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,9 @@ TonelLoaderSubApplication >> createEditionIn: parentEmApp underCondition: condit
{ #category : 'loading' }
TonelLoaderSubApplication >> createFor: parentApp underCondition: conditionCode withRoot: rootApp [

| aSubApp |

aSubApp := self createEditionIn: parentApp underCondition: conditionCode withRoot: rootApp.
self createSubApplicationsFor: aSubApp withRoot: rootApp.
^aSubApp
emApplication := self createEditionIn: parentApp underCondition: conditionCode withRoot: rootApp.
self createSubApplicationsFor: emApplication withRoot: rootApp.
^emApplication
]

{ #category : 'loading' }
Expand Down Expand Up @@ -364,7 +362,8 @@ TonelLoaderSubApplication >> definePoolDictionariesForClassesIn: anApp [
(self definedClasses select: [:each | (self emApplication notNil and: [each identifier = self emApplication name]) or: [each identifier = self identifier]]) collect: [
:tonelClass |
tonelClass loadDeclarationMethodsInto: anApp using: self loader.
EmInterface current rebuildNamespaceFor: anApp].
EmInterface current rebuildNamespaceFor: self emApplication
].

definedSharedPools notEmpty
ifTrue: [
Expand Down Expand Up @@ -402,6 +401,13 @@ TonelLoaderSubApplication >> emApplication [
^emApplication
]

{ #category : 'accessing' }
TonelLoaderSubApplication >> emApplication: emAppOrSubApp [
"Sets the Application/SubApplication instance of receiver."

emApplication := emAppOrSubApp
]

{ #category : 'querying' }
TonelLoaderSubApplication >> emClass [
"Answers the ENVY/Manager class for receiver."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,12 @@ TonelReaderAbstractClassDefinition >> loadInto: anApp using: appLoader [
TonelReaderAbstractClassDefinition >> loadMethodsInto: anApp using: aTonelLoader [

| concreteClass |

concreteClass := self concreteClassIn: anApp.
self tonelMethods do:
[:aTonelMethod |
aTonelMethod
loadFor: concreteClass
into: anApp
using: aTonelLoader]
self tonelMethods do: [:aTonelMethod |
aTonelMethod loadFor: concreteClass into: anApp using: aTonelLoader.
aTonelMethod isDeclaration ifTrue: [EmInterface current rebuildNamespaceFor: anApp]
]
]

{ #category : 'loading-changes',
Expand Down

0 comments on commit d3488ad

Please sign in to comment.