you can run
|importingContext contextSelected stream mooseModel|
contextSelected:=#(#Parameter #UnknownVariable #LocalVariable #Class
#Invocation #AnnotationType #Package #AnnotationTypeAttribute #EnumValue
#GlobalVariable #TypeAlias #Module #Method #Enum #Function #Reference
#PrimitiveType #Inheritance #Access #ParameterType #Comment
#ParameterizedType #ParameterizableClass #ImplicitVariable #Namespace ).
importingContext := FAMIXStandardImportingContext new.
importingContext importAll: contextSelected.
stream := StandardFileStream readOnlyFileNamed: '180.mse'.
mooseModel :=MooseModel new importFromMSEStream: stream filteredBy:
importingContext.
mooseModel name: 'Verveine 180'.
mooseModel install.
2012/4/3 Tudor Girba <tudor(a)tudorgirba.com>
Hi,
Could you provide a reproducible case?
Cheers,
Doru
On 3 Apr 2012, at 20:38, Santiago Vidal wrote:
Hi,
I'm trying to customize the import context when loading an mse model by
using
the method MooseModel>>importFromMSEStream: aStream filteredBy:
anImportingContext.
The main problem is that after creating the MSE
model some metrics are
missing. For example, numberOfLinesOfCode is always 0 for a
class. When I
create the model without the importing context the metrics are fine.
The importing context that I'm using has the following
fullNamesOfEntitiesToBeExtracted: 'FAMIX.Comment' 'FAMIX.Access'
'FAMIX.Inheritance' 'FAMIX.Invocation' 'FAMIX.Reference'
'FAMIX.Function'
'FAMIX.Method' 'FAMIX.Module' 'FAMIX.Namespace'
'FAMIX.Package'
'FAMIX.AnnotationType' 'FAMIX.Class' 'FAMIX.Enum'
'FAMIX.ParameterType'
'FAMIX.ParameterizedType' 'FAMIX.PrimitiveType'
'FAMIX.TypeAlias'
'FAMIX.EnumValue' 'FAMIX.GlobalVariable'
'FAMIX.ImplicitVariable'
'FAMIX.LocalVariable' 'FAMIX.Parameter' 'FAMIX.UnknownVariable'
'FAMIX.ParameterizableClass' 'FAMIX.AnnotationTypeAttribute'
Any help? Thanks
Cheers,
Santiago
--
Santiago Vidal
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
Things happen when they happen,
not when you talk about them happening.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev