- Timestamp:
- 06/24/11 13:21:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modelicaml/org.openmodelica.modelicaml.editor.xtext.modeleditor/src/org/openmodelica/modelicaml/editor/xtext/model/validation/ModeleditorJavaValidator.java
r594 r843 26 26 dotPath = dotPath + ref1DotPath; 27 27 } 28 if ( !cList.contains(dotPath) ) { 28 // TODO: do not raise errors for functions from the MSL because there is no validation yet. 29 // i.e. there is no list of MSL functions available for code completion validation. 30 if ( !dotPath.startsWith("Modelica.") && !dotPath.startsWith(".Modelica.") 31 && !cList.contains(dotPath) ) { 29 32 error("component_reference '" + dotPath + "' cannot be resolved to a class component", ModeleditorPackage.COMPONENT_REFERENCE); 30 33 } … … 39 42 cList.addAll(ModelicaMLContentAssist.getTypeSpecifierSortedList()); // use for redeclare in modifications ... 40 43 41 if ( !cList.contains(cr.getName_ID()) ) { 44 // TODO: do not raise errors for functions from the MSL because there is no validation yet. 45 // i.e. there is no list of MSL functions available for code completion validation. 46 if ( !cr.getName_ID().startsWith("Modelica.") && !cr.getName_ID().startsWith(".Modelica.") 47 && !cList.contains(cr.getName_ID()) ) { 42 48 error("name '" + cr.getName_ID() + "' cannot be resolved", ModeleditorPackage.NAME__NAME_ID); 43 49 }
Note: See TracChangeset
for help on using the changeset viewer.