Changeset 990 for trunk/modelicaml/org.openmodelica.modelicaml.helper
- Timestamp:
- 09/24/11 09:11:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modelicaml/org.openmodelica.modelicaml.helper/src/org/openmodelica/modelicaml/helper/impl/TestVerdictElementsGenerator.java
r917 r990 56 56 import org.eclipse.uml2.uml.Type; 57 57 import org.eclipse.uml2.uml.UMLPackage; 58 import org.openmodelica.modelicaml.common.constants.Constants; 58 59 import org.openmodelica.modelicaml.common.services.StringUtls; 59 60 import org.openmodelica.modelicaml.common.services.UmlServices; … … 147 148 Type t = property.getType(); 148 149 if (t instanceof Class) { 149 Property violated = ((Class)t).getOwnedAttribute( "violated", null);150 Property evaluated = ((Class)t).getOwnedAttribute( "evaluated", null);150 Property violated = ((Class)t).getOwnedAttribute(Constants.propertyName_violated, null); 151 Property evaluated = ((Class)t).getOwnedAttribute(Constants.propertyName_evaluationStarted, null); 151 152 if ( violated != null && evaluated != null) { 152 153 Type violatedType = violated.getType(); … … 172 173 for (Property property : reqInstances) { 173 174 //violatedExpression = violatedExpression + Utls.replaceSpecChar(property.getName()) + ".violated, "; 174 violatedExpression = violatedExpression + StringUtls.replaceSpecChar(property.getName()) + ". violatedor ";175 evaluatedExpression = evaluatedExpression + StringUtls.replaceSpecChar(property.getName()) + ". evaluatedand ";175 violatedExpression = violatedExpression + StringUtls.replaceSpecChar(property.getName()) + "."+Constants.propertyName_violated+" or "; 176 evaluatedExpression = evaluatedExpression + StringUtls.replaceSpecChar(property.getName()) + "."+Constants.propertyName_evaluationStarted+" and "; 176 177 } 177 178 } … … 183 184 } 184 185 Shell shell = new Shell(); 185 MessageDialog.openError(shell, "Error", "The following requirements do not have the mandotory attributes ' evaluated and 'violated' of type 'ModelicaBoolean'." +186 MessageDialog.openError(shell, "Error", "The following requirements do not have the mandotory attributes '"+Constants.propertyName_evaluationStarted+"' and '"+Constants.propertyName_violated+"' of type 'ModelicaBoolean'." + 186 187 invalidComponentNames + 187 188 "\n\nNo modification was made to the class '"+selectedClass.getName()+"'.");
Note: See TracChangeset
for help on using the changeset viewer.