Ignore:
Timestamp:
03/29/12 19:18:54 (12 years ago)
Author:
wschamai
Message:

BUG FIX: validator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.modelicaml.editor.xtext.modification/src/org/openmodelica/modelicaml/editor/xtext/modification/validation/ModificationJavaValidator.java

    r1315 r1467  
    33import java.util.List;
    44
    5 import org.eclipse.emf.ecore.EStructuralFeature;
    65import org.eclipse.xtext.validation.Check;
    76import org.openmodelica.modelicaml.common.contentassist.ModelicaMLContentAssist;
     
    2928        }
    3029        if ( !cList.contains(dotPath) ) {
    31             error("left_hand_component_reference '" + dotPath + "' cannot be resolved to a class component", (EStructuralFeature) cr,  ModeleditorPackage.COMPONENT_REFERENCE);
     30            error("left_hand_component_reference '" + dotPath + "' cannot be resolved to a class component", null,  ModeleditorPackage.COMPONENT_REFERENCE);
    3231        }
    3332    }
     
    4140        List<String> cList = ModelicaMLContentAssist.getTypeSpecifierSortedList();
    4241        if ( !cList.contains(cr.getName().getName_ID()) ) {
    43             error("type_specifier '" + cr.getName().getName_ID() + "' cannot be resolved", (EStructuralFeature) cr, ModeleditorPackage.NAME__NAME_ID);
     42            error("type_specifier '" + cr.getName().getName_ID() + "' cannot be resolved", null, ModeleditorPackage.NAME__NAME_ID);
    4443        }
    4544    }
Note: See TracChangeset for help on using the changeset viewer.