Ignore:
Timestamp:
08/16/12 14:40:33 (12 years ago)
Author:
wschamai
Message:

BUG FIX: creating and updating of extends relations
MOD: message of the C01 rules now contains the qualified name of the problem element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.modelicaml.modelica.importer/src/org/openmodelica/modelicaml/modelica/importer/helper/ModelicaMLElementsCreator.java

    r1626 r1627  
    592592                            extendsRelation.setModelicaMLProxy(modelicaMLGeneralizationProxy);
    593593                           
    594                             if (modelicaMLGeneralizationProxy != null) {
    595                                 // update
    596                                 updateExtendsRelation(modelicaMLGeneralizationProxy, extendsRelation, applyProxyStereotype);
    597                             }
     594                           
     595                            /*
     596                             * Note, the update operations was moved to the create operation in order to avoid live valiation problems
     597                             * due to unapplied stereotypes.
     598                             */
     599//                          if (modelicaMLGeneralizationProxy != null) {
     600//                              // update
     601//                              updateExtendsRelation(modelicaMLGeneralizationProxy, extendsRelation, applyProxyStereotype);
     602//                          }
    598603                        }
    599604                        else {
     
    763768                }
    764769               
     770                /*
     771                 *  Update (i.e. apply sterotypes, etc.) after creating in order to avoid live validation problems
     772                 */
    765773                if (createdElement instanceof Generalization) {
     774                   
     775                    Element updatedRelation = updateExtendsRelationCommand(createdElement, extendsRelationTreeObject, applyProxyStereotype);
    766776                }           
    767777                else {
Note: See TracChangeset for help on using the changeset viewer.