Issue 539 in moose-technology: Introduce SourceLanguage as an explicit entity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 539 in moose-technology: Introduce SourceLanguage as an explicit entity

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Famix Milestone-4.3

New issue 539 by [hidden email]: Introduce SourceLanguage as an  
explicit entity
http://code.google.com/p/moose-technology/issues/detail?id=539

Currently, sourceLanguage is modeled with a symbol stored in the Model.  
This is suboptimal due to at least two things:
- the only way to decide strategies of what highlighting to use when  
displaying text is with an if
- there is no possibility of having multiple languages in the same model

I would like to introduce FAMIXSourceLanguage as an explicit entity that  
can be linked to any FAMIXEntity.

If an entity does not have a FAMIXEntity, it will fallback to the  
mooseModel sourceLanguage.

The overall MooseModel sourceLanguage will be decided based on the  
FAMIXSourceLanguage object that has no attached entities.

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 539 in moose-technology: Introduce SourceLanguage as an explicit entity

moose-technology
Updates:
        Status: Fixed

Comment #1 on issue 539 by [hidden email]: Introduce SourceLanguage  
as an explicit entity
http://code.google.com/p/moose-technology/issues/detail?id=539

I did the followings:

- introduced FAMIXSourceLanguage
- FAMIXSourcedEntities have potentially declaredSourceLanguage
- if there is none, we fall back to the source language of the MooseModel
- the MooseModel checks to see if there is a FAMIXSourceLanguage that is  
not attached to an entity, and if there is it means this is the language  
for the entire model
- refactored the implementation of MooseModel>>isSmalltalk

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev