Skip to content

Commit 6116b30

Browse files
Do not install temporary models in Moose
1 parent 1f6ea05 commit 6116b30

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Moose-Blueprint-Models/Class.extension.st

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ Class >> blueprint [
99
{ #category : '*Moose-Blueprint-Models' }
1010
Class >> blueprintView [
1111

12-
| model |
12+
| model importer |
13+
model := FamixStModel new.
14+
model name: 'tempModelFor' , self name.
1315

14-
model := MooseScripts
15-
createModelNamed: 'tempModel'
16-
with: { self package name asString }.
16+
importer := FamixStPharoImporterTask new.
17+
importer importingContext mergeClassAndMetaclass.
1718

18-
^ (model allModelClasses detect: [ :each | each name = self name ])
19+
importer
20+
model: model;
21+
addFromPackage: self package;
22+
runWithProgress.
23+
24+
^ (model allModelClasses detect: [ :cls | cls name = self name ])
1925
blueprint
2026
]

0 commit comments

Comments
 (0)